No snapshot URL, can I use ffmpeg?

I have a samsung “smart” camera that took me forever to configure, I finally found an rtsp stream URL that works. However, when I use ffmpeg as such:


    - platform: ffmpeg
      name: kitchencam
      input: -rtsp_transport tcp -i "rtsp://admin:[email protected]/onvif/profile5/media.smp"

I can add the camera to my lovelace interface via a picture entity card, it will show a snapshot every few seconds. Streaming however, does not work.

When I configure it as such:

    - platform: generic
      name: kitchencam2
      stream_source: "rtsp://admin:[email protected]/onvif/profile5/media.smp"
      still_image_url: "http://i dont know what to put here"

Then the stream works great, but I dont get a preview/snapshot, well, obviously. For my life I cant find a URL for the camera that provides a snapshot.

Can I define two cameras pointing to the same actual cam, and somehow use the JPG snapshot that ffmpeg generates and use that as a still image URL for the stream entity? Or any other ideas?

1 Like

Did you ever come up with a solution for a still_image_url? I’m trying to leverage ffmpeg to convert a frame from rtsp to jpg but it doesn’t seem to be working in home-assistant. The command works perfectly from the shell.