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

Morris Beverly morrisb at avpresentations.com
Wed Apr 18 22:18:35 CEST 2007


RC wrote:
>> Is it possible to output a series of image files onto stdin and have 
>> mencoder encode them to an avi?
>>     
>
> Yes, it should work.  If not automatically, then at least after setting
> -demuxer and -vc appropritately. 
I'm afraid I'm missing something basic.

The command I use for encoding from files, is:
mencoder mf://*.jpg -mf type=jpg:fps=30 -ovc lavc -lavcopts vcodec=mjpeg 
-o test.avi

I've enclosed the output of the following command, which is obviously 
wrong, but I've tried a lot of variations like  mf:///dev/stdin, mf://-, 
mf://*.jpg, not using mf:// at all, all with pretty much the same result:

cat *.jpg | mencoder - mf://*.jpg -mf type=jpg:fps=30 -ovc lavc 
-lavcopts vcodec=mjpeg -v -o 0_test.avi

I'm merely using cat to try to debug the command line before I get to 
the java part (the ultimate goal is to write jpegs from an image 
processing program directly into mencoder, rather than writing to files 
first).  I know the use of cat is discouraged, but I think it's just 
related to AV sync, or does cat just not work at all for this?

If you still think the problem is with demuxer and/or vc, I'd appreciate 
it if you could elaborate. I tried adding -demuxer mf and -vc ijpg, to 
no avail.

thank you for your help so far,

morris


MEncoder dev-SVN-r21625-4.1.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (Family: 15, Model: 
75, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx 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!
Checking for Nullsoft Streaming Video
Cannot seek backward in linear streams!
Checking for MOV
Cannot seek backward in linear streams!
Checking for VIVO
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Checking for PVA
Cannot seek backward in linear streams!
Checking for MPEG-TS...
TRIED UP TO POSITION 339861, FOUND 47, packet_size= 0, SEEMS A TS? 0
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=27562 size=-630104930
LMLM4 Stream Format not found
Cannot seek backward in linear streams!
sync_mpeg_ps: seems to be MP3 stream...
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video) 
MPEG packet stats: p100: 2  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 4 b: 0 c: 
0 idr: 0 sps: 0 pps: 0 PES: 1  MP3: 105, synced: 0
Not MPEG System Stream format... (maybe Transport Stream?)
sync_mpeg_ps: seems to be MP3 stream...
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video) 
MPEG packet stats: p100: 2  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 4 b: 0 c: 
0 idr: 0 sps: 0 pps: 0 PES: 0  MP3: 147, synced: 0
Not MPEG System Stream format... (maybe Transport Stream?)
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
==> Found video stream: 0
ds_fill_buffer: EOF reached (stream: video) 
Cannot seek backward in linear streams!
LAVF_check: no clue about this gibberish!
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
demux_aac_probe, failed to detect an AAC stream

Exiting...



More information about the MEncoder-users mailing list