2016-03-07, 20:14
Hi
Will this one ever get merged in?
Will this one ever get merged in?
(2016-03-15, 23:19)candyman2000 Wrote: Strange I'm still getting audio delay on both Android and Windows clients
(2015-12-17, 20:12)FernetMenta Wrote:(2015-12-17, 02:19)errr Wrote: Maybe KODI could "learn" to be more patient, less anxious, and wait until both video and audio streams are ready to be played together, and only then (re)start playing.
It learned a lot https://github.com/xbmc/xbmc/pull/8486
That's more than 10000 lines of code diff to Jarvis (incorrectly indicated by GIthub due to renaming)
Actually it does almost what you put in words. It sends data to audio and video players and waits for response. Both players signal back current timestamp when they have filled their buffers. VideoPlayer takes this info, sets the clock, and finally starts the stream players.
19:29:33 T:140468415346432 DEBUG: CVideoPlayer::HandleMessages - player started 1
19:29:33 T:140470868023680 DEBUG: Keyboard: scancode: 0x72, sym: 0x0113, unicode: 0x0000, modifier: 0x0
19:29:33 T:140468423739136 WARNING: CVideoSurfaces::ClearReference - surface invalid
19:29:33 T:140468415346432 DEBUG: CVideoPlayer::HandleMessages - player started 2
19:29:33 T:140468415346432 DEBUG: CVideoPlayer::SetCaching - caching state 3
19:29:33 T:140468415346432 DEBUG: CVideoPlayer::SetCaching - caching state 0
19:29:33 T:140468415346432 DEBUG: VideoPlayer::Sync - Audio - pts: 14682000.000000, cache: 287107.679903, totalcache: 570666.670799
19:29:33 T:140468415346432 DEBUG: VideoPlayer::Sync - Video - pts: 14348000.000000, cache: 50000.000000, totalcache: 100000.000000
19:29:33 T:140468423739136 DEBUG: CVideoPlayerVideo - CDVDMsg::GENERAL_RESYNC(14248000.000000)
19:29:33 T:140468893501184 DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_RESYNC(14248000.000000)
19:29:33 T:140468893501184 NOTICE: -------- resume at : 14258.093241
19:29:33 T:140468893501184 DEBUG: CDVDAudio::Resume - resume audio stream
19:29:33 T:140470378051328 DEBUG: ActiveAE - start sync of audio stream
19:29:33 T:140470868023680 NOTICE: VAAPI::Close
19:29:33 T:140468902569728 NOTICE: COutput::OnExit: Output Thread terminated
19:29:33 T:140468902569728 DEBUG: Thread Vaapi-Output 140468902569728 terminating
19:29:33 T:140470378051328 DEBUG: ActiveAE::SyncStream - average error of 161.309244, start adjusting
19:29:33 T:140470378051328 DEBUG: ActiveAE::SyncStream - average error 5.202139 below threshold of 30.000000
19:29:33 T:140470378051328 NOTICE: ------- time: 14496.024358 - buffer: 0.341438