Posts: 414
Joined: Apr 2010
Reputation:
5
Voyager
Retired Team-Kodi Member
Posts: 414
I'll try this today and will let you know. The theory sounds plausible, because I had other examples with DTS tracks that I was able to "fix" by remuxing. That said, I don't fancy remuxing a lot of material that played well on a previous version of Kodi - I don't think anyone would.
I like the idea of a less picky fallback position in case these discontinuities get detected...
Posts: 414
Joined: Apr 2010
Reputation:
5
Voyager
Retired Team-Kodi Member
Posts: 414
I just tried the following combinations of int timeout = (stream->m_syncState != CAESyncInfo::AESyncState::SYNC_INSYNC) ? XXXX : YYYY;
- 100 : 2000 - some improvement of the example
- 100 : 3000 - not really better than 100: 2000
- 2000 : 2000 - i.e. constant timeout regardless of sync status: seems to be the best - no glitches anymore
- 2000 : 3000 - no difference with 2000:2000
it's all a bit unscientific, but I have a feeling that a constant timeout could be better if the muxing error is "fluctuating".
Posts: 414
Joined: Apr 2010
Reputation:
5
Voyager
Retired Team-Kodi Member
Posts: 414
hi - just quickly tested before work... indeed as you say, nice work! I also tested three other cases in the same situation that went up to 3005, 4040 and even 6000 ms. All good.
The remaining issue is only when you turn on 'sync playback to display'. For correctly muxed mkv's it's fine, but these messy examples sound horrible. I'm ok leaving as is, it doesn't look like a priority thing to solve...
Posts: 414
Joined: Apr 2010
Reputation:
5
Voyager
Retired Team-Kodi Member
Posts: 414
forgot to mention : you need to #include <atomic> in ActiveAEStream.h to fix compile error.