-
Notifications
You must be signed in to change notification settings - Fork 478
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
Missing first seconds of audio when playing two way audio #1008
Comments
I'll check on my camera. Maybe the 1-second problem can be fixed. |
It was a really hard task... |
Should be fixed when using audio codec |
It seems something else that was changed in the update might've broken the ability to play back audio files through Home Assistant... Previously this worked, however in 1.9.3, this seems to have stopped working suddenly. Two-way audio with a video+audio stream over HTTPS still works fine, however I can no longer play audio files to the cameras locally after updating to 1.9.3. In my HAss configuration.yaml:
go2rtc configuration:
Is there something I'm doing wrong, or was something else changed? Searched other issues pretty extensively & read through both README's for WebRTC and go2rtc, not sure what isn't right with how I've configured the virtual media players. |
You should now use |
I changed |
Finally had a chance to test with the 1.9.4 release. That seemed to fix it so That being said, though it seems the original issue has been mitigated somewhat, it still occurs to some extent. It seems the audio that's cut off at the start is lesser than it used to be, however it still cuts off some audio. It also still sometimes cuts off the tail end, though for most of my uses that's not a noticeable problem - most audio I send to the camera has at least a half-second tail anyway. A few videos to demonstrate with one of my cameras + the original 13s audio file sent to the camera for ref (a short music loop I made, used as it has no copyright): IMG_4983.mp4IMG_4984.mp4IMG_4985.mp4 |
Forgive me for perhaps being a bit naive here... I'm currently using Tapo C200 cameras, I got 2-way audio working, however when the cameras play the audio sent to them they miss the first second or so of audio. Given that the cameras are only playing 8khz audio, I figure that's simply a result of the camera's hardware limits & not a fault of go2rtc.
Is it possible to set FFmpeg options for only audio streamed to the cameras, so I could add a short 1 second of silence in the audio sent to the cameras? I've read through just about all the documentation & I'm not sure how I could do so, though I'm also the kind of person to miss the obvious solution after reading it several times. I don't want to add any delay in audio or video from the cameras, just the audio streamed to them.
The text was updated successfully, but these errors were encountered: