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. I have a USB camera, and the qtcamera demo is very laggy. The amcap developed using DirectShow SDK is very smooth. I don't know why
Forum Updated to NodeBB v4.3 + New Features

I have a USB camera, and the qtcamera demo is very laggy. The amcap developed using DirectShow SDK is very smooth. I don't know why

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 459 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.
  • houyaweiH Offline
    houyaweiH Offline
    houyawei
    wrote on last edited by
    #1

    I have a USB camera, and the qtcamera demo is very laggy. The amcap developed using Microsoft DirectShow SDK is very smooth. I don't know why

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      not sure which Qt version you are using. I guess Qt5 may use simple gstreamer bin type pipeline to render video streams. If it is the case, it has at least 2s delay. Try to write your own pipeline and it is not very hard.

      1 Reply Last reply
      0
      • houyaweiH Offline
        houyaweiH Offline
        houyawei
        wrote on last edited by
        #3

        I found the problem, it's a resolution issue. Just set it from 4K to 1080

        JoeCFDJ 1 Reply Last reply
        0
        • houyaweiH houyawei

          I found the problem, it's a resolution issue. Just set it from 4K to 1080

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4

          @houyawei Reducing resolution does help solve the issue. There are two ways to do it. One way is to reduce resolution of your camera output. Another way is to reduce it in the pipeline. However, if your computer has a good GPU, hardware acceleration may be able to handle 4K.

          1 Reply Last reply
          0
          • houyaweiH Offline
            houyaweiH Offline
            houyawei
            wrote on last edited by
            #5

            It is an all-in-one machine with poor performance. Currently using 1080 resolution 微信图片_20241019152332.jpg 11.png

            1 Reply Last reply
            0
            • houyaweiH houyawei has marked this topic as solved on

            • Login

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