I’m a little torn on what to do here. mp4 tends to provide a slightly higher quality video and has wider browser support than webm, so I’m pretty hesitant to give webm priority over mp4 if both formats are available. I would also imagine that most Ubuntu users who plan on watching video will have ubuntu-restricted-extras installed. I’m open to further discussion on this if anyone else wants to chime in or if you have further thoughts.
>[…] slightly higher quality video
At the same bitrate, maybe (if you can see it on a web video)… That being said, if you don’t want to automatically favour the webm video maybe your could add :
1) An option in the settings that says “Favour webm over mp4 when both are available” (with an explanation of the pros and cons) ; I would personnaly prefer this box to be checked by default, but it’s your project
OR
2) Change the short tag parser to take into account the order in which the user specified the streams.
>[…] has wider browser support than webm
If you take http://www.w3schools.com/browsers/browsers_stats.asp statistics into account for exampls:
6.2% of IE9+ (mp4 only)
43.7% of Chrome (webm and mp4)
4% Safari (mp4 only)
———————————
~53.9% mp4 coverage
43.7% of Chrome (webm and mp4)
32.8% Firefox (webm only)
2.2% Opera (webm only)
———————————
~78.7% webm coverage
(real average numbers are a little bit more in favour to IE but not so much as to reverse the argument)
> I would also imagine that most Ubuntu users who plan on watching
> video
Making chromium work with mp4 requires installing chromium-codecs-ffmpeg-extra on Ubuntu.
Thanks for your reply by the way and all the best!
Just wanted to let you know I had browser issues with viewing the files if I did not add the shortcode and use webm format link before mp4 format link .. With the mp4 format link first it only played in chrome and opera but with the webm format link in shortcode first it played in all browers and on iphone just not tested in firefox.
Any idea why this is happening?
@skd_sam: Sounds like a bad mp4 file to me (possibly not h.264 encoded?). See http://blog.nosecreekweb.ca/wordpress/reliable-html5-video-made-easy/#encoding-videos. Please start a new thread if you would like further support on this.