[MEncoder-users] muxing flv

Marek Behun behun at webconsult.sk
Wed Mar 21 17:16:00 CET 2007


Hi, I have a problem with muxing flv files when I wanted to convert an  
AVI file to FLV. I tried this first:

mencoder input.mpg -o output.flv -of lavf -oac mp3lame -lameopts  
abr:br=56 -srate 22050 -ovc lavc -lavcopts  
vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3

The error was in MUXER_LAVF, I had to ensure that my video stream does  
not contain B frames, so I tried this:

mencoder input.mpg -o output.flv -of lavf -oac mp3lame -lameopts  
abr:br=56 -srate 22050 -ovc lavc -lavcopts  
vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -lavfopts  
i_certify_that_my_video_stream_does_not_use_b_frames

Everything was OK, but the result was zero-length file (output.flv).
Can anybody help me?
Thank you.

Marek Behun, <behun at webconsult.sk>

PS: The output of mencoder was:

MEncoder 1.0rc1-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6,  
Model: 8, Stepping: 10)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

success: format: 0  data: 0x0 - 0x13b000
MPEG-PS file format detected.
VIDEO:  MPEG1  130x70  (aspect 1)  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:130x70  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 24.0 kbit/3.40% (ratio: 3000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
** MUXER_LAVF  
*****************************************************************
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 130 x 70 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================

Exiting...

--
http://blackhole.sk/~mb/



More information about the MEncoder-users mailing list