[MPlayer-users] -ao pcm and named fifos

Alban Bedel albeu at free.fr
Thu Jul 11 10:57:01 CEST 2002

Hi Marcus Lundblad,

on Thu, 11 Jul 2002 09:52:45 +0200 (CEST) you wrote:

> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> I tried to create a fifo called audiodump.wav (using mkfifo)
> And then cat from this fifo to mp2enc.
> But then mp2enc complains about there is not a RIFF header in the file.
> It works when running mplayer -ao pcm as usually (to let it create a file)
> and then run mp2enc on the resulting file (mp2enc -o ... < audiodump.wav)
> This same approach (using a fifo) works for encoding video to mpeg2
> By doing "cat stream.yuv | yuvscaler ... | mpeg2enc -o ... ...
> And then "mplayer -vo yuv4mpeg -noframedrop file.avi"
> I was thinking about using 3 fifos to run directly from Divx to mpeg2
> using mpeg2enc, mp2enc and mplex (from mjepegtools)
> And also optionally feed this to vcdimager to create SVCD images.
> But the problem is with this audio stuff. If I just cat from the fifo
> audiodump.wav and then run mplayer, I can see data like
> "ÿÿÿÿÿ" mostly (1's) coming out and then come a wav header (RIFF... and so
> on)...
> Anyone has any idea of what goes wrong here?
> //Marcus

Try CVS, -ao pcm should work with named pipes now.

More information about the MPlayer-users mailing list