MEncoder: Extract audio from video

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

MEncoder: Extract audio from video

Post by ^rooker »

[PROBLEM]
I wanted to extract only the audio track from a video into an audiofile.
Since the video was split into 1-minute segments, I had to use mplayer or mencoder - as FFmpeg did not reliably glue all audio samples together in my tests.

[SOLUTION]
Using mplayer takes extremely long, as it seems it tries to export it in realtime while playing it back (even with -vo null).
So, thanks to a post by the user "wasp" in the Knowledge.Drun.NET forums, here's how to extract the raw audio stream (PCM encoded) of segmented videos, using mencoder:

Code: Select all

mencoder -of rawaudio -oac pcm -ovc copy -o OUTPUT.wav INPUT_VIDEO/*.avi
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply