Linux.com

How to convert YouTube videos to DivX or XviD

Posted by: Anonymous [ip: 89.130.54.218] on August 20, 2007 05:09 PM
Hi there!
it didn't work with that options in nokias phones. I get an error with my s60 in smartmovie complaining about 'bad AVI'. It worked out with this script. In case someone find this useful:


#!/bin/sh
#mencoder -of avi -ovc xvid -xvidencopts bitrate=500:interlacing -afm ffmpeg -af resample=16000,channels=1 -oac mp3lame -lameopts cbr:br=64:mode=3 -noskip -vop scale=208:176 flv/tAsOfqCy4A0.flv -o prueba.avi

if [ -z "$1" ]; then
echo "Usage: $0 list_of_flv_files"
exit 1
fi

# video encoding bit rate
V_BITRATE=50
while [ "$1" ]; do
mencoder -of avi -ovc xvid -xvidencopts bitrate=$V_BITRATE:interlacing -afm ffmpeg -af resample=16000,channels=1 -oac mp3lame -lameopts cbr:br=64:mode=3 -noskip -vop scale=208:176 "$1" -o "`basename $1 .flv`.avi"
shift
done


Save it as flv2avi.sh and
$chmod 755 flv2avi.sh

#

Return to How to convert YouTube videos to DivX or XviD