001 __ Find RTSP URI of an ONVIF IP Camera

Find IP address of IP Cameras

You may use the following command to find all the devices under a specific sub network. For example, the following command will scan IP from 192.168.30.1 to 192.168.30.254.

nmap -sn 192.168.30.0/24

Find ONVIF info of an IP Camera

For example, we found the IP camera address is 192.168.30.229.

You can first verify the IP camera address by the following commands

nvidia@nru50-20220112:~$ ping 192.168.30.229
PING 192.168.30.229 (192.168.30.229) 56(84) bytes of data.
64 bytes from 192.168.30.229: icmp_seq=1 ttl=64 time=0.471 ms
64 bytes from 192.168.30.229: icmp_seq=2 ttl=64 time=0.436 ms
64 bytes from 192.168.30.229: icmp_seq=3 ttl=64 time=0.439 ms
64 bytes from 192.168.30.229: icmp_seq=4 ttl=64 time=0.396 ms

Then, you can benefit from the "gsoap-onvifarrow-up-right" to grab the ONVIF info.

# Download the repo
git clone https://github.com/xris-hu/gsoap-onvif.git
cd gsoap-onvif

# Remove conflict libssl version
sudo apt remove libssl1.0.0
sudo apt remove libssl1.1

# Reinstall with proper libssl version
sudo apt install libssl1.0-dev

# Make
sudo make -j6

# If compiled successfully, you can find grab the ONVIF info via the IP cam address
# 
./ipconvif 192.168.30.229

You will get ONVIF info as the below, with RTSP URI included.

RTSP URI

Based on the above information, the RTSP URI is:

On the NRU series, the gst-launch code to open the RTSP source would be:

Last updated