
mp4 subtitles
We are getting ready to switch over to mp4 files for our video player. To that end, I've learned how to use MP4Box and ttxt files to embed subtitles in the files. The subtitles display fine on iTunes, QuickTime, and iPads; I've not yet tested on iPhones of aTVs.
Unless I've read something wrong the JW Player should be able to read and display these embedded subtitles. My web team has informed me that it is not.
Test file: http://dl.dropbox.com/u/3840885/everify_test.mp4
TTXT file: http://dl.dropbox.com/u/3840885/everify2.ttxt
The command for mp4box I'm using is:
bc.. mp4box -add 'videoFile.mp4' -add 'ttxtFile.ttxt:hdlr=sbtl:lang=en:group=2:layer=1' -new 'newFile.mp4'
Finally, the code the web team is using to call the JW Player is:
bc.. <h2>everify_subs_041112.mp4</h2>
<div id="test1">Loading the player…</div>
<script type="text/javascript" src="/js/jwplayer/jwplayer.js"></script>
<script type="text/javascript">
jwplayer("test1").setup({
flashplayer: "/js/jwplayer/player.swf",
file: "http://www.ice.gov/doclib/video/gallery/everify_subs_041112.mp4",
skin: "/js/jwplayer/slim.zip",
autostart: false,
width: 310,
height: 250
});
</script>
<div style="clear:both"></div>
Any help would be greatly appreciated. Thanks!