Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-30-2008, 12:59 PM   #1
Registered: Sep 2006
Distribution: slackware
Posts: 132

Rep: Reputation: 15
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:
mcoder some_video_file --just-the-audio-pcm-to-stdout-yes-please | sox <various sox options>
Thank you in advance.
Old 01-30-2008, 01:17 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,230

Rep: Reputation: 299Reputation: 299Reputation: 299
mplayer -ao pcm:fast:file=audio_out.wav -vo null -vc null video.avi
1 members found this post helpful.


audio, mplayer, pcm, pipe, stdout

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
m-audio rev51 pcm no sound ayoung Slackware 4 01-17-2008 11:45 PM
Extract from stdout the string in [ ], in a nicely way frenchn00b Programming 15 11-23-2007 03:01 AM
mplayer -ao pcm poor quality when at slow speed chadwick Linux - General 6 03-04-2007 03:18 AM
Recording PCM audio - SUSE 10 tanke Linux - Newbie 1 01-19-2006 02:19 AM
(sound) PCM to audio CD? carboncopy Linux - Software 2 07-09-2004 08:07 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration