Skip to content

Usage of decrypt-cenc for an encrypted DASH Stream #205

Closed Answered by tobbee
completafurdc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @completafurdc,

Thanks for trying out the software. The example code is named so to signal that it is rather specific code, and may not be able to handle arbitrary input.

From you description, it is hard to know what goes wrong, but the error message indicates that the decoder is trying to read too far in the mdat box. That is the part of the media file that contains the (encrypted) media. Why it reads too far is hard to tell without further analysis, but it may be due to some offset not being handled properly.

One weak point in the code is the geting the offset decryptSamplesInPlace as described in the TODO comments. That may be related.

You may also want to check if the tool mp4ff-info

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tobbee
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants