samdutton / simpl

Simplest possible examples of HTML, CSS and Javascript:
https://simpl.info
Apache License 2.0
5.18k stars 1.64k forks source link

EME *encryption* #82

Closed bmalehorn closed 7 years ago

bmalehorn commented 8 years ago

The EME page is an excellent resource for basic EME - downloading a WebM file with an encrypted stream (Chrome_44-enc_av.webm) and decoding it in the browser.

But, how was that encrypted WebM file created? ffmpeg? openssl? MP4Box? It's left quite a mystery, and Googling this only leads to encryption-as-a-service companies, and other confused idiots.

So, what is the secret sauce?

It would be convenient to embed some guidance in inline HTML:

  <video autoplay controls>
    <!-- ffmpeg -i Chrome_44.webm -eme-key ebdd62f16814d27b68ef122afce4ae3c \
         Chrome_44-enc_av.webm -->
    <source src="../video/Chrome_44-enc_av.webm"  type="video/webm" />
    <p>This browser does not support the video element.</p>
  </video>
samdutton commented 7 years ago

Thanks for this.

Apologies for the delay in responding — I've been snowed under with work and haven't been able to do much work on simpl.info :(.

I like the idea of embedding guidance inline :).

You can find a bit more about encryption, etc. here.