[RELEASE] Hulu (Video) Plugin for XBMC - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154) +---- Thread: [RELEASE] Hulu (Video) Plugin for XBMC (/showthread.php?tid=42041) |
- superkt - 2008-12-27 mpskeeter Wrote:Enclosed is an extension of the 0.2 version that will scrape all of the shows in their inventory and reads the different RSS feeds. I used this .2 version and it works pretty well. My only problem is the "Movies" section only lists 24 movies where as the older, manual list has about 130. Also the "Shows" section cuts off around the letter R. Anyway that's an easy fix? I'm also having trouble with the .2 version freezing up at the end of clips pretty frequently and I have to reboot the xbox. BUT....a huge thanks for the script anyway. It's pretty awesome. - timdog82001 - 2008-12-27 superkt Wrote:I used this .2 version and it works pretty well. My only problem is the "Movies" section only lists 24 movies where as the older, manual list has about 130. Also the "Shows" section cuts off around the letter R. same issues here - philipacentaur - 2008-12-27 superkt Wrote:I used this .2 version and it works pretty well. My only problem is the "Movies" section only lists 24 movies where as the older, manual list has about 130. Also the "Shows" section cuts off around the letter R. The one I posted was made specifically to address those first two issues. As for the freezing -- that's over my head. I've fixed a few problems with my "version" that I hadn't run into before I uploaded it. I'll probably post a new "default.py" when I finish hammering out a few more. - efi4eye - 2008-12-27 Anyone else having issues playing? My shows run for about 20 min or so, then the XBox locks up and I have to reboot. Any help? - BlueCop - 2008-12-27 i am using philipacentaur modification for complete show/movie list. it loads the show/movies lists very quickly. catching up on chuck episodes now. I am also having an issue with with freezing at the end of the episode and i am using the custom build posted earlier in the thread along with phllacentaur modified script. It doesn't completely freeze because if i let it sit for a minute or 2 it will finally stop. part of the issue i am having is that once it is playing out the last of the buffer at the end of the episode it will freeze and play to the last frame(then freeze). the remote controls don't respond while it plays out the buffer either. as a current work around i just stop the episodes when the credits start to play and i don't have any freezing issues. philipacentaur: if you don't mind elaborating can you elaborate on these bugs you're fixing? sorry i am always curious. have you tried parsing the rmtp url for the 480p stream from the smil xml file? I notice that they are streaming from a different server then the vp6/mp3 700kb and 400kb flv files. Is there more security on streaming these files? or is it simply a incompatibility with xbmc. edit: sorry just saw the code comment "# do not handle h264 yet, need to decode the url" I got a python book and im reading up so maybe i can help soon. Also for those looking into adding subtitles support it is a pretty easy url. "http://www.hulu.com/videos/transcripts/" + PID + ".xml" which contains something like <transcripts> <en> http://www.hulu.com/transcripts/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.smi </en> </transcripts> I have yet to find any with more then the "en" english subtitles though "http://www.hulu.com/transcripts/" + PID + ".smi" so the real url for the subtitles file though. I have been trying to get xbmc to display these but there is some bug in display the smi file i have saved. i am looking at some logs in an attempt to figure this out now. if i convert these files to srt there is not an issue. - philipacentaur - 2008-12-27 I'm glad it's working for you. I'm just trying to get a hang of Unicode translation, since it screws up at least one show that I know of. I would love to use RSS feeds, but they simply don't exist in any complete/usable form that we know of, so I'm scraping the HTML and using the feed search. Another thing I fixed since my upload was dealing with shows that have colons in the title. I was splitting titles from the feed search results at the colon and making sure they matched the scraped titles before they're added to the menus, but I neglected to consider the case of titles containing colons -- so I fixed that. I only did this because "Battlestar Galactica" was also listing "Battlestar Galactica Classic" episodes. No big deal, but I found it annoying. Uh, and I guess I'll need to figure out a way to deal with TV Shows and Movies that have the exact same title, because you'll notice that "Voyage To The Bottom Of The Sea" lists the TV Show episodes in both the move and TV show listings. Anyway, sorry this is all so scatterbrained. I have a wicked cold and my brain is cloudy as hell. I'll play around with the subtitle thing. You make some good suggestions, so I'm looking forward to seeing what you do when you hit the books. Correct formating of H264 urls - BlueCop - 2008-12-27 this is a semi response to the comment in the script "# do not handle h264 yet, need to decode the url" i think this is the correct way to "decode" them. Code: URL from xml I don't know how to implement this though. sorry i'm a horrible programmer. again trying to learn. i am attempting to write a new formatVideoUrl function to format the urls correctly for H264 videos but thought i would make a post because it might be more efficient. i have have been killing too many brain cells lately. Thanks again for all those involved. my girl is crazy over it. so i get points for installing it on my xboxs. WOO!! - BlueCop - 2008-12-27 Well I modified addVideoLinks and formatVideoUrl to correctly format H264 urls(breaking support for VP6/mp3 700 and 400 streams) just to test if they could play. Code: NOTICE: if i change the way i handle the url it will give me these errors. So i think i have the rmtp url correct. Property: <Name: code, STRING: NetConnection.Connect.Rejected> Property: <Name: description, STRING: [ AccessManager.Reject ] : Access denied!> "DEBUG: Property: <Name: code, STRING: NetStream.Play.StreamNotFound>" I am encouraged that it is connecting but i have the file name wrong. - BlueCop - 2008-12-27 i am a little confused because with some sniffing i think that the url is correct for connecting but i need the media path to be different. Example for this rtmp stream rtmp://cp47346.edgefcs.net:1935/ondemand?_fcs_vhost=cp47346.edgefcs.net&auth=daEcubjbNbAaOdRdWbndebKddcecidlaccK-bjvFsp-4q-WoOCADtYAAp&aifp=sll02152008&slist=hulufms3/47311/7/321/H264_1Mbps_TranscodeBacklog_15853__opcl3EvRm0WA0Y+Bw1Jnsw.flv;.international=false but media path be mp4:hulufms3/47311/7/321/H264_1Mbps_TranscodeBacklog_15853__opcl3EvRm0WA0Y+Bw1Jnsw.flv I am unsure how to accomplish this. I don't think i understand how the rmtp protocol works. Its time to do some more reading if i try to include the mp4: in the url i will get Property: <Name: code, STRING: NetConnection.Connect.Rejected> Property: <Name: description, STRING: [ AccessManager.Reject ] : Access denied!> I am sure i have the rtmp url correct but need to change the path once it is connected. i don't completely understand this stuff. so sorry for acting like a retarded monkey but i was hoping someone might come along with some words of wisdom. I really really want h264/acc streams because the subpar 64kbit mp3 sound is bothering me on alot of episodes. the aac codec is far superior in these low bitrate situations. they also use sbr so that helps as well. Edit: ok i think this issue is similar to the one happening with http://trac.xbmc.org/ticket/5492 when it issues the play command it needs to do "mp4:hulufms3/47311/7/321/H264_1Mbps_TranscodeBacklog_15853__opcl3EvRm0WA0Y+Bw1Jnsw.flv" instead of "hulufms3/47311/7/321/H264_1Mbps_TranscodeBacklog_15853__opcl3EvRm0WA0Y+Bw1Jnsw.flv" but i can't include the mp4: in the url or i won't be granted access. I am going to do a dirty hack with rmtp.cpp and see if i can get it to function properly so i can at least see if the xbmc ffmpeg will playback the streams. I have to find my VS 2003 discs before i can try it though =( - BlueCop - 2008-12-27 ok after looking at the rtmp.ccp for a while and decompiling the player.swf i think i found the problem we need to be able to pass the PageUrl and PlayPath to rtmp.cpp separately In SendPlay() in rmtp.cpp it will parse the PageUrl for the PlayPath if it isn't given one and this is where our issues are arising because the parsed PlayUrl is not correct. I am not sure how this is done. This would also fix the Ticket #5492 issue with out a patch because we could issue the PlayPath independently. I will have cleaned up the python code and im ready for processing the urls to get the PlayUrl and PlayPath if someone can help me on passing both these values on to the rtmp lib Does anyone know how to do what i am suggesting? Update: SUCCESS!!!!!! i got it working after reading up on some of the patches on the issue tracking system. I am updating the script now. There are some stutter issues on the h264 stream. I have tried changing the buffer size which has no effect. The CPU usage is ok too. If i save the same file i try streaming it will playback using dvdplayer without issue(except on some high bitrate spikes it will drop some frames). so it is a bug with it streaming over rtmp. it only plays about 10-12 fps rather then the full 24 or 30. I think this is just a bug that needs to be isolated and fixed though. With these changes it will make the http://trac.xbmc.org/ticket/5492 issue obsolete because we won't be parsing the PlayUrl for the PlayPath. Thus the special compiled version won't be needed anymore. I am cleaning up the modified and new functions to get the correct PlayUrl and PlayPath for all streams because i broke the vp6/mp3 streams doing these experiments but it will be easy to fix. Well i am going to go to work. i will post the updated script once i get it complete. i have been up all night(i love the holidays) so i might go get some sleep and finish up this afternoon. - stallion11885 - 2008-12-27 I've been using this plugin and it is awesome! One thing I can't figure out though, I want to add more shows to my list. I have looked through every file in the plugin folder and I can't seem to see anywhere where the shows it is grabbing are listed. In the 3rd or 4th post in this thread someone listed a whole bunch of shows, so I was just going to find where the current shows were listed and replace them with that more complete list. Any help would be appreciated. Thanks in advance. 480p(H264/AAC) video support - BlueCop - 2008-12-28 ok here is my mod to the script to add for support H264 videos. there are some playback issues for streaming h264/acc but that is in the realm of xbmc developers and not this script. i will try to put together a bug report. http://www.mediafire.com/?ymmywgcbdbj this is a modified versions of philipacentaur posted script from Post 132 hopefully he can grave his bug fixes for us. This should completely fix the streaming issues with ;.international=false urls as described in ticket 5492 without patches to the rtmp.cpp well i hope i have added some value here. i am going to go work on adding subtitle support Also please post any problems you have or if you can clean up my code. i am brand new to python and might not have done some of it the most efficient way. so any programming tips are welcome. - JeffElkins - 2008-12-28 JeffElkins Wrote:Is anyone using this plugin with Ubuntu 8.04? JeffElkins Wrote:It's frustrating, but the plugin doesn't work at all for me. Bump on this. I've yet to get this to work using svn and ubuntu 8.04. If this plugin is not usable with Linux and svn, I'd sure appreciate a reply. - BlueCop - 2008-12-28 JeffElkins: i am sorry i exclusively using xbmc on xbox right now. so i can't help perhaps someone else more knowledgeable on that platform could. Can you post a few lines from your logs after you try to play a video? I am sure that would help diagnose any problems going on. - BlueCop - 2008-12-28 I am trying to work on the option to save the files to your xbox hdd as a work around for the buggy streaming of h264 as of right now. Also i plan on cutting my teeth with python on a module to download and parse the smi subtitles and converting to srt to be saved with the flv. I am doing this because the support for smi seems to not work with these files. I think i will be able to add support for starting on any of the chapter marks very shortly. i have to pass a "?start=" appended to the PlayPath i believe. So i can read the segment and endcredit marks from the smil file and have the server start the streaming at any any point of the normal commercial breaks. if i can build a playlist to work with the chapters marks then i will be able to add an advertisement support option as well. I have no timeline on any of this though. i am going to try to add one feature at a time and see what i can get done over the holidays. I am having fun learning python and a little about xbmc. |