neilski wrote:Up until now I had basically imagined that HB was already able to deal with the subtitles once it "had" them in some fashion, and that the only missing piece of the puzzle was a capability to get them out of the TS file. And I'm not sure if that particular missing bit of functionality is best inserted within HB or a library (e.g. avcodec...).
HB has its own TS demuxer. For other containers, we just get the subtitles from avformat's demuxer (fairly trivial).
But yeah, getting the subs is only half the story - you need a parser (for passthrough) and a decoder (for burn-in). And you need to implement muxer support (for passthrough). And you need a decoder in order to convert to another format when direct passthrough is not possible (e.g. MP4 input with TX3G subtitles, MKV output container - subtitles need to be converted to MKV "UTF-8" text subtitles when passing them through). Or MKV UTF-8 -> MP4 TX3G. etc.