XBMC Community Forum
[RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC (/showthread.php?tid=79487)



- HenrikDK - 2011-05-15 17:04

liemaz Wrote:No changes to the network. Search function in the Youtube plug-in works, and I can browse the categories and even log in to my Youtube account though the plugin. All other internet plugins such as TED talks etc... work fine.

It's kinda hard for me to offer anymore help than that.. as the problem doesn't really appear in the plugin, but in XBMC when the dvdplayer tries to open the video stream from YouTube there's a curl error that indicates that youtube is returning Http >400 errors, but sadly xbmc doesn't give more information than that.
Code:
09:29:31 T:1640 M:4294967295  NOTICE: YouTube-2.0.3 - Playing video: Call of Duty Black Ops: Top 10 Amazing Kills: Episode 22 by Anoj - -AhibiieqAA - http://v20.lscache2.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=914002,906717&itag=22&ipbits=8&signature=8AF4B4220170AF40B507BC4A3510DE28EBF2503C.54FE7FF962DA63B8FE89EC5C6​4297437FAAA6DBD&sver=3&ratebypass=yes&expire=1305482400&key=yt1&ip=69.0.0.0&id=f808626e289ea800 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
09:29:32 T:2412 M:4294967295  NOTICE: DVDPlayer: Opening: http://v20.lscache2.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=914002,906717&itag=22&ipbits=8&signature=8AF4B4220170AF40B507BC4A3510DE28EBF2503C.54FE7FF962DA63B8FE89EC5C6​4297437FAAA6DBD&sver=3&ratebypass=yes&expire=1305482400&key=yt1&ip=69.0.0.0&id=f808626e289ea800 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
09:29:32 T:2412 M:4294967295 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
09:29:32 T:3768 M:4294967295  NOTICE: Creating InputStream
[b]09:29:32 T:3768 M:4294967295 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 22[/b]
09:29:32 T:3768 M:4294967295   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
09:29:32 T:3768 M:4294967295   ERROR: XFILE::CFileCache::Open - failed to open source <http://v20.lscache2.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=914002,906717&itag=22&ipbits=8&signature=8AF4B4220170AF40B507BC4A3510DE28EBF2503C.54FE7FF962DA63B8FE89EC5C6​4297437FAAA6DBD&sver=3&ratebypass=yes&expire=1305482400&key=yt1&ip=69.0.0.0&id=f808626e289ea800 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8>
09:29:32 T:3768 M:4294967295   ERROR: CDVDPlayer::OpenInputStream - error opening [http://v20.lscache2.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=914002,906717&itag=22&ipbits=8&signature=8AF4B4220170AF40B507BC4A3510DE28EBF2503C.54FE7FF962DA63B8FE89EC5C6​4297437FAAA6DBD&sver=3&ratebypass=yes&expire=1305482400&key=yt1&ip=69.0.0.0&id=f808626e289ea800 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8]
09:29:32 T:3768 M:4294967295  NOTICE: CDVDPlayer::OnExit()
09:29:32 T:3768 M:4294967295  NOTICE: CDVDPlayer::OnExit() deleting input stream
09:29:32 T:2412 M:4294967295   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/explore/feeds/discussed&action=play_video&videoid=-AhibiieqAA]
09:29:32 T:2412 M:4294967295  NOTICE: CDVDPlayer::CloseFile()
09:29:32 T:2412 M:4294967295 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED

Code:
CURLE_HTTP_RETURNED_ERROR (22)

This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server returns an error code that is >= 400.
Have you tried downloading a video from the plugin?


- liemaz - 2011-05-15 17:24

HenrikDK Wrote:
Code:
09:29:31 T:1640 M:4294967295  NOTICE: YouTube-2.0.3 - Playing video: Call of Duty Black Ops: Top 10 Amazing Kills: Episode 22 by Anoj - -AhibiieqAA - http://v20.lscache2.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=914002,906717&itag=22&ipbits=8&signature=8AF4B4220170AF40B507BC4A3510DE28EBF2503C.54FE7FF962DA63B8FE89EC5C6​4297437FAAA6DBD&sver=3&ratebypass=yes&expire=1305482400&key=yt1&ip=69.0.0.0&id=f808626e289ea800 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
09:29:32 T:2412 M:4294967295  NOTICE: DVDPlayer: Opening: http://v20.lscache2.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=914002,906717&itag=22&ipbits=8&signature=8AF4B4220170AF40B507BC4A3510DE28EBF2503C.54FE7FF962DA63B8FE89EC5C6​4297437FAAA6DBD&sver=3&ratebypass=yes&expire=1305482400&key=yt1&ip=69.0.0.0&id=f808626e289ea800 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
09:29:32 T:2412 M:4294967295 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
09:29:32 T:3768 M:4294967295  NOTICE: Creating InputStream
[b]09:29:32 T:3768 M:4294967295 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 22[/b]
09:29:32 T:3768 M:4294967295   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
09:29:32 T:3768 M:4294967295   ERROR: XFILE::CFileCache::Open - failed to open source <http://v20.lscache2.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=914002,906717&itag=22&ipbits=8&signature=8AF4B4220170AF40B507BC4A3510DE28EBF2503C.54FE7FF962DA63B8FE89EC5C6​4297437FAAA6DBD&sver=3&ratebypass=yes&expire=1305482400&key=yt1&ip=69.0.0.0&id=f808626e289ea800 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8>
09:29:32 T:3768 M:4294967295   ERROR: CDVDPlayer::OpenInputStream - error opening [http://v20.lscache2.c.youtube.com/videoplayback?sparams=id,expire,ip,ipbits,itag,ratebypass&fexp=914002,906717&itag=22&ipbits=8&signature=8AF4B4220170AF40B507BC4A3510DE28EBF2503C.54FE7FF962DA63B8FE89EC5C6​4297437FAAA6DBD&sver=3&ratebypass=yes&expire=1305482400&key=yt1&ip=69.0.0.0&id=f808626e289ea800 | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8]
09:29:32 T:3768 M:4294967295  NOTICE: CDVDPlayer::OnExit()
09:29:32 T:3768 M:4294967295  NOTICE: CDVDPlayer::OnExit() deleting input stream
09:29:32 T:2412 M:4294967295   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/explore/feeds/discussed&action=play_video&videoid=-AhibiieqAA]
09:29:32 T:2412 M:4294967295  NOTICE: CDVDPlayer::CloseFile()
09:29:32 T:2412 M:4294967295 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED

It's kinda hard for me to offer anymore help than that.. as the problem doesn't really appear in the plugin, but in XBMC when the dvdplayer tries to open the video stream from YouTube there's a curl error that indicates that youtube is returning Http >400 errors, but sadly xbmc doesn't give more information than that.

Code:
CURLE_HTTP_RETURNED_ERROR (22)

This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server returns an error code that is >= 400.
Have you tried downloading a video from the plugin?
It does not download videos either. Its not a big deal, maybe it a problem with my router or something my ISP as messed up.

I appreciate you taking a look at it.


- speed32219 - 2011-05-15 20:27

I get similar errors as posted below if I add the line <cachemembuffersize>0</cachemembuffersize> to my advancedsettings.xml.

<network>
<disableipv6>true</disableipv6>
<cachemembuffersize>0</cachemembuffersize>
</network>

I lose streaming from apple movie trailers, cnn, cnet, etc. it continues through the meus and selections as if everrything is good, but when you select a stream you get the following error. If you remove or comment out the cachemembuff entry and reload xbmc it will start working again.

Code:
14:19:48 T:2904890224 M:1805402112  NOTICE: [PLUGIN] - Apple Movie Trailers Lite (Version: 1.9.0-r1639) initialized!
14:19:48 T:2904890224 M:1805402112  NOTICE: ======================================================================
14:19:51 T:3078657920 M:1798991872  NOTICE: DVDPlayer: Opening: http://trailers.apple.com/movies/independent/13assassins/13assassins-tlr1_h640w.mov?|User-Agent=QuickTime%2F7.6.5+%28qtver%3D7.6.5%3Bos%3DWindows+NT+5.1Service+Pack+3%29
14:19:51 T:3078657920 M:1798991872 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:19:51 T:2904890224 M:1798991872  NOTICE: Creating InputStream
14:19:52 T:2904890224 M:1798991872  NOTICE: Creating Demuxer
14:20:25 T:2904890224 M:1794568192 WARNING: could not find codec parameters for http://trailers.apple.com/movies/independent/13assassins/13assassins-tlr1_h640w.mov?|User-Agent=QuickTime%2F7.6.5+%28qtver%3D7.6.5%3Bos%3DWindows+NT+5.1Service+Pack+3%29
14:20:25 T:2904890224 M:1794568192   ERROR: OpenDemuxStream - Error creating demuxer
14:20:25 T:2904890224 M:1794568192  NOTICE: CDVDPlayer::OnExit()
14:20:25 T:2904890224 M:1794568192  NOTICE: CDVDPlayer::OnExit() deleting input stream
14:20:25 T:3078657920 M:1794695168   ERROR: Playlist Player: skipping unplayable item: 0, path [http://trailers.apple.com/movies/independent/13assassins/13assassins-tlr1_h640w.mov?|User-Agent=QuickTime%2F7.6.5+%28qtver%3D7.6.5%3Bos%3DWindows+NT+5.1Service+Pack+3%29]
14:20:25 T:3078657920 M:1794695168  NOTICE: CDVDPlayer::CloseFile()
14:20:25 T:3078657920 M:1794695168 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:20:25 T:3078657920 M:1794695168  NOTICE: DVDPlayer: waiting for threads to exit
14:20:25 T:3078657920 M:1794695168  NOTICE: DVDPlayer: finished waiting

Hope this helps, but what release/date do I need installed for the cache to work. I am current running the following:

Starting XBMC, Platform: Linux (Ubun
tu 10.10, 2.6.35-28-generic i686). Built on Mar 9 2011 (Git:Unknown)

I installed a release using git, it is XBMC 10.1 Git Unknown Compiled March 9, 2001.


- pike - 2011-05-15 21:18

not sure, May 1 2011 should work I think

time to checkout GIT and build yourself maybe Tongue


- gott_sei_dank - 2011-05-16 01:27

@pike finally a sensible approach, before I had set <cachemembuffersize> to a multiple of my internet download speed thinking it would be an approximation of buffering time but I found myself watching the codec info more than the content itself.

@pike and HenrikDK So what chance a more intelligent buffer for the future, if you know the size of the stream and the type of codec used with the user setting their max download speed couldn't <cachemembuffersize> be set automatically, this of course makes an assumption of number of network conditions.


- liemaz - 2011-05-16 01:39

liemaz Wrote:It does not download videos either. Its not a big deal, maybe it a problem with my router or something my ISP as messed up.

I appreciate you taking a look at it.

The problem has been fixed. It was not an issue with the plug-in. It was some sort of DNS error.


- speed32219 - 2011-05-16 05:17

pike Wrote:not sure, May 1 2011 should work I think

time to checkout GIT and build yourself maybe Tongue

Thank you for the date info. Rolleyes


- HenrikDK - 2011-05-16 12:10

gott_sei_dank Wrote:@pike and HenrikDK So what chance a more intelligent buffer for the future, if you know the size of the stream and the type of codec used with the user setting their max download speed couldn't <cachemembuffersize> be set automatically, this of course makes an assumption of number of network conditions.

From my point of view this is entirely an xbmc issue as xbmc's "dvdplayer" core is the piece of code thats best positioned to control and regulate streaming, the plugins job should just remain to be resolving a video id to the final video url, other wise it would break the whole idea with plugins.


- pike - 2011-05-16 20:20

HenrikDK Wrote:From my point of view this is entirely an xbmc issue as xbmc's "dvdplayer" core is the piece of code thats best positioned to control and regulate streaming, the plugins job should just remain to be resolving a video id to the final video url, other wise it would break the whole idea with plugins.

Indeed it is. But you could still offer ideas of how you would want this intelligent caching system to work (I got some ideas already)


- HenrikDK - 2011-05-16 20:42

pike Wrote:Indeed it is. But you could still offer ideas of how you would want this intelligent caching system to work (I got some ideas already)

Well now that I think about it, I have one minor suggestion from my own experience, right now xbmc seems to throw away video that's already been played, meaning that when you "skip back", the video stream has to be downloaded again, and you wait for buffering once more.

Also we have some users who have children that are watching the same videos again and again (repetition is fun Smile), it would be nice if the caching system would keep the last 2-3 videos lying around (disk space permitting) or at-least the last played item (ie like the YouTube flash player).

The last suggestion there is something we are working on in the plugin (ie. if a user has downloaded a video we serve up the local copy) so it might not be as important, but the buffering issues during rewind seem very unfortunate.