Subtitle blocks with no BlockDuration value set seem to be processed incorrectly
When attempting to use mkvextract
to extract subtitles as SRT from an MKV file generated by Tvheadend, the subtitle end time set to same as start time (giving a zero length duration). This appears to be due to the subtitle blocks not including a BlockDuration
value.
Command line used: mkvextract "#2397 - Subtitle duration issue.mkv" tracks 2:subtitles.srt
Also, when splitting such a file using mkvmerge
, all empty subtitles are removed from the output file which causes the previous subtitle to run for too long (since without BlockDuration
, each subtitle is assumed to be shown until the next subtitle block is found).
Command line used: mkvmerge -o remux.mkv --split parts:0:10-0:18 "#2397 - Subtitle duration issue.mkv"
I've uploaded a sample file "#2397 (closed) - Subtitle duration issue.mkv" to your server. This seems similar to old issue #222 (closed) I found by searching?
Version: 27.0.0
OS: Ubuntu 18.04.1 amd64