[FFmpeg-trac] #4375(undetermined:new): Incorrect duration from bitrate for DTS-HD (MA and HRA) files

FFmpeg trac at avcodec.org
Wed Mar 18 09:34:22 CET 2015


#4375: Incorrect duration from bitrate for DTS-HD (MA and HRA) files
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:  defect
  Underground78                      |                 Priority:  minor
               Status:  new          |                  Version:  git-
            Component:               |  master
  undetermined                       |               Blocked By:
             Keywords:               |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: Those two samples: [http://trac.mpc-hc.org/raw-
 attachment/ticket/5319/TestDTSHD_HRA.dtshd TestDTSHD_HRA.dtshd] and
 [http://trac.mpc-hc.org/raw-attachment/ticket/5319/TestDTSHD_MA.dtshd
 TestDTSHD_MA.dtshd] show incorrect duration in FFmpeg.

 I know that the duration is guessed from the bitrate and that we cannot
 expect perfect accuracy but the duration is often off by more than a
 factor 2 even on big files which I find weird.

 How to reproduce:
 {{{
 ffmpeg version N-70803-g0f16dfd Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
 --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
 libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-
 libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma
 --enable-decklink --enable-zlib
   libavutil      54. 20.100 / 54. 20.100
   libavcodec     56. 28.100 / 56. 28.100
   libavformat    56. 25.101 / 56. 25.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 12.100 /  5. 12.100
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 [dtshd @ 0000000002c86500] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, dtshd, from 'TestDTSHD_HRA.dtshd':
   Duration: 00:00:02.43, bitrate: 1536 kb/s
     Stream #0:0: Audio: dts (DTS-HD HRA), 48000 Hz, 5.1(side), fltp, 1536
 kb/s
 }}}
 {{{
 ffmpeg version N-70803-g0f16dfd Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme
 --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-
 libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
 libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-
 libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma
 --enable-decklink --enable-zlib
   libavutil      54. 20.100 / 54. 20.100
   libavcodec     56. 28.100 / 56. 28.100
   libavformat    56. 25.101 / 56. 25.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 12.100 /  5. 12.100
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  3.100 / 53.  3.100
 [dtshd @ 0000000002e56480] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, dtshd, from 'TestDTSHD_MA.dtshd':
   Duration: 00:00:02.96, bitrate: 1536 kb/s
     Stream #0:0: Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), fltp, 1536
 kb/s
 }}}

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


More information about the FFmpeg-trac mailing list