Avidemux Forum

Avidemux => Stable branch (2.5) discussion => Topic started by: bobbysoon on August 18, 2012, 03:22:47 PM

Title: Noob Q&A
Post by: bobbysoon on August 18, 2012, 03:22:47 PM
Hi. I'm working on a batch script for making videos playable on a DVP5990 (http://blog.techflaws.org/tag/dvp5990/). I've found a working A/V combination and container format (V:xVid, A:Aften, & out.avi). Now I'm working on scripting.
I can't find (complete) reference for (AviDemux's implementation of) SpiderMonkey. (The links in "SpiderMonkey Commands (http://www.avidemux.org/smf/index.php?topic=1418.msg16215#msg16215)" are broken, btw.)
Can GetFileDirectory be sorted?
At some point, I'd like to expand this to automatically rescale. How might an input file's resolution be worked with?
Title: Re: Noob Q&A
Post by: Jan Gruuthuse on August 18, 2012, 05:14:15 PM
not sure if this is what you're after:
Scripting tutorial (http://www.avidemux.org/admWiki/doku.php?id=tutorial:scripting_tutorial)
Scripting (http://www.avidemux.org/admWiki/doku.php?id=using:scripting)
Title: Re: Noob Q&A
Post by: bobbysoon on August 18, 2012, 06:10:57 PM
I saw those. The 1st link's example uses objects/functions not listed in the 2nd link's list of functions, and besides, the descriptions aren't very descriptive. I'm hoping for a more complete reference.
Also, I did a simple file loop test, and the printed filenames were out of order. Probably not a big deal for most, but I'd like to do them in order, if possible.
Title: Re: Noob Q&A
Post by: Jan Gruuthuse on August 19, 2012, 06:36:39 AM
Let see if I did understand what you want? The order of files is not processed as you would like?
I'm using sometimes a program to rename files: GPRename 2.6: A complete batch renamer for files and directories found @ http://gprename.sourceforge.net http://en.wikipedia.org/wiki/GPRename
With this one you can renumber files and put these numbers in front of the file name like:
001filename.avi
002filename.avi
...
010filename.avi

batch processing files with script and saved job basic example found here (http://www.avidemux.org/smf/index.php?topic=10499.0)