这是mencoder.bat中的格式参数
mencoder.exe -vf scale=176:-3 -ofps 12.5 -ffourcc FLV1 -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -ovc lavc -lavcopts vcodec=flv:vbitrate=200 -srate 22050 -oac lavc -lavcopts acodec=mp3:abitrate=56 %1 -o %2

解决方案 »

  1.   

    以下是转换过程中的输出,在输出一半时就卡住了:
    MEncoder dev-SVN-rUNKNOWN-3.4.5 (C) 2000-2006 MPlayer Team
    CPU: Intel(R) Celeron(TM) CPU                1200MHz (Family: 6, Model: 11, Stepping: 1)
    CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
    Compiled with runtime CPU detection.
    success: format: 0  data: 0x0 - 0x364ed6
    ASF file format detected.
    VIDEO:  [WMV3]  320x240  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
    [V] filefmt:6  fourcc:0x33564D57  size:320x240  fps:1000.00  ftime:=0.0010
    ==========================================================================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 16000 Hz, 2 ch, s16le, 20.0 kbit/3.91% (ratio: 2500->64000)
    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=176 h=-3]
    ==========================================================================
    Opening video decoder: [dmo] DMO video codecs
    IMediaObject ERROR: 00A6A4A0  could not open DMO DLL (0x0 : 0)
    Failed to create DMO filter
    You need to upgrade/install the binary codecs package.
    Go to http://www.mplayerhq.hu/dload.html
    VDecoder init failed :(
    Opening video decoder: [dmo] DMO video codecs
    DMO dll supports VO Optimizations 0 1
    DMO dll might use previous sample when requested
    GetOutput r=0x0   size:230400  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 - 320 x 240 (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 (176x132 fourcc=766c66 [flv])
    Selected video codec: [wmvdmo] vfm: dmo (Windows Media Video DMO)
    ==========================================================================
    Forcing output FourCC to 31564c46 [FLV1].
    VIDEO CODEC ID: 22
    AUDIO CODEC ID: 15001, TAG: 0
    Writing header...
    Pos:   0.1s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
    Pos:   0.2s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.008 [0:0]
    Pos:   0.2s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.013 [0:0]
    Pos:   0.3s      4f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.021 [0:0]
    Pos:   0.4s      5f ( 0%)  0.00fps Trem:   1min   0mb  A-V:0.025 [0:0]
    Pos:   0.5s      6f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.033 [0:0]