Snapshot out of RTSP stream (DVR has no url for static images)

Hi all, loving Home Assistant so far!

I have a generic chinese 8ch DVR with AHD cameras. Each camera is accesible on an RTSP stream (DVR encodes the analog camera, presents it as a stream I can use over IP)

rtsp://192.168.0.250:554/user=admin&password=privateeditedout&channel=1&stream=0.sdp

I ran a port scan against it and only RTSP (port 554) and HTTP (port 80) is open

I spent a lot of time looking for a still_image url from the DVR, but no luck. The webserver on port 80 only gives the ActiveX based “application” access - and in there is no static view either

Is there way to make Home Assistant grab a snapshot out of the RTSP stream?

Config:

stream:
camera:
  - platform: generic
    name: cam1
    still_image_url: rtsp://192.168.0.250:554/user=admin&password=7szlyq&channel=1&stream=0.sdp
    stream_source: rtsp://192.168.0.250:554/user=admin&password=7szlyq&channel=1&stream=0.sdp

Just testing the Snapshot from developer tools > Services > camera.snapshot> camera.cam1 with

entity_id: camera.cam1
filename: /config/www/snapshot.jpg

No errors in log, but also no snapshot

if I edit the config to use a jpg url from the internet for example, the same test saves the snapshot of that internet picture (whatever url, doesn’t matter, point is it seems to want a “still image” for the still image URL, if i give HA the RTSP url for still_image_url, nothing happens (kinda expected)
So how can I get a static image out of the RTSP stream?

1 Like

Hi!

Did you ever solve this problem? I’ve got the Concord 4ch DVR System from Jaycar here in Aust and i have the same issue.

I can get the RTSP stream to work, but cannot get the snapshot working.

1 Like