elad-bar / ha-blueiris

Integration with Blue Iris Video Security Software
184 stars 43 forks source link

How to get audio from the camera? #166

Closed HairyHook closed 1 year ago

HairyHook commented 2 years ago

Hi there,

I can't figure out how to get audio in the camera streams. Looking at all my camera attributed in HA, Audio Support is set to true. Any help is very much appreciated.

Thank you!

kramttocs commented 2 years ago

Hey, The best bet would be to try this outside of the integration. Meaning setting up the camera manually. That way we can determine if it's an HA thing or an integration thing. I've never actually tried to get audio working myself. Here is some info that makes it sound like it should be working in HA now: https://community.home-assistant.io/t/streaming-cameras-with-audio/223035 Let me know what you find out!

HairyHook commented 2 years ago

Thanks for your quick answer! I have tried adding the camera manually as a generic camera and audio is working. Also, I tried adding the camera directly from BI as a generic camera (rtsp:///) and audio is working as well. When I open the camera created by the integration, I get no volume icon.

HairyHook commented 2 years ago

FYI, HA Stream component is picky with audio codecs, but seems to work fine with AAC. HA-blueiris is not outputting any audio.

kramttocs commented 2 years ago

Excellent. Appreciate the tests. I'll poke around and see what I can find in the integration.

EthanKC commented 2 years ago

Was this ever resolved? I'm in the same boat: audio works with other integrations, but not the BI

kicker10BOG commented 1 year ago

Any update on this? It would be really nice if the integration could have audio working too.

kicker10BOG commented 1 year ago

Nevermind. Just discovered that checking the "support stream component" box in the integration config adds audio.

kramttocs commented 1 year ago

@kicker10BOG That's good to hear. So you just checked that, restarted, and then if you go to the Camera device and click on the sensor with the video, it shows the audio icon?

Or did you add something to Lovelace to see it?

I just tried but am not getting an audio icon from the device/sensor popup window.

kicker10BOG commented 1 year ago

@kramttocs I checked it and restarted Home Assistant then clicked on a camera and the popup had the audio icon and played audio as I watched the video.

kicker10BOG commented 1 year ago

Example card:

type: picture-glance
entities:
  - entity: binary_sensor.kitchen_human_detected
camera_image: camera.blueiris_kitchen_hq
title: Kitchen
entity: camera.blueiris_kitchen_hq
view_layout:
  grid-area: kitchen_camera

and turning on "preload stream" in the popup settings helps it load faster. Otherwise you have to wait a few seconds.

kramttocs commented 1 year ago

Thanks! I needed to clear my browser cache. Then it worked. Will close this out.