Closed ajagannath closed 6 years ago
Thanks for reporting this. I'll fix this ASAP and push an update shortly.
I fixed the bug. Regarding the subtitles here, your input file does have a subtitles track (track ID 3), but it has almost nothing in it (just one sample with 2 bytes of data). It is a TTML track (IMSC1), which is supported, but with no data in it, it is hard to test. (there's some more detailed info about subtitle support in Bento4 here: https://www.bento4.com/developers/dash/subtitles/) IMSC1 subtitles in HLS are supported by the standard, so in theory it should work. The apple recommendations say that for subtitles, the CODECS string "SHOULD" include "stpp.ttml.im1t” for IMSC1 subtitles, which isn't currently done by Bento4, but I'll add that in the next release. In the meantime, can you try again with an input file that actually contains non-empty subtitles?
Actually, following up to my previous reply, it looks like your input file also has the subtitle track in 'tx3g (Timed Text)' format, not 'stpp'. The only format supported by HLS/Apple is 'stpp' (which is supported by Bento4).
I am trying to get subtitles with fragmented mp4 HLS. While I am at it, found a bug
Checking for
accu_duraion > 0
here fixed this.However I am not seeing any subtitle track added to the master.m3u8.
What kind of subtitle tracks are supported at the input? and how do I use bento to get IMSC1 compatible subtitles added?
Media: bento_test_sample.zip