News:

--

Main Menu

Noob Q&A

Started by bobbysoon, August 18, 2012, 03:22:47 PM

Previous topic - Next topic

bobbysoon

Hi. I'm working on a batch script for making videos playable on a 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" 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?

Jan Gruuthuse

not sure if this is what you're after:
Scripting tutorial
Scripting

bobbysoon

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.

Jan Gruuthuse

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