Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QtWebEngine compilation with proprietary codecs doesn't work
Forum Updated to NodeBB v4.3 + New Features

QtWebEngine compilation with proprietary codecs doesn't work

Scheduled Pinned Locked Moved Solved QtWebEngine
11 Posts 6 Posters 10.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maximus
    wrote on last edited by
    #2

    I would be interested to know if you fixed the issue.
    I am also trying to recompile for Netflix support.
    Would be nice if you could only copy the codecs/plugins to our application instead of rebuilding every time from source.


    Free Indoor Cycling Software - https://maximumtrainer.com

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maximus
      wrote on last edited by maximus
      #3

      Any update on this?
      Or a guide on how to build QWebEngine with propretary codecs? I find hard to get the information for that.

      New framework Electron is much easier to use, no need to recompile, for anyone interested
      https://electron.atom.io/docs/tutorial/using-widevine-cdm-plugin/


      Free Indoor Cycling Software - https://maximumtrainer.com

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Basto
        wrote on last edited by
        #4

        Hello,

        I fixed the issue and I posted the solution on stack. I'm sorry I forgot I posted my bug in here too.

        https://stackoverflow.com/questions/41611445/unable-to-get-mp3-support-with-qtwebengine

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lipqil
          wrote on last edited by lipqil
          #5

          Hi,
          I do exactly what is explaining on this link https://stackoverflow.com/questions/41611445/unable-to-get-mp3-support-with-qtwebengine

          when I execute:
          C:\Qt\5.7\msvc2015\bin\qmake WEBENGINE_CONFIG+=use_proprietary_codecs

          I have on return:
          Proprietary codecs (H264, MP3).... Enabled
          Geolocation....................... Enabled

          But, on the command: nmake
          I have on return some error:
          Qt5WebView_resource.rc(1) : fatal error RC1015: cannot open include file 'windows.h'.
          NMAKE : fatal error U1077: '"C:\Program Files (x86)\Windows Kits\10\bin\x86\rc.EXE"' : code retour '0x1'
          Stop.
          NMAKE : fatal error U1077: 'D:\InstallationApplis\VisualStudio2015\VC\bin\nmake.exe' : code retour '0x2'
          Stop.
          NMAKE : fatal error U1077: 'cd' : code retour '0x2'
          Stop.
          NMAKE : fatal error U1077: 'cd' : code retour '0x2'
          Stop.

          Is there any other way to integrate mp3 and mp4 codecs into qtwebengine?

          A 1 Reply Last reply
          0
          • L lipqil

            Hi,
            I do exactly what is explaining on this link https://stackoverflow.com/questions/41611445/unable-to-get-mp3-support-with-qtwebengine

            when I execute:
            C:\Qt\5.7\msvc2015\bin\qmake WEBENGINE_CONFIG+=use_proprietary_codecs

            I have on return:
            Proprietary codecs (H264, MP3).... Enabled
            Geolocation....................... Enabled

            But, on the command: nmake
            I have on return some error:
            Qt5WebView_resource.rc(1) : fatal error RC1015: cannot open include file 'windows.h'.
            NMAKE : fatal error U1077: '"C:\Program Files (x86)\Windows Kits\10\bin\x86\rc.EXE"' : code retour '0x1'
            Stop.
            NMAKE : fatal error U1077: 'D:\InstallationApplis\VisualStudio2015\VC\bin\nmake.exe' : code retour '0x2'
            Stop.
            NMAKE : fatal error U1077: 'cd' : code retour '0x2'
            Stop.
            NMAKE : fatal error U1077: 'cd' : code retour '0x2'
            Stop.

            Is there any other way to integrate mp3 and mp4 codecs into qtwebengine?

            A Offline
            A Offline
            asht
            wrote on last edited by
            #6

            @lipqil
            CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

            to remove above error.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              maximus
              wrote on last edited by maximus
              #7

              I just recompiled QtWebEngine on latest 5.9.3
              Compile show the flag is on, but when I run my app, I still have the error message on netflix..
              I added the widevinecdm.dll and widevinecdmadapter.dll close to my executable.

              C:\Qt\Qt5.9.3\5.9.3\Src\qtwebengine>C:\Qt\Qt5.9.3\5.9.3\msvc2015\bin\qmake WEBENGINE_CONFIG+=use_proprietary_codecs

              Running configuration tests...
              Done running configuration tests.

              Configure summary:

              Qt WebEngine:
              Embedded build ......................... no
              Pepper Plugins ......................... yes
              Printing and PDF ....................... yes
              Proprietary Codecs ..................... yes
              Spellchecker ........................... yes
              WebRTC ................................. yes
              Using system ninja ..................... no

              screenshot:
              https://www.dropbox.com/s/t16k2co1zg0k24q/netflix.png?dl=

              Also added this to my .pro file:
              QTWEBENGINE_CHROMIUM_FLAGS="--always-authorize-plugins --register-pepper-plugins="/plugins/ppapi/widevinecdmadapter.dll; application/x-ppapi-widevine-cdm""
              WEBENGINE_CONFIG+=use_proprietary_codecs

              I wish there was one clear guide on how to do all this.
              I have to refer to an old blog and the information is all scattered..
              A real guide should not be a blog and would need to have all steps -_-


              Free Indoor Cycling Software - https://maximumtrainer.com

              D 1 Reply Last reply
              0
              • M Offline
                M Offline
                maximus
                wrote on last edited by
                #8

                Just to finish, my problem was the version of widevine was incompatible (recent one are not working for some reason)
                was really hard to debug but finally found it with trial an error :)

                See:
                https://forum.qt.io/topic/85805/qtwebengine-register-pepper-plugins


                Free Indoor Cycling Software - https://maximumtrainer.com

                1 Reply Last reply
                2
                • M maximus

                  I just recompiled QtWebEngine on latest 5.9.3
                  Compile show the flag is on, but when I run my app, I still have the error message on netflix..
                  I added the widevinecdm.dll and widevinecdmadapter.dll close to my executable.

                  C:\Qt\Qt5.9.3\5.9.3\Src\qtwebengine>C:\Qt\Qt5.9.3\5.9.3\msvc2015\bin\qmake WEBENGINE_CONFIG+=use_proprietary_codecs

                  Running configuration tests...
                  Done running configuration tests.

                  Configure summary:

                  Qt WebEngine:
                  Embedded build ......................... no
                  Pepper Plugins ......................... yes
                  Printing and PDF ....................... yes
                  Proprietary Codecs ..................... yes
                  Spellchecker ........................... yes
                  WebRTC ................................. yes
                  Using system ninja ..................... no

                  screenshot:
                  https://www.dropbox.com/s/t16k2co1zg0k24q/netflix.png?dl=

                  Also added this to my .pro file:
                  QTWEBENGINE_CHROMIUM_FLAGS="--always-authorize-plugins --register-pepper-plugins="/plugins/ppapi/widevinecdmadapter.dll; application/x-ppapi-widevine-cdm""
                  WEBENGINE_CONFIG+=use_proprietary_codecs

                  I wish there was one clear guide on how to do all this.
                  I have to refer to an old blog and the information is all scattered..
                  A real guide should not be a blog and would need to have all steps -_-

                  D Offline
                  D Offline
                  dr_W
                  wrote on last edited by
                  #9

                  @maximus Have you solved the problem?Is there a complete step reference?

                  M 1 Reply Last reply
                  0
                  • D dr_W

                    @maximus Have you solved the problem?Is there a complete step reference?

                    M Offline
                    M Offline
                    maximus
                    wrote on last edited by
                    #10

                    @dr_W

                    See other topic :)
                    it's working for me on OSX and Windows with the latest alpha version
                    remember to use the same widevine version (Chromium version vs the one you take in Chrome)


                    Free Indoor Cycling Software - https://maximumtrainer.com

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      Dardanboy
                      wrote on last edited by
                      #11

                      I created a new topic on stackoverflow with step by step on how to do this (I lost 5 days to find these so I wanted to save others people time):

                      https://stackoverflow.com/questions/50510457/how-to-compile-qt-webengine-5-11-on-windows-with-proprietary-codecs/

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved