学习雷博士的文章
环境:Ubuntu 16.04.7
ffmpeg-6.1
1、下载雷博士测试代码
https://github.com/leixiaohua1020/simplest_ffmpeg_streamer
测试 simplest_ffmpeg_streamer/simplest_ffmpeg_streamer.cpp
程序流程图搬过来:

接口说明:
avformat_open_input()
打开输入文件,初始化输入视频码流的AVFormatContext
av_read_frame()
从输入文件中读取一个AVPacket
avformat_alloc_output_context2()
初始化输出视频码流的AVFor

最低0.47元/天 解锁文章
2298

被折叠的 条评论
为什么被折叠?



