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. QML Video plays mp4 video flipped (upside down) on Qt5.2 Mac OS

QML Video plays mp4 video flipped (upside down) on Qt5.2 Mac OS

Scheduled Pinned Locked Moved QML and Qt Quick
9 Posts 7 Posters 5.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.
  • S Offline
    S Offline
    SlashP
    wrote on last edited by
    #1

    I've built example 'qmlvideo' on Qt 5.2 on Mac OS X 10.8. In this example video plays in QML Video item. File in MP4 container (H264/AAC). And it plays flipped (upside down), not rotated on 180.
    Built 'video' example (on QtWidgets, plays in QVideoWidget). And this example plays video normally.
    Also, I've built qmlvideo on Qt 5.1.1. In this case same mp4 file plays normally too.
    Does anyone know about this problem? Is it a bug of Qt 5.2 or something else?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Adrien Leravat
      wrote on last edited by
      #2

      Hi,

      I have the same problem with Qt5.1.1, on Windows 7 64, with an .avi video. Not what I would expect :).

      Adeneo Embedded - www.adeneo-embedded.com

      1 Reply Last reply
      0
      • A Offline
        A Offline
        atish.nazir
        wrote on last edited by
        #3

        Seeing exactly the same thing on my own app on Mac. Is there a ticket raised?

        @
        import QtQuick 2.0
        import QtMultimedia 5.0

        Rectangle {
        width: 360
        height: 360

        MediaPlayer {
            id: mediaplayer
            source: "/abs/path/movie.mp4"
            autoPlay: true
            autoLoad: true
            }
        
        VideoOutput
        {
            x: 0
            y: 0
            width: 360
            height: 360
            source: mediaplayer
        }
        

        }
        @

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SlashP
          wrote on last edited by
          #4

          Built 5.2.1 from git. Same problem.
          !http://www.parygin.com/qt5-video.png(Example of flipped video)!

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

            Hi,

            The best way to check if it's a known problem is to look at the "bug report system":http://bugreports.qt-project.org

            Providing a simple compilable example would really be a plus

            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
            • S Offline
              S Offline
              SlashP
              wrote on last edited by
              #6

              As I told before, I've used examples from Qt. You can find code there.
              And, I've posted about this problem on bug tracker yesterday.
              This screenshot is more descriptive:
              !http://www.parygin.com/qt5-bug.png(Flipped video)!
              Top window uses QWidget and bottom uses QML.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                prsolucoes
                wrote on last edited by
                #7

                Hi,

                I have the same problem here :(

                On QML player (from Qt examples) the video is flipped but on normal player out of QML the video works.

                Can anyone help?

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  guatedude2
                  wrote on last edited by
                  #8

                  I still see this happening on Qt5.3.
                  @
                  import QtQuick 2.0
                  import QtMultimedia 5.0

                  Rectangle {
                  width: 800
                  height: 600
                  Video{
                  id: player
                  width: parent.width
                  height: parent.height
                  source: "test.mpg"
                  }
                  MouseArea{
                  anchors.fill: parent
                  onClicked: {
                  if (player.playbackState==MediaPlayer.PlayingState){
                  player.stop()
                  console.log("STOP")
                  }else{
                  player.play()
                  console.log("PLAY")
                  }
                  }
                  }
                  }
                  @

                  Running on OSX 10.9 - Qt 5.3

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    md612
                    wrote on last edited by
                    #9

                    I have the same problem on the android platform.

                    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