我可以使用ffmpeg构建铬以支持所有视频格式吗?

编程入门 行业动态 更新时间:2024-10-20 09:28:03
本文介绍了我可以使用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构建铬以支持所有视频格式吗?

本文发布于:2023-11-05 08:05:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1560309.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以使用   视频格式   ffmpeg

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!