Live Streams Freezing - Kodi support says its the Addon!
Hello, I am having the following issue:
Problem: When watching a Live stream in Kodi via Twitch the stream will freeze up for a moment and then looks like it’s fast-forwarding to catch back up to live to play normally for a few seconds and repeat or just stop completely. This only happens with the live streams with Kodi as I can watch live streams fine via Chrome/Firefox/Edge. Any help would be greatly appreciated.
Kodi Version: 17.1 (Git:20170320-fc1619b) Windows 10 Pro Version: 1607 (14393.1066) CPU: AMD FX 8350 Eight-Core Processor 4.00 GHz RAM: 16.0 GB Video Card: GeForce GTX 1070 Video Driver: 376.53 Audio: HDMI NVidia High Definition Audio Log: http://paste.ubuntu.com/24527462/ Speed Test: http://speedof.me/show.php?img=170507030715-7006.png
This seems like a playback issue but Team-Kodi Members are telling me it's an addon issue. Thread: http://forum.kodi.tv/showthread.php?tid=313859
Looks to be either ffmepg/kodi or connection related(browsers hide these better in my experience). You can enable component logging for ffmepg which may tell more of the story. It's out of my realm but if you post a log with that enabled I can take a look at least. It looks like the decoder is always playing catch up in this log.
Hello Anxdpanic,
Thanks for your fast response! Here is the log with the requested logging. (Hope I did it correctly) Log: http://paste.ubuntu.com/24607450
Regards, Malkovexsur
this happens when there is not enough bandwidth, when the bottleneck happens you see this behavior where the stream tries to catch up indefinitely even after network conditions have improved, the fast forward only works for small hiccups, but if it lasts longer then it maybe goes into a loop where download segment->see not in sync->fast forward. To fix it should just close and re-establish the connection after like 10 seconds I think
Hello Untoreh,
Ok here is my issue with the argument "It's your Bandwith" I can load up a stream in Kodi and via a browser and only Kodi will have issues, in fact, I can have 15+ different streams going in a browser before I see any buffering issues while the one stream in Kodi is fubar. Personally, think this is a Live Playback issue but as stated the "Team-Kodi Members" seem to think its addon related.
Regards, Malkovexsur
mmhh, reading a second time seems like it is indeed a different problem. If you have already disabled hw accel, try disabling kodi colour management
It can still be connection outside of bandwidth, and a browser would still hide this better imo. Latency/jitter for example, the stream is segmented. It's not add-on related, and nothing in the logs jumps out at me regarding Kodi/ffmpeg itself either.
I've seen youtube users mention similar issues for live streams in going from v16.1 to v17 as well, so may be worth a shot in your case to try v16.1 to narrow things down.
Sorry I can't provide more help.
I'm experiencing the same issue during peak times and it is Jitter/ping for me. Confirmed pinging Google's DNS servers (ping 8.8.8.8 -t) and there's always several 150ms+ spikes when the stream suffers. Bandwidth tests show good up and down speeds during these times.
Its very frustrating. And I understand your pain if you're regularly experiencing this too.
Sprig
On 20 May 2017 18:57, "anxdpanic" [email protected] wrote:
It can still be connection outside of bandwidth, and a browser would still hide this better imo. Latency/jitter for example, the stream is segmented. It's not add-on related, and nothing in the logs jumps out at me regarding Kodi/ffmpeg itself either.
I've seen youtube users mention similar issues for live streams in going from v16.1 to v17 as well, so may be worth a shot in your case to try v16.1 to narrow things down.
Sorry I can't provide more help.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MrSprigster/Twitch-on-Kodi/issues/307#issuecomment-302888688, or mute the thread https://github.com/notifications/unsubscribe-auth/AF7npiphry0xEpJBOLve52FSsilDtSREks5r7yl1gaJpZM4NhCpg .
Hello Everybody,
@untoreh I can not find the option to disable that. @anxdpanic I will try that and report back. @MrSprigster Seems for me peak times are 24/7...
Regards, Malkovexsur
Reverted back to Kodi 16.1 issue still persist. Log: http://paste.ubuntu.com/24614351/
Regards, Malkovexsur
It is in kodi settings->system->display.
@MrSprigster high jitter with high bandwidth, mobile?
The in browser player skips aggressively, but I think its only possible with multithreaded segments, because you can't jump to the next segment if you don't have it :p , also it generally helps circumventing traffic shaping scenarios which the browser might elude
@untoreh I'm in an over subscribed area and I suspect the ISPs hardware just maxes out every so often, resulting in latency spikes.
Hello,
I am experiencing the same issue than @Malkovexsur. My stream is freezing every 10 seconds and then playback the stream. This problem occurs since around 2 weeks now, 24/7. Since the update of the plugin I guess. At first, I was on the version 15 of Kodi so I decided to move to the last version of Kodi but the problem remains.
I installed the Youtube addon and the TED Talk addon to see if there is problem regarding others video addons. Everything is fine, but those are not live streams, so it mights not be relevant.
I also looked at my network flow on my gateway and it seems my bandwidth is very low for the Twitch addon compared to the others addons of Kodi. Could it comes from the CDN of Twitch? I found this problem on Twitter but it seems it has been resolved.
Thanks,
Regards.
I have had the same issue (https://github.com/MrSprigster/Twitch-on-Kodi/issues/301) for a few weeks, and as myseroiusly as it started, it has ended. All through this time, my pings were fine and I was always able to stream video from other live sources (YouTube).
The only thing I was able to figure out was there seemed to be a bad server on Twitch's (or AWS') side. I was able to verify my physical/tcp/IP connection was completely OK to twitch, but the issue came when I tried to connect via openssl to twitch's servers. Every so often, the HTTPs connection would stall issuing the command (I would send data out but never got any data back).
I don't know why Kodi is really bad at dealing with this issue vs a browser, but I was able to confirm my browser had a similar issue (I would see API calls to kodi (getting my friends list for instance) stalling) but the twitch player would see the stalled HTTPs connection as regular network lag, then try to get a lower quality video which would initiate a new HTTPs request and basically get around the first stalled request. Kodi must not try to fallback to lower-bandwidth URLs on stall.
Here are the command I'd run: openssl s_client -connect api.twitch.tv:443 -debug
(Sorry for linking the tweets but this is all the record I have for my test runs): Here is a request that successfully creates the HTTPs handshake: https://pbs.twimg.com/media/C_udO4HUMAAK1KO.jpg:large and here is one that stalled: https://pbs.twimg.com/media/C_udXQ_UQAAEb6i.jpg:large
I was also able to confirm this exact problem at two locations that shared my ISP, but a third location that had a different ISP didn't have the problem that I could tell.
I would like to note that I saw the issue basically 24/7 for 2 weeks. I don't believe it was a bandwidth issue on either side.
Also, all through this time, my Apple TV's Twitch app (Twitchy) was fine. I did notice significant video degradation every so often but this is probably what the browser does - it notices a network stall and instantly tries the lower-bandwidth version of the video
@MrSprigster could it be that on congestion hours your ISP starts doing some traffic shaping? Are you sure that the downstream bitrate from twitch is constant during the spikes? It might be that just the twitch connection gets throttled.
I've tried through a VPN (using port 80) to my workplace which is on a very stable and fast connection and the same happens which pretty much rules out traffic shaping.
On 23 May 2017 10:30 am, "Francesco Giannelli" [email protected] wrote:
@MrSprigster https://github.com/mrsprigster could it be that on congestion hours your ISP starts doing some traffic shaping? Are you sure that the downstream bitrate from twitch is constant during the spikes? It might be that just the twitch connection gets throttled.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MrSprigster/Twitch-on-Kodi/issues/307#issuecomment-303343861, or mute the thread https://github.com/notifications/unsubscribe-auth/AF7npoN0I4ti2j8MXZbvzCWY5n5llB7Lks5r8qdOgaJpZM4NhCpg .
main problem here is that ffmpeg hls client is garbage and doesn't even support basic stuff like http keep-alive, then there is the problem with kodi 17 cache fast forwarding on buffer fill. don't expect this to get fixed because everyone thinks internet streaming is evil piracy. use streamlink or pay someone to write a proper HLS inputstream.
Been getting random micro freezes using twitch. I'm on 17.3 on a VU Duo 2. There's no fast catch-up, just an audio and visual micro freeze, I'd say once every 40 seconds or so then returning back to live . I use twitch everyday, it starts to happen after around 45 minutes, I have to stop and restart the stream to help clear the freezing.
I would just like to chime in and say that I have the same problem as @Malkovexsur described. This has been going on for quite a while now and has made watching twitch via kodi impossible for me.
As others has pointed out it works fine via Chrome/Firefox.
However, it also works flawlessly with mpv: https://github.com/mpv-player/mpv And IIRC, mpv also uses ffmpeg do decode the stream. I'm running gentoo and I compiled kodi myself and forced kodi to use my systems ffmpeg. So I think we can rule out ffmpeg version being a problem.
I think mpv is using youtube-dl to stream from twitch: https://github.com/rg3/youtube-dl/ Maybe using that for this plugin would solve this problem?
v2.1.0-alpha includes inputstream.adaptive support (>=2.0.10) and may help with this issue. https://github.com/MrSprigster/Twitch-on-Kodi/releases/tag/2.1.0-alpha
Excellent, thank you @anxdpanic !
i have 2.0.2, doesnt let you install it
From: anxdpanic [email protected] Sent: 28 September 2017 19:41 To: MrSprigster/Twitch-on-Kodi Cc: richhard1; Comment Subject: Re: [MrSprigster/Twitch-on-Kodi] Live Streams Freezing - Kodi support says its the Addon! (#307)
v2.1.0-alpha includes inputstream.adaptive support (>=2.0.10) and may help with this issue. https://github.com/MrSprigster/Twitch-on-Kodi/releases/tag/2.1.0-alpha
[https://avatars2.githubusercontent.com/u/6219686?v=4&s=400]https://github.com/MrSprigster/Twitch-on-Kodi/releases/tag/2.1.0-alpha
MrSprigster/Twitch-on-Kodihttps://github.com/MrSprigster/Twitch-on-Kodi/releases/tag/2.1.0-alpha github.com Contribute to Twitch-on-Kodi development by creating an account on GitHub.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MrSprigster/Twitch-on-Kodi/issues/307#issuecomment-332942889, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZlLO98-wMOn7HAHr81NUmRMD8OMkNvBks5sm_ZigaJpZM4NhCpg.
Not quite sure what you mean. But to install twitch 2.1.0 alpha you need to install script.module.python.twitch 2.0.0 alpha first. The zip for both is included in that release link. edit: And to use inputstream.adaptive requires inputstream.adaptive greater or equal to 2.0.10 (included in Kodi 17.4+)
Sorry, that was my fault. I've updated the plugin.video.twitch zip on that release page. Should install now.
Even if 2.0.0 is installed, 2.1.0 is failing, requesting dependencies?
On 29 Sep 2017, at 17:18, anxdpanic <[email protected]mailto:[email protected]> wrote:
Sorry, that was my fault. I've updated the plugin.video.twitch zip on that release page. Should install now.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MrSprigster/Twitch-on-Kodi/issues/307#issuecomment-333171146, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZlLOzp7TOGhm78tffCL5rZkfAIfERU4ks5snRgigaJpZM4NhCpg.
Re-download the same plugin.video.twitch zip(had a quick ghost change). The dependency issue should be resolved now.
That worked thanks, now safe to set to auto download updates?
On 29 Sep 2017, at 17:40, anxdpanic <[email protected]mailto:[email protected]> wrote:
Re-download the same plugin.video.twitch zip(had a quick ghost change). The dependency issue should be resolved now.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MrSprigster/Twitch-on-Kodi/issues/307#issuecomment-333176570, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZlLO6xChIaGNVDQYFyT4025QuzEuKGzks5snR1rgaJpZM4NhCpg.
It now starts stuttering live feeds around 2 1/2 hours instead of just 1 hour.
On 29 Sep 2017, at 17:40, anxdpanic <[email protected]mailto:[email protected]> wrote:
Re-download the same plugin.video.twitch zip(had a quick ghost change). The dependency issue should be resolved now.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/MrSprigster/Twitch-on-Kodi/issues/307#issuecomment-333176570, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZlLO6xChIaGNVDQYFyT4025QuzEuKGzks5snR1rgaJpZM4NhCpg.
Since installing the 2.1.0 alpha and enabling inputstream.adaptive, I haven't seen any stuttering or stream freeze/buffering. Nice work @anxdpanic for implementing this functionality into the add-on.