Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After using mp4encrypt to encrypt an MP4 file with MPEG-CENC, the video cannot be played by dragging the progress bar. #985

Open
cderfv1 opened this issue Oct 24, 2024 · 1 comment

Comments

@cderfv1
Copy link

cderfv1 commented Oct 24, 2024

The source video needs to be a fragmented MP4 file. so first I convert mp4 to a fragmented file.mp4fragment:
./mp4fragment --index /mnt/c/test/zhz1.mp4 /mnt/c/test/zhz1-f.mp4

then:
./mp4encrypt --method MPEG-CENC --key 1:a0a1a2a3a4a5a6a7a8a9aaabacadaeaf:0123456789abcdef --property 1:KID:121a0fca0f1b475b8910297fa8e0a07e --key 2:a0a1a2a3a4a5a6a7a8a9aaabacadaeaf:aaaaaaaabbbbbbbb --property 2:KID:121a0fca0f1b475b8910297fa8e0a07e /mnt/c/test/zhz1-f.mp4 /mnt/c/test/zhz1-cenc.mp4

After dragging the progress bar, it will play for a long time. It looks like it's must decrypted from the first frame until the current frame.

I find the difference between the encrypted stream's sidx and the clear stream is very large.

20241024152427

HELP!

@cderfv1
Copy link
Author

cderfv1 commented Nov 6, 2024

why mp4encrypt required source video needs to be a fragmented MP4 file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant