I dumpstreamed a wmv from the net: $ file 20060313.wmv 20060313.wmv: Microsoft ASF $ mplayer 20060313.wmv MPlayer dev-CVS-060307-23:29-3.3.5 (C) 2000-2006 MPlayer Team CPU: Intel Pentium M Dothan (Family: 6, Stepping: 6) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Playing 20060313.wmv. ASF file format detected. VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s) Clip info: [...] ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 1 ch, s16le, 48.0 kbit/6.81% (ratio: 6003->88200) Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) ========================================================================== 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. VO: [xv] 320x240 => 320x240 Planar YV12 Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO) ========================================================================== And then I clipped its first 10 minutes: $ mencoder 20060313.wmv -oac copy -ovc copy -endpos 600 -o new.wmv [...] $ file new.wmv new.wmv: RIFF (little-endian) data, AVI, 320 x 240, >30 fps, video:, audio: DivX (mono, 44100 Hz) $ mplayer new.wmv MPlayer dev-CVS-060307-23:29-3.3.5 (C) 2000-2006 MPlayer Team CPU: Intel Pentium M Dothan (Family: 6, Stepping: 6) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 Playing new.wmv. AVI file format detected. VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 283.7 kbps (34.6 kbyte/s) Clip info: Software: MEncoder dev-CVS-060307-23:29-3.3.5 ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 1 ch, s16le, 48.0 kbit/6.81% (ratio: 6003->88200) Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) ========================================================================== 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. VO: [xv] 320x240 => 320x240 Planar YV12 Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO) ========================================================================== And it's nice, however, windows mediaplayer does not recognize its format... I have also tried to reencode it in avi container with mpeg4, but its quality is much poorer than that of the original wmv file. (There was a huge amount of duplicate frames during the encoding, and small blocks are noticeable...) Any hint how to solve this problem? Zs
onsdag 22 mars 2006 17:05 skrev SZABO Zsolt:
I have also tried to reencode it in avi container with mpeg4, but its quality is much poorer than that of the original wmv file. (There was a huge amount of duplicate frames during the encoding, and small blocks are noticeable...)
Any hint how to solve this problem?
The basic reencoding problem is that wmv streams have variable framerate. Since the stream is probably made from a movie clip, the average framerate should be 30fsp (or 25, etc). Play the whole clip, count the frames, divide by the time and you have a frame rate which at least will let both audio and video end at the same time, even if you'll lose a/v sync on the way... /Lennart
Zs
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
-- !++ ! Lennart Börjeson ! Partner, Developer ! Cinnober Financial Technology AB ! Industrigatan 2A ! S-112 46 STOCKHOLM ! Sverige/Sweden/Schweden/Suède ! mailto:Lennart.Borjeson@cinnober.com ! phone:+46-8-50304717 ! gsm:+46-70-3394717 ! fax:+46-8-50304701 ! http://www.cinnober.com !--
2006/3/22, SZABO Zsolt <szazs@mm.bme.hu>:
I dumpstreamed a wmv from the net:
$ file 20060313.wmv 20060313.wmv: Microsoft ASF
$ mplayer 20060313.wmv MPlayer dev-CVS-060307-23:29-3.3.5 (C) 2000-2006 MPlayer Team CPU: Intel Pentium M Dothan (Family: 6, Stepping: 6) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Playing 20060313.wmv. ASF file format detected. VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s) Clip info: [...] ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 1 ch, s16le, 48.0 kbit/6.81% (ratio: 6003->88200) Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) ========================================================================== 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. VO: [xv] 320x240 => 320x240 Planar YV12 Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO) ==========================================================================
And then I clipped its first 10 minutes:
$ mencoder 20060313.wmv -oac copy -ovc copy -endpos 600 -o new.wmv [...]
$ file new.wmv new.wmv: RIFF (little-endian) data, AVI, 320 x 240, >30 fps, video:, audio: DivX (mono, 44100 Hz)
$ mplayer new.wmv MPlayer dev-CVS-060307-23:29-3.3.5 (C) 2000-2006 MPlayer Team CPU: Intel Pentium M Dothan (Family: 6, Stepping: 6) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Playing new.wmv. AVI file format detected. VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 283.7 kbps (34.6 kbyte/s) Clip info: Software: MEncoder dev-CVS-060307-23:29-3.3.5 ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 1 ch, s16le, 48.0 kbit/6.81% (ratio: 6003->88200) Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) ========================================================================== 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. VO: [xv] 320x240 => 320x240 Planar YV12 Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO) ==========================================================================
And it's nice, however, windows mediaplayer does not recognize its format...
I have also tried to reencode it in avi container with mpeg4, but its quality is much poorer than that of the original wmv file. (There was a huge amount of duplicate frames during the encoding, and small blocks are noticeable...)
Any hint how to solve this problem?
Zs
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/mencoder-users
In the Mplayer/Mencoder documentation: --------------------------------------------------------------------------------------------------------------- Q:I can't encode an ASF file to AVI/MPEG-4 (DivX) because it uses 1000 fps. A:Since ASF uses variable framerate but AVI uses a fixed one, you have to set it by hand with the -ofps option. -- ------------------------------------------------------------------------------------------------------------ If you want to keep a WMV container, you should try the FFmpeg libavformat muxers options .::::::::::::::::::::::::::::::::::::::::::::::::::. The manpage you shall read
participants (3)
-
Lennart Börjeson -
mesecam -
SZABO Zsolt