Playing with ONVIF surveillance cameras


1. Acquire RTSP streaming URL

For my camera, the Tenda CP7, the ONVIF admin account is:

  • name: admin
  • password: admin123456

1.1. Simple approach

Download the Windows-only ONVIF Device Manager and login using the camera's admin account. On the live video section, you can see the RTSP URL in the form of:

rtsp://IP:PORT_NUMBER/xxx

Prepend account information to the link:

rtsp://NAME:PASSWORD@IP:PORT_NUMBER/xxx

1.2. Other possible approaches

There is a onvifviewer, able to both view the camera stream and control its motion. It does not show URL, however. But digging into the code may help.

2. Play RTSP stream

Use either vlc or mpv to play the RTSP stream:

vlc rtsp://xxx
mpv rtsp://xxx

But there is a delay of ~3s. In order to reduce the delay to around 1s:1

mpv --profile=low-latency --untimed rtsp://xxx

If VLC fails to connect to RTSP stream, install live-media:2

sudo pacman -S live-media

脚注:


Authorthebesttv
Created2023-01-21 10:36
Modified2023-04-30 11:55
Generated2024-06-11 02:39
VersionEmacs 29.3 (Org mode 9.6.15)
Rawonvif-camera.org