clitic / vsd

Download video streams served over HTTP from websites, HLS and DASH playlists.
Apache License 2.0
274 stars 27 forks source link

Cannot decode PSSH box data as valid widevine data. #23

Closed mohamedhani1 closed 1 year ago

mohamedhani1 commented 1 year ago

I try to download mpd url but I get this error

error: Cannot decode PSSH box data as valid widevine data.

DecodeError { description: "invalid wire type: Varint (expected LengthDelimited)", stack: [ ( "WidevinePsshData", "key_ids", ), ], }.

clitic commented 1 year ago

Your playlist might contain protected streams. Some encryption information is saved inside init segment which vsd tries to parse but here it fails to decode it. From my side I have checked that it correctly parses mp4's PSSH box data. In your case init segment might be corrupted.