User Tools

Site Tools


tutorial:batch_processing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorial:batch_processing [2011/01/09 16:01]
agent_007 fix errors
tutorial:batch_processing [2011/01/09 16:22]
agent_007 some tips
Line 34: Line 34:
 for %%f in (*.mp4) do %avidemux% --video-codec %videocodec% --video-conf %videobitrate% --audio-codec %audiocodec% --audio-bitrate %audiobitrate% --force-alt-h264 --load "​%%f"​ --save "​%%f.avi"​ --quit for %%f in (*.mp4) do %avidemux% --video-codec %videocodec% --video-conf %videobitrate% --audio-codec %audiocodec% --audio-bitrate %audiobitrate% --force-alt-h264 --load "​%%f"​ --save "​%%f.avi"​ --quit
 </​code>​ </​code>​
 +
 +
  
 ==== JS scripting (ECMAScript) only batch processing ==== ==== JS scripting (ECMAScript) only batch processing ====
Line 185: Line 187:
 } }
 </​code>​ </​code>​
 +
 +
  
 ==== Combination of command-line and JS scripting ==== ==== Combination of command-line and JS scripting ====
Line 220: Line 224:
 for %%f in (*.mp4) do %avidemux% --force-alt-h264 --load "​%%f"​ --run something.js --save "​%%f.avi"​ --quit for %%f in (*.mp4) do %avidemux% --force-alt-h264 --load "​%%f"​ --run something.js --save "​%%f.avi"​ --quit
 </​code>​ </​code>​
 +
 +If you create your own combine batch settings, make sure order of command-line parameters is always --load something, --run something and --save something (AVIdemux will run these options in give order).
 +
 +
 +==== Tips ====
 +  * You can replace **avidemux2** with **avidemux2_cli** if you want to process files via GUI
 +  * You can use **--nogui** option in case you want to suppress all dialogs (it must be first option!)
tutorial/batch_processing.txt ยท Last modified: 2012/11/11 08:51 (external edit)