• 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 12
[RELEASE] YouTube (Video) Plugin
Hi all,

when I play a video it work fine, but if I want stop it ( and I press the stop button ), XBMC freeze with OS Ubuntu LL. After that my only chance it's to do an hardware reset.

Where is the problem ?

I have Ubuntu LL OS and I use a Motherboard with the ATI HD 4200
This plug-in is my wife's daily staple and has been keep my marriage going :-) But the last few days (about a week) it quit working. The videos show up and can be searched (meaning network is working) but when you select a video it downloads and then nothing happens. After two or three such attempts, I get a message that says (something like) failed to play the video, please check the log. So I checked the .xbmc/temp/xbmc.log file and at the relevant place, it seems to be attempting to play the video and then either exiting the DVD Player app, or showing the same vague error message with different wording.

I am not sure what to do.

I was on Ubuntu Karmic XBMC 9.11 and YouTube 1.7.4. But I have upgraded to Ubuntu Lynx, XBMC 9.11r26018 and YouTube 1.7.4 with no effect. I have tried uninstalling and reinstalling XBMC and the YouTube plugin but had no joy.

I have tried installing other three YouTube plugins (Movies, Shows etc) and they work fine. I have also installed Boxee and it can play all the YouTube videos. However the search function in Boxee is not as useful as the XBMC/YouTube search. So my wife does not want to use Boxee.

I will see if I can get a full debug log and paste it here to get some help. But I was wondering if anyone has got any other ideas for me. Thanks in advance.
yelloguy Wrote:This plug-in is my wife's daily staple and has been keep my marriage going :-) But the last few days (about a week) it quit working. The videos show up and can be searched (meaning network is working) but when you select a video it downloads and then nothing happens. After two or three such attempts, I get a message that says (something like) failed to play the video, please check the log. So I checked the .xbmc/temp/xbmc.log file and at the relevant place, it seems to be attempting to play the video and then either exiting the DVD Player app, or showing the same vague error message with different wording.

I'm getting this too, also since about a week. That's why I was poking around this thread a few days ago. When nobody else was talking about it I figured it was just me. My log actually looks similar to henke002's one above, but I can't seem to play any videos at all.

I just went back to using the YouTube script. It's dinkier, but has always been more reliable for me. As a bonus I can actually understand the code behind the script, and write improvements. This plugin I have no idea what's going on.
BSSLoK Wrote:I'm getting this too, also since about a week. That's why I was poking around this thread a few days ago. When nobody else was talking about it I figured it was just me. My log actually looks similar to henke002's one above, but I can't seem to play any videos at all.

I just went back to using the YouTube script. It's dinkier, but has always been more reliable for me. As a bonus I can actually understand the code behind the script, and write improvements. This plugin I have no idea what's going on.

Good to know that I am not alone. Can you point me to which script you use? I have a script and a plugin setup on the XBox/XBMC. But that hasn't seen any use since I got this Acer Revo with Ubuntu setup.

Thanks in advance.

PS: Found the script and installed it. The search is same as Boxee but the script works better in the end because of the familiar XBMC UI.
those who have video not playing at all issues. if you are logged in, try not entering a username in settings.

search results can be changed in xbmcplugin_categories.py.

change "updated" to "relevant". post back if the results are better, i may change it.
Code:
categories += ( ( query.split( " | " )[ 1 ].encode( "utf-8" ), "videos", vq, username, cat, True, "updated", 0, thumbnail, False, ), )

and maybe

Code:
if ( ptype == 2 ):
            categories += ( ( xbmc.getLocalizedString( 30970 ), "search_categories", "", "", "", True, "updated", 3, "", False, ), )
        elif ( ptype == 1 ):
            categories += ( ( xbmc.getLocalizedString( 30955 ), "search_users", "", "", "", True, "updated", 2, "", False, ), )
        else:
            categories += ( ( xbmc.getLocalizedString( 30956 ), "search_videos", "", "", "", True, "updated", 1, "", False, ), )




for those with playing issues, where the video plays, but badly. that's an xbmc issue, that may be fixed in newer versions, which the current plugin will not work with.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
I'm having the same issue that, since last week, no single video plays.

