-
Notifications
You must be signed in to change notification settings - Fork 103
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
embedded mkv subtitles #79
Comments
Technically yes, with things like Emscripten you can turn almost any standalone program into a web application, but it's not as simple as just unzipping the video container. The subtitle lines are actually interleaved throughout the file, so you would have to completely load the video file to get all of the subtitles. This sounds more like something that could be done with a separate program, and then once you've gotten just the subtitle file using that program you could feed it to this library like normal. |
Got it, probably not worth it then, since the whole file has to be read and that would take a long time over network. |
@Guizzoni Instead of using the patcher try using this: https://github.com/qgustavor/mkv-extract/ |
Thanks @qgustavor, but I think that it would probably need the file fully downloaded before we could extract the .ass and use it within the web-player |
It works using file streaming but currently needs a continuous stream. Maybe you can modify this to work with a seek-able stream (which is normal for a web player). By the way you will need to load the header of the file as fonts and subtitle styles are stored there. |
JSO is only a subtitle renderer which can be integrated into players, not a full media player itself. As such it never sees the whole media file, only the subtitle data. Any mkv parsing would need to be implemented in a player with the ability to forward subtitle data to JSO. |
Hi, would it be possible to use a .ass that is embedded in a matroska video file?
AFAIK .mkv files works just like a .zip, with audio, video, subtitles and related files inside of it, wouldn't it be possible for the WASM to open and read the subtitle inside of the mkv?
The text was updated successfully, but these errors were encountered: