Log in

View Full Version : AVS Plug-in to set DivX 6 bitrate for GK


mimungr
18th July 2005, 20:36
I wrote an Avisynth plug-in that updates the DivX 6 CLI parameters with the bitrate set in the registry by Gordian Knot. It's only useful if you use the advanced SaveAVS window; in which case, you can add this on the Filters page and forget about it.

It takes three parameters: the registry value used to store the CLI, the switch for the pass 1 bitrate, and the switch for the pass 2 bitrate. I made these configurable in case DivX changes them. The defaults are set to the right values for the current version of the encoder.

Order doesn't matter. You can put the filter anywhere in the script.

I have only tested it lightly, but it seems to work fine. I've been consistently hitting the target file size set in GK.

I haven't anywhere to host the file, so I've attached it to this post.

The script should look something like this:

# Created with Gordian Knot
#
# http://gknot.doom9.org

# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\SyncDivxCli.dll")

# SOURCE
mpeg2source("C:\Video\Scratch\Angel\Angel.d2v", idct=0)

# CROPPING
crop(22,34,676,408)

# RESIZING
LanczosResize(672,304)

# DENOISING: choose one combination (or none)
SyncDivxCli("b1571-CenterOfTheSun ","bvn1","bvnn")