(2014-04-24, 00:48)RedPenguin Wrote: Now that YouTube Live works, is there any way to adjust the quality? The Young Turks live stream is 1080p and it buffers like crazy on some Internets I use.
I would like to drop it to 720p, 480p, etc when using slower Internet so it doesn't buffer like crazy.
I looked around the YT plugins menu and settings and could'nt find anything to drop the live stream rate. Unless there's something I did'nt see.
I took a look in the code and found this snippet in YouTubeplayer.py...
Code:
if len(links) != 0:
video[u"video_url"] = self.selectVideoQuality(params, links)
elif "hlsvp" in video:
#hls selects the quality based on available bitrate (adaptive quality), no need to select it here
video[u"video_url"] = video[u"hlsvp"]
self.common.log("Using hlsvp url %s" % video[u"video_url"])
In my amateur understanding, it appears that the live stream URL this plugin uses will automatically choose the bestt quality feed based on your bandwidth. So, if you have a decent enough connection, you'll most likely get the best stream.
I couldn't find anything else that the plugin can do to manually change your feed. However, I think I might have a work around.
You can configure XBMC to throttle its connection. Start XBMC and go to
System>System. First, Change the
Settings Level to
Expert. Now, under
Internet Access you'll see a setting named
Internet connection bandwidth limitation, changing that setting to
1536kbps should get you an SD stream, and changing it to
3072kbps should get you a 720p stream.
This isn't a very elegant workaround, but if you really want your live streams coming in different rates, this might be the only option for now, unless there's a proper way of doing this that I overlooked.