Simultaneous fragmentation and video encoding FFMPEG

492 Views Asked by At

Good day! I encrypted and fragmented .mp4 video file, but after encryption, I can't decode it back. Could you tell me please what I'm doing wrong? Command, which I use to encrypt:

ffmpeg -i C:\ffmpeg-3.2.2-win64-static\111.mp4 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr -encryption_key 76a6c65c5ea762046bd749a2e632ccbb -encryption_kid a7e61c373e219033c21091fa607bf3b8 -g 52 -f mp4 -movflags frag_keyframe+empty_moov C:\ffmpeg-3.2.2-win64-static\result.mp4

Command, which I use to decode:

ffmpeg -decryption_key 76a6c65c5ea762046bd749a2e632ccbb -i C:\ffmpeg-3.2.2-win64-static\resultfragm.mp4 -max_muxing_queue_size 9999 C:\ffmpeg-3.2.2-win64-static\resultlast.mp4

Result:

Result image

0

There are 0 best solutions below