Kodi Community Forum

Full Version: [RELEASE] Hulu (Video) Plugin for XBMC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
rwparris2:

Here is the patch for version 2. It fixes the following issue:

1) Add more matching for 700K and 480K
2) Update to use Default Plugin quality setting ..

settings.xml :- http://ubuntu.pastebin.com/m5ee78526
stream_hulu.py :- http://ubuntu.pastebin.com/d6bf382ff
I'm having an issue running the plugin on Windows Server 2008 Enterprise. It's able to get a list of episodes and whatnot, but when I try to play an episode, it says "Opening stream" for an instant then nothing happens. I haven't made any modifications to the plugin script, just downloaded it and installed it. Part of my log file is below for debugging purposes. Thanks for any help!

Code:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> Xpath profile search : .//*[@profile='4x3 30fps High']
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> Video found : rtmp://cp39465.hulu.com/ondemand/?auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg<break>content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> RCode Milisecond : 1231700395244
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> RCode Random : 8920
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> RCode :89201231700395244
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:4864 M:4294967295  NOTICE: HULU -> Proper Video url : rtmp://cp39465.hulu.com:1935/ondemand?_fcs_vhost=cp39465.hulu.com&auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg
13:59:55 T:4864 M:4294967295  NOTICE:
13:59:55 T:2064 M:4294967295 WARNING: DIRECTORY::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 0
13:59:56 T:2064 M:4294967295  NOTICE: DVDPlayer: Opening: rtmp://cp39465.hulu.com:1935/ondemand?_fcs_vhost=cp39465.hulu.com&auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg
13:59:56 T:2064 M:4294967295 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
13:59:56 T:4068 M:4294967295  NOTICE: Creating InputStream
13:59:56 T:4068 M:4294967295  NOTICE: Creating Demuxer
13:59:56 T:4068 M:4294967295   ERROR: rtmp server sent error
13:59:56 T:4068 M:4294967295   ERROR: rtmp server requested close
13:59:56 T:4068 M:4294967295   ERROR: CDVDDemuxFFmpeg::Open - error reading from input stream, rtmp://cp39465.hulu.com:1935/ondemand?_fcs_vhost=cp39465.hulu.com&auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg
13:59:56 T:4068 M:4294967295   ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
13:59:56 T:4068 M:4294967295  NOTICE: CDVDPlayer::OnExit()
13:59:56 T:4068 M:4294967295  NOTICE: CDVDPlayer::OnExit() deleting input stream
13:59:56 T:2064 M:4294967295   ERROR: Playlist Player: skipping unplayable item: 0, path [rtmp://cp39465.hulu.com:1935/ondemand?_fcs_vhost=cp39465.hulu.com&auth=daEckcocnbldccUcXdzcsaWb0bbbDbRdmcV-bjAKgR-8-WpJDuDo1Czs&aifp=NS20070910&slist=content/39478/12/197/HuluTranscode_48800_35281_FLASH_700K_4x3_29_97__cX0M1qWRk0CFWObelkJIsg]
13:59:56 T:2064 M:4294967295  NOTICE: CDVDPlayer::CloseFile()
13:59:56 T:2064 M:4294967295 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
13:59:56 T:2064 M:4294967295  NOTICE: DVDPlayer: waiting for threads to exit
13:59:56 T:2064 M:4294967295  NOTICE: DVDPlayer: finished waiting
13:59:58 T:2064 M:4294967295  NOTICE: Storing total System Uptime
13:59:58 T:2064 M:4294967295  NOTICE: Saving settings
13:59:58 T:2064 M:4294967295  NOTICE: stop all
13:59:58 T:2064 M:4294967295  NOTICE: ES: Stopping event server
13:59:58 T:2064 M:4294967295  NOTICE: stop dvd detect media
13:59:58 T:2064 M:4294967295  NOTICE: stop sap announcement listener
13:59:58 T:2064 M:4294967295  NOTICE: clean cached files!
13:59:58 T:2064 M:4294967295  NOTICE: unload skin
13:59:58 T:2064 M:4294967295  NOTICE: stop python
13:59:58 T:2064 M:4294967295  NOTICE: stopped
13:59:58 T:2064 M:4294967295   ERROR: exception in CApplication::Process()
13:59:58 T:2064 M:4294967295  NOTICE: destroy
13:59:58 T:2064 M:4294967295   ERROR: Exception in CApplication::Cleanup()
13:59:58 T:2064 M:4294967295  NOTICE: application stopped...
the lists post alphabetical backwards. Is there a way to fix this? btw, great work. It is getting me to learn python.
hrcolb0 Wrote:the lists post alphabetical backwards. Is there a way to fix this? btw, great work. It is getting me to learn python.

I don't think its alphabetical, at least not for me. For me, it lists by air date/episode number, backwards. I think it has to do with how hulu lists things on their site. They always list the newest stuff first.
jsd115 Wrote:I'm having an issue running the plugin on Windows Server 2008 Enterprise. It's able to get a list of episodes and whatnot, but when I try to play an episode, it says "Opening stream" for an instant then nothing happens.

I have to click each episode twice on linux but it works.
nope, its straight up backwards in the category listi-ngs and others, too.
Code:
a = [66.25, 333, 333, 1, 1234.5]###this would store eps
a.reverse()# reverse ep listing

for eps in a:

Just reverse the list before you add the links
Great plugin!

Observations:

1. mine seems to time out when loading the list.
2. If I comment out the get show or episode list, it will time out quickly
3. resume from x:xx.xx doesn't work

Awesome work though!

01/09/09 release of the plugin
12/30/08 release of XBMC
Is there an option to download the videos from Hulu? I tried to switch to filemode and copy, but is doesn't work.
plankton88 Wrote:Is there an option to download the videos from Hulu? I tried to switch to filemode and copy, but is doesn't work.
I don't think this is possible with the current implementations of the rtmp client.
maybe we can get some devs to implement this.

take a look at rtmpdump post here

project url http://sourceforge.net/projects/rtmpdump

it includes scripts for hulu and iplayer to save videos.
Any progress on getting h.264 videos from hulu to play back properly (rather than at high-speed)?

I'm running XBMC on an xbox, so I'm stuck with the 480 resolution vids, which are less than optimum... the h.264 ones look much sharper. The 700 ones are too high res for the little ol' xbox, methinks.

Thanks, great work! Keep it up!
sion28: sorry your post is slightly unclear. I don't think i completely understand you. anyway i am going to talk about this issue.

I would like to address the speculation that the xbox can't handle the h264/acc episodes.

I have been saving these 480p(H264/AAC) files since sometime in june and i have been remuxing to mkv. I also have been converting the sami subtitles to srt and musing them in the mkv as well.

These files playback 98% fine on the xbox. There are bitrate spikes that cause some frame loss for a couple seconds on occasion but its only on a few rare scenes.

I have no problem with any of the animated shows though they playback perfectly in my experience.
sion28 Wrote:Any progress on getting h.264 videos from hulu to play back properly (rather than at high-speed)?

I'm running XBMC on an xbox, so I'm stuck with the 480 resolution vids, which are less than optimum... the h.264 ones look much sharper. The 700 ones are too high res for the little ol' xbox, methinks.

Thanks, great work! Keep it up!

It is an issue with rtmp lib, and no there hasn't been any progress.
BlueCop Wrote:sion28: sorry your post is slightly unclear. I don't think i completely understand you. anyway i am going to talk about this issue.

If you read rwparris2's response, maybe you'll understand what I was asking about.

BlueCop Wrote:I would like to address the speculation that the xbox can't handle the h264/acc episodes.

I never said it couldn't handle the codec. I have h264 encoded videos (ripped from my dvd collection) that play just fine. (Although I have some that drop frames a LOT... haven't yet figured out what codec settings I'm using that cause this... see my new thread in the xbox forum if you'd care to comment on this...)

BlueCop Wrote:I have been saving these 480p(H264/AAC) files since sometime in june and i have been remuxing to mkv. I also have been converting the sami subtitles to srt and musing them in the mkv as well.

These files playback 98% fine on the xbox. There are bitrate spikes that cause some frame loss for a couple seconds on occasion but its only on a few rare scenes.

Would you care to share how you download these files? A PM to me would be fine if you'd rather not publicly post this.

BlueCop Wrote:I have no problem with any of the animated shows though they playback perfectly in my experience.

I would think that animated shows (e.g. TV cartoon shows?) are much easier to encode and decode. Some of the more advanced animated feature films like those from Disney/Pixar for example might be more challenging.
I am still confused by your post
sion28 Wrote:(rather than at high-speed)?
what do you mean high speed?
sion28 Wrote:The 700 ones are too high res for the little ol' xbox, methinks.
700 ones? do you mean the bitrate or horizontal resolution? its unclear to me.

sion28 Wrote:I never said it couldn't handle the codec.
I took "are too high res for the little ol' xbox, methinks" to mean that the xbox didn't have the processing power to decode this material. again i don't think i understand your post.

sion28 Wrote:Would you care to share how you download these files? A PM to me would be fine if you'd rather not publicly post this.
Won't be happening and its probably a violation of some forum rule to talk about copyright infringement

If you read one page back i made a post about an open source program that is capable of saving hulu streams. you can then use ffmpeg to remux them to any format you like.

well anyway back on topic. sorry for the detour
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47