Kodi Community Forum

Full Version: HLS stream skips back to start
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Krypton beta 3 seems to have an issue playing some HLS streams. For example h t t p://open.http.mp.streamamg.com/p/2000012/playManifest/entryId/0_4tzhwpm1/format/applehttp will play normally for a few seconds and then skips back to the start. After that it continues to play until the end.

ffplay does not show the same behaviour and neither does Jarvis, so it may be a VideoPlayer issue.

Here is the relevant log section.

Code:
05:45:55 T:140227725195008   DEBUG: ffmpeg[7F894FBF7700]: [mpegts] DTS 0 < 536400 out of order
05:45:55 T:140227725195008   DEBUG: ffmpeg[7F894FBF7700]: [hls,applehttp] DTS 0 < 536400 out of order
05:45:55 T:140227725195008   DEBUG: CVideoPlayer::CheckContinuity - resync backward :2, prev:5960000.000000, curr:0.000000, diff:-5960000.000000
05:45:55 T:140227725195008   DEBUG: CVideoPlayer::HandleMessages - player started 1
05:45:55 T:140227725195008   DEBUG: CVideoPlayer::SetCaching - caching state 3
05:45:55 T:140227725195008   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
05:45:55 T:140227725195008   DEBUG: CVideoPlayer::SetCaching - caching state 0
05:45:55 T:140227725195008   DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
05:45:55 T:140227725195008   DEBUG: VideoPlayer::Sync - Audio - pts: 116100.000000, cache: 289364.161785, totalcache: 550000.011921
05:45:55 T:140227725195008   DEBUG: VideoPlayer::Sync - Video - pts: 0.000000, cache: 50000.000000, totalcache: 100000.000000
05:45:55 T:140227780802304   DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_RESYNC(-173264.161785)
05:45:55 T:140227741980416   DEBUG: CVideoPlayerVideo - CDVDMsg::GENERAL_RESYNC(-173264.161785)
05:45:55 T:140227780802304   DEBUG: CDVDAudio::Resume - resume audio stream
05:45:55 T:140228085962496   DEBUG: ActiveAE - start sync of audio stream
05:45:55 T:140227725195008   DEBUG: CVideoPlayer::CheckContinuity - resync backward :1, prev:5990744.444444, curr:0.000000, diff:-5990744.444444
05:45:55 T:140227725195008   DEBUG: CVideoPlayer::CheckContinuity - update correction: -6013955.555556
05:45:55 T:140228578855296   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
05:45:55 T:140228085962496   DEBUG: ActiveAE::SyncStream - average error of -22.839299, start adjusting
05:45:55 T:140228085962496   DEBUG: ActiveAE::SyncStream - average error -0.839299 below threshold of 30.000000
05:45:55 T:140227741980416  NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 40000
05:45:59 T:140227725195008   DEBUG: ffmpeg[7F894FBF7700]: [mpegts] DTS 0 < 536400 out of order
05:45:59 T:140227725195008   DEBUG: ffmpeg[7F894FBF7700]: [hls,applehttp] DTS 0 < 536400 out of order
05:45:59 T:140227741980416   DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000
05:46:01 T:140227741980416   DEBUG: CPullupCorrection: pattern lost on diff 53955.000000, number of losses 1
05:46:06 T:140227741980416   DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000

The skip back occurs at 05:46:01 where the debug message is "CPullupCorrection: pattern lost on diff 53955.000000, number of losses 1"
The relevant log starts at the top. Use trac to report this bug and latest nightly to reproduce an capture the log, please.
And use latest available nightly version to reproduce please
Ticket 16999 submitted.
This can also be replicated by playing any video with the WABC add-on in the kodi.org repo using Krypton Beta3.
This issue is resolved by https://github.com/xbmc/xbmc/pull/10766