sr99622 / libonvif

Onvif library with GUI implementation and built in YOLOX
GNU Lesser General Public License v2.1
143 stars 38 forks source link

Feature request: show RTSP streams addresses #68

Open dzek69 opened 10 months ago

dzek69 commented 10 months ago

Hey, I need an ONVIF manager that can help me extract the addresses of RTSP streams. Your app is the best onvif client I've seen so far, but I can't find RTSP streams anywhere.

If you can add it that'd be great. Thanks!

sr99622 commented 10 months ago

Thank you so much for reaching out, I appreciate your kind words. There is a companion command line tool called onvif-util that includes the ability to print out the rtsp address. If you are on a debian based linux, this can be installed easily by using

sudo apt install onvif-util

It can also be installed by following instructions on the libonvif home page.

Once installed you first browse the network

onvif-util -a

The program will respond with the ip addresses of the cameras. Then log on to the camera

onvif-util -u username -p password ip_address

Then you can get rtsp address

get rtsp

If you want the password included

get rtsp pass
dzek69 commented 10 months ago

Thank you, this is very helpful! I figured out RTSP address sniffing with Wireshark while using the GUI, but these commands will definitely come handy in the future.

victorsoyvictor commented 2 months ago

Question here: I think is only enquiring one network interface, I have a deployment with a machine with several interfaces. Can you confirm is only listing one interface and not all?

Thanks for your work,

sr99622 commented 2 months ago

Thank you for reaching out.

The command line tool is only set up for one network connection, which would be the default adapter. The GUI program is able to query all available network adapters.

victorsoyvictor commented 2 months ago

I tried with the GUI and I just get prompted (for user and pass) for the ones in x.x.30.x not the ones in x.x.1.x Screenshot 2024-04-30 094510 Anyway I would like you to help me get in all the interfaces amending the code. Where should I start? Thanks,

sr99622 commented 2 months ago

Thank you so much for reaching out, the feedback is greatly appreciated.

Please try polling each of the networks individually by de-selecting the "Scan All Networks During Discovery" checkbox. Once you have unchecked the box, go back to the camera panel and click the discover button. When the discovery process is complete, go back to the Settings panel and use the drop down box to select the other network, and repeat the discovery from the camera panel.

The discovery process seems to work better if only one network is used at a time. Once the cameras are discovered, you should be able to connect with them on both networks without any further configuration.