Batch conversion WMV to MP4 with Avidemux
I needed to convert a bunch of Windows movie files (.wmv) to MP4 format so my Motorola Xoom would play them reliably.
Installed Avidemux on my Ubuntu 11.04 (32 bit) PC. Its easy to use the GUI but I needed an unattended job to process multiple files, so I saved this script and set the executable bit, double-clicked and let it run through the night.
Hope it is useful to someone else.
Code:
#!/bin/bash
# Usage: convert all WMV files to MP4
shopt -s nullglob
for f in *.wmv
do avidemux --force-alt-h264 --load "$f" --audio-bitrate 224 --audio-codec aac --video-codec x264 --save "${f%.wmv}.mp4" --output-format MP4 --quit
done
Tony
--
Linux Mint 14, Linux user 456436
Bookmarks