I’ve been pouring over the internet for nearly a week trying to figure this out. This may be one of the least-discussed topics in the universe.
[U]The scenario:
I have an .mkv file (contains video, audio, subtitles), which is hosted on my web server. If you go to “mywebsite.com/video.mkv” in Google Chrome, the video will be there, ready to play.
[U]The problem:
The subtitles do not play. The video and audio play flawlessly, but the subtitles do not show up. This same video plays in VLC, WMP, etc. with subtitles.
[U]What I’ve tried:
Since “mywebsite.com/video.mkv” did not play the subtitles, I separated the subtitle (.ass) file from the video, and hosted that on my web sever as well.
I now have “mywebsite.com/video.mkv” and “mywebsite.com/subtitles.ass”.
I decided to code a simple HTML5 website in Notepad++ as seen below:
[CODE]
<!doctype html>
<html lang=”en”>
<body style=”background-color:#000000;”>
<video src=”http://mywebsite.com/video.mkv” controls>
<track kind=”subtitles” src=”http://mywebsite.com/subtitles.ass” srclang=”en”>
</video>
</body>
</html>
[U]The result:
Nothing. The player still does not recognize subtitles.
You can tell by now that I don’t know much about embedding video. Again, this is a very simple example. I just wanted to see if the subtitles would play only using HTML5 within Google Chrome.
I’ve come by numerous articles online about embedding subtitles with different Firefox addons, Jquery, etc. None of these match my scenario (.mkv within Google Chrome). I would love some assistance on this subject.
Meanwhile, I’ll keep pounding my head on the wall. Thank you 😮