Allow loading .vtt from remote urls #253
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This bypasses the need for a local server and the need to keep castnow command running.
This post here serves as a small blog post on how to play content on Chromecast with subtitles, without having need to keep castnow running. I used to re-encode media to
.mp4
and burn subtitles into a video stream. this is not necessary.I managed to get castnow to make Chromecast serve all content from remote servers:
.mkv
container with h264 video, Vorbis audio.vtt
subtitles on a remote serverChromecast (ultra) plays fine .mkv container, just google chrome doesn't play it, so it's common to understand Chromecast can't support .mkv:
and the official docs don't mention Matroska (yet?):
for audio, it's important it to be "channels: 2" aka, stereo, Chromecast won't play "5.1" audio. sometimes I've seen it not even opening media. sometimes it just plays video only.
for FFmpeg convert from 5.1, the extra options also include pan filter, otherwise, it would sound too loud or too low:
-ac 2 -af "pan=stereo|FL=FC+0.30*FL+0.30*BL|FR=FC+0.30*FR+0.30*BR"
:as for
.vtt
serving, it's important:text/vtt; charset=utf-8
Access-Control-Allow-Origin: *
(or similar) headerfor Lighttpd, this can be done with: