Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th September 2009, 20:16   #1  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Guide on using AviSynth filters in StaxRip

It's frequently asked how to use AviSynth filters in StaxRip so I wrote small guide you can see below.

Opening the AviSynth plugin directory

One of the first steps is likely to put a AviSynth plugin DLL to the AviSynth plugin directory. The plugin directory can be opened (meaning showing a explorer window) directly from StaxRip's main menu under 'Tools/Directories/Plugins' (you can also open the source/target file directory and several other important directories from this menu). If you run Vista or higher you will see a UAC prompt trying to copy files. It's possible to move the plugin directory to your home directory editing the following registry key:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Avisynth]
"plugindir2_5"="c:\\program files\\avisynth 2.5\\plugins"
This way you won't be bothered with UAC prompts in the future. Hopefully AviSynth will use the home directory by default in the future, a request for this has been made.

Creating a filter profile

Once the DLL was copied to the plugin directory the most common task is to create a filter profile. To edit the filter profiles right-click the filters list and select 'Profiles...' from the context menu. A window shows the filter profile definitions in INI format. While the INI format is dated it's perfectly suited to define filter profiles. A INI section defined within brackets defines the category to which a filter belongs:

Code:
[category name]
The names of these categories can't be changed as internal features of StaxRip rely on these names. The left side defines the name of a filter profile and the right side defines the filter code:

Code:
filter profile name = filter profile code
example:
Code:
MPEG-2     = MPEG2Source("%source_file%")
The filter code may contain macros. Clicking the Macro button shows a list of possible macros. A filter profile is restricted to a single line, there are two ways to overcome this restriction, the first is to separate different functions with blanks which is legal AviSynth syntax:

Code:
Yadif      = LoadCplugin("%application:Yadif%") Yadif()
Another way is to use the newline macro:

Code:
Yadif      = LoadCplugin("%application:Yadif%")%newline%Yadif()
Using filter profiles

The filter list has check boxes to enable/disable filters. The filter order can be changed with drag & drop. To replace a filter it can be right-clicked, the context menu will show all filters of the same category. To replace it with a filter of another category choose 'Replace'. 'Insert' inserts a filter pushing the selected filter below and 'Add' inserts a filter at the end. 'Edit' shows the filter list in a new window with some additional features. Double-clicking a filter edits the clicked filter.

Filter Setup Profiles

While a filter profile represents a part of a AviSynth script a filter setup profile represents the entire scripts.

Changing the filter setups of project templates

Frequently used filter setups can be saved in project templates, like the default project template loaded at startup so the filter setup don't has to be changed everytime. Project templates are saved from the main menu under 'Project/Save As Template'.

Importing a AviSynth script

It's possible to use a AviSynth script as source file. StaxRip will simply import the script in the source filter. Scripts shouldn't however contain a return statement as it would disables a few StaxRip features since filters below would be ignored.

Last edited by stax76; 26th December 2009 at 13:22.
stax76 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.