-
Directly connect the camera to etehrnet of our pc (enps0) (interface name may vary.)
-
Configure Your Ethernet Interface (enp2s0) Set your IP address manually:
sudo ip addr add 192.168.1.1/24 dev enp2s0 sudo ip link set enp2s0 upTo make it persistent, add it to
/etc/network/interfaces(Debian-based) or usenetplan/systemd-networkddepending on your setup. -
Next Steps (Optional): If you actually want to route traffic (since you're making yourself the gateway), you'll need to enable IP forwarding and set up NAT:
sudo sysctl -w net.ipv4.ip_forward=1 sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # If forwarding to the internet -
Run the
simple_dhcp.pyscript to assign the default ip192.168.1.66to the camera. -
Figure out rtsp url .
-
View the stream through
vlc,ffplayor as you wish. Currently for the camera the url is"rtsp://admin:123456@192.168.1.66:554/mpeg4"ffplay "rtsp://admin:123456@192.168.1.66:554/mpeg4"
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|