Ffmpeg camera - images on lovelace card but does not stream!

Hi

So after much googling and searching on HA forums i am stuck so thought i would ask on here. So i have a USB camera that i am trying to stream on HA on my mac. It is all set up in my lovelace and displays the image in the card and updates regularly. I click on the camera to stream it and just get a spinning circle and no video. No errors are in the log and ticking the preload stream makes no difference.

My configuartion yaml is:

  - platform: ffmpeg
    name: Dining Room Webcam
    input: -an -pix_fmt uyvy422 -f avfoundation -video_size 1280x720 -framerate 30 -i 1

I also tested it using ffmpeg in terminal and it works.

Do you have the ffmpeg component in your configuration file?

Yes, sorry should of stated that in original post:

ffmpeg:
    ffmpeg_bin: /usr/local/bin/ffmpeg