LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mplayer: extract audio to PCM to stdout (https://www.linuxquestions.org/questions/linux-software-2/mplayer-extract-audio-to-pcm-to-stdout-617451/)

moob8 01-30-2008 12:59 PM

mplayer: extract audio to PCM to stdout
 
First the obligatory disclaimer: Yes I googled. Yes I checked the man page.

OK then.

I would to have mencoder/mplayer read a video file and output just the audio part as PCM (raw 16 bit) to stdout. The -dumpaudio option does not do this. The -dumpaudio option dumps the audio as is, not converting from the input codec to a "proper" raw format.

In a perfect world I woudl type something like this:
Code:

mcoder some_video_file --just-the-audio-pcm-to-stdout-yes-please | sox <various sox options>
Thank you in advance.

dive 01-30-2008 01:17 PM

mplayer -ao pcm:fast:file=audio_out.wav -vo null -vc null video.avi


All times are GMT -5. The time now is 08:06 AM.