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. QGraphicsVideoItem continuous repaint?
Forum Updated to NodeBB v4.3 + New Features

QGraphicsVideoItem continuous repaint?

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 947 Views 2 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    I would be surprised as well however it could be related to the platform backend itself that might be doing something like pushing the same frame over and over while in pause.

    I do not say it is that, just thinking out loud about what might be happening.

    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
    • nageshN Offline
      nageshN Offline
      nagesh
      wrote on last edited by
      #3

      @davecotter Does the application has timer instance running which is calling update ?

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

        nope, no timers that call update() (but i do have timers trying (and failing!) to do other things). you can see the same problem with "Video Graphics Item Example"

        just open any HD video (1920x1080), start playing it, pause it, and break into the debugger.

        you'll see it's wicked bizy rendering some pixels that it DEFINITELY doesn't need to

        1 Reply Last reply
        0
        • D Offline
          D Offline
          davecotter
          wrote on last edited by
          #5

          i also note that timers have a really hard time getting any cpu time while the video is playing.

          video plays all smooth, that's nice, but the rest of the app slows to a crawl.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            davecotter
            wrote on last edited by
            #6

            bug reported here, please upvote!

            1 Reply Last reply
            0
            • D Offline
              D Offline
              davecotter
              wrote on last edited by
              #7

              this is a horrible, show stopping problem, because timers don't fire when a video is playing.

              even a 648x480 video, tiny by today's standards, on a modern, powerful computer, the app's timers come to a screeching halt, when playing OR when paused playing.

              please upvote this bug, thanks.

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

                You should add a minimal compilable example to your report.

                Worth noting, the Qt Multimedia module is getting quite a big overhaul for Qt 6.2, you should check it out.

                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 Offline
                  D Offline
                  davecotter
                  wrote on last edited by
                  #9

                  @davecotter said in QGraphicsVideoItem continuous repaint?:

                  Video Graphics Item Example

                  the minimal example is "Video Graphics Item Example" which is included with Qt. just add a timer and watch it not fire.

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

                    Then at least tell that on the report.

                    That will help the developer that will take the report to reproduce your situation more easily.

                    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 Offline
                      D Offline
                      davecotter
                      wrote on last edited by
                      #11

                      i had said to use that example, but i have now added the tidbit about "add a timer"

                      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