clitic / vsd

Download video streams served over HTTP from websites, DASH (.mpd) and HLS (.m3u8) playlists
Apache License 2.0
242 stars 22 forks source link

CENC #18

Closed ghost closed 1 year ago

ghost commented 1 year ago

I see CENC is supported:

https://github.com/clitic/vsd#features

but I dont see any examples. If I have a key, how do I supply it?

clitic commented 1 year ago

Test Vectors

~ $ vsd save https://media.axprod.net/TestVectors/Dash/protected_dash_1080p_h264_singlekey/manifest.mpd
• Select streams to download · 1080p 3.66 MiB/s (codecs: avc1.640028, frame_rate: 24) | language: en, codecs: mp4a.40.2, bandwidth: 137.14 KiB/s, channels: 2 | language: de, codecs: wvtt
      KeyId   65a86040-7888-6742-9cbf-91ae5bae1e72 (playready)
      KeyId * 4060a865-8878-4267-9cbf-91ae5bae1e72 (widevine)
error: use --key flag to specify CENC content decryption keys for at least * (star) prefixed key ids.
-k, --key <KEY|KID:KEY>  Keys for decrypting encrypted streams. If streams are encrypted with a single key then there is no need to specify key id else specify
                           decryption key in format KID:KEY. KEY value can be specified in hex, base64 or file format. This option can be used multiple times

Final command

vsd save https://media.axprod.net/TestVectors/Dash/protected_dash_1080p_h264_singlekey/manifest.mpd --key 4060a865887842679cbf91ae5bae1e72:/DU0CDcxDMD7U96X4ipp4A==
ghost commented 1 year ago

do you think this is worth adding to the documentation?

clitic commented 1 year ago

I will add this to documentation.