Nuka1195 Wrote:those who have video not playing at all issues. if you are logged in, try not entering a username in settings.

Thanks for the suggestion but it didn't fix it.


Nuka1195 Wrote:change "updated" to "relevant". post back if the results are better, i may change it.
If I apply these changes, no videos in "Search People" show up.
[quote=Nuka1195]
search results can be changed in xbmcplugin_categories.py.

change "updated" to "relevant". post back if the results are better, i may change it.
Code:
categories += ( ( query.split( " | " )[ 1 ].encode( "utf-8" ), "videos", vq, username, cat, True, "updated", 0, thumbnail, False, ), )

PLEASE DO NOT CHANGE IT!!!

XBMC plug-in's results are better than the script or the Boxee results. At least for what my wife does. I will see if I can change the script's results to be in line with the Plug-in's.

Thanks.
Nuka1195 Wrote:search results can be changed in xbmcplugin_categories.py.

change "updated" to "relevant". post back if the results are better, i may change it.
Code:
categories += ( ( query.split( " | " )[ 1 ].encode( "utf-8" ), "videos", vq, username, cat, True, "updated", 0, thumbnail, False, ), )

FYI, changing it to just "relevant" kills the plugin, "relevancy" did wonders with the search results.

I searched for "timbaland katy perry", go a few results. Many of them working, but the "real" video from the user TimbalandVEVO on Youtube creates this lo:

[HTML]03:03:44 T:3077650320 M:1314869248 NOTICE: DVDPlayer: Opening: http://v4.lscache1.c.youtube.com/videopl...sparams=id
03:03:44 T:3077650320 M:1314947072 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
03:03:44 T:2744068976 M:1314947072 NOTICE: Creating InputStream
03:03:45 T:2744068976 M:1299202048 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
03:03:45 T:2744068976 M:1299202048 ERROR: Open - failed to open source <http://v4.lscache1.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id>
03:03:45 T:2744068976 M:1314947072 ERROR: CDVDPlayer::OpenInputStream - error opening [http://v4.lscache1.c.youtube.com/videopl...sparams=id]
03:03:45 T:2744068976 M:1314947072 NOTICE: CDVDPlayer::OnExit()
03:03:45 T:2744068976 M:1314947072 NOTICE: CDVDPlayer::OnExit() deleting input stream
03:03:45 T:3077650320 M:1314947072 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/YouTube/?category='play_video'&video_url=u%27http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKDKva-s_khY%26feature%3Dyoutube_gdata%27&releated='KDKva-s_khY'&update_listing=0]
03:03:45 T:3077650320 M:1314947072 NOTICE: CDVDPlayer::CloseFile()
03:03:45 T:3077650320 M:1314947072 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
03:03:45 T:3077650320 M:1314947072 NOTICE: DVDPlayer: waiting for threads to exit
03:03:45 T:3077650320 M:1314947072 NOTICE: DVDPlayer: finished waiting
[/HTML]

It says: 03:03:45 T:2744068976 M:1299202048 ERROR: Open - failed to open source <http://v4.lscache1.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id>

This feels like something is pointing to an ip-adress of 0.0.0.0 and the "id" parameter is empty and below this:

03:03:45 T:3077650320 M:1314947072 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/YouTube/?category='play_video'&video_url=u%27http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKDKva-s_khY%26feature%3Dyoutube_gdata%27&releated='KDKva-s_khY'&update_listing=0]

This gives you an "youtubeid" of KDKva-s_khY, when i tried http://www.youtube.com/watch?v=KDKva-s_khY in my browser, it starts the requested video.

Working log:


