Opened 5 years ago

Closed 5 years ago

#3428 closed defect (fixed)

WMV file has wrong length detected by ffprobe/ffmpeg

Reported by: boose Owned by:
Priority: important Component: avformat
Version: git-master Keywords: asf regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:

Other players report length correctly as 30:38, ffprobe/ffmpeg seem to think it is 21:36

How to reproduce:

boose@Cid:~/ffmpeg-2.1.3-64bit-static$ ./ffprobe 08\ Christian\ Humanism.wmv 
ffprobe version 2.1.3-   http://johnvansickle.com/ffmpeg/    Copyright (c) 2007-2013 the FFmpeg developers
  built on Jan 22 2014 19:50:14 with gcc 4.8 (Debian 4.8.2-14)
  configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --disable-ffserver
  libavutil      52. 48.101 / 52. 48.101
  libavcodec     55. 39.101 / 55. 39.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 90.100 /  3. 90.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[asf @ 0x32cbd40] Estimating duration from bitrate, this may be inaccurate
Input #0, asf, from '08 Christian Humanism.wmv':
  Metadata:
    [...]
    WM/EpisodeID    : Lect.08 Christian Humanism
    WM/EpisodeNumber: 8
  Duration: 00:21:36.74, start: 0.000000, bitrate: 2128 kb/s
    Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, fltp, 128 kb/s
    Stream #0:1: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 640x480, 2000 kb/s, SAR 1:1 DAR 4:3, 29.97 tbr, 1k tbn, 1k tbc
    Stream #0:2: Video: mjpeg, yuvj444p(pc), 419x563 [SAR 96:96 DAR 419:563], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : 
      comment         : Other
    Stream #0:3: Video: mjpeg, yuvj444p(pc), 419x563 [SAR 96:96 DAR 419:563], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
boose@Cid:~/ffmpeg-2.1.3-64bit-static$ 

Change History (5)

comment:1 Changed 5 years ago by cehoyos

  • Keywords asf added

Please provide a sample.

comment:2 Changed 5 years ago by boose

Have uploaded wmv_wrong_length_3428.wmv to the FFMPEG FTP server

comment:3 in reply to: ↑ description Changed 5 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Priority changed from normal to minor
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from 2.1.3 to git-master

For future tickets: Please always test current FFmpeg git head before reporting problems.

MPlayer reports the correct length.

$ ffmpeg -i wmv_wrong_length_3428.wmv -f null -
ffmpeg version N-61034-g7e268a8 Copyright (c) 2000-2014 the FFmpeg developers
  built on Mar  1 2014 19:53:29 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[asf @ 0x3235900] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, asf, from 'wmv_wrong_length_3428.wmv':
  Metadata:
    date            : 2011
    WM/SeasonNumber : 8215
    WM/PartOfACompilation: 1
    artist          : Prof. Kenneth R. Bartlett
    WM/Year         : 2011
    title           : Lect.08 Christian Humanism
    album_artist    : Various Artists
    composer        : The Great Courses
    WM/URL          : http://www.thegreatcourses.com
    WM/UserWebURL   : http://www.thegreatcourses.com
    disc            : 1
    WM/ContentGroupDescription: Development of European Civilization
    WM/VideoKind    : 10
    WM/Show         : Development of European Civilization
    album           : Development of European Civilization
    genre           : Development of European Civilization
    copyright       : The Teaching Company, LLC
    track           : 08
    WM/EpisodeID    : Lect.08 Christian Humanism
    WM/EpisodeNumber: 8
  Duration: 00:21:36.74, start: 0.000000, bitrate: 2128 kb/s
    Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 128 kb/s
    Stream #0:1: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 640x480, 2000 kb/s, SAR 1:1 DAR 4:3, 29.97 tbr, 1k tbn, 1k tbc
    Stream #0:2: Video: mjpeg, yuvj444p(pc), 419x563 [SAR 96:96 DAR 419:563], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           :
      comment         : Other
    Stream #0:3: Video: mjpeg, yuvj444p(pc), 419x563 [SAR 96:96 DAR 419:563], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
Output #0, null, to 'pipe:':
  Metadata:
    date            : 2011
    WM/SeasonNumber : 8215
    WM/PartOfACompilation: 1
    artist          : Prof. Kenneth R. Bartlett
    WM/Year         : 2011
    title           : Lect.08 Christian Humanism
    album_artist    : Various Artists
    composer        : The Great Courses
    WM/URL          : http://www.thegreatcourses.com
    WM/UserWebURL   : http://www.thegreatcourses.com
    disc            : 1
    WM/ContentGroupDescription: Development of European Civilization
    WM/VideoKind    : 10
    WM/Show         : Development of European Civilization
    album           : Development of European Civilization
    genre           : Development of European Civilization
    copyright       : The Teaching Company, LLC
    track           : 08
    WM/EpisodeID    : Lect.08 Christian Humanism
    WM/EpisodeNumber: 8
    encoder         : Lavf55.33.100
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
    Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (wmv3 -> rawvideo)
  Stream #0:0 -> #0:1 (wmav2 -> pcm_s16le)
Press [q] to stop, [?] for help
[null @ 0x32729e0] Encoder did not produce proper pts, making some up.
frame=55107 fps=954 q=0.0 Lsize=N/A time=00:30:38.74 bitrate=N/A
video:5166kB audio:316760kB subtitle:0 data:0 global headers:0kB muxing overhead -100.000008%

comment:4 Changed 5 years ago by cehoyos

  • Keywords regression added
  • Priority changed from minor to important

Regression since d8f27ece

comment:5 Changed 5 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Should be fixed in e3fd263f - thank you for the report!

Note: See TracTickets for help on using tickets.