2013-03-22, 00:12
Hello folks.
I went through several buffering threads.
Here's what i found:
<network>
<cachemembuffersize>52428800</cachemembuffersize>
</network>
Note: 50 MB.
adding this to my advancedsettings.xml does not work with smb-delivery through my gigabit-network at home. It does not start caching it at all (tested by pausing playback and observing cache size displayed when pressing 'o'. Cache size stays zero.)
Youtube-Videos (trailers in this case) do not use the internet connection speed to its full extent (around 5 MB per second) but only buffer with an estimated 80KB/sec, causing some stuttering when trying to playback.
I just watched the logs and found that it created a playlist at yahoo http://playlist.yahoo.com/makeplaylist.d...d=36731319, downloading a .mov file which represents the trailer.
Indeed, even on my workstation the download rate was extremely low, resulting in a 10 minute download for 100 MB. Regarding my possible 6 MB/s internet connection, there must be a bottleneck at yahoo somewhere.
When trying to play a youtube-supported trailer, xbmc cannot open the data stream to youtube:
If i open the Video-URL in my browser, it works without problems: http://www.youtube.com/watch?v=3tZUrCugF94
So the question that arises is: why does it download content from yahoo when i set youtube-trailers to 'activated' and how can i enable buffering for smb-streams?
I went through several buffering threads.
Here's what i found:
<network>
<cachemembuffersize>52428800</cachemembuffersize>
</network>
Note: 50 MB.
adding this to my advancedsettings.xml does not work with smb-delivery through my gigabit-network at home. It does not start caching it at all (tested by pausing playback and observing cache size displayed when pressing 'o'. Cache size stays zero.)
Youtube-Videos (trailers in this case) do not use the internet connection speed to its full extent (around 5 MB per second) but only buffer with an estimated 80KB/sec, causing some stuttering when trying to playback.
I just watched the logs and found that it created a playlist at yahoo http://playlist.yahoo.com/makeplaylist.d...d=36731319, downloading a .mov file which represents the trailer.
Indeed, even on my workstation the download rate was extremely low, resulting in a 10 minute download for 100 MB. Regarding my possible 6 MB/s internet connection, there must be a bottleneck at yahoo somewhere.
When trying to play a youtube-supported trailer, xbmc cannot open the data stream to youtube:
Code:
3:28:17 T:140039893968768 DEBUG: StartScript - calling plugin YouTube('plugin://plugin.video.youtube/','2','?action=play_video&videoid=3tZUrCugF94')
23:28:17 T:140039893968768 INFO: initializing python engine.
23:28:17 T:140039893968768 DEBUG: new python thread created. id=8
23:28:17 T:140039893968768 DEBUG: WaitOnScriptResult - waiting on the YouTube (id=8) plugin...
23:28:17 T:140039405115136 NOTICE: Thread XBPyThread start, auto delete: false
23:28:17 T:140039405115136 DEBUG: Python thread: start processing
23:28:17 T:140039413507840 DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x7f5d70005950
23:28:17 T:140039405115136 NOTICE: -->Python Interpreter Initialized<--
23:28:17 T:140039405115136 DEBUG: Process - The source file to load is /home/xbmc/.xbmc/addons/plugin.video.youtube/default.py
23:28:17 T:140039405115136 DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/addons/plugin.video.youtube:/usr/share/xbmc/addons/script.module.simplejson/lib:/usr/share/xbmc/addons/weather.wunderground/resources/lib/wunderground:/usr/share/xbmc/addons/script.module.pil/lib:/home/xbmc/.xbmc/addons/script.common.plugin.cache/lib:/home/xbmc/.xbmc/addons/script.module.simple.downloader/lib:/home/xbmc/.xbmc/addons/script.module.parsedom/lib:/home/xbmc/.xbmc/addons/script.module.elementtree/lib:/usr/share/xbmc/addons/script.module.pysqlite/lib:/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PIL:/usr/lib/pymodules/python2.7:
23:28:17 T:140039405115136 DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/plugin.video.youtube
23:28:17 T:140039405115136 DEBUG: Instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 2.1.0 of the xbmc.python api
23:28:17 T:140039405115136 NOTICE: YouTube-4.4.3
23:28:17 T:140039405115136 NOTICE: CommonFunctions-2.5.1
23:28:17 T:140039405115136 DEBUG: LocalizeStrings: no strings.po file exist at /home/xbmc/.xbmc/addons/plugin.video.youtube/resources/language/German, fallback to strings.xml
23:28:17 T:140039405115136 DEBUG: LocalizeStrings: no strings.po file exist at /home/xbmc/.xbmc/addons/plugin.video.youtube/resources/language/English, fallback to strings.xml
23:28:17 T:140039893968768 DEBUG: ------ Window Deinit (DialogContextMenu.xml) ------
23:28:18 T:140039413507840 DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x7f5d70005950
23:28:18 T:140039405115136 DEBUG: Previous line repeats 1 times.
23:28:18 T:140039405115136 NOTICE: links: 'dict'
23:28:18 T:140039405115136 INFO: Scriptresult: Success
23:28:18 T:140039893968768 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
23:28:18 T:140039405115136 INFO: Python script stopped
23:28:18 T:140039405115136 DEBUG: Thread XBPyThread 140039405115136 terminating
23:28:18 T:140039893968768 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
23:28:18 T:140039893968768 ERROR: XBMC.PlayMedia could not play media: plugin://plugin.video.youtube/?action=play_video&videoid=3tZUrCugF94
23:28:18 T:140039893968768 DEBUG: ExecuteXBMCAction : Translating SetFocus(50)
23:28:18 T:140039893968768 DEBUG: ExecuteXBMCAction : To SetFocus(50)
23:28:18 T:140039893968768 DEBUG: waiting for python thread 8 (/home/xbmc/.xbmc/addons/plugin.video.youtube/default.py) to stop
23:28:18 T:140039893968768 DEBUG: python thread 8 (/home/xbmc/.xbmc/addons/plugin.video.youtube/default.py) destructed
23:28:19 T:140039413507840 DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0x7f5d70005950
23:28:22 T:140039893968768 DEBUG: Previous line repeats 6 times.
23:28:22 T:140039893968768 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
If i open the Video-URL in my browser, it works without problems: http://www.youtube.com/watch?v=3tZUrCugF94
So the question that arises is: why does it download content from yahoo when i set youtube-trailers to 'activated' and how can i enable buffering for smb-streams?