Here’s a script to convert a batch of avi files to mpg. I’ve commented out a version of the command which specifies the bitrate, and am using sameq (same quality); you can experiment with the commented out one if that suits your needs better.


#!/bin/sh

for file in *.AVI *.avi
do
echo "Transcoding $file to MPG..."
# ffmpeg -r 30 -b 1600 -i $file $file.mpg
ffmpeg -sameq -i $file $file.mpg
done



Related Comments (4)