-
Notifications
You must be signed in to change notification settings - Fork 242
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
[Bug] audio buffer stuttering loop on stream underrun ("large audio sync error") #1645
Comments
definitely there is no relation to #1629 because your manifest use mp4 containers manifest.mpd.txt
same code path, we dont handle HTTP errors in different ways, the HTTP error 502 is a server error, something on server was wrong, but idk the reason behind it every time go in error when try to download this file, or each time there is a different file that raise 502? one think to check if when audio stream is blocked the CSession::GetNextSample return |
HTTP 502 is "Bad Gateway", typically sent when a CDN frontend wasn't able to reach a backend server. I'm pretty sure those errors are intermittent, maybe only staying for a dozen seconds, or maybe related to a backend reconfiguration that's pushed to the manifest that Kodi doesn't see because it's using the initially cached version? The problem appears maybe once in 10h of streaming, and stopping and restarting the video (and seeking to the previous position) makes it work again. However, if I don't manually intervene, Kodi will just stay there forever, showing a freeze frame and looping the last audio buffer, and this is what I'd like to not happen any more. I'm not sure if it's possible to re-download the manifest after six HTTP errors, and to try to re-sync, or at least to stop playback there. |
has nothing to do with manifest its static then all data will be always the same, the only thing that a manifest could provide in this case is more Things to check is: |
I would also expect playback to stop after the failed downloads, but it's hanging in the annoying audio loop instead. Did you have a chance to look at the GetNextSample behavior? Do you need a run from a version with additional debugging? |
Describe the problem
After multiple failures to load the next segment from a streaming service, Kodi will keep playing back the last used audio buffer, causing a very loud and annoying stuttering sound (remember when old PC games crashed?). I thought this is related to #1629 but it's still happening with ISA 21.5.2.
I'm not asking you to fix the rotten backend, but when running out of audio data, Kodi should stop playback instead of just repeating the last sample buffer.
Unfortunately it's not possible to reproduce by merely disconnecting the running Kodi from the Internet, in that case it will properly pause playback, so a HTTP 502 response seems to trigger a different code path in ISA/Kodi.
Possible fix
No response
Steps to reproduce
Debug log
https://paste.kodi.tv/alagajalet.kodi
log.txt
Stream manifest file(s)
No response
Additional info
Relevant log timestamps:
Operating system(s)
Linux
Operating system version(s)
Arch Linux / ALARM
InputStream Adaptive version(s)
21.5.2
Kodi version(s)
21.0
The text was updated successfully, but these errors were encountered: