mencoder – Rencodage de divx

Nov 11
2008

Un petit script vite fait pour réencoder des divx en masse. La commande de base est :

/usr/bin/mencoder ./original.avi -of avi -oac mp3lame -lameopts cbr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vhq -ffourcc DX50 -o ./destination.avi

#!/bin/bash
#
#
#

ls -1 | grep -i AVI > ./mencoder.tmp

aLine= » »
while read aLine ; do
echo $aLine
if [ ! -e « ./nouveaux » ] ; then
mkdir « ./nouveaux »
fi
/usr/bin/mencoder ./$aLine -of avi -oac mp3lame -lameopts cbr:br=128 -ovc lavc -lavcopts vcodec=mpeg4:vhq -ffourcc DX50 -o ./nouveaux/$aLine > $aLine.tmp
done <  mencoder.tmp

Comments are closed.