Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Wikinaut opened this issue Aug 14, 2015 · 2 comments
Open

Comments

@Wikinaut
Copy link

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
Copy link
Owner

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

@korrode
Copy link

korrode commented Apr 17, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants