Hey jingke2000,
It's been a few years since you posted this, but I am also attempting to create a packager for HLS/Dash.
I saw in your other post you were referencing the ISO docs for encryption - which I also have a copy of.
I feel like I'm at a dead end or do not fully understand the spec - all outputs from Shaka/Bento4 and the similar seem to know something I don't - I am encrypting sub-samples in the 144/16 byte pattern (1:9), but just can't get a valid output. The outputs from the third party packagers seem to have completely arbitrary byte counts in their SENC boxes.
Did you in the end just use Shaka packager to encrypt your HLS material? Or do you have any suggestions for further reading for formatting cbcs HLS?
Many thanks
Post
Replies
Boosts
Views
Activity
Thanks Rico - FB14961066
Same.
Turns out I have to explicitely run processContentKeyRequest in the delegate; didn't need to in iOS 16.