Skip to main content

Widevine Encryption

Shaka Packager is used for encrypting content and offers seamless integration with Widevine, making it a popular choice for ensuring secure delivery through the Widevine DRM technology. Shaka Packager

Shaka Packager Command :

To encrypt your content, you can utilize Shaka Packager by running the following command :


packager \
in=https://static.testpress.in/BigBuckBunny.mp4,stream=audio,output=audio.mp4 \
in=https://static.testpress.in/BigBuckBunny.mp4,stream=video,output=h264_360p.mp4 \
--enable_widevine_encryption \
--key_server_url https://app.tpstreams.com/api/v1/<org_code>/widevine_key/ \
--content_id <content_id> \
--signer testpress \
--aes_signing_key <WIDEWINE_AES_KEY> \
--aes_signing_iv <WIDEWINE_IV> \
--mpd_output video.mpd

Fields

NameTypeDescriptionRequired
org_codestringThe organization code for API endpointYes
content_idstringThe unique identifier for the content (Should be a random UUID generated you. This UUID will be used for getting licenses for that video.)Yes
WIDEVINE_AES_KEYstringThe AES key used for Widevine encryptionYes
WIDEVINE_IVstringThe initialization vector (IV) for Widevine encryptionYes
info

WIDEWINE_AES_KEY , WIDEWINE_IV and org_code will be provided by us.

Check out this repository for encrypting a video with a Widevine license DRM Video Processing