Export audio from video file

January 17, 2008 · Posted in Linux · Comment 

There are some times that all of us had a live consert of a band on .avi format and we ‘d like to export a song from that

here is the way to to that

1) mplayer -dumpaudio AVI_FILE_NAME.avi -dumpfile MP3_FILE_NAME.mp3

Now we have the whole audio data from our video on MP3_FILE_NAME.mp3

Now using mp3splt we can isolate only the part we want like this

2)mp3splt MP3_FILE_NAME 10.23 11.24

10.23 =minutes.seconds

If the part we want to cut stars on 1:25:12 we well write is as : 85:12

Now a new file with the name MP3_FILE_NAME_1030_11_24.mp3 created with the audio part we wanted

Add subtitles on Avi files

November 5, 2007 · Posted in Linux · 1 Comment 

A very usefull program to do that is mencoder

Lets say the subtitles file is called abc.str, the avi file without the subtitles is called abc.avi and the file we want to create is abc2.avi

So all we have to do is

  •  x264 format

mencoder -sub abc.srt -subcp iso-8857-9 ( or whatever codepage the .srt requires ) -ovc x264 -oac copy -o abc2.avi abc.avi

  •  xvid format

mencoder -sub abc.srt -subcp iso-8857-9 ( or whatever codepage the .srt requires ) -ovc xvid -xvidencopts bitrate=687 -oac copy -o abc2.avi abc.avi

You can see the available video outputs but using

mencoder -ovc help

Gentoo Miniconf
Patras Wireless Metropolitan Network
Planet Hellug
iloog
forum hellug

css.php