Submitted by Lupine on Sat, 01/09/2010 - 15:59
Below is a listing of the common commands I use to perform certain MultiMedia based encodings, conversions, whatever. I plan on adding to this post from time to time, make alterations and other updates. It's pretty much a living document. All of these commands give (me) great results for what I'm looking to do. There are probably "better" ways, and probably even GUI-based applications that will do these. However, using scripts or reptivitive actions, these could come in hand.
Convert Sequential Image Files Into AVI
mencoder mf://*.png -mf type=png -o MOVIE.avi -ofps 24000/1001 -ovc xvid \
-xvidencopts max_bframes=1:bitrate=700:quant_type=mpeg:vhq=4 -noskip
RIP DVD to AVI
1) scale="384:288" == "Full screen"
2) scale="512:288" == "Wide screen"
OVCENC="xvid \
-xvidencopts chroma_opt:chroma_me:vhq=4:bvhq=1:quant_type=mpeg:bitrate=700 \
-vf scale=384:288 -ofps 30000/1001"
OACENC="mp3lame -lameopts abr:br=128:vol=3 -alang en"
mencoder dvd://1 -oac $OACENC -ovc $OVCENC -o TITLENAME1.avil
RIP Cartoons DVD to AVI
OVCENC="xvid \
-xvidencopts cartoon:chroma_opt:chroma_me:vhq=4:bvhq=1:quant_type=mpeg:bitrate=700 \
-vf scale=384:288 -ofps 30000/1001"
OACENC="mp3lame -lameopts abr:br=128:vol=3 -alang en"
mencoder dvd://1 -oac $OACENC -ovc $OVCENC -o TITLENAME1.avil
Rip Audio From File Using MPlayer
mplayer -ao pcm:file=WAVEFILE.wav -vo null INPUTFILE.avi
Merge An MP3 File Onto A Video
mencoder INPUTFILE.avi -ovc copy -oac mp3lame -audiofile AUDIOFILE.mp3 -o OUTPUT.avi
Convert iPod .m4a Files Into .mp3 Files
for x in *.m4a;
do mplayer "$x" -ao pcm:file="`echo $x | sed 's/\.m4a/\.wav/'`" &&
lame -f -m m "`echo $x | sed 's/\.m4a/\.wav/'`" "`echo $x | sed 's/\.m4a/\.mp3/'`" ; done
Convert .flv Into .avi
ffmpeg -i input.flv -aspect 4:3 -ab 56 -ar 22050 -b 500 -s 320×240 -y output.avi
Convert .MTS Into .avi
ffmpeg -y -sameq -deinterlace -i 00000.MTS 00000.avi