Skip to content

Portable mode

CrendKing edited this page Jun 14, 2021 · 3 revisions

Since version 0.8.0, AviSynth Filter comes with portable mode.

Portable mode allows user to save the settings in an ini file instead of registry, which can be copied and placed in different places and systems. This enables use cases such as having multiple video players each with different AviSynth script. For example, one player configured to load an avs script specifically designed to play movies, another for live streams or animes.

To activate the portable mode, simply create an avisynth_filter.ini file in the same directory as the video player executable. For example, for video player C:\MyPlayer\player.exe, create C:\MyPlayer\avisynth_filter.ini.

AviSynth Filter loads the ini file at initialization, and saves modified settings afterwards. Registry will not be touched throughout that session.

To deactivate the portable mode, remove or rename the avisynth_filter.ini file before playing. The filter will fallback to use registry for settings.

The default section of the ini file has no name. The key and values follow the same format as in the registry, except boolean values (e.g. RemoteControl), which uses "true" and "false" instead 1 and 0.

More discussion and design choices can be found at https://github.com/CrendKing/avisynth_filter/issues/20.

Example

AvsFile = C:\movie.avs
InputFormat_I420 = false
InputFormat_IYUV = false
RemoteControl = false
LogFile = C:\avsf.log
Clone this wiki locally