Opened 8 years ago

Last modified 8 years ago

#1970 new defect

Mencoder not converting wmv to flv

Reported by: yali.jithin@… Owned by: reimar
Priority: normal Component: mencoder
Version: unspecified Severity: trivial
Keywords: Cc: compn
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Hello,

My aim is to encode wmv file to flv. But I unsuccessfull in doin so. Please help me out. I have added the sample code and attached the video for your reference.

video.wmv -o video.flv -of lavf -oac mp3lame -lameopts abr:br=56 -srate 11025 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -mc 0

Thanks

Change History (7)

comment:1 Changed 8 years ago by compn

  • Cc patriotact@… added

you probably need to add -ofps 30

but what is the problem ? error? anything ?

comment:2 Changed 8 years ago by yali.jithin@…

  • bug_file_loc set to http://www.mediafire.com/?7c7alj4s999ydw7

(In reply to comment #1)

you probably need to add -ofps 30

but what is the problem ? error? anything ?

I have added the URL to the video. Iam unable to convert the video to flv.
Thanks

comment:3 Changed 8 years ago by compn

works fine for me on windows. what os are you on?

this file is MSS2 and requires the binary codecs to be installed , and it also requires a 32bit version of mplayer/mencoder to load those binary codecs.

i add -ofps 30 -vf decimate to clear some of the duplicate frames.

here is my mencoder output. please paste your mencoder output so we can find out why it doesnt work for you

mencoder "test2_2ab7b8385b64462e84ce48e18c81c030.wmv" -o f:\video.flv -of lavf -oac mp3lame -lameopts abr:br=56 -srate 11025 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -mc 0 -ofps 30 -vf decimate -quiet

MEncoder Sherpya-SVN-r32492-4.2.5 (C) 2000-2010 MPlayer Team
161 audio & 355 video codecs
success: format: 0 data: 0x0 - 0x6f27959
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [MSS2] 1910x994 24bpp 1000.000 fps 2296.5 kbps (280.3 kbyte/s)
[V] filefmt:6 fourcc:0x3253534D size:1910x994 fps:1000.000 ftime:=0.0010
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 73.3 kbit/5.20% (ratio: 9164->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
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 filter: [decimate]
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
Decoder supports the following formats: RGB8 RGB555 RGB565 RGB24 RGB32
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0114e074]BICUBIC scaler, from bgra to yuv420p using MMX2
videocodec: libavcodec (1910x994 fourcc=31564c46 [FLV1])
[VE_LAVC] High quality encoding selected (non-realtime)!
Selected video codec: [wmsdmod] vfm: dmo (Windows Media Screen Codec 2)
==========================================================================
MP3 audio selected.
Fontconfig error: Cannot load default config file
Fontconfig failed to select a font. Trying without fontconfig...
Fontconfig failed to select a font. Trying without fontconfig...
VIDEO CODEC ID: 22
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
[flv @ 0102c758]Codec for stream 0 does not use global headers but container format requires global headers
[flv @ 0102c758]Codec for stream 1 does not use global headers but container format requires global headers

comment:4 Changed 8 years ago by yali.jithin@…

I can only convert 25 seconds of the whole video into FLV. I am getting this error.

E:\ReelMathTranscoder?\TranscoderApp?\Mencoder>mencoder_1 C:\Apps\EV\OtherFileForm?
ats\MN_Eagan_EaganHighSchool_EaganHighSchool_1\test2_2ab7b8385b64462e84ce48e18c8
1c030.wmv -o C:\Apps\EV\OtherFileFormats?\MN_Eagan_EaganHighSchool_EaganHighSchoo
l_1\test2.flv -of lavf -oac mp3lame -lameopts abr:br=56 -srate 11025 -ovc lavc -
lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -fps 30 -o
fps 30 -mc 0
MEncoder dev-SVN-r25279-4.2.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz (Family: 6, Model: 23, Step
ping: 10)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0 data: 0x0 - 0x6f27959
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [MSS2] 1910x994 24bpp 1000.000 fps 2296.5 kbps (280.3 kbyte/s)
[V] filefmt:6 fourcc:0x3253534D size:1910x994 fps:1000.00 ftime:=0.0010
Input fps will be interpreted as 30.00 instead.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 73.3 kbit/5.20% (ratio: 9164->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
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: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput? r=0x0 size:5697608 align:1
StreamCount? r=0x0 1 1
Decoder supports the following formats: RGB8 RGB555 RGB565 RGB24 RGB32
VDec: vo config request - 1910 x 994 (preferred colorspace: Packed YUY2)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using BGRA as output csp (no 0)
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 @ 00C56CB0]SwScaler?: BICUBIC scaler, from rgb32 to yuv420p using MMX2
[swscaler @ 00C56CB0]SwScaler?: using 4-tap MMX scaler for horizontal luminance s
caling
[swscaler @ 00C56CB0]SwScaler?: using 4-tap MMX scaler for horizontal chrominance

scaling

[swscaler @ 00C56CB0]SwScaler?: using 1-tap MMX "scaler" for vertical scaling (YV
12 like)
[swscaler @ 00C56CB0]SwScaler?: 1910x994 -> 1910x994
videocodec: libavcodec (1910x994 fourcc=31564c46 [FLV1])
[VE_LAVC] High quality encoding selected (non-realtime)!
Selected video codec: [wmsdmod] vfm: dmo (Windows Media Screen Codec 2)
==========================================================================
MP3 audio selected.
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: 24.7s 741f (99%) 2.98fps Trem: 0min 11mb A-V:0.000 [3714:53]
Flushing video frames.
Writing index...

Video stream: 3714.047 kbit/s (464255 B/s) size: 11467120 bytes 24.700 secs
741 frames

Audio stream: 53.962 kbit/s (6745 B/s) size: 170210 bytes 25.234 secs

comment:5 Changed 8 years ago by yali.jithin@…

For your information I am using mencoder version 0.0.9.0.

Thanks

comment:6 Changed 8 years ago by yali.jithin@…

I am using Windows XP professional 2005 with service pack 2

comment:7 Changed 8 years ago by compn

your mencoder is 4 years old.
could you please upgrade?

you can find new win32 mencoder binaries here:
http://oss.netfarm.it/mplayer-win32.php

Note: See TracTickets for help on using tickets.