Target is view html subtitles in vtt format in TV when AirPlay is running.
html code:
<video preload="metadata" x-webkit-airplay="allow" src="a.mp4">
<track kind="subtitles" default="" src="en.vtt" srclang="en">
<track kind="subtitles" src="de.vtt" srclang="de">
<track kind="subtitles" src="es.vtt" srclang="es">
<track kind="subtitles" src="fr.vtt" srclang="fr">
</video>
The problem is when AirPlay is enabled video and audio plays on TV, but no subtitles showed.
I tried to include vtt/srt subtitles into the mp4 metadata with ffmpeg and subtitles working with VLC but not working when AirPlay this files
ffmpeg -i 8499.mp4 -i 8499.en.vtt -map 0:v -map 0:a -c copy -map 1 -c:s:0 mov_text -metadata:s:s:0 language=en 8499.en.mp4
ffmpeg -i 8499.mp4 -i 8499.en.srt -map 0:v -map 0:a -c copy -map 1 -c:s:0 srt -metadata:s:s:0 language=en 8499.en.mp4
Also tried to send a .m3u8 with no luck. Any of you know how is the basic format for a simple .m3u8 with a .mp4 and .vtt working when AirPlay?
Which is the standard subtitles solution for AirPlay?