4 ms·
My code still exists in the desktop source[1] but essentially what you need to do is convert an srt to vtt [2] file and start a local http server that will serv
by SlashmanX 4y ago
My code still exists in the desktop source[1] but essentially what you need to do is convert an srt to vtt [2] file and start a local http server that will serve the VTT file [3] and point the Chromecast to that
[1] - https://github.com/popcorn-official/popcorn-desktop/blob/development/src/app/lib/device/chromecast.js#L98 https://github.com/popcorn-official/popcorn-desktop/blob/dev...
[2] - https://github.com/popcorn-official/popcorn-desktop/blob/development/src/app/lib/subtitle/generic.js#L138 https://github.com/popcorn-official/popcorn-desktop/blob/dev...
[3] - https://github.com/popcorn-official/popcorn-desktop/blob/development/src/app/lib/subtitle/server.js https://github.com/popcorn-official/popcorn-desktop/blob/dev...
- stef25 4y agoIsn't it possible to "burn" the subtitles on to the video file somehow, maybe with ffmpeg? So they're there permanently.
- mperdemata 4y agoyes, the container formats such as MP4 and Matroshka support this. Also, it can be definitely done with ffmpeg.
- worble 4y agoYes but it wouldn't be ideal since you wouldn't be able to turn them on and off, or switch between multiple subtitles.