[FFmpeg-trac] #6622(undetermined:new): Doesn't support wav files completely - incorrect time length reported

FFmpeg trac at avcodec.org
Mon Aug 28 12:59:33 EEST 2017

#6622: Doesn't support wav files completely - incorrect time length reported
             Reporter:  nemo         |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 (FFmpeg <- LAVFilters <- MPC-HC)

 It doesn't report the time length correctly on some wav files.

 Time length is 11:42 according to VLC.
 MPC-HC reports itime length as 03:43 however when it reaches that time it
 continues to play.

 The example was downloaded 2017-08-18 and is free this month.
 More can be found here: http://www.mysurround.com/en/catalog-free-titles
 (Creating an account is free).

 MPC-HC (64-bit)

 Build information:
     Version:            1.7.13 (e37826845)
     Compiler:           MSVC v19.00.24215.01
     Build date:         Jul 16 2017 18:47:17

 LAV Filters:
     LAV Splitter:
     LAV Video:
     LAV Audio:
     FFmpeg compiler:    MinGW-w64 GCC 7.1.0

 Operating system:
     Name:               Windows NT 6.1 (build 7601, Service Pack 1)
     Version:            6.1 (64-bit)


 Reference: [https://github.com/Nevcairiel/LAVFilters/issues/151]

 mkver said:
 "This is ac3 muxed in a wave container (if you look at the file in an hex
 editor, you will find many 0x00 in it (this is also the reason why this
 file is so compressibly); also, there seems to be an endianness swap on
 the ac3 data, but I actually don't know the specification of ac3 in wav).
 The 11:42 reported by VLC is also wrong: The real length is 3:24.768. This
 seems to be a bug in ffmpeg (or a limitation of ac3 in wav) and should be
 reported there. LAVFilters will inherit the fix for it (if it gets

Ticket URL: <https://trac.ffmpeg.org/ticket/6622>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list