音频解码
第一步:组册组件
- av_register_all();
第二步:打开封装格式->打开文件
- avformat_open_input();
第三步:查找音频流->拿到音频信息
- avformat_find_stream_info();
第四步:查找音频解码器
- 查找音频流索引位置
- 根据音频流索引,获取解码器上下文
- 根据解码器上下文,获得解码器ID,然后查找解码器
- avcodec_find_decoder();
第五步:打开音频解码器
- avcodec_open2();
本文标题:无标题文章
本文链接:https://www.haomeiwen.com/subject/pybdvxtx.html
网友评论