

I can fix this all by just making a webm or mp4 video with captions using the tools I know well.nomedia files tell Android not to scan certain directories for images of videos or audio files. mkv is becoming unsupported in recent browsers or HTML 5 ? If I remove the type field from the video element then chrome plays the content but no captions shown and firefox displays a frown and a caption about unsupported file formats. I get the same behaviour if I open a file:// url in the browser. For chrome it opens and plays without any dialog and plays audio fine, but there are no captions from the Chapter or subtitle file being displayed. It renders a frame and control buttons but no duration or initial still frame is shown: its as though there is no media file linked.Ĭlicking on the anchor alternative, I find that firefox says ‘open with Videos’ and I say yes and then it works nicely. I find that the video element is not working in either browser.

Your browser does not support the video element. On a web server, I’ve tried embedding the resulting mkv file using the tag and also just as a click-on href anchor link and used Firefox and google-chrome and my milage is varying a bit. It plays nicely with the expected captions on the local machine under mplayer. The video solution is attractive and I have it mostly working. Mkvmerge -chapters Chapter.txt -o Outfile.mkv video.mp4 -y 0:0 your-audio.mp3 -y 0:0 Sub.srt Grep -A4 TRACK $1 | egrep "TITLE|INDEX 00|INDEX 01" | while read LineĮcho $Line | grep -q TITLE & Tit=`echo $Line | cut -d\" -f2`Įcho $Line | grep -q "INDEX 00" & IdxB=`echo $Line | awk ''| cut -d\: -f1,2` Save the script below to SubFromCue.sh and runīash SubFromCue.sh your-cue-file > Sub.srt Pre=0

Use an image to create a video track that’s the same length as your audioįfmpeg -loop 1 -i -vcodec libx264 -crf 35 -pix_fmt yuv420p -t -preset veryfast -s 480:360 video.mp4 I’m not sure if the track names are showing in any given media player.Ī workaround is to add video and show the names as a subtitle.
