-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to get Audio from the camera streams? #58
Comments
RTSP stream does support sound via VLC, I will look into this. |
Audio from my other cameras work via Onvif integration (aac codec) So this is the codec information of Tapo camera: This is the PR which added audio capability to Home Assistant. Quote: Supported audio codecs are "aac", "ac3" and "mp3". Unfortunately not possible. Support will have to come from Home Assistant side. |
|
@JurajNyiri sorry for bringing this up again, could you instruct me on what further steps i could take to make this happen? How could one go and request this? In the community forum of HA or somewhere in github, could you please point me to that direction? |
Yes you are correct, change would have to happen either from Home Assistant or Tapo firmware. You can request a new feature here: https://community.home-assistant.io/c/feature-requests/13 . Browsers seem to support PCM ALAW in webrtc https://developer.mozilla.org/en-US/docs/Web/Media/Formats/WebRTC_codecs but not in audio/video tags afaik. |
Thank you, i will go start a feature request on the HA-side. |
But is it possible just to extract this audio stream and record it into file? Or maybe you know any other way to record audio from Tapo? Thanks a lot! |
Yes but out of scope of this integration. You can use ffmpeg directly to output audio to file. |
Thanks a lot! Thanks a lot! |
Hi, I don't have a camera or HA yet - doing preliminary research. From what I was reading about showing streams from cameras using RTSP and showing the stream in browser, there is currently no direct ( and native+universal) solution (https://flashphoner.com/browser-based-webrtc-stream-from-rtsp-ip-camera-with-low-latency/). So I gather that HA is already doing some transcoding (probably using ffmpeg since it is based on the stream integration). And from what I understand it is quite simple for ffmpeg to convert the PCM audio to something usable (AAC)? I tried this today and had a proof of concept with working sound (but only with PCM ulaw stream, could not find a alaw stream), basically using https://video.stackexchange.com/questions/29887/ffmpeg-convert-g-711-audio-to-aac-audio . And since my result was just an browser-consumable stream, which is processed by ffmpeg in the backgound, isn't it basically the same HA does? And if so, could I just point HA to this new stream and use it directly (ideally without another ffmpeg processing)? Or is there something I am missing? |
@krasatos did you open a feature issue on Home Assistant? Would be nice to know the status |
Was it solved? Audio just works when I run the command link to save the video. But it doesn't work on browser , just the video is reproduced 😢 |
Awesome project! I'd love to start using it with C320WSs. I noticed this issue and want to share what I've learned over the years regarding PCM audio: Upstream HomeAssistant cannot "fix" or change what audio codecs MP4 allows. It's defined by ISO 14496-14. So it looks like there's at least two ways forward:
Which approach sounds best to you? (no pun intended) |
Hi, I am interested in how you solved this, could you please share your solution with some explanation? Thanks in advance, kind regards Mark |
Hey there, and thank you for this great integration.
Mainly a question, secondly, if possible, a feature request.
I was wondering what's going on with sound. I have seen several posts in the community saying that several onvif streams have audio and others are muted by code.
What can i do about it?
Is there some way to enable sound?
Is it impossible?
Thank you
The text was updated successfully, but these errors were encountered: