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. error while trying to play mov file using QtMultimedia
Forum Updated to NodeBB v4.3 + New Features

error while trying to play mov file using QtMultimedia

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 329 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.
  • D Offline
    D Offline
    DForDJ
    wrote on last edited by
    #1

    Video {
    id: video
    width : 800
    height : 600
    source: "file:///home/user/test.mov"

        MouseArea {
            anchors.fill: parent
            onClicked: {
                video.play()
            }
        }
    
        focus: true
        Keys.onSpacePressed: video.playbackState == MediaPlayer.PlayingState ? video.pause() : video.play()
        Keys.onLeftPressed: video.position = video.position - 5000
        Keys.onRightPressed: video.position = video.position + 5000
    }
    

    when trying to run this piece of code I am getting an error of

    qt.multimedia.player: Warning: "No decoder available for type 'video/x-rle, layout=(string)quicktime, depth=(int)32, width=(int)3840, height=(int)2160, framerate=(fraction)24000/1001, pixel-aspect-ratio=(fraction)1/1'."

    can anyone shed tell me what is the reason?

    JoeCFDJ 1 Reply Last reply
    0
    • D DForDJ

      Video {
      id: video
      width : 800
      height : 600
      source: "file:///home/user/test.mov"

          MouseArea {
              anchors.fill: parent
              onClicked: {
                  video.play()
              }
          }
      
          focus: true
          Keys.onSpacePressed: video.playbackState == MediaPlayer.PlayingState ? video.pause() : video.play()
          Keys.onLeftPressed: video.position = video.position - 5000
          Keys.onRightPressed: video.position = video.position + 5000
      }
      

      when trying to run this piece of code I am getting an error of

      qt.multimedia.player: Warning: "No decoder available for type 'video/x-rle, layout=(string)quicktime, depth=(int)32, width=(int)3840, height=(int)2160, framerate=(fraction)24000/1001, pixel-aspect-ratio=(fraction)1/1'."

      can anyone shed tell me what is the reason?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      @DForDJ said in error while trying to play mov file using QtMultimedia:

      video/x-rle

      The decoder is not installed. WIndows or Linux?

      D 1 Reply Last reply
      1
      • JoeCFDJ JoeCFD

        @DForDJ said in error while trying to play mov file using QtMultimedia:

        video/x-rle

        The decoder is not installed. WIndows or Linux?

        D Offline
        D Offline
        DForDJ
        wrote on last edited by
        #3

        @JoeCFD it's linux and thanks for the replay,

        I used :
        $ sudo apt install ubuntu-restricted-extras
        and
        $ sudo apt install libdvdnav4 libdvd-pkg gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
        to install the decoders and now it's working fine

        1 Reply Last reply
        0
        • D DForDJ has marked this topic as solved on

        • Login

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