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. qt sample of player: win10 and ubuntu show different .
Forum Updated to NodeBB v4.3 + New Features

qt sample of player: win10 and ubuntu show different .

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 419 Views 3 Watching
  • 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.
  • W Offline
    W Offline
    Wang.Mr
    wrote on last edited by aha_1980
    #1

    qt sample of player ,Normal in Windows 10, but error in Ubuntu.
    win10: win10.png
    Ok.
    Ubuntu: ubunt.png Fault.What parameters do I need to change in Ubuntu?
    Who can help me out?

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      I understand what causes these types of errors but it doesn't help your problem. What happens if you reencode the video source using a different codec? go from h264 to MJPEG or divx or raw yuv? What is the codec type of the original clip?

      1 Reply Last reply
      2
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by
        #3

        Another thing you should do is to view the clip in linux using vlc or mplayer or ffplay directly. That will let you know if the problem is the clip, vlc, or the Qt media module. IIRC, vlc is the default backend media processor in Qt/Linux.

        SGaistS 1 Reply Last reply
        -1
        • Kent-DorfmanK Kent-Dorfman

          Another thing you should do is to view the clip in linux using vlc or mplayer or ffplay directly. That will let you know if the problem is the clip, vlc, or the Qt media module. IIRC, vlc is the default backend media processor in Qt/Linux.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Kent-Dorfman no, QtMultimedia uses GStreamer on Linux.

          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
          2
          • W Offline
            W Offline
            Wang.Mr
            wrote on last edited by
            #5

            Thanks Kent-Dorfman! Thanks SGaist!
            It's ok for me to play the other files in player.The difference between these files is that the abnormal files have an odd width and the others are even.I don't think that's the reason, but that's the only difference.And, when I convert qt_imageFromVideoFrame to image, only this file gets an exception.So, is it true that when you use qt_imageFromVideoFrame, the width cannot be odd and must be a multiple of 4?

            1 Reply Last reply
            0
            • W Offline
              W Offline
              Wang.Mr
              wrote on last edited by
              #6

              Anybody know why?

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

                I must say that I haven't seen an odd sized video for a long time. Is it possible to share that file or at least a clip of it ?

                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

                • Login

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