Camera RTSP

Moderator: leecollings

Post Reply
skom
Posts: 18
Joined: Sunday 15 March 2020 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Poland
Contact:

Camera RTSP

Post by skom »

I have some wifi cameras that only support RTSP (e.g. INQMEGA 1080p IL-HIP291-1M/2M-AI). I set Node Red to do a jpg dump from time to time (e.g. 10s) to a directory e.g. /home/pi/zdjecie/zdjecie.jpg. The camera, Node Red and Domoticz are on the same home network. How can I now display this photo (jpg file), taken by Node Red from this camera, on the Domoticz desktop and update it, e.g. every such time (e.g. 10s if Node Red will update it)?
User avatar
waltervl
Posts: 5369
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Camera RTSP

Post by waltervl »

You can do this with the Aurora or the Machinon Theme:
https://github.com/flatsiedatsie/domoticz-aurora-theme
https://www.domoticz.com/wiki/Machinon_Theme
You will have to add the camera as a real camera referring the imageURL to the snapshot file you create. If you create a snapshot every second you almost have a realtime camera stream.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
skom
Posts: 18
Joined: Sunday 15 March 2020 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Poland
Contact:

Re: Camera RTSP

Post by skom »

Can I ask you to explain how to enter the path to the JPG file in the camera settings in Machinon?
https://files.fm/u/b7cs2pfu4#/view/kuc9gfggy
User avatar
waltervl
Posts: 5369
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Camera RTSP

Post by waltervl »

The big problem is to get the camera working at all within Domoticz. Then you can add it in a theme that supports cameras.

It seems it needs an url in Domoticz camera setup so my assumption that your snapshot could be used is not correct.

There are some other bash scripts to be found here on the forum than can convert RTSP but none use a link to publish.
Also applications like motion can convert RTSP into mpeg that Domoticz can read but I have no experience with this.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests