在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构建铬以支持所有视频格式吗?
发布评论