随笔分类 - FFmpeg
摘要:AVStream 是一个结构体 //在AVFormatContext中的流索引 iint index; //流id,例如音频流id 视频流id等; //解封装的时候,由libavformat模块来赋值 //加封装的时候,由用户设置,如果未设置,则用libavformat替换 int id; //这是
阅读全文
摘要:AVFormatContext 是一个结构体 //用于日志记录和 avoptions类的引用。由avformat_alloc_context () 赋值。导出(de)muxer私有选项(如果存在的话)。 const AVClass *av_class; //输入容器的格式,只有在解封装的时候,由av
阅读全文
摘要:涉及到的函数: void av_register_all(void): 1)初始化libavformat并且注册所有的封装器和解封装器跟协议。 2)如果没有调用该函数,你可以选择你想要支持的格式。 @see av_register_input_format() @see av_register_ou
阅读全文
摘要:avcodec_send_packet(AVCodecContext *avctx, const AVPacket *avpkt): 1)将原始数据包作为解码器的输入 2)该函数在内部会复制AVCodecContext的相关字段(具体有哪些字段,起什么用,俺也不知道。。。),这些字段会影响每个包的解
阅读全文
摘要:AVFrame: 1)存储解码后的音频数据或视频数据. 2)AVFrame必须由av_frame_alloc() 来创建(Note:这只是用来创建AVFrame自身的内存空间,AVFrame结构体中的数据缓冲区,必须由其他方法来管理) 3)AVFrame必须由av_frame_free来释放 4)A
阅读全文

浙公网安备 33010602011771号