MozillaZine

Can't play OGG via video tag on FF 3.6.3

Discuss how to use and promote Web standards with the Mozilla Gecko engine.
oneworld95
 
Posts: 71
Joined: October 31st, 2006, 12:34 pm

Post Posted June 15th, 2010, 9:30 am

Hi. I'm trying to play Theora video via the new HTML5 video tag, but FF is having difficulty while the latest versions of the other browsers (Chrome, Opera, and Safari) work well with it. Here's a page (not built by me) that has a fallback mechanism to Flash; but in FF 3.6.3, it just puts a large X on the video and audio: http://etianen.github.com/html5media/

I've looked on the web and others are having issues as well. This thread on Stackoverflow.com talks about this issue, but following all their recommendations, I've not been able to get my own page to work well: http://stackoverflow.com/questions/2643447/html5-video-mp4-and-ogv-problems-in-safari-and-firefox-but-chrome-is-all-good

Code: Select all
    <video id="vid" width="372" height="209" poster="global/vid/historydetectives-poster.jpg" controls preload>
       <source id="videoSource_mp4" src="global/vid/historydetectives.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
       <source id="videoSource_ogg" src="global/vid/historydetectives.ogg" type='video/ogg; codecs="theora, vorbis"'>
    </video>


What am I doing wrong? Help!!! :-k

longsonr
 
Posts: 49
Joined: June 29th, 2007, 7:26 am

Post Posted June 15th, 2010, 9:45 am

You need to serve the audio/video files with the correct mime type. For instance http://etianen.github.com/html5media/ serves http://etianen.github.com/html5media/demo/audio.ogg as application/octet-stream which is why it doesn't work.

Best regards

Robert.

oneworld95
 
Posts: 71
Joined: October 31st, 2006, 12:34 pm

Post Posted June 15th, 2010, 10:56 am

That makes perfect sense! Just added the mime type to my server and at least some of the OGV videos are working; I think the others aren't encoded right. Is there a GUI tool for Windows to encode OGV video files? I'd tried Handbrake but it only has MKV as the other output format. Thanks.

Tael_
 
Posts: 52
Joined: November 2nd, 2007, 5:08 pm

Post Posted June 15th, 2010, 12:13 pm

You can try Miro Video Converter or WinFF.

oneworld95
 
Posts: 71
Joined: October 31st, 2006, 12:34 pm

Post Posted June 15th, 2010, 2:26 pm

Thanks to all the replies. I've detailed the complete solution here: http://devharbor.blogspot.com/2010/06/o ... refox.html

Return to Web Development / Standards Evangelism


Who is online

Users browsing this forum: No registered users and 2 guests