Code:
03:06:31 T:2799696752 M:1312817152  NOTICE: -->Python Interpreter Initialized<--
03:06:35 T:3077650320 M:1313796096  NOTICE: DVDPlayer: Opening: http://v15.lscache8.c.youtube.com/videoplayback?ip=85.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=900029&algorithm=throttle-factor&itag=35&ipbits=8&burst=40&sver=3&expire=1273910400&key=yt1&signature=1CC6951CF0C67E610F5B1A075BDC523402DF8E56.0F84F6BD543C6FA3D2493FE022CE073085E63666&factor=1.25&id=ad009ff03759dc63
03:06:35 T:3077650320 M:1313923072 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
03:06:35 T:2744068976 M:1313923072  NOTICE: Creating InputStream
03:06:36 T:2744068976 M:1298026496  NOTICE: Creating Demuxer
03:06:36 T:2744068976 M:1298026496  NOTICE: Opening video stream: 0 source: 256
03:06:36 T:2744068976 M:1298026496  NOTICE: Creating video codec with codec id: 0
03:06:36 T:2744068976 M:1298026496   ERROR: Unsupported video codec
03:06:36 T:2744068976 M:1298026496 WARNING: OpenVideoStream - Unsupported stream 0. Stream disabled.
03:06:36 T:2744068976 M:1298026496  NOTICE: Opening audio stream: 1 source: 256
03:06:36 T:2744068976 M:1298026496  NOTICE: Finding audio codec for: 0
03:06:36 T:2744068976 M:1297391616   ERROR: Unsupported audio codec
03:06:36 T:2744068976 M:1297391616 WARNING: OpenAudioStream - Unsupported stream 1. Stream disabled.
03:06:36 T:2744068976 M:1297391616 WARNING: Process - Could not detect frame rate for: http://v15.lscache8.c.youtube.com/videoplayback?ip=85.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=900029&algorithm=throttle-factor&itag=35&ipbits=8&burst=40&sver=3&expire=1273910400&key=yt1&signature=1CC6951CF0C67E610F5B1A075BDC523402DF8E56.0F84F6BD543C6FA3D2493FE022CE073085E63666&factor=1.25&id=ad009ff03759dc63. Using default of 25.000 fps for conversion of any commercial break frame markers to times.
03:06:36 T:2744068976 M:1297391616  NOTICE: Opening audio stream: 1 source: 256
03:06:36 T:2744068976 M:1297391616  NOTICE: Finding audio codec for: 86018
03:06:36 T:2744068976 M:1297391616  NOTICE: Creating audio thread
03:06:36 T:2727283568 M:1297391616  NOTICE: running thread: CDVDPlayerAudio::Process()
03:06:36 T:2744068976 M:1297391616  NOTICE: Opening video stream: 0 source: 256
03:06:36 T:2744068976 M:1297391616  NOTICE: Creating video codec with codec id: 28
03:06:36 T:2744068976 M:1297391616  NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(0x0)
03:06:36 T:2744068976 M:1296977920  NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
03:06:36 T:2744068976 M:1296977920  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
03:06:36 T:2744068976 M:1296977920  NOTICE: Creating video thread
03:06:36 T:2727283568 M:1296850944  NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 44100, no pass-through
03:06:36 T:2718890864 M:1296723968   ERROR: (VDPAU) ReleasePixmap called without valid pixmap
03:06:36 T:2718890864 M:1296695296  NOTICE: running thread: video_thread
03:06:36 T:2718890864 M:1296683008  NOTICE: Creating 1280x720 pixmap
03:06:36 T:2718890864 M:1294860288  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 0). Creating a new one. TRY #1
03:06:36 T:2718890864 M:1294352384  NOTICE:  (VDPAU) FiniVDPAUOutput
03:06:36 T:2718890864 M:1294352384  NOTICE:  (VDPAU) screenWidth:1280 vidWidth:640
03:06:36 T:2718890864 M:1294352384  NOTICE:  (VDPAU) screenHeight:720 vidHeight:480
03:06:36 T:2718890864 M:1287057408  NOTICE:  (VDPAU) Total Output Surfaces Available: 4 of a max (tmp: 4 const: 4)
03:06:36 T:2718890864 M:1287057408  NOTICE: VDPAU Decoder capabilities:
03:06:36 T:2718890864 M:1287057408  NOTICE: name          level macbs width height
03:06:36 T:2718890864 M:1287057408  NOTICE: ------------------------------------
03:06:36 T:2718890864 M:1287057408  NOTICE: MPEG1             0  8192  2048  2048
03:06:36 T:2718890864 M:1287057408  NOTICE: MPEG2_SIMPLE      3  8192  2048  2048
03:06:36 T:2718890864 M:1287057408  NOTICE: MPEG2_MAIN        3  8192  2048  2048
03:06:36 T:2718890864 M:1287057408  NOTICE: H264_MAIN        41  8190  2032  2048
03:06:36 T:2718890864 M:1287057408  NOTICE: H264_HIGH        41  8190  2032  2048
03:06:36 T:2718890864 M:1287057408  NOTICE: VC1_SIMPLE        1  8190  2048  2048
03:06:36 T:2718890864 M:1287057408  NOTICE: VC1_MAIN          2  8190  2048  2048
03:06:36 T:2718890864 M:1287057408  NOTICE: VC1_ADVANCED      4  8190  2048  2048
03:06:36 T:2718890864 M:1287057408  NOTICE:  (VDPAU) Creating the video mixer
03:06:36 T:2718890864 M:1287057408  NOTICE: (VDPAU) enabling VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
03:06:36 T:2718890864 M:1284722688  NOTICE:  fps: 25.000000, pwidth: 640, pheight: 480, dwidth: 640, dheight: 480
03:06:36 T:2718890864 M:1284722688  NOTICE: Display resolution DESKTOP : 1280x720 @ 50.00 - Full Screen (12)
03:06:36 T:3077650320 M:1284722688  NOTICE: Using GL_TEXTURE_2D
03:06:36 T:3077650320 M:1284722688  NOTICE: GL: Using VDPAU render method
03:06:36 T:3077650320 M:1284722688  NOTICE: GL: NPOT texture support detected
03:06:36 T:2718890864 M:1284722688  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 1). Creating a new one. TRY #1
03:06:36 T:2718890864 M:1284087808  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 2). Creating a new one. TRY #1
03:06:36 T:2718890864 M:1283452928  NOTICE:  (VDPAU) Didnt find a Video Surface Available (Total: 3). Creating a new one. TRY #1
03:06:36 T:3077650320 M:1282691072 WARNING: CreateFile, successfuly opened </home/hank/.xbmc/skin/Rapier/720p/VideoFullscreen.xml> instead of </home/hank/.xbmc/skin/Rapier/720p/VideoFullScreen.xml>
03:06:36 T:3077650320 M:1281953792  NOTICE: Created m_glPixmapTexture (69)

