[MEncoder-users] AVI to FLV not working...

Christophe Ruelle mencoder at xtof.com
Mon Jan 21 18:14:58 CET 2008


Hello,

I'm trying to convert a 15 MB avi to FLV. The avi is a 30 sec video  
file.
The result is a 1 second flv ;(

Here are the traces of the commands.

Can anyone tell me what is wrong?

Thanks.

#
# IDENTIFY : mplayer -vo null -ao null -frames 0 -identify 21.avi
#

ID_VIDEO_ID=0
ID_AUDIO_ID=1
ID_CLIP_INFO_NAME0=Digitization\ Time
ID_CLIP_INFO_VALUE0=2007:12:23\ 05:53:39:
ID_CLIP_INFO_N=7
ID_FILENAME=21.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=MJPG
ID_VIDEO_BITRATE=4527936
ID_VIDEO_WIDTH=320
ID_VIDEO_HEIGHT=240
ID_VIDEO_FPS=30.000
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=7
ID_AUDIO_BITRATE=64000
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=29.00
ID_VIDEO_CODEC=ffmjpeg
ID_AUDIO_BITRATE=64000
ID_AUDIO_RATE=8000
ID_AUDIO_NCH=1
ID_AUDIO_CODEC=ulaw

#
# MENCODER
#
#
# mencoder 21.avi -o /tmp/21.avi.flv -of lavf -oac mp3lame -lameopts  
abr:br=56 -ovc lavc -lavcopts  
vcodec=flv:acodec=mp3:abitrate=56:vbitrate=1200:trell -srate 22050
#

MEncoder 1.0rc2-4.1.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Xeon(R) CPU            5140  @ 2.33GHz (Family: 6,  
Model: 15, Stepping: 6)
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

success: format: 0  data: 0x0 - 0xfe9238
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [MJPG]  320x240  24bpp  30.000 fps  4527.9 kbps (552.7 kbyte/s)
[V] filefmt:3  fourcc:0x47504A4D  size:320x240  fps:30.00  ftime:=0.0333
= 
= 
========================================================================
Opening audio decoder: [alaw] aLaw/uLaw audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 64.0 kbit/50.00% (ratio: 8000->16000)
Selected audio codec: [ulaw] afm: alaw (uLaw)
= 
= 
========================================================================
** MUXER_LAVF  
*****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can  
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: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
= 
= 
========================================================================
MP3 audio selected.
VDec: vo config request - 320 x 240 (preferred colorspace: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8
[swscaler @ 0x8760c50]SwScaler: BICUBIC scaler, from yuv422p to  
yuv420p using MMX2
[swscaler @ 0x8760c50]SwScaler: using 4-tap MMX scaler for horizontal  
luminance scaling
[swscaler @ 0x8760c50]SwScaler: using 4-tap MMX scaler for horizontal  
chrominance scaling
[swscaler @ 0x8760c50]SwScaler: using 1-tap MMX "scaler" for vertical  
scaling (YV12 like)
[swscaler @ 0x8760c50]SwScaler: 320x240 -> 320x240
videocodec: libavcodec (320x240 fourcc=31564c46 [FLV1])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
Pos:   0.8s     23f (99%)  0.00fps Trem:   0min   0mb  A-V:0.067 [0:63]
Skipping frame!
Pos:   1.0s     30f (99%)  0.00fps Trem:   0min   0mb  A-V:0.050 [0:62]
Flushing video frames.
Writing index...

Video stream: 2666.756 kbit/s  (333344 B/s)  size: 322233 bytes  0.967  
secs  30 frames

Audio stream:   62.217 kbit/s  (7777 B/s)  size: 11580 bytes  1.489 secs

that's all!
thanks for any help.




More information about the MEncoder-users mailing list