Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Multimedia
  4. QVideoSink::videoFrameChanged not fired when dragging application window

QVideoSink::videoFrameChanged not fired when dragging application window

Scheduled Pinned Locked Moved Unsolved Qt Multimedia
11 Posts 4 Posters 476 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.
  • N Offline
    N Offline
    Nils Petter Skalerud
    wrote on last edited by
    #2

    This sounds like a bug to me. We'd need more information about your environment, platform and Qt version in order to investigate. Could you please file a bug report at the following bug tracker? https://bugreports.qt.io/

    Please include information such include information such as:

    • Platform (WIndows, Linux, Android...)
    • Qt version
    • Qt Multimedia media backend being used (FFmpeg, gstreamer, native)
    • If it's a mobile or embedded device, please also include the model description.
    B 1 Reply Last reply
    0
    • N Nils Petter Skalerud

      This sounds like a bug to me. We'd need more information about your environment, platform and Qt version in order to investigate. Could you please file a bug report at the following bug tracker? https://bugreports.qt.io/

      Please include information such include information such as:

      • Platform (WIndows, Linux, Android...)
      • Qt version
      • Qt Multimedia media backend being used (FFmpeg, gstreamer, native)
      • If it's a mobile or embedded device, please also include the model description.
      B Offline
      B Offline
      BrianL
      wrote on last edited by
      #3

      @Nils-Petter-Skalerud It seems like I am not authorized to create a bug, it asked me to log in but I was already logged in.

      But here are the requested information:

      • Platform: Windows
      • Qt Version: 6.10.0
      • Qt Multimedia media backend: I'm unsure about this one, is there somewhere I can check this?
      jsulmJ 1 Reply Last reply
      0
      • B BrianL

        @Nils-Petter-Skalerud It seems like I am not authorized to create a bug, it asked me to log in but I was already logged in.

        But here are the requested information:

        • Platform: Windows
        • Qt Version: 6.10.0
        • Qt Multimedia media backend: I'm unsure about this one, is there somewhere I can check this?
        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @BrianL said in QVideoSink::videoFrameChanged not fired when dragging application window:

        Qt Multimedia media backend: I'm unsure about this one, is there somewhere I can check this?

        You can set QT_DEBUG_PLUGINS env variable before starting your app and see which plug-ins are loaded.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        B 1 Reply Last reply
        0
        • jsulmJ jsulm

          @BrianL said in QVideoSink::videoFrameChanged not fired when dragging application window:

          Qt Multimedia media backend: I'm unsure about this one, is there somewhere I can check this?

          You can set QT_DEBUG_PLUGINS env variable before starting your app and see which plug-ins are loaded.

          B Offline
          B Offline
          BrianL
          wrote on last edited by
          #5

          @jsulm

          qt.core.plugin.factoryloader: checking directory path "C:/Qt6/6.10.0/mingw_64/plugins/multimedia" ...
          qt.core.plugin.factoryloader: looking at "ffmpegmediaplugin.dll"
          qt.core.plugin.loader: Found metadata in lib C:/Qt6/6.10.0/mingw_64/plugins/multimedia/ffmpegmediaplugin.dll, metadata=
          {
              "IID": "org.qt-project.Qt.QPlatformMediaPlugin",
              "MetaData": {
                  "Keys": [
                      "ffmpeg"
                  ]
              },
              "archlevel": 2,
              "className": "QFFmpegMediaPlugin",
              "debug": false,
              "version": 395776
          }
          
          jsulmJ 1 Reply Last reply
          0
          • B Offline
            B Offline
            BrianL
            wrote on last edited by BrianL
            #6

            Update: it only starts lagging if the camera frame is big enough then it will lag when I drag the window, if I make the window smaller it doesn't lag

            1 Reply Last reply
            0
            • B BrianL

              @jsulm

              qt.core.plugin.factoryloader: checking directory path "C:/Qt6/6.10.0/mingw_64/plugins/multimedia" ...
              qt.core.plugin.factoryloader: looking at "ffmpegmediaplugin.dll"
              qt.core.plugin.loader: Found metadata in lib C:/Qt6/6.10.0/mingw_64/plugins/multimedia/ffmpegmediaplugin.dll, metadata=
              {
                  "IID": "org.qt-project.Qt.QPlatformMediaPlugin",
                  "MetaData": {
                      "Keys": [
                          "ffmpeg"
                      ]
                  },
                  "archlevel": 2,
                  "className": "QFFmpegMediaPlugin",
                  "debug": false,
                  "version": 395776
              }
              
              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @BrianL said in QVideoSink::videoFrameChanged not fired when dragging application window:

              C:/Qt6/6.10.0/mingw_64/plugins/multimedia/ffmpegmediaplugin.dll

              You're using ffmpeg backend

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • B Offline
                B Offline
                BrianL
                wrote last edited by BrianL
                #8

                Update on this: I have since switched to using LibVLC but the issue persist, so the issue seems to be in general if you are drawing something continuously over a certain size, dragging the window completely blocks the GUI thread.

                JoeCFDJ 1 Reply Last reply
                0
                • B BrianL

                  Update on this: I have since switched to using LibVLC but the issue persist, so the issue seems to be in general if you are drawing something continuously over a certain size, dragging the window completely blocks the GUI thread.

                  JoeCFDJ Offline
                  JoeCFDJ Offline
                  JoeCFD
                  wrote last edited by JoeCFD
                  #9

                  @BrianL Can you try to stop/pause the video before you drag and then resume the video after drag is finished? Qt5 Multimedia module does not work well with streaming. Not sure if Qt 6 has improved a lot.

                  B 1 Reply Last reply
                  0
                  • JoeCFDJ JoeCFD

                    @BrianL Can you try to stop/pause the video before you drag and then resume the video after drag is finished? Qt5 Multimedia module does not work well with streaming. Not sure if Qt 6 has improved a lot.

                    B Offline
                    B Offline
                    BrianL
                    wrote last edited by BrianL
                    #10

                    @JoeCFD Not really, the stream has to be continuous because I am doing image processing every frame in real time (the processing isn't affected since it's running on a different thread). I am using Qt6 as well

                    JoeCFDJ 1 Reply Last reply
                    0
                    • B BrianL

                      @JoeCFD Not really, the stream has to be continuous because I am doing image processing every frame in real time (the processing isn't affected since it's running on a different thread). I am using Qt6 as well

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote last edited by JoeCFD
                      #11

                      @BrianL You can use gstreamer/FFmpeg pipeline + qml sink for rendering the stream. And the pipeline can be paused/stopped and restarted. Multimedia module in Qt5 is not great at rendering audio/video streaming. This module has been rewritten in Qt6. I am not sure if it is good enough now. I use gstreamer + qml sink for audio/video streaming.

                      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