PSSH box is missing after ffmpeg encryption
See original GitHub issueI was able to reproduce your results with ffmpeg 4.1.3. I tried re-encoding audio & video, I tried audio-only, I tried video-only, and I tried with flags to output fragmented mp4.
I got it to work with Shaka Packager for encryption, and playing back through a DASH manifest:
packager \
input=SampleVideo_1280x720_1mb.mp4,stream=video,output=video.mp4 \
input=SampleVideo_1280x720_1mb.mp4,stream=audio,output=audio.mp4 \
--enable_raw_key_encryption \
--keys key_id=a7e61c373e219033c21091fa607bf3b8:key=76a6c65c5ea762046bd749a2e632ccbb \
--clear_lead 0 \
--mpd_output dash.mpd
This plays through DASH & MediaSource w/ ClearKey for decryption, but if I try to play back one of the individual files (video.mp4 or audio.mp4) with src=, playback seems to fail. I’m not sure why yet. When this fails, video.mediaKeys
is null, so I think that Shaka’s DrmEngine
doesn’t set up ClearKey with src= for some reason. It could be a lack of PSSH box in the mp4s.
_Originally posted by @joeyparrish in https://github.com/google/shaka-player/issues/2139#issuecomment-529566212_
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Okay, thanks for confirming. In the future, please file exoplayer issues here instead: https://github.com/google/exoplayer
I am trying to play on exoplayer. And it seems it is a confirmed issue. Pssh box is ignored.