diff options
author | Vadym Bezdushnyi <vadim.bezdush@gmail.com> | 2021-03-01 14:53:48 +0200 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2021-06-29 18:20:17 +0530 |
commit | b74beba9a9a317caa7ac973cb76cc6ab0ade7667 (patch) | |
tree | ff456aafea3cbc97c74fde44a08edb6b6606cf58 /libavformat/ast.c | |
parent | 9ca88b3befef5608dd2a58d08f3aabcd0b475f95 (diff) | |
download | ffmpeg-b74beba9a9a317caa7ac973cb76cc6ab0ade7667.tar.gz |
avformat/movenc: Support encryption of H.265 stream in AnnexB format
Steps to test:
1. Create h265 test files - mp4 and h265 AnnexB streams:
ffmpeg -f lavfi -i testsrc=duration=10:size=640x480:rate=30 -c:v hevc input_h265.mp4
ffmpeg -f lavfi -i testsrc=duration=10:size=640x480:rate=30 -c:v hevc -bsf:v hevc_mp4toannexb input_h265.h265
2. Encrypt and decrypt files. Put appropriate input file name here: input_h265.mp4 or input_h265.h265
ffmpeg -i input_h265.h265 -vcodec copy -acodec copy -encryption_scheme cenc-aes-ctr \
-encryption_key 00000000000000000000000000000000 -encryption_kid 00000000000000000000000000000000 \
encrypted_h265.mp4
ffplay -i encrypted_h265.mp4 -decryption_key 00000000000000000000000000000000
Signed-off-by: Vadym Bezdushnyi <vadim.bezdush@gmail.com>
Diffstat (limited to 'libavformat/ast.c')
0 files changed, 0 insertions, 0 deletions