larsmagne / mplayer

Private extensions to mplayer
GNU General Public License v2.0
13 stars 7 forks source link

Question: How to pipe mplayer's output via stdout to e.g. lame ? #1

Open Wikinaut opened 9 years ago

Wikinaut commented 9 years ago

How can I play the mplayer outut to stdout so that lame can be used as encoder ?

This works, using a temporary out.wav file:

mplayer -vc null -vo null -af resample=44100 -ao pcm:fast -ao pcm:waveheader -ao pcm:file="out.wav" "infilename.wma"
lame -h -V2 "out.wav" "outfilename.mp3"

But how can I simply pipe the output of mplayer to lame ?

The following does not work

mplayer -vc null -vo null -af resample=44100 -ao pcm:fast -ao pcm:waveheader -ao pcm:file="/dev/stdout" "infilename.wma" | lame -h -V2 - "outfilename.mp3"
larsmagne commented 9 years ago

Sorry, I don't really know that. I just use mplayer as a video player.

korrode commented 7 years ago

mplayer -ao pcm:file=/dev/stdout -really-quiet infile.ext | lame --preset medium -h - outfile.mp3