Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. H264 GStreamer pipeline streaming into QVideoWidget periodically freezes when another background thread is started
Forum Updated to NodeBB v4.3 + New Features

H264 GStreamer pipeline streaming into QVideoWidget periodically freezes when another background thread is started

Scheduled Pinned Locked Moved Unsolved Qt for Python
3 Posts 2 Posters 367 Views 1 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.
  • J Offline
    J Offline
    JokZiz1
    wrote on last edited by
    #1

    I have added a QVideoWidget into my application. I run a basic pipeline with Gstreamer from my camera into a QVideoWidget. I have been following this thread and it works well on its own. Now, in addition to my camera running, I need to run a procedure, which would run on a worker thread. For that I am using QThread in a way that is recommended here. Many of the times, whenever I try to run a background worker thread, the H264 stream periodically freezes every few seconds. I believe it might have to do something with the worker thread running, but I am not sure, as I tried multiple ways of implementing worker thread and I still get the same issue. In any other case, the stream runs fine, without interruption, at desireable FPS, resource usage very small. I am running Linux Mint 20.2.

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

      Hi,

      What does your other thread do ?
      How does it do it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What does your other thread do ?
        How does it do it ?

        J Offline
        J Offline
        JokZiz1
        wrote on last edited by
        #3

        @SGaist Controlling some peripherals, such stepper motor and going through a device calibration procedure.

        I have sorted out the issue by adding queue inside of my GStreamer pipeline, however, I am still wondering why would this happen when the QThread worker is running...

        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