Kodi Community Forum

Full Version: reduce time required for audio sync
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
In v15 a/v synchronization to clock was changed. The former mechanism was dead end and led to a couple of non-solvable issues. Versions prior to 15 adjusted large audio sync errors (> 100ms) by synchronizing the clock to audio. This made video and subtitles suffer from audio errors. Malfunctioning audio could ruin video completely.

Now audio and video sync to clock independently when a stream is started. This chnage requires follow-ups that have not implemented yet. When synchronization is started, audio stream has to be muted and flushed, otherwise the sync process which adds and drops audio packets to the queue would be audible.

The solution is to move this process from VideoPlayerAudio to the audio engine. This task has high priority on my todo list.
Do you have an estimate on how much this will need adaptions on the sink layer?
(2015-09-07, 01:00)Memphiz Wrote: [ -> ]Do you have an estimate on how much this will need adaptions on the sink layer?

Most likely zero
Ohh in that case i can provide the needed changes instantly whenever you need them Wink
I have competed this step. For those who want to test on Linux: http://forum.kodi.tv/showthread.php?tid=231955
OSX and Raspberry Pi versions can be compiled from my repo: https://github.com/FernetMenta/xbmc
If you don't want to fiddle with the Ubuntu installation. I build OpenELEC images without further patches from fernet's master since yesterday: http://fritsch.fruehberger.net/openelec/
Is there a compiled version for mac somewhere I can download and try?
No - as these changes have absolutely nothing to do with MAC, they are pulseaudio for linux only.

Forget it - I answerd on the wrong topic.
(2015-10-03, 19:12)bigbully Wrote: [ -> ]Is there a compiled version for mac somewhere I can download and try?

stay tuned, I kicked off a build for OSX
Do you have any idea when this might make it into a release or even alpha/beta? This issue has been is bugging me daily.

I'd attempt to build it myself but it seems that the main repo provides information for setting up an environment for all systems except windows.
HOW-TO:Compile_Kodi_for_Windows (wiki) should get you sorted.
I don't know the state of the Windows port and if it compiles/runs with current code. Linux, Pi, and OSX are up to date.
(2015-10-04, 14:45)FernetMenta Wrote: [ -> ]here we go: http://mirrors.kodi.tv/test-builds/osx/x...x86_64.dmg

Thanks for that. I tried it last night and see a difference. Maybe I notice the videos pause a bit before starting where I saw black before, but the audio still mutes for the first second once picture starts. I've tried disabling screen refresh adjust and sync video to display with no differences.

I want to try a couple of things tonight as well as my other system to see if there's a difference. I'll let you know if I find an differences.
Pages: 1 2