-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download and serve subtitles #25
Comments
We certainly could server the subtitle files via http, but I'm not sure if players can use that. One idea that I was playing with in my head is to serve an html file, which users can open in a browser, where they could play the video using a There is one more caveat as we'd have to do some conversion, as vtt is not fully compatible with srt. |
Apparently VLC supports the XSPF format which allows mentioning external subtitle files. Example. I like the HTML5 idea as it would allow for a nice UI. No idea about the browser/codec/container support, I hope it's not too limiting. Otherwise I would prefer keeping it to desktop players. Edit: I've been playing around with serving any requested file via HTTP but I'm having issues with it detecting the content-length. Because content-length is auto-detected via a I'll play around some more and maybe push what I have so far. |
Is there any progress on this? I maintain a small lib to fetch subtitles from “Open Subtitles”. It should not be too hard to get subtitles automatically too: right now, osdb requires the first (and last) 64k bytes of a file in order to compute a hash, then used to search subs on their service... I'm not sure if it's the right approach, but I think that I could submit a PR that does the following:
|
Sorry, I haven't gotten any further. Your suggestion sounds great to me, though I'm not sure what the impact of having to request the end of the file is going to be. |
Should not be a problem, we can create a |
In addition to the largest file, subtitle files should also be downloaded and served via HTTP.
I'm not sure how video players handle this, but I remember PT having subtitle support so it must be possible.
What do you think?
The text was updated successfully, but these errors were encountered: