1

I have been researching about DRM video encryption. All the example in internet I find it needs a lincense link, and a "X-AxDRM-Message" encrypted message as header request. But when I generate widevine encrypted video files with bento4, it don't provide me any sourse to generate the lincese link, it provides me KID and Key. What should I do with these two things? can I create the license link with php or python or js? or how can I get the link for free?

Habib
  • 138
  • 8

1 Answers1

1

You need to either host the DRM service yourself or else use a DRM, or more likely, multi DRM, online service.

This will provide you with the keys, IV etc you need to encrypt and also with the license server URL that your clients need to call to request the license playback key.

Note that for some DRM schemes, PlayReady and FairPlay, the license server URL can be included in the video stream, but for Widevine it usually needs to be configured on the client separately.

Its useful to test online first if possible - there are multiple player sites that will allow you test DRM protected streams, including the open source Shaka Player demo:

Mick
  • 24,231
  • 1
  • 54
  • 120
  • do you know any opensource project that could be helpful to setup such a license server? Im working on similar thing and getting stuck. for instance i tried this https://github.com/willkk/opendrm but i dont think it works with most common used drm like widevine or playready. what i really want know is how the request and response are formed? what they should contains? in which content type? – irzhy Dec 04 '22 at 10:38
  • @irzhy - I am not aware on any open source DRM server other than openDRM you linked above – Mick Dec 05 '22 at 09:05