Featured Posts

Installing MathabxInstalling Mathabx Mathabx is an important symbol library for latex. The full list of available symbols in latex can be found here. Following steps will help one to install mathabx in ...

Readmore

cronScheduled Tasks using cron Learn how to schedule tasks using cron in Linux!

Readmore

Joomla!Getting started with Joomla! Joomla! is a great open source tool for making great websites with very little effort and absolutely no cost ...

Readmore

Rss

Extracting Audio from Video Files

Posted by Arsh | Labels: Audio Video Manipulation, Linux | Posted on Thursday, November 13, 2008

Using Mplayer (Low Quality)
mplayer -dumpaudio video_file -dumpfile audio_file.mp3

To extract audio from live stream, use -dumpstream option instead of -dumpaudio option.

Using ffmpeg (Quality Control)

ffmpeg -i video_file -ab 128 -ar 44100 audio_file.mp3

No change in command structure for ffmpeg to extract from live stream.

1 comments:

Arsh said...

If you are getting the error

Unsupported codec for output stream #0.0

Then you need to install libavcodec-unstripped-52 package!