<p>更多音视频分享,腾讯课堂搜索零声教育</p><p>
</p><p>FFmpeg6.0相比于FFmpeg4.2的ffplay差别不大,主要是avpacket queue的修改,FFmpeg6.0采用AVFifo代替了 apcket_queue。</p><p>
</p><p>以下是大体的修改:</p><p>
</p><ul><li><p>#include "config_components.h" 新增组件配置</p></li><li><p>#include "libavutil/channel_layout.h" 独立的audio channel描述</p></li><li><p>#include "libavutil/fifo.h" 新的av fifo接口</p></li><li><p>#include "libavutil/bprint.h" 打印相关av_bprint_finalize</p></li><li><p>#include "opt_common.h" 通用的命令行参数设置</p></li><li><p>使用avfio做packet队列</p></li></ul><p class="image-package"><img class="uploaded-img" src="https://img.haomeiwen.com/i12119754/afb8d7f8de26a59a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"/></p><p>
</p><ul><li><p>通道数量和通道布局放在了同一个结构</p></li></ul><p class="image-package"><img class="uploaded-img" src="https://img.haomeiwen.com/i12119754/8a7d0c4009f75eb3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"/></p><p>
</p><ul><li><p>取消了flush_pkt</p></li></ul><p class="image-package"><img class="uploaded-img" src="https://img.haomeiwen.com/i12119754/7e9d022333660e58.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"/></p><ul><li><p>flush包是调用者自己去构建</p></li></ul><p class="image-package"><img class="uploaded-img" src="https://img.haomeiwen.com/i12119754/de43a3796ff0637e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"/></p><p>
</p><ul><li><p>音频的表示</p></li></ul><p class="image-package"><img class="uploaded-img" src="https://img.haomeiwen.com/i12119754/f1cfa0b5914ffca8.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"/></p><p>
</p><p>
</p><ul><li><p>audio_decode_frame,重采样api使用swr_alloc_set_opts2</p></li></ul><p class="image-package"><img class="uploaded-img" src="https://img.haomeiwen.com/i12119754/e7e3d1c53da3f33c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width="auto" height="auto"/></p><p>
</p><p>
</p>
网友评论