Quantcast
Channel: Kodi Community Forum - Video Add-ons
Viewing all articles
Browse latest Browse all 4670

Bug - Error opening internet video streams with big cache-memorysize

$
0
0
Due to my bad WiFi-connection I had to deal with cache/buffer issues a lot.
My previous solution with big cache sizes worked well until some weeks ago.
Problem: When I now open an internet stream (e.g. via the youtube addon), I get an exception error similar to the one reported for an older bug of openELEC.

I also get:
Code:
14:53:10.278 T:140147083122432   DEBUG: CFileCache::Open - opening <videoplayback> using cache
14:53:10.278 T:140147083122432   DEBUG: CurlFile::Open(0x7f76645a9080) https://r2---sn-4g5ednld.googlevideo.com...87&itag=22
14:53:10.443 T:140147083122432   ERROR: Open - Unhandled exception

(full debug log)
Code:
14:53:08.872 T:140147083122432 NOTICE: [plugin.video.youtube] Running: YouTube (5.4.5x) on Krypton (Kodi-17.6) with Python 2.7.12
14:53:08.872 T:140147083122432 DEBUG: [plugin.video.youtube] Path: "/play/
14:53:08.872 T:140147083122432 DEBUG: [plugin.video.youtube] Params: "{'video_id': u'yLkXvBDQQyk'}"
14:53:08.877 T:140147083122432 DEBUG: [plugin.video.youtube] Selecting YouTube config "All"
14:53:08.877 T:140147083122432 DEBUG: [plugin.video.youtube] User is not logged in
14:53:08.991 T:140147083122432 ERROR: /home/xbmc/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest...l-warnings
InsecureRequestWarning)
14:53:09.672 T:140147083122432 ERROR: Previous line repeats 1 times.
14:53:09.672 T:140147083122432 DEBUG: [plugin.video.youtube] selectable streams: 4
14:53:09.672 T:140147083122432 DEBUG: [plugin.video.youtube] selectable stream: {'sort': [720, 0], 'meta': {'images': {}, 'video': {'id': u'yLkXvBDQQyk', 'title': u'Hazel Brugger fordert Nachsicht f\xfcr Donald Trump | heute-show vom 26.01.2018'}, 'subtitles': , 'channel': {'id': u'UCFqcNI0NaAA21NS9W3ExCRg', 'author': u'ZDF heute-show'}}, 'video': {'encoding': 'h.264', 'height': 720}, 'title': '720p (mp4;h.264 / aac@192)', 'url': u'https://r2---sn-4g5ednld.googlevideo.com/videoplayback?mm=31&mn=sn-4g5ednld&key=yt6&id=o-ACpsjJhAsfP82TwWlyjM6Y2pzjsW8NTcowGhcpdtep4o&mime=video/mp4&expire=1517082789&source=youtube&mt=1517061095&ipbits=0&initcwndbps=650000&mv=m&pl=33&ei=RYRsWrZihYnXAvrrnKAN&requiressl=yes&ms=au&lmt=1517055116581801&signature=6B6D497E3DE8FA1688C2EF2EA71A4444AB0C870C.E12565723AAF4F8B932A941CBF644CE33FBD5AC0&ip=2003:e7:93ee:a401:153b:2409:c275:36d&sparams=dur,ei,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,expire&ratebypass=yes&dur=283.887&itag=22', 'container': 'mp4', 'audio': {'bitrate': 192, 'encoding': 'aac'}}
14:53:09.672 T:140147083122432 DEBUG: [plugin.video.youtube] selectable stream: {'sort': [360, 0], 'meta': {'images': {}, 'video': {'id': u'yLkXvBDQQyk', 'title': u'Hazel Brugger fordert Nachsicht f\xfcr Donald Trump | heute-show vom 26.01.2018'}, 'subtitles': , 'channel': {'id': u'UCFqcNI0NaAA21NS9W3ExCRg', 'author': u'ZDF heute-show'}}, 'video': {'encoding': 'h.264', 'height': 360}, 'title': '360p (mp4;h.264 / aac@96)', 'url': u'https://r2---sn-4g5ednld.googlevideo.com/videoplayback?gir=yes&mime=video/mp4&key=yt6&expire=1517082789&mt=1517061095&initcwndbps=650000&requiressl=yes&signature=95143BD24ED247E5948024C341988878E9B2A07E.99DBCCF472739CDBC9FBF5E6582D7CC329440297&ip=2003:e7:93ee:a401:153b:2409:c275:36d&sparams=clen,dur,ei,gir,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,expire&itag=18&mm=31&mn=sn-4g5ednld&id=o-ACpsjJhAsfP82TwWlyjM6Y2pzjsW8NTcowGhcpdtep4o&source=youtube&ipbits=0&mv=m&pl=33&ei=RYRsWrZihYnXAvrrnKAN&ms=au&lmt=1517054884273878&dur=283.887&ratebypass=yes&clen=15445567', 'container': 'mp4', 'audio': {'bitrate': 96, 'encoding': 'aac'}}
14:53:09.673 T:140147083122432 DEBUG: [plugin.video.youtube] selectable stream: {'sort': [240, -20], 'meta': {'images': {}, 'video': {'id': u'yLkXvBDQQyk', 'title': u'Hazel Brugger fordert Nachsicht f\xfcr Donald Trump | heute-show vom 26.01.2018'}, 'subtitles': , 'channel': {'id': u'UCFqcNI0NaAA21NS9W3ExCRg', 'author': u'ZDF heute-show'}}, 'video': {'encoding': 'mpeg-4', 'height': 240}, 'title': '240p (3gp;mpeg-4 / aac@32)', 'url': u'https://r2---sn-4g5ednld.googlevideo.com/videoplayback?gir=yes&mime=video/3gpp&key=yt6&expire=1517082789&mt=1517061095&initcwndbps=650000&requiressl=yes&signature=3575A33983442AACFD598B71AE5CB506CCD7BCAA.3F475C062CB26317890DB211C386665DD9F09AE7&ip=2003:e7:93ee:a401:153b:2409:c275:36d&sparams=clen,dur,ei,gir,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,requiressl,source,expire&itag=36&mm=31&mn=sn-4g5ednld&id=o-ACpsjJhAsfP82TwWlyjM6Y2pzjsW8NTcowGhcpdtep4o&source=youtube&ipbits=0&mv=m&pl=33&ei=RYRsWrZihYnXAvrrnKAN&ms=au&lmt=1517054355169296&dur=283.933&clen=7851583', 'container': '3gp', 'audio': {'bitrate': 32, 'encoding': 'aac'}}
14:53:09.673 T:140147083122432 DEBUG: [plugin.video.youtube] selectable stream: {'sort': [144, -20], 'meta': {'images': {}, 'video': {'id': u'yLkXvBDQQyk', 'title': u'Hazel Brugger fordert Nachsicht f\xfcr Donald Trump | heute-show vom 26.01.2018'}, 'subtitles': , 'channel': {'id': u'UCFqcNI0NaAA21NS9W3ExCRg', 'author': u'ZDF heute-show'}}, 'video': {'encoding': 'mpeg-4', 'height': 144}, 'title': '144p (3gp;mpeg-4 / aac@24)', 'url': u'https://r2---sn-4g5ednld.googlevideo.com/videoplayback?gir=yes&mime=video/3gpp&key=yt6&expire=1517082789&mt=1517061095&initcwndbps=650000&requiressl=yes&signature=919E844C58E42B842BD5C997B0CF1468607CD92C.3192632DC1685444A0CD077B879A32E53892F2E7&ip=2003:e7:93ee:a401:153b:2409:c275:36d&sparams=clen,dur,ei,gir,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,requiressl,source,expire&itag=17&mm=31&mn=sn-4g5ednld&id=o-ACpsjJhAsfP82TwWlyjM6Y2pzjsW8NTcowGhcpdtep4o&source=youtube&ipbits=0&mv=m&pl=33&ei=RYRsWrZihYnXAvrrnKAN&ms=au&lmt=1517054281877892&dur=283.933&clen=2873118', 'container': '3gp', 'audio': {'bitrate': 24, 'encoding': 'aac'}}
14:53:09.673 T:140147083122432 DEBUG: [plugin.video.youtube] selected stream: {'sort': [720, 0], 'meta': {'images': {}, 'video': {'id': u'yLkXvBDQQyk', 'title': u'Hazel Brugger fordert Nachsicht f\xfcr Donald Trump | heute-show vom 26.01.2018'}, 'subtitles': , 'channel': {'id': u'UCFqcNI0NaAA21NS9W3ExCRg', 'author': u'ZDF heute-show'}}, 'video': {'encoding': 'h.264', 'height': 720}, 'title': '720p (mp4;h.264 / aac@192)', 'url': u'https://r2---sn-4g5ednld.googlevideo.com/videoplayback?mm=31&mn=sn-4g5ednld&key=yt6&id=o-ACpsjJhAsfP82TwWlyjM6Y2pzjsW8NTcowGhcpdtep4o&mime=video/mp4&expire=1517082789&source=youtube&mt=1517061095&ipbits=0&initcwndbps=650000&mv=m&pl=33&ei=RYRsWrZihYnXAvrrnKAN&requiressl=yes&ms=au&lmt=1517055116581801&signature=6B6D497E3DE8FA1688C2EF2EA71A4444AB0C870C.E12565723AAF4F8B932A941CBF644CE33FBD5AC0&ip=2003:e7:93ee:a401:153b:2409:c275:36d&sparams=dur,ei,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,expire&ratebypass=yes&dur=283.887&itag=22', 'container': 'mp4', 'audio': {'bitrate': 192, 'encoding': 'aac'}}
14:53:09.678 T:140147083122432 DEBUG: [plugin.video.youtube] Selecting YouTube config "All"
14:53:09.678 T:140147083122432 DEBUG: [plugin.video.youtube] User is not logged in
14:53:09.679 T:140147083122432 DEBUG: [plugin.video.youtube] Found cached data for video 'yLkXvBDQQyk'
14:53:09.681 T:140147083122432 DEBUG: [plugin.video.youtube] Converting VideoItem
14:53:09.705 T:140147083122432 DEBUG: [plugin.video.youtube] Shutdown of Kodion
14:53:09.705 T:140147083122432 INFO: CPythonInvoker(19, /home/xbmc/.kodi/addons/plugin.video.youtube/resources/lib/default.py): script successfully run
14:53:09.722 T:140146930349824 DEBUG: Thread scriptobs 140146930349824 terminating
14:53:09.723 T:140147968457088 INFO: easy_aquire - Created session to https://r2---sn-4g5ednld.googlevideo.com
14:53:09.825 T:140147083122432 INFO: Python script stopped
14:53:09.825 T:140147083122432 DEBUG: Thread LanguageInvoker 140147083122432 terminating
14:53:09.859 T:140147968457088 DEBUG: CCurlFile::GetMimeType - https://r2---sn-4g5ednld.googlevideo.com...87&itag=22 -> video/mp4
14:53:09.862 T:140147968457088 DEBUG: Loading settings for https://r2---sn-4g5ednld.googlevideo.com...87&itag=22
14:53:09.864 T:140147968457088 DEBUG: CPlayerCoreFactory::GetPlayers(https://r2---sn-4g5ednld.googlevideo.com...87&itag=22)
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
14:53:09.864 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
14:53:09.865 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
14:53:09.865 T:140147968457088 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
14:53:09.865 T:140147968457088 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
14:53:09.865 T:140147968457088 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
14:53:09.865 T:140147968457088 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
14:53:09.865 T:140147968457088 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
14:53:09.865 T:140147968457088 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
14:53:09.867 T:140147968457088 DEBUG: Radio UECP (RDS) Processor - new CDVDRadioRDSData
14:53:09.867 T:140147968457088 NOTICE: VideoPlayer: Opening: https://r2---sn-4g5ednld.googlevideo.com...87&itag=22
14:53:09.867 T:140147968457088 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
14:53:10.020 T:140147968457088 DEBUG: CCurlFile::GetMimeType - https://r2---sn-4g5ednld.googlevideo.com...87&itag=22 -> video/mp4
14:53:10.020 T:140147968457088 DEBUG: LinuxRendererGL: Cleaning up GL resources
14:53:10.020 T:140147968457088 DEBUG: CLinuxRendererGL:TonguereInit - precision of luminance 16 is 16
14:53:10.021 T:140147083122432 DEBUG: Thread VideoPlayer start, auto delete: false
14:53:10.021 T:140147083122432 NOTICE: Creating InputStream
14:53:10.021 T:140147083122432 DEBUG: CurlFile::Open(0x7f76891b0670) https://r2---sn-4g5ednld.googlevideo.com...87&itag=22
14:53:10.278 T:140147083122432 DEBUG: CFileCache::Open - opening <videoplayback> using cache
14:53:10.278 T:140147083122432 DEBUG: CurlFile::Open(0x7f76645a9080) https://r2---sn-4g5ednld.googlevideo.com...87&itag=22
14:53:10.443 T:140147083122432 ERROR: Open - Unhandled exception
14:53:10.443 T:140147083122432 ERROR: Open - Error opening https://r2---sn-4g5ednld.googlevideo.com...87&itag=22
14:53:10.445 T:140147083122432 ERROR: CVideoPlayer::OpenInputStream - error opening [https://r2---sn-4g5ednld.googlevideo.com/videoplayback?mm=31&mn=sn-4g5ednld&key=yt6&id=o-ACpsjJhAsfP82TwWlyjM6Y2pzjsW8NTcowGhcpdtep4o&mime=video/mp4&expire=1517082789&source=youtube&mt=1517061095&ipbits=0&initcwndbps=650000&mv=m&pl=33&ei=RYRsWrZihYnXAvrrnKAN&requiressl=yes&ms=au&lmt=1517055116581801&signature=6B6D497E3DE8FA1688C2EF2EA71A4444AB0C870C.E12565723AAF4F8B932A941CBF644CE33FBD5AC0&ip=2003:e7:93ee:a401:153b:2409:c275:36d&sparams=dur,ei,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,expire&ratebypass=yes&dur=283.887&itag=22]
14:53:10.445 T:140147083122432 NOTICE: CVideoPlayer::OnExit()
14:53:10.445 T:140147083122432 DEBUG: OnPlayBackStopped: play state was 1, starting 1
14:53:10.445 T:140147083122432 DEBUG: Thread VideoPlayer 140147083122432 terminating
14:53:10.445 T:140147968457088 DEBUG: OnPlayBackStopped: play state was 3, starting 0
14:53:10.445 T:140147968457088 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/play/?video_id=yLkXvBDQQyk]

This occurs if I have a big cache (3GB) in my advancedsettings.xml:
<memorysize>3000000000</memorysize>

With a reduced, but still large size of 1000000000 (1GB), the video is played normally. The settings for buffermode and readfactor are commented out and should be the default values.
The machine is Ubuntu 16.04 x64_86, Kodi 17.6, AMD A6-6400K APU (CPU+GPU). I have 4GB RAM (3GB accessible, 1GB reserved).
I tested the cache settings carefully (since it is quite big) and it worked with the cache filling completely.
With a different machine (Ubuntu 14.04, x64_86, Kodi 17.6, 8GB RAM) the streaming works for all settings. The machines have the same addon versions.

The issue occured not only with youtube or gvideo-streams, but also with streams from other providers. Therefore I did not post it in the youtube-thread and suspect it is a general issue.
The video I wanted to play is only 5 minutes long, so the cache should not be limiting here.

Perhaps this points at a deeper problem of the implementation of video playback or buffering in Kodi.
The big cache sizes might seem like an artificial problem, but if I have media with bitrate that exceeds my average possible network bitrate (25 MBit/s) for a few minutes, then a few hundred megabytes cache more can be the difference between watching or not. This happens for 1080p media from the local network (usually not for online streams).

Viewing all articles
Browse latest Browse all 4670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>