[issue1645] WMV3 decoding fail

2009-12-24 Thread Michael N. Pritula

New submission from Michael N. Pritula prit...@yandex-team.ru:

There is a file with wmv3 stream, that couldn't be decoded by latest FFmpeg.
$ ffmpeg -i wmv3-wmav2.trunc -vcodec huffyuv wmv3-wmav2.avi
FFmpeg version SVN-r20918, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Dec 24 2009 16:11:30 with gcc 4.1.2 20061115 (prerelease) (Debian
4.1.1-21)
  configuration: --cc='ccache gcc'
--prefix=/home/pritula/wNewFfmpeg/package-root --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3
--enable-libfaad --enable-libfaac --enable-libvorbis --enable-libtheora
--enable-libxvid --enable-libx264 --enable-libschroedinger
--disable-encoder=libschroedinger --enable-libgsm --enable-libnut --enable-gpl
--enable-nonfree --enable-postproc --enable-pthreads --enable-avfilter
--enable-shared --extra-cflags='-I/home/pritula/wNewFfmpeg/package-root/include
-g' --extra-ldflags=-L/home/pritula/wNewFfmpeg/package-root/lib
  libavutil 50. 7. 0 / 50. 7. 0
  libavcodec52.45. 0 / 52.45. 0
  libavformat   52.44. 0 / 52.44. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter1.12. 0 /  1.12. 0
  libswscale 0. 7. 2 /  0. 7. 2
  libpostproc   51. 2. 0 / 51. 2. 0
[wmv3 @ 0x8078970]Reserved RES_SM=2 is forbidden

Seems stream 1 codec frame rate differs from container frame rate: 1000.00
(1000/1) - 29.97 (3/1001)
Input #0, asf, from 'wmv3-wmav2.trunc':
  Metadata:
ToolName: TMPGEnc 4.0 XPress Version. 4.2.3.193
WMFSDKVersion   : 9.00.00.3268
WMFSDKNeeded: 0.0.0.
IsVBR   : 0
  Duration: 00:04:47.05, start: 3.00, bitrate: 285 kb/s
Stream #0.0(rus): Audio: wmav2, 48000 Hz, 2 channels, s16, 192 kb/s
Stream #0.1(rus): Video: wmv3, yuv420p, 720x480, 1000 kb/s, 29.97 tbr, 1k
tbn, 1k tbc
[huffyuv @ 0x807a070]using huffyuv 2.2.0 or newer interlacing flag
[wmv3 @ 0x8078970]Reserved RES_SM=2 is forbidden
Output #0, avi, to 'wmv3-wmav2.avi':
Stream #0.0(rus): Video: huffyuv, yuv422p, 720x480, q=2-31, 200 kb/s, 90k
tbn, 29.97 tbc
Stream #0.1(rus): Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.1 - #0.0
  Stream #0.0 - #0.1
Error while opening decoder for input stream #0.1

When using -vn option all is ok (sounds well):
$ ffmpeg -i wmv3-wmav2.trunc -vn wmv3-wmav2.avi
FFmpeg version SVN-r20918, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Dec 24 2009 16:11:30 with gcc 4.1.2 20061115 (prerelease) (Debian
4.1.1-21)
  configuration: --cc='ccache gcc'
--prefix=/home/pritula/wNewFfmpeg/package-root --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3
--enable-libfaad --enable-libfaac --enable-libvorbis --enable-libtheora
--enable-libxvid --enable-libx264 --enable-libschroedinger
--disable-encoder=libschroedinger --enable-libgsm --enable-libnut --enable-gpl
--enable-nonfree --enable-postproc --enable-pthreads --enable-avfilter
--enable-shared --extra-cflags='-I/home/pritula/wNewFfmpeg/package-root/include
-g' --extra-ldflags=-L/home/pritula/wNewFfmpeg/package-root/lib
  libavutil 50. 7. 0 / 50. 7. 0
  libavcodec52.45. 0 / 52.45. 0
  libavformat   52.44. 0 / 52.44. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter1.12. 0 /  1.12. 0
  libswscale 0. 7. 2 /  0. 7. 2
  libpostproc   51. 2. 0 / 51. 2. 0
[wmv3 @ 0x8078970]Reserved RES_SM=2 is forbidden

Seems stream 1 codec frame rate differs from container frame rate: 1000.00
(1000/1) - 29.97 (3/1001)
Input #0, asf, from 'wmv3-wmav2.trunc':
  Metadata:
ToolName: TMPGEnc 4.0 XPress Version. 4.2.3.193
WMFSDKVersion   : 9.00.00.3268
WMFSDKNeeded: 0.0.0.
IsVBR   : 0
  Duration: 00:04:47.05, start: 3.00, bitrate: 285 kb/s
Stream #0.0(rus): Audio: wmav2, 48000 Hz, 2 channels, s16, 192 kb/s
Stream #0.1(rus): Video: wmv3, yuv420p, 720x480, 1000 kb/s, 29.97 tbr, 1k
tbn, 1k tbc
Output #0, avi, to 'wmv3-wmav2.avi':
Stream #0.0(rus): Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.0 - #0.0
Press [q] to stop encoding
size= 581kB time=65.47 bitrate=  72.7kbits/s
video:0kB audio:512kB global headers:0kB muxing overhead 13.584433%

When using -vcodec copy option all is ok too (and plays well):
$ ffmpeg -i wmv3-wmav2.trunc -vcodec copy wmv3-wmav2.avi
FFmpeg version SVN-r20918, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Dec 24 2009 16:11:30 with gcc 4.1.2 20061115 (prerelease) (Debian
4.1.1-21)
  configuration: --cc='ccache gcc'
--prefix=/home/pritula/wNewFfmpeg/package-root --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3
--enable-libfaad --enable-libfaac --enable-libvorbis --enable-libtheora
--enable-libxvid --enable-libx264 --enable-libschroedinger
--disable-encoder=libschroedinger --enable-libgsm --enable-libnut --enable-gpl
--enable-nonfree --enable-postproc --enable-pthreads --enable-avfilter
--enable-shared 

[issue1645] WMV3 decoding fail

2009-12-24 Thread Carl Eugen Hoyos

Carl Eugen Hoyos ceho...@rainbow.studorg.tuwien.ac.at added the comment:

Note that it also looks corrupt with wmvdmo and wmv9dmo if colour space YV12 is
used (and not YUY2 or UYVY).

--
status: new - open
substatus: new - open
type: bug - feature_request

_
FFmpeg issue tracker iss...@roundup.ffmpeg.org
https://roundup.ffmpeg.org/roundup/ffmpeg/issue1645
_


[issue1645] WMV3 decoding fail

2009-12-24 Thread Kostya Shishkov

Kostya Shishkov kostya.shish...@gmail.com added the comment:

This encoded stream uses unsupported feature nobody cares about, so 
it has not been REd and implemented.

IIRC, RES_SM=2 indicates that there is a sprite coded in extradata. 
Also it may be interlaced YUV411.

--
substatus: open - analyzed

_
FFmpeg issue tracker iss...@roundup.ffmpeg.org
https://roundup.ffmpeg.org/roundup/ffmpeg/issue1645
_