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

How to play an MP4 encrypted with FFMPEG ? #166

Open
CiaShangLin opened this issue Oct 8, 2023 · 2 comments
Open

How to play an MP4 encrypted with FFMPEG ? #166

CiaShangLin opened this issue Oct 8, 2023 · 2 comments

Comments

@CiaShangLin
Copy link

How to play an MP4 encrypted with FFMPEG ?

By using the following FFMPEG command, I encrypted an MP4 file, and it can be decrypted and played using ffplay. Is there a way to pass this key to FFmpegMediaPlayer?

ffmpeg -i decryption.mp4 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key c7e16c4403654b85847037383f0c2db3 -encryption_kid a7e61c373e219033c21091fa607bf3b8 encryption.mp4

ffplay -i encryption.mp4 -decryption_key c7e16c4403654b85847037383f0c2db3

@wseemann
Copy link
Owner

@CiaShangLin is it a local file (on internal/external storage) or over the network?

@CiaShangLin
Copy link
Author

local

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

2 participants