我可以使用ffmpeg构建铬以支持所有视频格式吗? [英] Can I build chromium with ffmpeg to support all video formats?

查看:163
本文介绍了我可以使用ffmpeg构建铬以支持所有视频格式吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Qt5.2版本下,我使用了QtWebView,它可以自动调用第三方扩展,以支持avi,mpeg,mov和flv等视频格式。但是,当我升级到Qt5.10并将QtWebView更改为QtWebengineView时,它的工作方式有所不同,因此我无法调用第三方扩展。如果要使用ffmpeg修改铬源以支持QtWebengine的所有视频格式,应该怎么做?

Under version Qt5.2, I used QtWebView, it can call third-party extensions automatically to support video formats such as avi, mpeg, mov and flv. But when I upgraded to Qt5.10 and changed QtWebView to QtWebengineView, it worked differently and I couldn't call third-party extensions. If I want to modify chromium source with ffmpeg to support all video formats for QtWebengine, what should I do?

推荐答案

对于QtWebEngine全部您需要做的是使用-proprietary-codecs(< Qt 5.12)或-webengine-proprietary-codecs(Qt 5.12+)配置Qt以启用专有编解码器

For QtWebEngine all you need to do is configure Qt to enable proprietary codecs using -proprietary-codecs (< Qt 5.12) or -webengine-proprietary-codecs (Qt 5.12+)

如果您还可以通过-system-webengine-ffmpeg进行配置,同时还将使用系统FFmpeg及其支持的所有编解码器。它仍然不支持Chrome不支持的任何容器格式。

If you additional configure with -system-webengine-ffmpeg you will also use the system FFmpeg with all the codecs it supports. It still won't support any container formats Chrome doesn't though.

这篇关于我可以使用ffmpeg构建铬以支持所有视频格式吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