Search:  
Gentoo Wiki

Extract_audio_track_from_videos

About

There are few simple ways to extract audio from various types of video files (MPEG, AVI, DivX, etc). Use MediaInfo to find out the audio-stream information of the video file.

Using ffmpeg

ffmpeg -i video_file -f mp3 audio_file.mp3

In order to specify a different bit rate for your output file, use the -ab switch (in b/s).

ffmpeg -ab 192k -i video_file -f mp3 audio_file.mp3

Using MPlayer

mplayer -dumpaudio -dumpfile audio_file.mp3 video.avi

That is, if the audio stream is in MP3 format. If it isn't, change extension appropriately.

Retrieved from "http://www.gentoo-wiki.info/Extract_audio_track_from_videos"

Last modified: Sat, 23 Aug 2008 13:28:00 +0000 Hits: 3,395