[FFmpeg-trac] #4774(ffmpeg:new): Incompatibilities between XBMC/Kodi & mkvalidator relating to how FFmpeg muxes MKVs

FFmpeg trac at avcodec.org
Fri Aug 14 12:36:04 CEST 2015


#4774: Incompatibilities between XBMC/Kodi & mkvalidator relating to how FFmpeg
muxes MKVs
-------------------------------------+-------------------------------------
             Reporter:  Drag0nFly    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  ffmpeg       |                  Version:  git-
             Keywords:  mkv muxer    |  master
  timecode chapter                   |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:

 FFmpeg produces non-spec compliant MKVs, which cause warnings with
 mkvalidator (0.5.0) and introduces strange behaviour when chapter-skipping
 in XBMC/Kodi (chapters repeat).

 This appears to be releated to how the cues entries are created, as
 evidenced by the output from mkvalidator (included below the full FFmpeg
 commandline). Or it may be caused by a different issue than the one
 reported by mkvalidator.

 I've included a short (well, as short as can be since it involves skipping
 chapters) which illustrate the chapter-skip issue. I've also submitted a
 bug for that issue to the Kodi devs, since I am unsure what specifically
 is causing this. But obviously they employ FFmpeg in their internals so
 the issue might be inherited from upstream.

 How to reproduce:
 {{{
 ffmpeg -i /data/video/work/fullq/movie.mkv -map 0 -c:v libx264 -level 4.1
 -vf crop=1920:1072:0:4 -x264opts
 deblock=-3,-3:trellis=2:ref=5:subme=10:bframes=8 -preset slow -crf 17 -c:a
 copy -c:s copy /data/video/work/movie-crf17-slow-custom.mkv

 ffmpeg version N-73957-g0a03271 Copyright (c) 2000-2015 the FFmpeg
 developers
 built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
 }}}

 For some curious reason FFmpeg no longer prints the date/timestamp 'built
 on' ... string, so this is not included.

 The commandline referenced above is a re-encode (for size), but the
 behaviour is also introduced when remuxing (-c:v copy)


 Sample clip for the (again–possibly unrelated) chapter-skip issue:
 (chapter repeat occurs occurs with chapter 3->4, "While you're out, pick
 up some AA-batteries")

 https://www.dropbox.com/s/bixksrvpy0n9vf7/hot.shots.sample.mkv?dl=0

 btw.–this FFmpeg-generated sample clip, when remuxed with MakeMKV, fixes
 the issue during Kodi playback, which indicates an incompatibility with
 lavf-written files.


 Output from mkvalidator for the file generated with the FFmpeg version and
 commandline options detailed above (trimmed in the middle for size):

 {{{
 WRN311: The Cues entry for timecode 131506 ms is listed after entry 131548
 ms
 WRN311: The Cues entry for timecode 165540 ms is listed after entry 165624
 ms
 WRN311: The Cues entry for timecode 178720 ms is listed after entry 178804
 ms
 WRN311: The Cues entry for timecode 246580 ms is listed after entry 246621
 ms
 WRN311: The Cues entry for timecode 248707 ms is listed after entry 248749
 ms
 WRN311: The Cues entry for timecode 251460 ms is listed after entry 251501
 ms
 WRN311: The Cues entry for timecode 259926 ms is listed after entry 260010
 ms
 WRN311: The Cues entry for timecode 277819 ms is listed after entry 277861
 ms
 WRN311: The Cues entry for timecode 290248 ms is listed after entry 290290
 ms
 WRN311: The Cues entry for timecode 295504 ms is listed after entry 295587
 ms
 WRN311: The Cues entry for timecode 302177 ms is listed after entry 302260
 ms

 [...]

 WRN311: The Cues entry for timecode 5555133 ms is listed after entry
 5555175 ms
 WRN311: The Cues entry for timecode 5571816 ms is listed after entry
 5571858 ms
 WRN311: The Cues entry for timecode 5573985 ms is listed after entry
 5574027 ms
 WRN311: The Cues entry for timecode 5599719 ms is listed after entry
 5599761 ms
 WRN311: The Cues entry for timecode 5610105 ms is listed after entry
 5610146 ms
 WRN311: The Cues entry for timecode 5621199 ms is listed after entry
 5621241 ms
 WRN311: The Cues entry for timecode 5660363 ms is listed after entry
 5660446 ms
 WRN311: The Cues entry for timecode 5661865 ms is listed after entry
 5661948 ms
 WRN311: The Cues entry for timecode 5664617 ms is listed after entry
 5664659 ms
 WRN311: The Cues entry for timecode 5668288 ms is listed after entry
 5668371 ms
 WRN311: The Cues entry for timecode 5682969 ms is listed after entry
 5683011 ms
 WRN311: The Cues entry for timecode 5687432 ms is listed after entry
 5687473 ms
 WRN311: The Cues entry for timecode 5705241 ms is listed after entry
 5705283 ms
 WRN311: The Cues entry for timecode 5707118 ms is listed after entry
 5707160 ms
 WRN311: The Cues entry for timecode 5711873 ms is listed after entry
 5711956 ms
 WRN311: The Cues entry for timecode 5713875 ms is listed after entry
 5713917 ms
 WRN311: The Cues entry for timecode 5719380 ms is listed after entry
 5719422 ms
 WRN311: The Cues entry for timecode 5736731 ms is listed after entry
 5736814 ms
 WRN311: The Cues entry for timecode 5746407 ms is listed after entry
 5746449 ms
 WRN311: The Cues entry for timecode 5749661 ms is listed after entry
 5749702 ms
 WRN311: The Cues entry for timecode 5793162 ms is listed after entry
 5793204 ms
 WRN311: The Cues entry for timecode 5825653 ms is listed after entry
 5825737 ms
 WRN311: The Cues entry for timecode 5826946 ms is listed after entry
 5826988 ms
 WRN311: The Cues entry for timecode 5831576 ms is listed after entry
 5831617 ms
 WRN311: The Cues entry for timecode 5852096 ms is listed after entry
 5852138 ms
 WRN311: The Cues entry for timecode 5857810 ms is listed after entry
 5857852 ms
 WRN311: The Cues entry for timecode 5871532 ms is listed after entry
 5871616 ms
 WRN311: The Cues entry for timecode 5875036 ms is listed after entry
 5875078 ms
 WRN311: The Cues entry for timecode 5876037 ms is listed after entry
 5876120 ms
 WRN311: The Cues entry for timecode 5879040 ms is listed after entry
 5879082 ms
 WRN311: The Cues entry for timecode 5884462 ms is listed after entry
 5884545 ms
 WRN311: The Cues entry for timecode 5894889 ms is listed after entry
 5894931 ms
 WRN311: The Cues entry for timecode 5897100 ms is listed after entry
 5897183 ms
 WRN311: The Cues entry for timecode 5907068 ms is listed after entry
 5907151 ms
 WRN311: The Cues entry for timecode 5918079 ms is listed after entry
 5918121 ms
 WRN311: The Cues entry for timecode 5961497 ms is listed after entry
 5961581 ms
 WRN311: The Cues entry for timecode 6001496 ms is listed after entry
 6001579 ms
 WRN311: The Cues entry for timecode 6025353 ms is listed after entry
 6025436 ms
 WRN311: The Cues entry for timecode 6039450 ms is listed after entry
 6039492 ms
 WRN311: The Cues entry for timecode 6051045 ms is listed after entry
 6051128 ms
 WRN311: The Cues entry for timecode 6087039 ms is listed after entry
 6087081 ms
 WRN311: The Cues entry for timecode 6109228 ms is listed after entry
 6109270 ms
 WRN311: The Cues entry for timecode 6130041 ms is listed after entry
 6130124 ms
 WRN311: The Cues entry for timecode 6156734 ms is listed after entry
 6156776 ms
 WRN311: The Cues entry for timecode 6180675 ms is listed after entry
 6180716 ms
 WRN311: The Cues entry for timecode 6188683 ms is listed after entry
 6188724 ms
 WRN311: The Cues entry for timecode 6198025 ms is listed after entry
 6198109 ms
 WRN311: The Cues entry for timecode 6210496 ms is listed after entry
 6210538 ms
 WRN311: The Cues entry for timecode 6223217 ms is listed after entry
 6223300 ms
 WRN311: The Cues entry for timecode 6235604 ms is listed after entry
 6235646 ms
 WRN311: The Cues entry for timecode 6277271 ms is listed after entry
 6277354 ms
 WRN311: The Cues entry for timecode 6287740 ms is listed after entry
 6287782 ms
 WRN311: The Cues entry for timecode 6391969 ms is listed after entry
 6392052 ms
 mkvalidator 0.5.0: the file appears to be valid
         file created with Lavf56.40.101 / Lavf56.40.101

 real    6m25.683s
 user    4m24.833s
 sys     0m6.807s


 }}}

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


More information about the FFmpeg-trac mailing list