This is an
AvsP macro to encode the Avisynth script in the current tab with x264. It prompts for the encoding settings and pipes the video data to x264 using
avs4x264. It started as a quick and dirty script, now it has become kind of a poor man's GUI.
Features:
- CRF and 2-pass ABR encoding mode, progressive and interlaced.
- Use x264 64-bit with Avisynth 32-bit.
- Check consistency between avs output color depth and x264 input-depth parameter.
- Read x264 parameters from commentaries on the script.
- Calculate an adequate SAR from MeGUI DAR info or a specific comment in the script, if present.
- Add zones parameter based on commentaries on lines with Trims.
- Search for an existing QP and timecode file in the script directory with the same name as the avs.
- Alias feature for setting the YCbCr to RGB flags.
- Set "start" shell command options (process priority, start minimized).
- Not display any window while encoding and notify at the end.
- Save the x264 logs and a copy of the Avisynth script.
- Close the current tab and/or preview tabs on its right.
AvsP macro (
check for latest version)
In order to use it, you need to place the script in the "AvsPmod\macros" directory, and avs4x264mod and x264 in "AvsPmod\tools" or set a custom path. Be sure to open the script with your text editor to check the complete documentation.
Changelog:
Code:
- minor changes and some cleanup
- fix "Additional parameters" field. It needed to start with a space
- improved interface with recent updates in AvsPmod
- default values can be set now from the prompt
- add 2-pass ABR mode
- add scan type option
- add DAR to the prompt. It can also be read from the avs now, like "# DAR 16:9" or "# DAR 1.85"
- add Blu-ray compatible and open-GOP switches to the prompt
- x264 parameters can now be read from the avs, like "# x264 parameters --crf 17 --aq-strength 1.2"
- zones can now be read from lines with Trims in the avs, like "Trim(0,100) # zones crf=20"
- improve RGB / YCbCr flags alias feature
- add option to archive the encoding log and a copy of the avs
- add option to run the encoding without a window and notify at the end
- add option to close the current tab and/or preview tabs on its right
- fix Python 2.6 compatibility
- add support for Dither_out (Dither v1.22.0+)