A humble seeker sits in this hut. He seeks knowledge in the world wide web. What he has gathered he seeks to share with others. Rest in the hut if you wish, o fellow seeker, take what i can give. Give knowledge, if you can, so that those who come to this humble abode after you gains a bit more.

Thursday, July 9, 2009

The Power of Mplayer

Mplayer is a free and open source media player. Its companion package Mencoder is a powerful tool to covert various media formats into each other. A glimpse into the its powers.
  • Joining avi files :
mencoder -oac copy -ovc copy -idx -o output.avi video1.avi video2.avi video3.avi

  • Cutting avi files
mencoder -ss 00:00:02 -endpos 01:10:50 -ovc copy -oac copy bigvideo.avi -o output.avi

In this example
starting position 2 seconds
ending position is 1 hour 10 minutes 50 seconds
of the file bigvideo.avi
  • Ripping dvds
mencoder dvd:// -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate="1200"
-slang en -oac mp3lame -lameopts br=128 -o output.avi

changing the vbitrate to change the size of your output file
change the slang options to get subtitles in the language of your choice or remove it to rip without subtitles


  • Converting wmv to mp3
mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi


Share with us more such command lines

No comments:

Post a Comment