How to add this RTSP camera (Xiaomi-Dafang-Hacks)

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Saturnus
Posts: 3
Joined: Sun Aug 08, 2021 10:14 am

How to add this RTSP camera (Xiaomi-Dafang-Hacks)

Post by Saturnus »

Camera is a Xiaomi Dafang, running https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/

Tried these guides:
https://wiki.zoneminder.com/How_to_setu ... 332_camera
https://github.com/EliasKotlyar/Xiaomi- ... eminder.md

Also tried variants of the variables etc. etc. Cannot get it to work.
One of the things the logs shows is:
zmdc[321].INF [ZMServer:704] ['zmc -m 2' crashed, signal 6]
In any modern media player like VLC, HPC-HC and PotPlayer the stream is working via this m3u8 file:

Code: Select all

#EXTM3U
#EXTVLCOPT:network-caching=2000
rtsp://user:password@192.168.1.2:8554/unicast
Can someone suggest settings?
Saturnus
Posts: 3
Joined: Sun Aug 08, 2021 10:14 am

Re: How to add this RTSP camera (Xiaomi-Dafang-Hacks)

Post by Saturnus »

Anyone?
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: How to add this RTSP camera (Xiaomi-Dafang-Hacks)

Post by iconnor »

Use the ffmpeg monitor type and stick rtsp://user:password@192.168.1.2:8554/unicast in the url in the source tab.
Saturnus
Posts: 3
Joined: Sun Aug 08, 2021 10:14 am

Re: How to add this RTSP camera (Xiaomi-Dafang-Hacks)

Post by Saturnus »

Thanks.

Recently I started a new Docker container running a large application which required /dev/shm access. Now my eye caught the "/dev/shm: 100%" text in top of the webinterface. After adding "-v /dev/shm:/dev/shm" to the Docker command the camera stream is visible via the method mentioned by iconnor.
Post Reply