blakeblackshear / frigate

NVR with realtime local object detection for IP cameras
https://frigate.video
MIT License
18.11k stars 1.65k forks source link

Expose Birdseye view as a "camera" in the api #1854

Closed tubalainen closed 1 year ago

tubalainen commented 2 years ago

Describe what you are trying to accomplish and why in non technical terms Expose the birdseye view option as a "camera" in the api /api/birdseye or perhaps as a RTMP stream.

Describe the solution you'd like To allow the birdseye stream to be consumed "easily" on other devices such as a media player etc.

Describe alternatives you've considered Continue to use rpisurv and similar software's.

Additional context Thanks.

blakeblackshear commented 2 years ago

The lovelace card will support it in the future. Making it work like another camera will require encoding to h264 on the fly and will take quite a bit of CPU power.

tubalainen commented 2 years ago

Ok. Great news with the Lovelace card! <3

Its a mjpeg stream today? Would it be possible just to expose it so we as users can consume it outside of the HA ecosystem? Ok on the encoding part.

dermotduffy commented 2 years ago

If you install the pre-release versions of both, you can do this in the Lovelace card right now :-)

=> Birdseye view in the Frigate lovelace card!

tubalainen commented 2 years ago

Okay, thanks for the info.

What shall I enter as the camera_entity? image

EDIT: Addning any frigate camera as the camera_entity seemse to work

dermotduffy commented 2 years ago

Any entity should work, doesn't matter, since you are manually setting the Frigate camera name field. The camera entity field is currently required, but this is the one configuration where it's not used. I may loosen that field to optional in future as a result.

ryanm101 commented 2 years ago

Ideally something like https://github.com/gihad/streamer so it could be supported by cast devices

I'd love to have "Hey Google, show nvr on tv"

andreacoppini commented 2 years ago

has this been dropped? I just tried to configure this and the birdseye view doesn't appear. add-on v2.3 card v2.0.0

type: custom:frigate-card
frigate_live_provider: frigate-jsmpeg
camera_entity: camera.[one of my cameras]_car
frigate:
  camera_name: birdseye
dermotduffy commented 2 years ago

Hi @andreacoppini -- it has not been dropped. I suspect you may have missed the release notes for v2.0.0 of the card, which contains a significant configuration change. Give it a read, update your config and if it still doesn't work file a bug over at https://github.com/dermotduffy/frigate-hass-card (as this bug is in the wrong repo for card support).

tubalainen commented 2 years ago

Just to clarify. The new Frigate Hass Card is great! Thanks for all the hard work @dermotduffy ! <3

For me, I am looking for a way to consume the "Birdseye" feature in frigate as a rtsp/rtmp stream so that I can consume it outside of the Home Assistant eco system.