FFmpeg使用libavformat/movenccenc.h中定义的函数支持视频加密。但是,关于如何使用库函数,没有足够的文档。
例如:在函数中:
int ff_mov_cenc_init (
MOVMuxCencContext *ctx,
uint8_t *encryption_key,
int use_subsamples,
int bitexact);什么是MOVMuxCencContext?
如果我想在这个任务中使用C/C++,我应该如何进行视频加密?
致以问候。
发布于 2020-06-12 07:06:22
这个文件movenccenc.c/h实际上是mov mp4 muxer movenc.c的助手。根据movenc.c,由该参数触发的加密机制:
{ "encryption_scheme", "Configures the encryption scheme, allowed values are none, cenc-aes-ctr", offsetof(MOVMuxContext, encryption_scheme_str), AV_OPT_TYPE_STRING, {.str = NULL}, .flags = AV_OPT_FLAG_ENCODING_PARAM },目前只允许值为(string) "cenc-aes-ctr"。
希望这能有所帮助。
https://stackoverflow.com/questions/62323527
复制相似问题