Is it possible to stream a local file and a subtitle for that file (in srt or whatever format) so that in the final stream the subtitles can be switched on and off.
My problem is that I want to stream to 'UDP multicast (126.96.36.199:1234)' Video + Audio in a Mkv container + Subtitle in .srt or .ass. But I need subtitles to be switched On and Off. Until now I have successfully manage to stream all the above transcoding to mpeg2video, using the dvbsub codec for subs.
But using Vlc Player or a DVB-C STB I can receive the video stream with all audio streams and the DVB Subtitle stream, BUT it seems that the sub stream is empty.
I have tried with ass subs but they are hardcoded with the -vf filter, and I want the subs to be Dvb Subtitles.
SRT shouldn't work at all, I wonder why ffmpeg doesn't refuse to do so.
I was under the impression (from personal experience, not standards)
that dvdsub shouldn't work, but dvbsub should. Caveat: ffmpeg could
have problems of its own with the latter, see trac #2024.
I kinda did it with vobsub subtitle. The only problem now is that subs stream seems to start ahead of its time. But at least it is a DVB subtitle. it can be turned on and off on my HD STB. Just need to adjust timing. (VLC does this perfectly in time but has other issues)
And also finding the right h264 transcode settings seems like a bit difficult. A lot of artifacts and freezing with high bitrate.