Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Media player
QtWS25 Last Chance

Media player

Scheduled Pinned Locked Moved Solved QML and Qt Quick
12 Posts 4 Posters 2.7k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Item {
    MediaPlayer {
    id: mediaplayer
    source: "/videos/video.mp4"
    }

          VideoOutput {
              anchors.fill: parent
              source: mediaplayer
          }
    
          MouseArea {
              id: playArea
              anchors.fill: parent
              onPressed: mediaplayer.play();
          }
      }
    

    while running this code i am getting following error, can someone tell me, what's this ?

    DirectShowPlayerService::doRender: Unresolved error code 0x8004022a ()

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DavidM29
      wrote on last edited by DavidM29
      #2

      It's probably a codec problem. Can you try with another video format to see if there is any change. A format that is kind of standard for your OS.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        I tried with other format also, showing the same error.

        D 1 Reply Last reply
        0
        • D Offline
          D Offline
          DavidM29
          wrote on last edited by
          #4

          @Bhushan99
          You can try to install K-Lite Codec Pack as suggested in this bug report : https://bugreports.qt.io/browse/QTMOBILITY-1461

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            @Bhushan99 said in Media player:

            source: "/videos/video.mp4"

            Since you have a DirectShow error, you are likely running on Windows, that path looks a bit strange, where exactly do you have video.mp4 on your computer ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            ? 1 Reply Last reply
            0
            • ? A Former User

              I tried with other format also, showing the same error.

              D Offline
              D Offline
              Devopia53
              wrote on last edited by
              #6

              @Bhushan99

              Most the doRender() errors occur when there is no suitable filter or codec for the media.

              0x8004022A: This pin cannot use the supplied media type.

              As @DavidM29 says, install the codec first.

              1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                @Bhushan99 said in Media player:

                source: "/videos/video.mp4"

                Since you have a DirectShow error, you are likely running on Windows, that path looks a bit strange, where exactly do you have video.mp4 on your computer ?

                ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                @SGaist i have added video in a project folder.

                D 1 Reply Last reply
                0
                • ? A Former User

                  @SGaist i have added video in a project folder.

                  D Offline
                  D Offline
                  DavidM29
                  wrote on last edited by
                  #8

                  @Bhushan99
                  Do you have a qrc file associated with it ?

                  ? 1 Reply Last reply
                  0
                  • D DavidM29

                    @Bhushan99
                    Do you have a qrc file associated with it ?

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #9

                    @DavidM29 in qml.qrc , i have two folders, one folder contains main.qml and another contain a video

                    1 Reply Last reply
                    0
                    • D Offline
                      D Offline
                      DavidM29
                      wrote on last edited by
                      #10

                      Did you try to install the codec ?

                      ? 1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        That’s not a valid qrc path.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • D DavidM29

                          Did you try to install the codec ?

                          ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #12

                          @DavidM29 It worked, after installing codec, Thank you. :)

                          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