Extracting music from Videos April 1, 2007
Posted by jmonreal in Code, Linux.trackback
Something that I learned a while ago, is extract music from your videos with ffmpeg, we go to a terminal and execute the following command line,
ffmpeg -i video.mpg -f mp3 -ab 128 musicname.mp3
where -i is our input filename, -f force to be mp3, -ab is the audio bitrate that we set it at 128 by default is 64 and finally we give the name to our music file. For more information read the man pages.
Another example of the same is converting to ogg format,
ffmpeg -i video.mpg audio.ogg
Note that here we don’t use -f to force ogg, like we did with mp3.
Advertisement
Comments»
No comments yet — be the first.