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 15:53]
agent_007 fix styling
tutorial:batch_processing [2011/01/09 16:22]
agent_007 some tips
Line 8: Line 8:
  
 Since AVIdemux supports both Command-line processing ([[using:​command_line_usage]]) and JS scripting (ECMAScript) ([[using:​Scripting]]) possibilities,​ there are multiple ways to batch process your files: Since AVIdemux supports both Command-line processing ([[using:​command_line_usage]]) and JS scripting (ECMAScript) ([[using:​Scripting]]) possibilities,​ there are multiple ways to batch process your files:
-  - 1. Command-line only processing with bash script/.bat file or similar. +  - Command-line only processing with bash script/.bat file or similar. 
-  - 2. JS scripting (ECMAScript) only processing +  - JS scripting (ECMAScript) only processing 
-  - 3. Combination of command-line and JS scripting+  - Combination of command-line and JS scripting
  
 ==== Command-line only batch processing ==== ==== Command-line only batch processing ====
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 192: Line 196:
 <code javascript>​ <code javascript>​
 //AD  <- Needed to identify// //AD  <- Needed to identify//
 +var app = new Avidemux();
 //** Postproc ** //** Postproc **
 app.video.setPostProc(3,​3,​0);​ app.video.setPostProc(3,​3,​0);​
- 
-app.video.fps1000 = 29970; 
  
 //** Filters ** //** Filters **
Line 219: Line 222:
 <​code>​ <​code>​
 set avidemux="​C:​\Program Files\Avidemux 2.5\avidemux2.exe"​ set avidemux="​C:​\Program Files\Avidemux 2.5\avidemux2.exe"​
-set videocodec=Xvid 
-set audiocodec=MP3 
 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)