dive into mark

You are here: dive into markArchivesAugust 2007Accessible video on the web, part 9

Tuesday, August 21, 2007

Accessible video on the web, part 9

What just happened to video on the web?

3gp timed text tracks. Any number of text tracks are supported and all the information, including esoteric stuff like karaoke meta data is dumped in ‘onMetaData’ and a new ‘onTextData’ NetStream callback. Language information in the individual tracks is also reported. That means you can have sub titles in several languages. Study the 3GPP TS 26.245 specification to see what information is available. Note that you have to take care of the formatting and placement of the text yourself, the Flash Player will do nothing here. Time for you to start working on one of those components which do that. You can use MP4Box to inject text data into existing files.

And you can use my dive into mark show MP4 files for testing your accessible Flash video player. Each video file has an H.264 (main or baseline profile) video track, AAC LC audio track, and a 3gp timed text track for subtitles.

Any takers?

Filed under , ,

5 comments

  1. Will this make playing these type of videos in Gnash, or better, media players of the user’s choosing (e.g. Mplayer?) Is proprietary, un-free Flash video finally losing its stranglehold on web video?

    Considering how embarrassingly inefficient Flash’s current video decoder is I shudder to think what H.264 high profile will do to my battery life if I have to use them.

    Comment by Patrick — Tuesday, August 21, 2007 @ 10:10 pm

  2. mozilla-mplayer plays those aforementioned MP4 files just fine, assuming mplayer is compiled with H.264 and AAC support. totem-mozilla plays them too, with appropriate codecs. I’m not sure what’s involved in “wrapping” the files to make them playable in Flash 9 in the first place; presumably some sort of SWF that loads the MP4 file. I do know that Flash9 doesn’t register itself to handle Content-Type: video/mp4.

    Comment by Mark — Tuesday, August 21, 2007 @ 10:54 pm

  3. By “these types of videos” I meant wrapped flash videos. I don’t envision that sites that offer Flash video now will suddenly offer raw H.264 but rather H.264 wrapped in Flash which hopefully will be easy to unwrap, making Flash irrelevant for me.

    Comment by Patrick — Wednesday, August 22, 2007 @ 10:12 am

  4. The post itself says that there’s no need to “wrap”. From the first bullet point in the second list:

    You can load and play .mp4,.m4v,.m4a,.mov and .3gp files using the same NetStream API you use to load FLV files now. We did not add any sort of new API in the Flash Player. All your existing video playback front ends will work as they are. As long as they do not look at the file extension that is, though renaming the files to use the .flv file extension might help your component. The Flash Player itself does not care about file extensions, you can feed it .txt files for all it matters. The Flash Player always looks inside the file to determine what type of file it is.

    so any site that wants to avoid doing more work will use mp4 files as-is.

    Comment by Bart — Wednesday, August 22, 2007 @ 12:35 pm

  5. Bart, I believe that comment was directed at Web developers. You still need a Flash object in the Web page to play the clip, and as with YouTube and so on there’s no need for the URL of the actual video file to be exposed in any particularly clear way to the user.

    To Patrick: I would imagine that the gstreamer gnash backend either already supports this or would require the most trivial of patches to do so, assuming that gstreamer itself already supports the formats.

    - Chris

    Comment by Chris Cunningham — Friday, August 24, 2007 @ 2:28 pm

Respond privately

I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)



Recent Stuff For You, Special Price Stay Here
  • Greasemonkey Hacks
Good Stuff Buy The Cow Go Away
Dive Into Python
Powered by Google Drink The Milk Don't Steal

 

posts / comments
© 2001-8 Mark Pilgrim