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 find all ip cameras and get videos
Forum Updated to NodeBB v4.3 + New Features

How to find all ip cameras and get videos

Scheduled Pinned Locked Moved Unsolved General and Desktop
23 Posts 6 Posters 2.5k Views 3 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.
  • M Offline
    M Offline
    Mikeeeeee
    wrote on last edited by
    #1

    Hi!
    How do I find all ip cameras and get videos? And how do I record this video?

    1 Reply Last reply
    -1
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      https://doc.qt.io/qt-5/qcamerainfo.html

      const QList<QCameraInfo> cameras = QCameraInfo::availableCameras();
      for (const QCameraInfo &cameraInfo : cameras)
          qDebug() << cameraInfo.deviceName();
      

      recording
      https://doc.qt.io/qt-5/cameraoverview.html

      Update:
      Ah after reading others' reply, i realized you mean cameras not attach to the pc but simply on the network. So forget above. wont find them :)

      1 Reply Last reply
      0
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          How are your IP cameras seen by your machine ?

          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
          1
          • fcarneyF Offline
            fcarneyF Offline
            fcarney
            wrote on last edited by fcarney
            #5

            My guess is that they might respond to a broadcast message. That might only work on a subnet though. Assuming they are from the same manufacturer.
            Edit: Broadcast may be a dead end. Might be proprietary if cameras respond to that.
            You might have to keep a list of IP addresses somewhere.

            C++ is a perfectly valid school of magic.

            1 Reply Last reply
            1
            • M Offline
              M Offline
              Mikeeeeee
              wrote on last edited by
              #6

              My friend also said that you need to store IP addresses of cameras. I know that videos can be taken by gstreamer. Are there similar built-in features in Qt?

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

                If you are on Linux, the backend used GStreamer.

                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
                1
                • M Offline
                  M Offline
                  Mikeeeeee
                  wrote on last edited by Mikeeeeee
                  #8

                  I found the old QtGStreamer library on the Internet , does the current Qt work fine with it? Or need used GStreamer?

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

                    As indicated in that library's documentation, it's unmaintained. They have now a GStreamer plugin.

                    As I already wrote, on Linux, Qt uses GStreamer as backend.

                    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
                    1
                    • M Offline
                      M Offline
                      Mikeeeeee
                      wrote on last edited by Mikeeeeee
                      #10

                      Please tell me how to configure the .pro file? I did so, but which libraries should I connect?

                      INCLUDEPATH += /usr/include/gstreamer-1.0
                      INCLUDEPATH += /usr/include/glib-2.0
                      INCLUDEPATH += /usr/lib/x86_64-linux-gnu/glib-2.0/include
                      LIBS += -L/usr/lib -L /usr/lib/x86_64-linux-gnu -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu/gstreamer-1.0
                      
                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        Mikeeeeee
                        wrote on last edited by
                        #11

                        Maybe you have examples of playing videos in a window using Gstreamer?

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Mikeeeeee
                          wrote on last edited by
                          #12

                          I looked at the example and am trying to find this library:

                          LIBS += -L/usr/lib -L /usr/lib/x86_64-linux-gnu -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu/gstreamer-1.0 -lgstvideo-1.0
                          

                          and I get error:

                          cannot find -lgstvideo-1.0
                          

                          but in the folder /usr/lib/x86_64-linux-gnu there is a file libgstvideo-1.0.so.0
                          How can I fix this?

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

                            Did you install the GStreamer development package ?

                            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
                            • M Offline
                              M Offline
                              Mikeeeeee
                              wrote on last edited by
                              #14

                              Yes, i do

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

                                Which one ?

                                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
                                • M Offline
                                  M Offline
                                  Mikeeeeee
                                  wrote on last edited by
                                  #16

                                  @SGaist said in How to find all ip cameras and get videos:

                                  Which one ?

                                  I have installed many gstreamer packages. All the necessary h files are there, and I also found the library manually.

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

                                    In that case you should also have the unnumbered .so file.

                                    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
                                    • M Offline
                                      M Offline
                                      Mikeeeeee
                                      wrote on last edited by
                                      #18

                                      @SGaist said in How to find all ip cameras and get videos:

                                      In that case you should also have the unnumbered .so file.

                                      I have only libgstvideo-1.0.so.0.1405.0 . But I'm connecting -lgstvideo-1.0 . What other libraries should there be?

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

                                        What exact GStreamer development package did you install ?

                                        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
                                        • M Offline
                                          M Offline
                                          Mikeeeeee
                                          wrote on last edited by
                                          #20

                                          I do this:

                                          apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
                                          
                                          jsulmJ 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