Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMediaPlayer defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" in Windows

QMediaPlayer defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" in Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 762 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.
  • EmrecpE Offline
    EmrecpE Offline
    Emrecp
    wrote on last edited by
    #1

    Hello,
    Trying to play video in Windows Server 2012 R2 but
    i get this error: defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
    I tried to install K-Lite_Codec_Pack_1516_Mega but it did not help.

    error.png

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      It needs to be DirectShow codecs.
      Not sure server 2012 has any directx.
      At least not the core version.

      So first check it it has directx.

      This also might add some
      https://www.mediaplayercodecpack.com/lite/
      However, I have not tried that on a server version so please be carefull.
      (oh a virtual machine. Then just take snapshot and try :)

      EmrecpE 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        It needs to be DirectShow codecs.
        Not sure server 2012 has any directx.
        At least not the core version.

        So first check it it has directx.

        This also might add some
        https://www.mediaplayercodecpack.com/lite/
        However, I have not tried that on a server version so please be carefull.
        (oh a virtual machine. Then just take snapshot and try :)

        EmrecpE Offline
        EmrecpE Offline
        Emrecp
        wrote on last edited by
        #3

        @mrjj still there is problem. Directx 11 installed and this codec did not help.

        mrjjM 1 Reply Last reply
        0
        • EmrecpE Emrecp

          @mrjj still there is problem. Directx 11 installed and this codec did not help.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @Emrecp
          Ok. it was worth a shot.
          what codec is the video encoded with?
          MKV will not work as far as i know.

          EmrecpE 1 Reply Last reply
          0
          • mrjjM mrjj

            @Emrecp
            Ok. it was worth a shot.
            what codec is the video encoded with?
            MKV will not work as far as i know.

            EmrecpE Offline
            EmrecpE Offline
            Emrecp
            wrote on last edited by
            #5

            @mrjj said in QMediaPlayer defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" in Windows:

            Ok. it was worth a shot.
            what codec is the video encoded with?

            They are youtube videos. Link creating with pafy.
            https://pypi.org/project/pafy/

            mrjjM 1 Reply Last reply
            0
            • EmrecpE Emrecp

              @mrjj said in QMediaPlayer defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" in Windows:

              Ok. it was worth a shot.
              what codec is the video encoded with?

              They are youtube videos. Link creating with pafy.
              https://pypi.org/project/pafy/

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Emrecp
              So is that using the RMTP streaming protocol or do you download an actual file ?

              EmrecpE 1 Reply Last reply
              0
              • mrjjM mrjj

                @Emrecp
                So is that using the RMTP streaming protocol or do you download an actual file ?

                EmrecpE Offline
                EmrecpE Offline
                Emrecp
                wrote on last edited by
                #7

                @mrjj no downloading.
                Here is the code: self.mediaPlayer.setMedia(QMediaContent(QUrl(URL)))

                1 Reply Last reply
                0
                • EmrecpE Offline
                  EmrecpE Offline
                  Emrecp
                  wrote on last edited by
                  #8

                  Problem NOT solved. Help pls.

                  1 Reply Last reply
                  0
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi
                    I dont think its able to play the format using streaming or whatever the pafy does/produces.
                    Maybe you can use qt-VLC instead. if bindings for python exists.

                    EmrecpE 1 Reply Last reply
                    0
                    • mrjjM mrjj

                      Hi
                      I dont think its able to play the format using streaming or whatever the pafy does/produces.
                      Maybe you can use qt-VLC instead. if bindings for python exists.

                      EmrecpE Offline
                      EmrecpE Offline
                      Emrecp
                      wrote on last edited by
                      #10

                      @mrjj said in QMediaPlayer defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer" in Windows:

                      qt-VLC

                      This is sad. Thanks for everything :)

                      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