This shows you the differences between two versions of the page.
tutorial:batch_processing [2011/01/08 17:58] agent_007 more additions |
tutorial:batch_processing [2012/11/11 08:51] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Batch processing ====== | ||
- | This page tries to explain how batch processing works with Avidemux. | ||
- | |||
- | This tutorial shows how one can process multiple video files with same settings. This is useful for cases where you have to e.g. convert multiple video files to certain format. | ||
- | |||
- | ===== Short introduction to different methods ===== | ||
- | |||
- | Since AVIdemux supports both Command-line processing ([[using:command_line_usage]]) and JS scripting ([[using:Scripting]]) possibilities, there are multiple ways to batch process your files: | ||
- | 1. Command-line only processing with bash script/.bat file or similar. | ||
- | 2. JS scripting only processing | ||
- | 3. Combination of command-line and JS scripting | ||
- | |||
- | ==== Command-line only batch processing ==== | ||
- | AVIdemux command-line support doesn't allow you to change all possible options. But it usually works OK for simple format conversions. Since it allows you to use additional command-line tools, you can for example automate YouTube uploads after AVIdemux has processed the files. Because different operating systems have different kind of filename limits etc. some command-line samples presented below won't work in all systems/shells. | ||
- | |||
- | Win32 example (.bat file) that will convert all .mp4 files in current folder to .avi (XviD+MP3). Original files aren't modified. New files are named like something.mp4.avi | ||
- | <code> | ||
- | set avidemux="C:\Program Files\Avidemux 2.5\avidemux2.exe" | ||
- | set videocodec=Xvid | ||
- | set audiocodec=MP3 | ||
- | </code> | ||
- | (you should change "C:\Program Files\Avidemux 2.5\avidemux2.exe" in case your AVIdemux installation is located in different folder) |