Unsolved How to find all ip cameras and get videos
-
Hi!
How do I find all ip cameras and get videos? And how do I record this video? -
Hi
https://doc.qt.io/qt-5/qcamerainfo.htmlconst QList<QCameraInfo> cameras = QCameraInfo::availableCameras(); for (const QCameraInfo &cameraInfo : cameras) qDebug() << cameraInfo.deviceName();
recording
https://doc.qt.io/qt-5/cameraoverview.htmlUpdate:
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 :) -
This post is deleted! -
Hi,
How are your IP cameras seen by your machine ?
-
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. -
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?
-
If you are on Linux, the backend used GStreamer.
-
I found the old QtGStreamer library on the Internet , does the current Qt work fine with it? Or need used GStreamer?
-
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.
-
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
-
Maybe you have examples of playing videos in a window using Gstreamer?
-
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? -
Did you install the GStreamer development package ?
-
Yes, i do
-
Which one ?
-
@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.
-
In that case you should also have the unnumbered .so file.
-
@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?
-
What exact GStreamer development package did you install ?
-
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