Useful mencoder commands

A note to self kind of post – useful mencoder commands to

1) convert huge digicam concert (and not only) videos to smaller ones
mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2200:vhq:keyint=50 -oac mp3lame /media/ixus870/DCIM/120CANON/MVI_5241.MOV -o 3.avi

bonus – do this massivly:

cd /media/ixus870/DCIM/120CANON

for file in *.MOV ; do
let i++
mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2200:vhq:keyint=50 -oac mp3lame /media/ixus870/DCIM/120CANON/$file -o /home/ssergeje/$i.avi

2) merge several videos into one
mencoder -ovc copy -oac mp3lame  MVI_4675.MOV MVI_4676.MOV MVI_4677.MOV -o frontline.avi

3) split one video into two (00:08:01 and 00:07:45 is hh:mm:ss)
mencoder -endpos 00:08:01 -ovc copy -oac copy big_video.avi -o first_part.avi
mencoder -ss 00:07:45 -oac copy -ovc copy big_video.avi -o second_part.avi

You can check out my youtube channel here.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s