FFMPEG 图片转AVFrame
图片合成视频时需要将图片编码转换相应视频的编码以下是将png转换为YUV420p的AVFrameAVFrame* openImageToFrame(const char* imageFileName){ AVFormatContext *pFormatCtx= NULL; if(avformat_open_input(&(pFormatCtx), imageFileName, NULL, NULL)!=0){ printf("Can't open image
原创
2021-11-09 11:29:28 ·
2285 阅读 ·
1 评论