Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

hulu.sh, download from Hulu

(http://stream-recorder.com/forum/showthread.php?t=12801)

tcatone 10-19-2012 11:50 PM

Re: hulu.sh, download from Hulu


 
Hey, svnpenn.

I just want to thank you for taking the time to work on hulu.sh. I actually have absolutely no background in Linux or programming. However, I had been searching so long for a way to download from Hulu, and after finding my way to this forum, that I decided to suck it up and learn how to use Cygwin.

Anyway, I'm wondering which version of rtmpsrv we are supposed to use with hulu.sh. I have rtmpsrv 2.4 that I got from VideoHelp (rtmpdump), but I am unable to download. I see that there are multiple versions of rtmpsrv that many different people have worked on....

If it makes a difference, I'm using Windows 7 Home Premium SP1 and FireFox 16.0.1. Thanks for your help!!

svnpenn 10-20-2012 12:00 AM

Re: hulu.sh, download from Hulu


 
Quote:

Originally Posted by tcatone
Anyway, I'm wondering which version of rtmpsrv we are supposed to use with hulu.sh.

hulu.sh does not require RtmpSrv, only RtmpDump.

shamshel 10-26-2012 05:28 PM

Re: hulu.sh, download from Hulu


 
Hate to come outta nowhere and do this, but has something changed in hulu.sh? I'm getting:

Quote:

hulu.sh: line 21: syntax error near unexpected token `<'
hulu.sh: line 21: `until read < <(pidof $pc); do warn "$pc not found!"; done'
EDIT:

Ok, I think I got it. But now, this happens:

Quote:

Killed flash player for clean dump.
Restart video then press enter here.

Make choice. Avoid level3.
As you can see, there are no choices present.

EDIT 2:

I thought I should show what happens after I enter a random number (because no choices appear):

Code:

Make choice. Avoid level3.
2
+ rtmpdump -W http://download.hulu.com/huludesktop.swf -a '?' -o a.flv -r '' -y ''
RTMPDump v2.4 GIT-2012-07-26 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP URL: No :// in url!
WARNING: Couldn't parse the specified url ()!
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname

After that, the video crashes.

I've been searching these forums for a solution, and it seems like someone else had a similar problem to me in the past:

http://stream-recorder.com/forum/sho...3949#post53949

svnpenn 10-26-2012 11:48 PM

Re: hulu.sh, download from Hulu


 
Quote:

Originally Posted by shamshel
As you can see, there are no choices present.

As of this moment, the script is and has been working. If you want more help you will need to provide the Hulu page in question.

Code:

$ hulu.sh
Killed flash player for clean dump.
Restart video then press enter here.

 0      400_h264      akamai
 1      1000_h264      akamai
 2      400_h264      limelight
 3      1000_h264      limelight
 4      400_h264      level3
 5      1000_h264      level3
Make choice. Avoid level3.
1
+ rtmpdump -W http://download.hulu.com/huludesktop.swf -a 'ondemand?auth=daEbvbx
c1cSbibpaVdnbZbBbYcMcva.dXb8-bqI3sG-c0-XoIDuErZIyr&aifp=sll02152008&slist=hulu23
/647/60138647;.international=false&hgt=OZU7Pvs7j27-nhteNno7wle1tifVL5n72ztajNhv8
xOVZB5rGd0inzIqGIf_Lzj4q-v4605WcjlduQg0WmBPb9DER7AEdu2EXkcmlHsHzpg-L5A9XjUOApnPc
_0H_cXXDW34pLn6N17Vk9n21dZdU8LxlewjIiPG_QNrFdWQn2jgI8Q2XEpb_pPN17Xnr1XV49O8De-Qm
_ZcdaYBKTYQd84Bw6gHFPGn2q5RXF1OUTlAz2lhmY5gaOj3zeMEJsIw&hgt_ver=331370278' -o a.
flv -r rtmpe://cp39466.edgefcs.net/ondemand -y mp4:hulu23/647/60138647/agave5036
0969_13022436_H264_1000.mp4
RTMPDump v2.4-49-g6ed7d74
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  duration              1343.02
INFO:  moovPosition          36.00
INFO:  width                720.00
INFO:  height                400.00
INFO:  videocodecid          avc1
INFO:  audiocodecid          mp4a
INFO:  avcprofile            100.00
INFO:  avclevel              30.00
INFO:  aacaot                2.00
INFO:  videoframerate        23.98
INFO:  audiosamplerate      24000.00
INFO:  audiochannels        2.00
INFO: tags:
INFO:  ┬⌐too                Hulu v1.12
INFO: trackinfo:
INFO:  length                32230198.00
INFO:  timescale            24000.00
INFO:  language              und
INFO: sampledescription:
INFO:  sampletype            avc1
INFO:  length                64464896.00
INFO:  timescale            48000.00
INFO:  language              und
INFO: sampledescription:
INFO:  sampletype            mp4a
4669.127 kB / 40.04 sec (2.9%)


shamshel 10-27-2012 12:33 AM

Re: hulu.sh, download from Hulu


 
Quote:

Originally Posted by svnpenn (Post 55798)
As of this moment, the script is and has been working. If you want more help you will need to provide the Hulu page in question.

None of the videos I'm trying work. I've tried these so far:

http://www.hulu.com/watch/1783
http://www.hulu.com/watch/413189
http://www.hulu.com/watch/220145
http://www.hulu.com/watch/406882

Here's what's I'm getting:

Code:

shamshel@shamshel-PC /usr/local/bin
$ hulu.sh
Killed flash player for clean dump.
Restart video then press enter here.

Make choice. Avoid level3.
1
+ rtmpdump -W http://download.hulu.com/huludesktop.swf -a '?' -o a.flv -r '' -y ''
RTMPDump v2.4-49-g6ed7d74
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP URL: No :// in url!
WARNING: Couldn't parse the specified url ()!
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname

I'm using:
rtmpdump from https://github.com/svnpenn/rtmpdump/downloads
hulu.sh from https://github.com/svnpenn/etc/blob/master/hulu.sh (obviously)

svnpenn 10-27-2012 01:55 AM

Re: hulu.sh, download from Hulu


 
Quote:

Do the waiting for the user

Until now the script instructed the user to restart the video, then press enter.
This leaves room for error. If Ads play before the video and the user pressed
enter very quickly, then the script could dump flash player before the actual
video has started.

To prevent this the script no longer allows the user to determine proper
"waiting" time. Script will first try 2 seconds, then keep increasing by one
second until enough time has passed for the actual video to be captured.
github.com/svnpenn/etc/commit/7ee7

chanc 10-27-2012 03:01 AM

Re: hulu.sh, download from Hulu


 
Yes , the previous script requires the users to press enter at the proper time , that is , right after the video begins , not the ad.

chanc 10-27-2012 03:05 AM

Re: hulu.sh, download from Hulu


 
Quote:

Originally Posted by svnpenn (Post 55806)

By the way, after downloading the latest version , I found no rtmp-host.sh in the folder, but rtmp-help.sh .

shamshel 10-27-2012 01:03 PM

Re: hulu.sh, download from Hulu


 
Quote:

Originally Posted by svnpenn (Post 55806)

Thanks for trying to help me. The problem with this is that after the script kills Flash, I go to refresh the page, but the script doesn't provide enough time for the new video to load before killing Flash again.

So, basically, I'm getting an endless cycle of:
(1) "Attempt x, Restart video"
(2) Pressing refresh
(3) The refreshed video play for 2 seconds
(4) Flash crashes
(5) "Attempt x+1, Restart video"
etc.

Code:

shamshel@shamshel-PC /usr/local/bin
$ hulu.sh
This script requires Firefox.
Killed flash player for clean dump.
Attempt 1, Restart video.
Attempt 2, Restart video.
Attempt 3, Restart video.
Attempt 4, Restart video.
Attempt 5, Restart video.
Attempt 6, Restart video.

Quote:

Originally Posted by chanc (Post 55808)
Yes , the previous script requires the users to press enter at the proper time , that is , right after the video begins , not the ad.

Hmmm, I thought I was pressing enter after the real video (not the ad) loads. Maybe I just wasn't waiting long enough.

svnpenn 10-27-2012 05:59 PM

Re: hulu.sh, download from Hulu


 
Quote:

Kill dumper

previous script was killing "plugin-container", but not killing "dumper". This
could cause and issue when the program loops, because a second instance of
dumper could be called before the first instance is killed.
github.com/svnpenn/etc/commit/e6a5


All times are GMT -6. The time now is 11:40 PM.