Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Audio is cut off (about 500 ms) right at the beginning
#1
I have a question about the audio which is cut off right at the start. Normally you don't hear it, but with a video like this:
https://www.youtube.com/watch?v=RgKAFK5djSk
you can clearly hear that the first played note on the piano is missing when playing this video in Kodi. Normally there is silence right at the beginning of a video, movie, ... Is there perhaps any setting which prevents this or else?
I had this issue forever, so GPU should not matter. I had Intel, AMD and Nvidia in the last past years.

Play the above mentioned video in browser and compare it with Kodi. I already checked if disabled refresh rate change does something, but it is always the same.
Reply
#2
i personally never noticed or heard about this because as you pointed out most videos start with padding

if it bothers you badly - https://video.stackexchange.com/question...d-of-video (flip the command to put it at the beginning)

it is likely the time it takes to initialize the audio hardware, maybe a feature request to wait for audio hardware but i wouldnt want that because the delay in video start would bug me more than audio
Reply
#3
Hard to tell without a debug log. What I can say is, the following happens when kodi starts

- Adjust Refreshrate to match video. If this is enabled kodi switches the refreshrate, gets a Display Lost until it comes back, which causes a Audio Device change
- Kodi does not start audio after renderer is fully configured, they don't know too much of each other. So you might hear a short "part" first, then switching happens and kodi continues.

Which one of both is it?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#4
(2023-07-10, 19:07)fritsch Wrote: Hard to tell without a debug log. What I can say is, the following happens when kodi starts

- Adjust Refreshrate to match video. If this is enabled kodi switches the refreshrate, gets a Display Lost until it comes back, which causes a Audio Device change
- Kodi does not start audio after renderer is fully configured, they don't know too much of each other. So you might hear a short "part" first, then switching happens and kodi continues.

Which one of both is it?
Neither of them, since it also happens without ato refresh rate switching and the other issue seems to be fixed for me. I had this issue some versions earlier, but not here.

https://www.youtube.com/watch?v=RgKAFK5djSk
downloaded from YT and muxed to mkv file:
https://drive.google.com/file/d/1o-CUN2A...drive_link

Watch this video in browser and you will hear the first 4 notes of the piano, play it with Kodi and the first note is missing.

As already stated, every GPU (different ones from each Nvidia, Intel and AMD) I had, had this behavior in Kodi. I hope there is something to tweak in code.
Reply
#5
Confirmed with directsound and wasapi. Passthrough or not, Sync playback to display or not, with or without refresh rate switch, refresh rate switch delay didn't matter.

Here is a debug log from master (+a few commits irrelevant to audio) with sync playback off, no passthrough or refresh rate switch.
File plays a few seconds, seek back to 0:00:00, play a few seconds.

https://paste.kodi.tv/tisicowefo
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#6
I am glad a dev can reproduce it. I can test but I can not program Sad
Reply
#7
side note: the 'delay' in audio is worse if you use passthrough and your audio receiver has to decide what to do
Reply
#8
I already made sure to not use passthrough, but even with passthrough I had never such a problem.
Reply
#9
Can I do anything for you or provide any other information to you devs?
Reply
#10
The problem likely happens for other platforms (linux, Android,...), are you able to find out? It will be more visible if multiplatform and the thread could be moved to the general section.

You can create an issue for this in github since the problem is confirmed, can't say that it will get fixed any faster but it will be tracked.
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#11
Issue was confirmed by team member on linux / Pi4.

Would a moderator please move to OS independent / Other
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#12
https://github.com/xbmc/xbmc/issues/23535
Reply

Logout Mark Read Team Forum Stats Members Help
Audio is cut off (about 500 ms) right at the beginning0