[MEncoder-users] using mf:// with stdin

Morris Beverly morrisb at avpresentations.com
Thu Apr 19 19:14:28 CEST 2007


RC wrote:

>Using a fifo with an ".mjpeg"
>extension works.
>  
>
Thanks, I'll have to dig up the docs on the fifo, I've seen it 
mentioned, but haven't tried it before

John Brown
 >>  Are you using the svn version?
John, I'm using dev-SVN-r22780-4.1.1.  It's probably a couple months old.

Reimar Döffinger
>>  -demuxer mf is wrong
 Thanks, I really didn't understand how the whole mf thing worked, this has been enlighening

>> so -ovc copy is the right thing
This is true, and I originally used this, but it only worked with mplayer, presumably because my program was outputting a somewhat nonstandard jpeg file(I think it had something to do with the colorspace used).  Using vcodec mjpeg allowed it to work with quicktime and some other players without a hitch.

I've run another couple quick tests using the two following commands.  The full output is at the bottom.  There still seems to be a problem reading from stdin with these.  Perhaps a fifo is the only way to do it?

thanks,

morris


cat pix/test2.jpg | mencoder - -demuxer lavf -ovc copy -v -o cattest_1.avi

cat pix/test2.jpg | mencoder - -ovc copy -v -o cattest_1.avi



[morris at localhost ~]$ cat pix/test2.jpg | mencoder - -demuxer lavf -ovc 
copy -v -o cattest_1.avi
MEncoder dev-SVN-r22780-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Genuine Intel(R) CPU           T2400  @ 1.83GHz (Family: 6, Model: 
14, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Configuration:
init_freetype
get_path('font/font.desc') -> '/home/morris/.mplayer/font/font.desc'
font: can't open file: /home/morris/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Reading from stdin...
[file] File size is -1 bytes
STREAM: [file] -
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0  data: 0x0 - 0x0
LAVF_check: no clue about this gibberish!
============ Sorry, this file format is not recognized/supported 
=============
=== If this file is an AVI, ASF or MPEG stream, please contact the 
author! ===
Cannot open demuxer.

Exiting...

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

[morris at localhost ~]$ cat pix/test2.jpg | mencoder - -ovc copy -v -o 
cattest_1.avi
MEncoder dev-SVN-r22780-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Genuine Intel(R) CPU           T2400  @ 1.83GHz (Family: 6, Model: 
14, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Configuration:
init_freetype
get_path('font/font.desc') -> '/home/morris/.mplayer/font/font.desc'
font: can't open file: /home/morris/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Reading from stdin...
[file] File size is -1 bytes
STREAM: [file] -
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0  data: 0x0 - 0x0
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename - ext: (null)
Cannot seek backward in linear streams!
Seek failed
Checking for Nullsoft Streaming Video
stream_seek: WARNING! Can't seek to 0x0 !
Checking for MOV
stream_seek: WARNING! Can't seek to 0x0 !
Checking for VIVO
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x4 !
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x0 !
AVS: avs_check_file - attempting to open file -
Win32 LoadLibrary failed to load: avisynth.dll, 
/usr/local/lib/codecs/avisynth.dll, /usr/lib/win32/avisynth.dll, 
/usr/local/lib/win32/avisynth.dll
AVS: failed to load avisynth.dll
AVS: Init failed
stream_seek: WARNING! Can't seek to 0x0 !
Checking for PVA
stream_seek: WARNING! Can't seek to 0x0 !
Checking for MPEG-TS...
THIS DOESN'T LOOK LIKE AN MPEG-TS FILE!
TRIED UP TO POSITION 0, FOUND ffffff00, packet_size= 0, SEEMS A TS? 0
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x0 !
Checking for LMLM4 Stream Format
LMLM4 Stream Format not found
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x0 !
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 0  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 
0 idr: 0 sps: 0 pps: 0 PES: 0  MP3: 0, synced: 0
Not MPEG System Stream format... (maybe Transport Stream?)
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x0 !
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 0  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 
0 idr: 0 sps: 0 pps: 0 PES: 0  MP3: 0, synced: 3
Not MPEG System Stream format... (maybe Transport Stream?)
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x0 !
ds_fill_buffer: EOF reached (stream: video)
stream_seek: WARNING! Can't seek to 0x0 !
stream_seek: WARNING! Can't seek to 0x0 !
demux_aac_probe, failed to detect an AAC stream
============ Sorry, this file format is not recognized/supported 
=============
=== If this file is an AVI, ASF or MPEG stream, please contact the 
author! ===
Cannot open demuxer.

Exiting...



More information about the MEncoder-users mailing list