[MEncoder-users] Empty FLV File Problem

Phil Bennett phil at inventhosting.com
Mon Nov 26 23:26:03 CET 2007


I have a php script that someone has written, but I can no longer find
the author. The script uses Mencoder to encode uploaded videos into
flv (it's similar to a YouTube Clone), but it's creating the flv files
but they are empty (Zero File Size)

The script exec() the commands.

/usr/bin/mencoder .inputfile.wmv -o .outputfile.flv -of lavf -ovc lavc
-oac lavc -lavcopts
vcodec=flv:vbitrate=500:autoaspect:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:turbo:acodec=mp3:abitrate=56
-vf scale=320:240 -srate 44100 -af lavcresample=44100 -lavfopts
i_certify_that_my_video_stream_does_not_use_b_frames

and I get the response

MEncoder 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium 4/Celeron 4 Northwood; Pentium 4 EE/Xeon
Prestonia,Gallatin (Family: 15, Stepping: 7)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x89964
ASF file format detected.
VIDEO: [WMV3] 512x288 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6 fourcc:0x33564D57 size:512x288 fps:1000.00 ftime:=0.0010
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 32000 Hz, 2 ch, s16le, 32.0 kbit/3.12% (ratio: 4000->128000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=320 h=240]
==========================================================================
Opening video decoder: [dmo] DMO video codecs
Creating new registry
Failed to open registry file '(null)' for writing.
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
Failed to open registry file '(null)' for writing.
Failed to open registry file '(null)' for writing.
Failed to open registry file '(null)' for writing.
GetOutput r=0x0 size:442368 align:1
StreamCount r=0x0 1 1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8
RGB555 RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 512 x 288 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (320x240 fourcc=766c66 [flv])
High quality encoding selected (non real time)!
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
Building audio filter chain for 32000Hz/2ch/s16le -> 44100Hz/0ch/??...

Exiting...


Can anyone help me?
-- 
Philip Bennett

Tel: (+44) (0) 2920008618



More information about the MEncoder-users mailing list