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 more additions part VI
tutorial:batch_processing [2011/01/09 16:07]
agent_007 small tip
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:
-  - Ordered List Item1. ​Command-line only processing with bash script/.bat file or similar. +  - Command-line only processing with bash script/.bat file or similar. 
-  - Ordered List Item2. ​JS scripting (ECMAScript) only processing +  - JS scripting (ECMAScript) only processing 
-  - Ordered List Item3. ​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 192: Line 192:
 <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 218:
 <​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).
 +
 +
tutorial/batch_processing.txt · Last modified: 2012/11/11 08:51 (external edit)