Is it the script or is it youtube that screws around. It feels like only the good stuff doesnt work, all the "crap" works. Might be a coincidence but... my stomach tells me it isnt.
Came across one other thing. When a video plays in the background and you're browsing other videos and the playing video ends, xbmc crashes ;(

xbmc.log says nothing, everything just stops responding.
I was really looking forward to getting this working but it doesn't look like it's functioning at the moment:


Code:
00:44:08 T:2889800560 M:145199104  NOTICE: [PLUGIN] 'YouTube: Version - 1.7.4-r' initialized!
00:44:08 T:2889800560 M:145199104  NOTICE:      ** Required XBMC Revision: r19457 **
00:44:08 T:2889800560 M:145199104  NOTICE:      ** Found XBMC Revision: r26018 [Compatible] **
00:44:11 T:2938104688 M:146604032   ERROR: Texture manager unable to load file: YouTube/top_favorites-fanart.png
00:44:24 T:2889800560 M:147480576  NOTICE: -->Python Interpreter Initialized<--
00:44:24 T:2889800560 M:147480576  NOTICE: Exception
00:44:24 T:2889800560 M:147480576  NOTICE: exceptions.TypeError
00:44:24 T:2889800560 M:147480576  NOTICE: :
00:44:24 T:2889800560 M:147480576  NOTICE: "'NoneType' object is not callable"
00:44:24 T:2889800560 M:147480576  NOTICE:  in
00:44:24 T:2889800560 M:147480576  NOTICE: <bound method SharedSocket.__del__ of <httplib.SharedSocket instance at 0xe05a834>>
00:44:24 T:2889800560 M:147480576  NOTICE:  ignored
00:44:24 T:2889800560 M:147480576  NOTICE: Exception
00:44:24 T:2889800560 M:147480576  NOTICE: exceptions.TypeError
00:44:24 T:2889800560 M:147480576  NOTICE: :
00:44:24 T:2889800560 M:147480576  NOTICE: "'NoneType' object is not callable"
00:44:24 T:2889800560 M:147480576  NOTICE:  in
00:44:24 T:2889800560 M:147480576  NOTICE: <bound method SharedSocket.__del__ of <httplib.SharedSocket instance at 0xa277a64>>
00:44:24 T:2889800560 M:147480576  NOTICE:  ignored
00:44:41 T:2889800560 M:145362944  NOTICE: -->Python Interpreter Initialized<--
00:44:44 T:3077461904 M:144846848  NOTICE: DVDPlayer: Opening: http://v3.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dWSVVRUF9FSkNNNl9NS1RB&fexp=901014%2C900029&algorithm=throttle-factor&itag=35&ipbits=0&burst=40&sver=3&expire=1274562000&key=yt1&signature=B8890E43724335E29470E3AB4A3EA23A728BBD59.5399D277A6AF8656BDB2CF466FC07DF0A010DD69&factor=1.25&id=4726ac041a10a820
00:44:44 T:3077461904 M:144859136 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:44:44 T:2929711984 M:144859136  NOTICE: Creating InputStream
00:44:45 T:2929711984 M:129064960   ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
00:44:45 T:2929711984 M:129064960   ERROR: Open - failed to open source <http://v3.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dWSVVRUF9FSkNNNl9NS1RB&fexp=901014%2C900029&algorithm=throttle-factor&itag=35&ipbits=0&burst=40&sver=3&expire=1274562000&key=yt1&signature=B8890E43724335E29470E3AB4A3EA23A728BBD59.5399D277A6AF8656BDB2CF466FC07DF0A010DD69&factor=1.25&id=4726ac041a10a820>
00:44:45 T:2929711984 M:144809984   ERROR: CDVDPlayer::OpenInputStream - error opening [http://v3.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dWSVVRUF9FSkNNNl9NS1RB&fexp=901014%2C900029&algorithm=throttle-factor&itag=35&ipbits=0&burst=40&sver=3&expire=1274562000&key=yt1&signature=B8890E43724335E29470E3AB4A3EA23A728BBD59.5399D277A6AF8656BDB2CF466FC07DF0A010DD69&factor=1.25&id=4726ac041a10a820]
00:44:45 T:2929711984 M:144809984  NOTICE: CDVDPlayer::OnExit()
00:44:45 T:2929711984 M:144809984  NOTICE: CDVDPlayer::OnExit() deleting input stream
00:44:45 T:3077461904 M:144809984   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/YouTube/?category='play_video'&video_url=u%27http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRyasBBoQqCA%26feature%3Dyoutube_gdata%27&releated='RyasBBoQqCA'&update_listing=0]
00:44:45 T:3077461904 M:144809984  NOTICE: CDVDPlayer::CloseFile()
00:44:45 T:3077461904 M:144809984 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:44:45 T:3077461904 M:144809984  NOTICE: DVDPlayer: waiting for threads to exit
00:44:45 T:3077461904 M:144809984  NOTICE: DVDPlayer: finished waiting
Hi all,

is this plugin broken for everyone or are there some people out there who can still play videos succesfully? Anyone know where I can find the YoutubeClient.pyo sources? Is this a library provided by Google?

MB
mighty_bombero Wrote:Hi all,

is this plugin broken for everyone or are there some people out there who can still play videos succesfully? Anyone know where I can find the YoutubeClient.pyo sources? Is this a library provided by Google?

MB

Still broken for me. I will be more upset when my AppleTV shows up.
Thumbs Up 
Nuka1195 Wrote:search results can be changed in xbmcplugin_categories.py.

change "updated" to "relevant". post back if the results are better

With "relevance" the results - for Search Videos - is finally what one (me Smile) would expect!
Taking into account that apparently that it is not for everyone:
yelloguy Wrote:XBMC plug-in's results are better than the script or the Boxee results. At least for what my wife does.
Maybe making it an option - defaulting to "relevance" :p - would be the best all around solution...
This is still broken. Please what more can be done to get attention on this?
Hey how's it going on this plugin? is there another one for youtube that works?
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 12

Logout Mark Read Team Forum Stats Members Help
[RELEASE] YouTube (Video) Plugin1