How to convert a directory of AVI files to play on LG Viewty mobile
I often have a bunch of avi files in a directory that I want to convert to see on my viewty mobile. This code will create a new 'mobile' directory within the directory and convert each avi file to the LG Viewty format. The original files will remain untouched.
Code:
mkdir mobile; IFS=$'\n' ; for f in `ls -1 *.avi` ; do FILE=$(basename "$f" .avi) ; mencoder "$FILE.avi" -oac lavc -lavcopts acodec=libmp3lame:abitrate=64 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=350 -ffourcc DX50 -vf scale=400:240 -o "mobile/$FILE.avi"; rm "frameno.avi"; rm "divx2pass.log"; sleep 60; done
<a href="http://ubuntucounter.geekosophical.net" title="The Ubuntu Counter Project - user number # 8807"><img src="http://ubuntucounter.geekosophical.net/img/ubuntu-user.php?user=8807" alt="The Ubuntu Counter Project - user number # 8807" /></a>
Bookmarks