Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I embed a video encoded in VP9 / H.265 in HTML5?

Tags:

html

I'm encoding 4k videos in VP9 / H.265 and would like to stream them to a browser. How can I do this in a way that it's supported across the maximal number of browsers?

like image 821
ensnare Avatar asked Jun 20 '14 14:06

ensnare


People also ask

Can browser play h265?

265 support in browsers. Of the desktop browsers only Microsoft Edge (version 16 and later) and Safari (version 11 and later) support H. 265. Of mobile browsers — Safari and Chrome for iOS (version 11.0 and later).


Video Answer


1 Answers

I believe vp9 will work natively in FF and chrome since over 6 months (FF, chrome longer). There are as of yet no plugins for IE and certainly no native support.

Hevc (h.265) have no native support anywhere but there are plugins from divx.

So your best bet is to detect capabilities with html5 with vp9 and then have fallback to mp4 (html5) and then have continued fallback to flash (possibly mp4).

So in summary, there is no way to deliver only h.265 and/or vp9. The best you can do is deliver vp9 to about 50% of the worlds population and have fallback for the rest.

like image 137
Rickard Liljeberg Avatar answered Oct 19 '22 11:10

Rickard Liljeberg