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. Best way to update UI for 6 channel video stream and dozens buttons

Best way to update UI for 6 channel video stream and dozens buttons

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 670 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.
  • BeatrixB Offline
    BeatrixB Offline
    Beatrix
    wrote on last edited by aha_1980
    #1

    Hi,

    I am trying to show 4 video stream channel in the UI with buttons, config and some editing section on the UI.
    What I am doing now :

    qApp->processEvents();
    

    each stream channel process call processEvents(); after doing some preprocess.

    UI looks getting slower . Machine is i7 2.3 Ghz.

    What is the smooth and the fastest way to show all stream on th gu realtime while all other buttons etc responsive and not laggy ?

    NOTE: I am using QLabel to show video streams with :

    ui->QLabel->setPixmap(QPixmap::fromImage(qimg));
    
    

    Thanks in advance.
    Beatrix

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

      Hi and welcome to devnet,

      Where are your video stream coming from ?
      What version of Qt are you using ?
      What OS are you running ?

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

        Hi @Beatrix

        To go along with @SGaist , can you post some of your code? Are you using threads?

        Dave Fileccia

        1 Reply Last reply
        0
        • BeatrixB Offline
          BeatrixB Offline
          Beatrix
          wrote on last edited by
          #4

          Qt 5.11
          streams coming from IP Cameras 1080px
          OS is Ubuntu
          OpenCV 3.4

          Yes I am using threads signal slots to connect all 6 stream(6 threads) to the main UI.

          The question is about the OpenCV is good enough to handle streams 24 hours.

          Or I should try someting else ?

          I donw know is I can get stream and the frames directly from the Qt without openCV

          Just need advise to direction or may be examples for to be in the right track

          Best

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

            It depends on what generates the stream. You have to give more details about your hardware.

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

              intel i7 2.4 Ghz 8 cores 32 gig ram.

              stream is rtsp 1080p

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

                So you have 6 network inputs ?

                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