Audio is cut off (about 500 ms) right at the beginning - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: Audio is cut off (about 500 ms) right at the beginning (/showthread.php?tid=373696) |
Audio is cut off (about 500 ms) right at the beginning - Klaus1189 - 2023-07-06 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. RE: Audio is cut off (about 500 ms) right at the beginning - izprtxqkft - 2023-07-06 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/questions/29791/ffmpeg-adding-blankspace-to-end-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 RE: Audio is cut off (about 500 ms) right at the beginning - fritsch - 2023-07-10 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? RE: Audio is cut off (about 500 ms) right at the beginning - Klaus1189 - 2023-07-10 (2023-07-10, 19:07)fritsch Wrote: Hard to tell without a debug log. What I can say is, the following happens when kodi startsNeither 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-CUN2ASYv3Wy1zYWpSW4mAWGw0ECwDw/view?usp=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. RE: Audio is cut off (about 500 ms) right at the beginning - CrystalP - 2023-07-10 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 RE: Audio is cut off (about 500 ms) right at the beginning - Klaus1189 - 2023-07-11 I am glad a dev can reproduce it. I can test but I can not program RE: Audio is cut off (about 500 ms) right at the beginning - izprtxqkft - 2023-07-11 side note: the 'delay' in audio is worse if you use passthrough and your audio receiver has to decide what to do RE: Audio is cut off (about 500 ms) right at the beginning - Klaus1189 - 2023-07-12 I already made sure to not use passthrough, but even with passthrough I had never such a problem. RE: Audio is cut off (about 500 ms) right at the beginning - Klaus1189 - 2023-07-16 Can I do anything for you or provide any other information to you devs? RE: Audio is cut off (about 500 ms) right at the beginning - CrystalP - 2023-07-19 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. RE: Audio is cut off (about 500 ms) right at the beginning - CrystalP - 2023-07-20 Issue was confirmed by team member on linux / Pi4. Would a moderator please move to OS independent / Other RE: Audio is cut off (about 500 ms) right at the beginning - Klaus1189 - 2023-07-21 https://github.com/xbmc/xbmc/issues/23535 |