How to decrypt video using FFmpeg?
12,120
Read this post
You should use -decryption_key as input option.
ffmpeg -decryption_key {key} -i {file} -max_muxing_queue_size 9999 d.mp4
Related videos on Youtube
![Peymon](https://lh3.googleusercontent.com/-_Z9BDlzzEIQ/AAAAAAAAAAI/AAAAAAAAKc0/LbHnaicgZcc/photo.jpg?sz=256)
Author by
Peymon
Updated on September 18, 2022Comments
-
Peymon almost 2 years
I've managed to encrypt my video files using the
ffmpeg
command below; however, I can't find a way to save the decrypted output.ffmpeg -i {file} -encryption_scheme cenc-aes-ctr -encryption_key {key} -encryption_kid {checksum} e.mp4
This post has an example for playing the video back using
ffplay
, which works, but I want to save the output to a file and want it done faster than normal playback speed.I also tried using
-decryption_key
, but I getError while decoding stream #0:0: Invalid data found
when processing input with this command
ffmpeg -i {file} -max_muxing_queue_size 9999 -decryption_key {key} d.mp4
-
Peter Tseng about 4 years
-max_muxing_queue_size
doesn't seem to speed it up though