Rtsp live stream issue with ffmpeg

I’ve included a camera in home assistant and whenever I click on it I get a blank white screen instead of the live stream. Eventually the error WARNING (MainThread) [haffmpeg.core] FFmpeg isn’t running! shows up in the HA log.

Here is my config:

- platform: ffmpeg
  name: baby_monitor
  input: -rtsp_transport tcp -i rtsp://xxxxx:[email protected]:554/live/ch1
  extra_arguments: -pred 1 -q:v 2
  ffmpeg_bin: /usr/local/bin/ffmpeg

I’m running home assistant on a mac mini and I installed ffmpeg via homebrew. I’ve tested the live stream via command line with ffmpeg and it works fine. I’ve also tried without the ffmpeg_bin and extra_arguements options.

Any help would be appreciated.

you need to separate your call to FFMPEG and your camera…

ffmpeg:
  ffmpeg_bin: /usr/local/bin/ffmpeg
camera:
  - platform: ffmpeg
    input: -rtsp_transport tcp -i rtsp://xxxxx:[email protected]:554/live/ch1
    extra_arguments: -pred 1 -q:v 2
    name: baby_monitor

Thanks for your response. When I try it like that the ffmpeg error does go away. However I still don’t see the live stream. From looking at the dev tools in chrome I see a 404 error from the entity registry, which from what I’ve read is actually normal. I can also see that data is being transferred but no video is displayed.

ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg