Categories
Media Solutions Ubuntu

Joining Videos using Mencoder

Mencoder is an extremely powerful video converter that is capable of converting video from almost any format to any other format.  One of the simplest exercises to do with Mencoder involves joining two videos to make a single video.

To join the videos all you need are the videos and Mencoder installed on your system.  You can install Mencoder on your Ubuntu box using the command

sudo apt-get install mencoder

Now lets say you plan to join videos a.mpg and b.mpg to a video c.mpg

Go to the command line (to the folder containing the videos) and execute the command –

mencoder a.mpg b.mpg -ovc copy -oac copy -o c.mpg

Thats it!  You can join more videos with a single shot but remember that the order in which you have listed the videos the final video will be created in the same order.

Reblog this post [with Zemanta]
Categories
Media Open Source Solutions

Mplayer without Text

I upgraded my desktop to Kubuntu Karmic 9.10 yesterday and realized an unique problem. There was no text displayed in the OSD(On Screen Display).

Mplayer without Text

If you open the file in command prompt mode you will see the following message:

subtitle font: load_sub_face failed.

The reason for was basically that Mplayer could not find the required font file to display the text. To solve the problem you need to open the .mplayer directory in your home directory. And do one of the two following things:

  1. Copy any font file of your choice to that directory and rename it subfont.ttf (You will find fonts at /usr/share/fonts)
  2. Open the config file in the .mplayer directory and add the following lines:
    font=/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf
    subfont-text-scale=2.5

Ps: You can replace the link to your favourite font after the font= command.  Also using Method 2 will let you even set the size of the font

Reblog this post [with Zemanta]