标签: c video ffmpeg avi
我可以通过调用avcodec_encode_video函数使用libavcodec对视频帧进行编码。如何将这些编码的帧保存到AVI文件中?
avcodec_encode_video
答案 0 :(得分:3)
检查出来:
http://forum.doom9.org/archive/index.php/t-112286.html
我认为你必须打开文件进行二进制写入,在其中写入标题,并且同时将二进制帧放入其中。