1. <i id='XKKNC'><tr id='XKKNC'><dt id='XKKNC'><q id='XKKNC'><span id='XKKNC'><b id='XKKNC'><form id='XKKNC'><ins id='XKKNC'></ins><ul id='XKKNC'></ul><sub id='XKKNC'></sub></form><legend id='XKKNC'></legend><bdo id='XKKNC'><pre id='XKKNC'><center id='XKKNC'></center></pre></bdo></b><th id='XKKNC'></th></span></q></dt></tr></i><div id='XKKNC'><tfoot id='XKKNC'></tfoot><dl id='XKKNC'><fieldset id='XKKNC'></fieldset></dl></div>

      <small id='XKKNC'></small><noframes id='XKKNC'>

    2. <tfoot id='XKKNC'></tfoot>

      <legend id='XKKNC'><style id='XKKNC'><dir id='XKKNC'><q id='XKKNC'></q></dir></style></legend>
        • <bdo id='XKKNC'></bdo><ul id='XKKNC'></ul>

        使用 webengine 视频和音频编解码器

        时间:2023-08-05

          <small id='uJskS'></small><noframes id='uJskS'>

        1. <legend id='uJskS'><style id='uJskS'><dir id='uJskS'><q id='uJskS'></q></dir></style></legend>

              • <bdo id='uJskS'></bdo><ul id='uJskS'></ul>
                • <i id='uJskS'><tr id='uJskS'><dt id='uJskS'><q id='uJskS'><span id='uJskS'><b id='uJskS'><form id='uJskS'><ins id='uJskS'></ins><ul id='uJskS'></ul><sub id='uJskS'></sub></form><legend id='uJskS'></legend><bdo id='uJskS'><pre id='uJskS'><center id='uJskS'></center></pre></bdo></b><th id='uJskS'></th></span></q></dt></tr></i><div id='uJskS'><tfoot id='uJskS'></tfoot><dl id='uJskS'><fieldset id='uJskS'></fieldset></dl></div>
                  <tfoot id='uJskS'></tfoot>

                    <tbody id='uJskS'></tbody>
                  本文介绍了使用 webengine 视频和音频编解码器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  对于我的 PyQt5 项目,我使用的是 QWebEngineView,但某些视频,例如 .mp4 视频无法播放.我可以使用 pip 安装编解码器,或者通过 QApplication() 或类似的方式传递某个参数来解决此问题吗?

                  For my PyQt5 project, I am using the QWebEngineView, but certain videos, such as .mp4 videos won't play. Can I install the codecs with pip, or pass a certain argument through QApplication() or something similar in order to fix this problem?

                  我是通过pip安装PyQt5的,所以我没有C:Qt...文件,只有PyQt5, pyqt5_tools 文件夹在 AppdataLocalProgramsPythonPython37Libsite-packages.

                  I installed PyQt5 through pip, so I don't have the C:Qt... files, only the PyQt5, pyqt5_tools folders in AppdataLocalProgramsPythonPython37Libsite-packages.

                  我正在使用 Python 3.7.2PyQt5.11

                  推荐答案

                  pypi提供的pyqtwebengine没有开启use_proprietary_codecs标志,所以无法播放.mp4.

                  The pyqtwebengine provided by pypi does not enable the use_proprietary_codecs flag so you cannot play the .mp4.

                  如果你想获得一个播放 mp4 的 pyqtwebengine,你必须按照以下步骤操作:

                  If you want to get a pyqtwebengine that plays mp4 you must follow these steps:

                  1. 您必须使用 WEBENGINE_CONFIG += use_proprietary_codecs 标志编译 Qt 以启用播放 mp4 所需的编解码器(Qt WebEngine功能:音视频编解码器)

                  1. You must compile Qt with the WEBENGINE_CONFIG += use_proprietary_codecs flag to enable the codecs needed to play mp4(Qt WebEngine Features: Audio and Video Codecs)

                  然后使用那个Qt你必须编译pyqtwebengine.

                  Then using that Qt you must compile pyqtwebengine.

                  这篇关于使用 webengine 视频和音频编解码器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Qt 按钮样式从 ui 预览到原始窗口变化 下一篇:我想把文本放在 pyqt QCalendarWidget

                  相关文章

                  最新文章

                        <bdo id='wmqHQ'></bdo><ul id='wmqHQ'></ul>
                      <tfoot id='wmqHQ'></tfoot>
                    1. <i id='wmqHQ'><tr id='wmqHQ'><dt id='wmqHQ'><q id='wmqHQ'><span id='wmqHQ'><b id='wmqHQ'><form id='wmqHQ'><ins id='wmqHQ'></ins><ul id='wmqHQ'></ul><sub id='wmqHQ'></sub></form><legend id='wmqHQ'></legend><bdo id='wmqHQ'><pre id='wmqHQ'><center id='wmqHQ'></center></pre></bdo></b><th id='wmqHQ'></th></span></q></dt></tr></i><div id='wmqHQ'><tfoot id='wmqHQ'></tfoot><dl id='wmqHQ'><fieldset id='wmqHQ'></fieldset></dl></div>

                      <small id='wmqHQ'></small><noframes id='wmqHQ'>

                    2. <legend id='wmqHQ'><style id='wmqHQ'><dir id='wmqHQ'><q id='wmqHQ'></q></dir></style></legend>