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.
Post Reply
oneworld95
Posts: 71
Joined: October 31st, 2006, 12:34 pm

Can't play OGG via video tag on FF 3.6.3

Post by oneworld95 »

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
Contact:

Re: Can't play OGG via video tag on FF 3.6.3

Post by longsonr »

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

Re: Can't play OGG via video tag on FF 3.6.3

Post by oneworld95 »

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

Re: Can't play OGG via video tag on FF 3.6.3

Post by Tael_ »

You can try Miro Video Converter or WinFF.
oneworld95
Posts: 71
Joined: October 31st, 2006, 12:34 pm

Re: Can't play OGG via video tag on FF 3.6.3

Post by oneworld95 »

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