Log in

View Full Version : AviDemux scripting


RedDwarf1
25th January 2008, 02:14
I am attempting to write what should be a simple AVIDemux script to to cut a section of video out of an AVI (Mpeg4 ASP) file and save it out to a file. Then save another section from the same original AVI file. Finally append another file between the two cut parts.

The problem I am having is that the script causes AVIDemux to prompt for VBRScan and unpack Packed Bitstream which I do not want as it is meant to be automated.

Does anyone know of a way to stop AVIDemux from asking these things and to specify them myself when necessary? I would like to do a VBRScan at the appropriate times, which I can specify myself. I have tried putting that in with the hope it would not ask me but it still does ask. I NEVER want Packed Bitstream removed.

Also another problem is the paths. I would like it to use the current script path for the avi files when it loads them instead of having to specify the full paths. I have tried .\ but it has not worked. Nor has .\\

Can anyone help with this? I have looked through the limited documentation but it has shed no light on the subject.

This is all in windows.

LoRd_MuldeR
25th January 2008, 09:44
Try something like this:
avidemux2_cli.exe --nogui --autoindex ....

BTW: When processing files in Avidemux and Packed Bitstream is detected, it should always be unpacked...

mean
25th January 2008, 20:40
Something like that should work

var app = new Avidemux();
....
app.forceUnpack();
app.load(filename);
app.audio.scanVBR();
....

backstar
7th June 2010, 17:36
As far as I know you must use absolute paths. You could, however, create a variable for the current directory path and append it to each relative path. Then you'd only have to change the path in one place each time you move the script.

More on basic Avidemux scripting here:
http://bitsynthesis.com/2010/06/avidemux-basic-script-elements/