Closed warlordattack closed 2 years ago
If you have sound in glance card means audio in AAC codec. This codec don't supported by WebRTC: https://developer.mozilla.org/en-US/docs/Web/Media/Formats/WebRTC_codecs
@AlexxIT Hi, I am new to HomeAssistant and started playing with the Webrtc Camera Intergration (using built-in go2rtc). Before brining up the question again, I searched for my problem, but could not figure out how to solve my problem. Thus my question here:
HomeAssistant is running in Docker, in Host-Mode. I have a Reolink E1 Zoom. Reolink Integration is installed and provides the camera entity. Displaying the life-stream in Picture-Glance has video and audio, but terrible latency and stability.
This is what I added into the go2rtc.yaml file:
api:
listen: 127.0.0.1:1984
rtsp:
listen: 127.0.0.1:8554
streams:
cam_01_sub:
- rtsp://<user>:<password>@<cameraIP>:554/h264Preview_01_sub&audio=opus
- ffmpeg:rtsp://<user>:<password>@<cameraIP>:554/h264Preview_01_sub&audio=opus
webrtc:
candidates:
- 127.0.0.1:8555
- stun:8555
This is the config in my frigate-card:
type: custom:frigate-card
cameras:
- camera_entity: camera.cam_01_sub
live_provider: webrtc-card
webrtc_card:
entity: camera.cam_01_sub
mse: false
mode: webrtc
menu:
style: hover
buttons:
image:
enabled: true
view:
default: image
image:
mode: camera
refresh_seconds: 2
The Video is playing super smooth using the frigate card, I do not have audio though. Looks like it is not picking up the opus codec. What am I missing?
You have a lot of mistakes in config
cam_01_sub
not related with camera.cam_01_sub
rtsp://<user>:<password>@<cameraIP>:554/h264Preview_01_sub&audio=opus
shouldn't have &audio=opus
ffmpeg:rtsp://<user>:<password>@<cameraIP>:554/h264Preview_01_sub&audio=opus
shouldn't have &
@AlexxIT thank you for your very quick response. I corrected mistakes 2 & 3 but I guess I have not yet figured out how link the camera entity in the card with the entry in g2rtc.yaml.
This is what I tried ... without success .. i.e. webrtc video displaying, but still no audio available:
api:
listen: <server IP>:1984
rtsp:
listen: <server IP>:8554
webrtc:
candidates:
- <server IP>:8555
- stun:8555
streams:
cam_01_sub:
- rtsp://<user>:<password>@<camera IP>:554/cam_01_sub
- ffmpeg:rtsp://<user>:<password>@<camera IP>:554/cam_01_sub#audio=opus
log:
level: info # default level
api: trace
exec: debug
rtsp: debug
streams: debug
webrtc: debug
When looking into the g2rtc web-ui, I see the camera.cam_01_sub and can view the stream in RTC, but also only without audio.
Can you pleeease enlighten me :) thanks a lot.
UPDATE: It looks like this Integration is somewhat in conflict with the FRIGATE Integration in its usage of go2rtc. I played around with a FRIGATE webrtc stream in the FRIGATE card, using go2rtc as the live-provider .... and guess what ... it worked with audio right away.
hello,
i stream from OBS - RTSP Server plugin on a local PC, to HA generic camera then display via
cards setup :
or
i have the image but no sound, the same rtsp stream to picture glance card works with sound :
my HA OS is a VM inside synology ds918+ nas, powered by synology virtual machine manager, i have latest version of HA OS
this sound problem is the same on all my devices PC (edge), iphone, ipad
help please :)
best regards
sometimes i have this error but after few seconds the stream appears :
my goal is to have low latency apple tv stream with controls in HA, i capture apple tv to pc via usb hdmi recorder, in OBS i capture the USB Video device, then sent the stream via OBS RTSP Plugin to HA
full card of what you see on the picture : buttons use HACS Apple TV Beta Component : https://github.com/postlund/hass-atv-beta