stdout from mplayer/mencoder?
mat at cnd.mcgill.ca
Thu Apr 29 11:01:27 PDT 2004
On Apr 29, Karl Jeacle wrote:
> I am using mplayer and lame to convert RealAudio files to MP3.
> Everything works, but I'd like to avoid large temporary WAV files.
> Currently, I do something like:
> mplayer -ao pcm -aofile $WAVFILE $RAFILE
> lame $WAVFILE $MP3FILE
> But what I'd like to do is more like:
> mplayer -ao pcm -aofile /dev/stdout $RAFILE | lame - $MP3FILE
> The problem is that the resulting MP3 file is just white noise. I'm not
> sure what's going wrong. (I've tried specifying -r & -s lame flags.)
> Is it possible to get mplayer to write to stdout?
> Or for mplayer/lame to convert RA->MP3 in a single pipeline?
I would guess that other output from mplayer is confusing the
encoding. There are probablt many different options, I would suggest
- Use mencoder :)
- use a named pipe.
It's impossible to awaken a man who is pretending to be
- Navajo saying
More information about the freebsd-multimedia