[MPlayer-users] mencoder input from fifo with yuv4mpeg problems

Felix Buenemann atmosfear at users.sourceforge.net
Mon Apr 15 19:46:02 CEST 2002


On Monday 15 April 2002 16:48, Mike Albon wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi,
>
> I am having problems with reading data from a fifo into mencoder. My
> output source is from Mplayer using the line:
>
> mplayer -dvd 1 -dvd-device /dev/sr0 -chapter 1-7 -sub
> ~/Documents/Anime/Scrips/dump.mpsub -vo yuv4mpeg -ao null -osdlevel 0
>
> Using the command:
>
> mencoder stream.yuv -vc yuv4mpeg -ovc divx4 -divx4opts
> min_quant=4:max_quant=6 -o blah.avi
>
> I get the output:
>
> MEncoder CVS-020413-12:04-2.95.4 (C) 2000-2002 Arpad Gereoffy (see
> DOCS!)
>
> Reading /home/mikea/.mplayer/codecs.conf: 30 audio & 81 video codecs
> CPU vendor name: GenuineIntel  max cpuid level: 2
> CPU: Intel Celeron 2/Pentium III Tualatin (Type: 6, Stepping: 1)
> extended cpuid-level: 4
> Testing OS support for SSE... yes.
> Testing OS support for SSE unmasked exceptions... yes.
> Tests of OS support for SSE passed.
> CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
> Not an URL!
> File not found: 'frameno.avi'
> Not an URL!
> Error: lseek failed to obtain video file size: Illegal seek
> success: format: 0  data: 0x0 - 0xFFFFFFFF
> MPEG packet stats: p100: 0  p101: 0  PES: 0  MP3: 0
> ============= Sorry, this file format not recognized/supported
> ===============
> === If this file is an AVI, ASF or MPEG stream, please contact the
> author! ===
> Cannot open demuxer
> Exiting...
>
>
> However if I make a real file I can encode that with no problem. Is this
> expected behavior, or have I done something completely wrong?
mencoder thinks it is reading from seekable file, which it can't on a fifo. 
Use something like cat stream.yuv |mencoder - <youoptions>

> Mike Albon

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________




More information about the MPlayer-users mailing list