FFMPEG -- avformat_alloc_output_context2

avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, filename);

avformat_alloc_output_context2 负责分配输出 AVFormatContext。
ffmpeg有各种各样的 Context ,其功能是管理各种各样的模块。
例如有一个输出文件:test.mp4,使用 avformat_alloc_output_context2 函数就可以根据文件名分配合适的 AVFormatContext 管理结构

猜你喜欢

转载自blog.csdn.net/hwx802746/article/details/113744498