FFmpegMediaPlayer icon indicating copy to clipboard operation
FFmpegMediaPlayer copied to clipboard

How to play an MP4 encrypted with FFMPEG ?

Open CiaShangLin opened this issue 2 years ago • 2 comments
trafficstars

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

CiaShangLin avatar Oct 08 '23 15:10 CiaShangLin

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

wseemann avatar Dec 11 '23 23:12 wseemann

local

CiaShangLin avatar Dec 18 '23 08:12 CiaShangLin