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. How to open local ipcamera
Forum Updated to NodeBB v4.3 + New Features

How to open local ipcamera

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 409 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.
  • L Offline
    L Offline
    ly11
    wrote on last edited by
    #1

    vmware win10 qt6.7

    QMediaPlayer *player = new QMediaPlayer();
    player->setVideoOutput(ui->videooutput);
    player->setSource(QUrl("rtsp://guest:335577@192.168.55.100"));
    player->play();
    

    Can open ipcamera but it has 6 seconds delay

    python opencv, the delay is 1 second

     const QList<QCameraDevice> camera = QMediaDevices::videoInputs();
    

    Can not find ipcamera, just can find usb camera

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SimonSchroeder
      wrote on last edited by
      #2

      I don't have any experience with QMediaPlayer or accessing ip cameras. However, port numbers are 16 bit. The highest port number that can be assigned is 65535. Your port number is way beyond that. This cannot work.

      Christian EhrlicherC 1 Reply Last reply
      0
      • S SimonSchroeder

        I don't have any experience with QMediaPlayer or accessing ip cameras. However, port numbers are 16 bit. The highest port number that can be assigned is 65535. Your port number is way beyond that. This cannot work.

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by Christian Ehrlicher
        #3

        @SimonSchroeder that's not the port number but the password πŸ™‚
        But yes, one should check if the port is correct.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        L 1 Reply Last reply
        3
        • Christian EhrlicherC Christian Ehrlicher

          @SimonSchroeder that's not the port number but the password πŸ™‚
          But yes, one should check if the port is correct.

          L Offline
          L Offline
          ly11
          wrote on last edited by
          #4

          @Christian-Ehrlicher
          port is correct
          How to make delay less than 1 second

          JoeCFDJ 2 Replies Last reply
          0
          • L ly11

            @Christian-Ehrlicher
            port is correct
            How to make delay less than 1 second

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

            @ly11 I guess the default backend in Qt 6.7 is FFmpeg. I am not familiar with FFmpeg. However, If you switch to use gstreamer, the delay might be 2s.

            1 Reply Last reply
            0
            • L ly11

              @Christian-Ehrlicher
              port is correct
              How to make delay less than 1 second

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

              @ly11 I guess the default port number for video streaming is 554. Your URL does not include port number and your code uses the default port number.

              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