ffmpeg---转码 from doc\examples\transcoding.c

雷霄骅的最简单的基于FFMPEG的转码程序—修改自 ffmpeg实例文档doc\examples\transcoding.c,仅主函数有变动(可能他用的旧版本原版?,与我用的新版本仅主函数有差异)

流程:
open_input_file
open_output_file
init_filters
while
{
	av_read_frame
	avcodec_decode_video2
	av_buffersrc_add_frame_flags + av_buffersink_get_frame
	avcodec_encode_video2
	av_interleaved_write_frame
}
flush filters and encoders
av_write_trailer
//雷霄骅中的filter_encode_write_frame()=filter处理+编码encode+写入write
发布了81 篇原创文章 · 获赞 1 · 访问量 2899

猜你喜欢

转载自blog.csdn.net/qq_42024067/article/details/104269369