What formats should be encoded for video

I am embedding a video feature on my website and I plan to use an HTML5 player to play these videos.

2 questions: 1. In what formats should I encode downloaded videos (I need mobile support + PC + mac). 2. How can I prevent users from downloading a movie (HTML5 plays directly from my CDN, so the link can be easily downloaded)

Can a CDN protect content by issuing an access token that expires in X?

Thanks everyone!

+4
source share
4 answers

1) If you also need to support Firefox 3.6, you will need to provide at least 3 formats: mp4, webm and ogv. Otherwise mp4 and webm enough. mp4 is downloaded by apple mobile devices (ipad, iphone), Safari and can be downloaded by a flash player (suppose you installed the Flash Player 9r3 plugin as the minimum version). webm supported by firefox and chrome

http://diveintohtml5.info/video.html#what-works

2) take a look at How to prevent HTML5 video from downloading

+4
source

First off, Zencoder has a fantastic page in recommendations for HTML5 video encoding :

  • The minimum for HTML5 video is MP4 + WebM or Ogg (or both) , using the MP4 version for Flash backup.

  • For mobile support, a single H.264 / MP4 pin can go a long way. 2-3 provides better quality and wider compatibility.

Secondly, at the moment your videos will be downloaded with minimal effort (for example, View Source). See Related Question, Is there a way to use DRM for HTML5 video?

+3
source

The HTML5 specification allows you to use any video format. The browser implementation determines which formats are actually supported.

MP4 container with H.264 video and AAC audio

MP4 / H.264 is supported by Safari and IE9 +. You can find support in some versions of Chrome.

WebM container with VP8 and Vorbis Audio videos

WebM / VP8 is supported by Firefox, Chrome and Opera.

Ogg container with Theora Video and Vorbis Audio

Ogg / Theora is supported by Firefox, Chrome, and Opera.

Bottom-line

Use more than one format to make sure your client does not see a blank frame.

Regarding content protection, I underestimate this knowledge a bit and also believe that after this problem it makes no sense to go when your user may have a slow connection

+2
source

To protect the contents. there seems to be no direct way to do this today. However, there is an active interest in the HTML5 camp where some form of DRM can be applied for this.

Watch this: http://gigaom.com/video/mdialog-tackles-html5-video-security/

0
source

Source: https://habr.com/ru/post/1388309/


All Articles