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
  libavcodec    52.45. 0 / 52.45. 0
  libavformat   52.44. 0 / 52.44. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.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 (30000/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.0000
    IsVBR           : 0
  Duration: 00:04:47.05, start: 3.000000, 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
  libavcodec    52.45. 0 / 52.45. 0
  libavformat   52.44. 0 / 52.44. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.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 (30000/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.0000
    IsVBR           : 0
  Duration: 00:04:47.05, start: 3.000000, 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 --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
  libavcodec    52.45. 0 / 52.45. 0
  libavformat   52.44. 0 / 52.44. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.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 (30000/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.0000
    IsVBR           : 0
  Duration: 00:04:47.05, start: 3.000000, 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): Video: WMV3 / 0x33564D57, yuv420p, 720x480, q=2-31, 1000
kb/s, 1k tbn, 1k 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
Press [q] to stop encoding
frame= 2009 fps=  0 q=-1.0 Lsize=   10511kB time=65.47 bitrate=1315.1kbits/s
video:8354kB audio:512kB global headers:0kB muxing overhead 18.554218%
File 'wmv3-wmav2.trunc' not attached - you can download it from 
https://roundup.ffmpeg.org/roundup/ffmpeg/file687.

----------
files: wmv3-wmav2.trunc
messages: 8504
priority: normal
status: new
substatus: new
title: WMV3 decoding fail
type: bug

_____________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1645>
_____________________________________________________

Reply via email to