jump to navigation

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.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com 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

Follow

Get every new post delivered to your Inbox.