svnpenn
06-14-2012, 07:04 PM
The problem I have with RtmpSrv is, it does not have a way to choose quality.
For example on Hulu they will have 1000 stream, 650 stream, and 400 stream. RtmpSrv will only capture the stream that is actually playing, no more.
This script allows you to choose from quality and CDN, before invoking RtmpDump.
It is written in Bash, and should only require rtmpdump.exe and a standard Cygwin installation. Please post if you have problems.
http://github.com/svnpenn/etc/blob/master/hulu.sh
svnpenn
06-16-2012, 10:28 AM
github.com/svnpenn/dotfiles/commit/ebbd
Support limelight CDN
the RTMP token, as found in the hulu SMIL file uses encoded ampersands, e.g.
"&". limelight CDN does not accept these, they need to be decoded first.
Numerous other fixes
- Search for "plugin-container.exe" instead of "plugin-container"
- Improve Bash SMIL parsing
- Call "/bin/kill" instead of "env kill"
- Use "<" instead of "cat"
- Use array instead of temporary XML file
- Update Hulu SWF
svnpenn
06-16-2012, 05:41 PM
github.com/svnpenn/dotfiles/commit/6377
Remove call to sed
The sed call in xmlget() was only being used by "token".
Change it to bash string substitution.
svnpenn
06-17-2012, 08:35 PM
github.com/svnpenn/dotfiles/commit/fc80
Support Flash 11.3
Adobe has made a change to flash player.
blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox
With version 11.3, flash player now runs as 3 processes.
* plugin-container.exe
* FlashPlayerPlugin_11_3_300_257.exe
* FlashPlayerPlugin_11_3_300_257.exe (2nd instance)
The data for dumping is contained in one of the last two. This patch dumps all 3
process and search all 3. Patch should still work on older versions of flash.
svnpenn
06-17-2012, 11:29 PM
github.com/svnpenn/dotfiles/commit/dc03
Disable flash player protected mode for Firefox
According to http://forums.adobe.com/thread/1018071
instead of dealing with the new protected mode, which involves 3 processes for
the flash player, you can simply disable it.
This means once again only plugin-container.exe will need to be dumped and not
these new processes. This will speed up the dumping process and parsing process.
svnpenn
06-24-2012, 02:21 AM
github.com/svnpenn/dotfiles/commit/44bf
Faster parsing of dump file
"cat -v" creates print-friendly output from binary file.
attrget() function rewrite, use string substitution instead of grep for better
speed.
svnpenn
06-25-2012, 02:40 AM
github.com/svnpenn/etc/blob/master/hulu.sh
New link, moderator please update.
ka6_jeram
06-25-2012, 08:04 AM
This happened to all Hulu link that I tried. Is it maybe because I use the unofficial rtmpdump?. I use the v2.5 ones.
svnpenn
06-25-2012, 04:30 PM
This happened to all Hulu link that I tried. Is it maybe because I use the unofficial rtmpdump?. I use the v2.5 ones.
You will need to post link to the video, I cannot reproduce.
ka6_jeram
06-25-2012, 05:27 PM
http://www.hulu.com/watch/374154
svnpenn
06-26-2012, 06:04 AM
Working
$ hulu.sh
Press enter after video starts
Printing results
1 1000_h264 level3
2 1000_h264 akamai
3 650_h264 limelight
4 650_h264 level3
5 650_h264 akamai
6 480_vp6 limelight
7 480_vp6 level3
8 480_vp6 akamai
9 400_h264 limelight
10 400_h264 level3
11 400_h264 akamai
12 1000_h264 limelight
Make choice. Avoid level3.
2
+ rtmpdump -W http://download.hulu.com/huludesktop.swf -a 'ondemand?auth=daEbwai
dXctbjdwcVb2dWc.ambLaPdUaabL-bp6AuD-c0-YnNEAEwZJAo&aifp=sll02152008&slist=hulu11
/610/60088610;.international=false&hgt=OZU7Pvs7j27-nhteNno7wi_3ao6vlYo1COP3BVPp-
aTr3JS75f_gKgnw5UKnHenxv-x-Y1Q9qxtCC_lenq57JHbRNxrum6EuLhwAbGRsfe_lf_RyJv714S T9_
oS6WcVqPNgpyDKMtqHAW2D9o0FTtMyPavFQwjqgoPZcRxhngs-LCixcraz8yh-XyW8a4kTqB9pk1BP49
RdP2OVk_T3lhtRMJqrenuOQ4U_E4OBUtwdcPF73YYlxd8A0nT7 d8izk&hgt_ver=331370278' -o ou
t.flv -r rtmpe://cp39466.edgefcs.net/ondemand -y mp4:hulu11/610/60088610/agave50
312932_10669309_H264_1000.mp4
RTMPDump v2.4-34-g7340f6d
(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 1524.85
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 22050.00
INFO: audiochannels 2.00
INFO: tags:
INFO: ©too Hulu v1.11
INFO: trackinfo:
INFO: length 36593557.00
INFO: timescale 24000.00
INFO: language und
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 67246080.00
INFO: timescale 44100.00
INFO: language und
INFO: sampledescription:
INFO: sampletype mp4a
17427.517 kB / 149.65 sec (9.8%)
svnpenn
07-08-2012, 08:41 PM
github.com/svnpenn/etc/commit/a571
Use the Bash temporary variable
Bash already has a temporary variable, $_
This can be used instead of an arbitrarily named variable.
I also utilized some more process substitution for better speed of script
execution.
How can I get this working on ubuntu?
What changes do I need to make?
Thanks.
How can I get this working on ubuntu?
What changes do I need to make?
Thanks.
At a guess the only thing i can see is this line
p="plugin-container.exe"
So try........
p="plugin-container"
or
p="/usr/lib/firefox-X.X.X/plugin-container"
X.X.X been the version of fifefox. :)
svnpenn
07-21-2012, 11:26 AM
In addition Im pretty sure the dumper.exe is not portable. That is what dumps the process memory of plugin-container.exe
I believe in linux you do something like
cat /proc/<pid>/mem > dumpfile.dmp
I managed to make this in PHP: http://69.55.60.143/?url=http://www.hulu.com/watch/331326
Change the url to the episode you want and it will spit out an rtmpdump command.
Can you test this command for me as I am having the following issue running it...
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
WARNING: HandShake: Server not genuine Adobe!
ERROR: RTMP_Connect1, handshake failed.
Sorry for hijacking your thread dude...
I installed the following package which fixed everything.
https://launchpad.net/~mario-sitz/+archive/playground/+build/2882813
svnpenn
09-08-2012, 05:56 PM
Sort results
Results for Hulu videos are now sorted, and duplicates removed if they exist. In
addition the Regular expression was producing junk in some situations, this has
been fixed.
Tested on
http://hulu.com/watch/360292
http://hulu.com/watch/399375
github.com/svnpenn/etc/commit/ba81
svnpenn
09-09-2012, 12:23 AM
works fine (timeout 3)
timeout 1, no good?
not on XP
maybe it depends on the configuration of your computer (my old computer:confused: )
svnpenn
09-09-2012, 01:16 AM
not on XP
maybe it depends on the configuration of your computer
(my old computer:confused: )
I think some computers are too slow for "timeout 1". I will make a better fix
for this.
svnpenn
09-09-2012, 11:11 PM
Wait until memory dump finishes
Before the memory dump was allowed 1 second to complete, which was not enough
time on slower systems. This was causing no results to be diplayed. Now the
script will wait until the memory dump is complete, before continuing.
github.com/svnpenn/etc/commit/58dd
harryniles2
09-12-2012, 04:15 PM
hi svnpenn, thanks for this app. I am getting this after i restart the video:
Killed flash player for clean dump.
Restart video then press enter here
hulu.sh: line 27: syntax error near unexpected token `<'
hulu.sh: line 27: `read < <(pidof $p) || die "$p not found!"'
I used the latest commit and am using cygwin with FF on http://hulu.com/watch/360292
any ideas? thanks!
EDIT: now working but getting this:
/cygdrive/e/rtmpdumphelper
$ ./hulu.sh
Killed flash player for clean dump.
Restart video then press enter here
0 480_vp6 akamai
1 400_h264 akamai
2 1000_h264 akamai
3 1500_h264 akamai
4 2000_h264 akamai
5 650_h264 akamai
6 3200_h264 akamai
7 2500_h264 akamai
8 480_vp6 limelight
9 400_h264 limelight
10 1000_h264 limelight
11 1500_h264 limelight
12 2000_h264 limelight
13 650_h264 limelight
14 3200_h264 limelight
15 2500_h264 limelight
16 480_vp6 level3
17 400_h264 level3
18 1000_h264 level3
19 1500_h264 level3
20 2000_h264 level3
21 650_h264 level3
22 3200_h264 level3
23 2500_h264 level3
Make choice. Avoid level3.
5
+ rtmpdump -W http://download.hulu.com/huludesktop.swf -a 'ondemand?auth=daEa5c1bmdAdncDa1dQbFcJcPdyazaTdLcy-bquq0Q-c0-3pICtFt1Dzv&aifp=sll02152008&slist=darwin/ma/2/60072002;.international=false&hgt=OZU7Pvs7j27-nhteNno7wueF6VUWbadZXncK-ZYDlmRtUTDx0IBZTLU0L5EBqtpRKwhYTUT0JomTlvrsa46gq6X 8Turh1ryBNc6hz0nx5pDon8r9g4fZ38HeiDYjNiHlAdGigtS3p _QvVX2IbaMbybjEd1kt5eilfvAJfy5-oW68tiLM80qST32cChsdDRKDtVuZgb-LWzeMRdTQ-la9AQy5WQqWscTxkD7sXsa8jM23fywukEZtZ0scdJ8AGh2w&hgt_ver=331370278' -o out.flv -r rtmpe://cp39466.edgefcs.net/ondemand -y mp4:darwin/ma/2/60072002/agave50295746_10228553_H264_650.mp4
./hulu.sh: line 52: rtmpdump: command not found
rtmpdump.exe is present in same folder
svnpenn
09-12-2012, 04:46 PM
rtmpdump.exe is present in same folder
Ah yes, I made a personal choice to search for rtmpdump.exe on the PATH. Here
are a couple of ways to fix that.
Move rtmpdump.exe to the PATH, for example
C:\cygwin\usr\local\bin\rtmpdump.exe
OR
Adjust the PATH before running the script, for example
PATH=.:$PATH
For the long term I will try to make a fix for this.
harryniles2
09-12-2012, 05:00 PM
AHA! now working :) (should have thought of that)
many thanks svnpenn
svnpenn
09-12-2012, 05:27 PM
Search current directory
Script will now search current directory, in addition to the PATH. This is to
allow people to put rtmpdump.exe in same folder as the script.
github.com/svnpenn/etc/commit/25a3
harryniles2
09-12-2012, 07:44 PM
Hi svnpenn cheers for the quick fix. Can i request subtitle support? When i first started using rtmpdump an srt would always dl as well, but never now. The flv ends up hardsubbed. I was able to grab subtitles by looking at contentid in source but they are encrypted smi files. Or if you've any idea how to decrypt. Thanks again
ncfballkid
09-26-2012, 11:09 AM
How were you guys able to solve the
hulu.sh: line 27: syntax error near unexpected token `<'
hulu.sh: line 27: `read < <(pidof $p) || die "$p not found!"'
error?
Thanks, Andrew
svnpenn
09-26-2012, 07:20 PM
How were you guys able to solve the
hulu.sh: line 27: syntax error near unexpected token `<'
hulu.sh: line 27: `read < <(pidof $p) || die "$p not found!"'
error?
Thanks, Andrew
"unexpected token" means you arent using Bash. God knows how you were able to even make that happen. You can test your terminal like this
read < <(pwd)
If running this command make an error, you have done something wrong.
tcatone
10-19-2012, 11:50 PM
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 (http://www.videohelp.com/tools/RTMPDump) (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
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
Hate to come outta nowhere and do this, but has something changed in hulu.sh? I'm getting:
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:
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):
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/showthread.php?p=53949#post53949
svnpenn
10-26-2012, 11:48 PM
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.
$ 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_QNrFdWQn2j gI8Q2XEpb_pPN17Xnr1XV49O8De-Qm
_ZcdaYBKTYQd84Bw6gHFPGn2q5RXF1OUTlAz2lhmY5gaOj3zeM EJsIw&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
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:
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
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
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
github.com/svnpenn/etc/commit/7ee7
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
github.com/svnpenn/etc/commit/7ee7
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.
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.
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
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
shamshel
10-27-2012, 06:47 PM
github.com/svnpenn/etc/commit/e6a5
I hate to say this, but nothing seems to have changed. I still have the same problem I previously described. I would refresh the page, but the video would just crash seconds after loading.
I decided to just keep letting the script run while I continually refreshed the page. Eventually after 30 or so attempts, I finally got past the ads and the real video started to play. There was then a very brief pause, like the script was getting data from the video (I think I've seen this happen in the past). And then Flash crashed. So it seems like even after getting to the real video, something is wrong.
svnpenn
10-27-2012, 07:11 PM
I hate to say this, but nothing seems to have changed. I still have the same problem I previously described. I would refresh the page, but the video would just crash seconds after loading.
I only see two things that could be causing this
1. You said the video is killed 2 seconds after restarted, each time. This should not be. The script should kill the video after 2 seconds the first time. Video should be killed after 3 seconds the second time, and so on.
2. The order of commands is this
- Wait for video start
- After video starts, wait 2 or more seconds before "dump start"
- After dump start, wait 1 second before "search start"
It is possible that "search start" is starting too soon. However I am not going to change that code until I confirm what I wrote in number 1, because if you are getting only 2 second delay each time after starting video, then either the code is wrong or something is wrong with your computer.
shamshel
10-27-2012, 07:52 PM
I only see two things that could be causing this
1. You said the video is killed 2 seconds after restarted, each time. This should not be. The script should kill the video after 2 seconds the first time. Video should be killed after 3 seconds the second time, and so on.
2. The order of commands is this
- Wait for video start
- After video starts, wait 2 or more seconds before "dump start"
- After dump start, wait 1 second before "search start"
It is possible that "search start" is starting too soon. However I am not going to change that code until I confirm what I wrote in number 1, because if you are getting only 2 second delay each time after starting video, then either the code is wrong or something is wrong with your computer.
You're right, I was not clear with my explanation. The first time, the video crashes after 2 seconds. But if I reload and wait, the amount of time it takes before the video crashes increases by about 1 second, as you described, and the time continues to increase by about 1 second after each subsequent attempt.
svnpenn
10-27-2012, 08:26 PM
Increase delay before grep
The delay before invoking grep is possibly too low. Start with a 2 second delay
and increase as needed.
github.com/svnpenn/etc/commit/4a77
shamshel
10-28-2012, 02:35 AM
github.com/svnpenn/etc/commit/4a77
It's still not working.
The video player isn't even getting to the point where the actual video (not the ad) starts playing. Could that be the problem?
Though, during my earlier test described in post 41, I kept the script running while I continually refreshed the page in an attempt to get to the actual video. But even after there was a long enough delay (after around 30 attempts) and I got past the ad and the actual video began to play, the download options still didn't appear. Flash just continued to crash. Very odd.....
chanc
10-28-2012, 06:13 AM
http://www.hulu.com/watch/406882?utm_content=4003003&PID=4003003&utm_source=cjlink&utm_campaign=cj-affiliate&AID=10947797&cmp=30&SHID=u1aloyehjj8c&partner=cj&utm_term=10947797
Administrator@pc ~
$ hulu.sh
This script requires Firefox.
Killed flash player for clean dump.
Attempt 1, Restart video.
Cannot attach to process #3288, error 5kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 2, Restart video.
Attempt 3, Restart video.
Failed to open process #3100, error 87
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 4, Restart video.
Attempt 5, Restart video.
Failed to open process #3952, error 87
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 6, Restart video.
Attempt 7, Restart video.
Failed to open process #2144, error 87
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 8, Restart video.
Attempt 9, Restart video.
Failed to open process #1840, error 87
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 10, Restart video.
0 650_h264 akamai
1 400_h264 akamai
2 1000_h264 akamai
3 650_h264 limelight
4 400_h264 limelight
5 1000_h264 limelight
6 650_h264 level3
7 400_h264 level3
8 1000_h264 level3
Make choice. Avoid level3.
3
+ rtmpdump -o a.flv -W http://download.hulu.com/huludesktop.swf -r rtmpe://hulu-243.fcod.llnwd.net/a2461/o23 -y mp4:243/60127243/agave50349659_12151792_H264_650.mp4 -a 'a2461/o23?as=adobe-hmac-sha256&av=1&te=connect&mp=243/60127243&et=1351414195&fmta-token=7b56a029ff8df997b68811ff8ca44436edb428a4810b 05274209bc660056e57d&hgt=OZU7Pvs7j27-nhteNno7wj5LZZZ08ovPImyO2D2g1XJhyaMB6mRGBAYWlzm8CT sqUKQy8Kt7Nv2peyCl5xho1MB-x6F3INbzKmnTjP2XsYxHFrGPdvGkI8zGG1q9Zf7asUvD8ojLpZ blESkBTcei58BDfPQVBDOaw0SqBWcZoBjzUQXOZa7FrtQJ8xx-4qwgzAB9zP83xuHoCEY8PDecCjgkgzVyAyER8hMwn4lHo8kE9R OWCGPip1O3tOStYUKmkrCARl3f16T6t4aQe_AbsJpu-nsIqevoPx0Ir3dyrrE=&hgt_ver=331370278'
RTMPDump v2.4 GIT-2012-07-26 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP_HashSWF: connection lost while downloading swfurl http://download.hulu.com/huludesktop.swf
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close
Administrator@pc ~
The new script is not as good as the old ones, especially on old computers with slow internet speed.
It continually kills the flash before the ad begins.Even though each time kills, it allows one more second, but it is far from enough. And all I had to do was to restart the video again and again and again, until there is enough time for real video starts playing.
I prefer the old version which manually start the scripts.
Is the old version still available ? It's a pity that I have not had any backups .
I would like to have the previous version which allows the scripts not to kill the video until it catches the stream.
Can someone make detail tutorial how to download videos from hulu?
What do I do when I download RTMPexplorer and Cygwin?
shamshel
10-28-2012, 09:53 AM
http://www.hulu.com/watch/406882?utm_content=4003003&PID=4003003&utm_source=cjlink&utm_campaign=cj-affiliate&AID=10947797&cmp=30&SHID=u1aloyehjj8c&partner=cj&utm_term=10947797
Administrator@pc ~
$ hulu.sh
This script requires Firefox.
Killed flash player for clean dump.
Attempt 1, Restart video.
Cannot attach to process #3288, error 5kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 2, Restart video.
Attempt 3, Restart video.
Failed to open process #3100, error 87
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 4, Restart video.
Attempt 5, Restart video.
Failed to open process #3952, error 87
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 6, Restart video.
Attempt 7, Restart video.
Failed to open process #2144, error 87
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 8, Restart video.
Attempt 9, Restart video.
Failed to open process #1840, error 87
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 10, Restart video.
0 650_h264 akamai
1 400_h264 akamai
2 1000_h264 akamai
3 650_h264 limelight
4 400_h264 limelight
5 1000_h264 limelight
6 650_h264 level3
7 400_h264 level3
8 1000_h264 level3
Make choice. Avoid level3.
3
+ rtmpdump -o a.flv -W http://download.hulu.com/huludesktop.swf -r rtmpe://hulu-243.fcod.llnwd.net/a2461/o23 -y mp4:243/60127243/agave50349659_12151792_H264_650.mp4 -a 'a2461/o23?as=adobe-hmac-sha256&av=1&te=connect&mp=243/60127243&et=1351414195&fmta-token=7b56a029ff8df997b68811ff8ca44436edb428a4810b 05274209bc660056e57d&hgt=OZU7Pvs7j27-nhteNno7wj5LZZZ08ovPImyO2D2g1XJhyaMB6mRGBAYWlzm8CT sqUKQy8Kt7Nv2peyCl5xho1MB-x6F3INbzKmnTjP2XsYxHFrGPdvGkI8zGG1q9Zf7asUvD8ojLpZ blESkBTcei58BDfPQVBDOaw0SqBWcZoBjzUQXOZa7FrtQJ8xx-4qwgzAB9zP83xuHoCEY8PDecCjgkgzVyAyER8hMwn4lHo8kE9R OWCGPip1O3tOStYUKmkrCARl3f16T6t4aQe_AbsJpu-nsIqevoPx0Ir3dyrrE=&hgt_ver=331370278'
RTMPDump v2.4 GIT-2012-07-26 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP_HashSWF: connection lost while downloading swfurl http://download.hulu.com/huludesktop.swf
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close
Administrator@pc ~
The new script is not as good as the old ones, especially on old computers with slow internet speed.
It continually kills the flash before the ad begins.Even though each time kills, it allows one more second, but it is far from enough. And all I had to do was to restart the video again and again and again, until there is enough time for real video starts playing.
I prefer the old version which manually start the scripts.
Is the old version still available ? It's a pity that I have not had any backups .
I would like to have the previous version which allows the scripts not to kill the video until it catches the stream.
What do those process #xxxx errors mean? I don't see those after my Flash crashes. My script would just tell me "Attempt x, Restart video" and I would go press refresh. Then it would tell me "Attempt x+1, Restart video" and I would need to go press refresh, etc.
And how are you able to get the real video to load after only 10 attempts? A short ad is about 20 seconds, so wouldn't you need to wait at least the script had 18 attempts (2 second initial wait, plus 1 second for each attempt)?
Here's the script from Oct 16, before the changes: https://github.com/svnpenn/etc/blob/f607fd9a96d52205a3fda2cec5b917b125890523/hulu.sh. As a test, I just replaced the new script with that old one and it still doesn't work for me. **sigh**
I wonder if we are overlooking something outside the script. Does it matter which Flash version we are using? Or which FireFox?
Can someone make detail tutorial how to download videos from hulu?
What do I do when I download RTMPexplorer and Cygwin?
You don't need RTMPexplorer, only rtmpdump and FireFox. Put hulu.sh in the same folder as rtmpdump, then run the script. It should work.... it seems like I am alone here with my problems. :(
How to run the script? I am new in this so I don't understand.I have downloaded hulu.ph files and RTMPdump.I have runned RTMPsrv and I don't know what to do next?
svnpenn
10-28-2012, 11:06 AM
The new script is not as good as the old ones, especially on old computers with slow internet speed.
Ok, I have reverted "master" branch to before the "shamshel" changes. In addition I have added a new branch "shamshel" with the shamshel changes, which can be found here
github.com/svnpenn/etc/tree/shamshel
And how are you able to get the real video to load after only 10 attempts? A short ad is about 20 seconds, so wouldn't you need to wait at least the script had 18 attempts (2 second initial wait, plus 1 second for each attempt)?
Everyone needs to understand this. This "actual" video loads while the ads are playing. Typically for me the actual video has loaded within 3 seconds of the ads starting. Of course slower computers will be different, but I would think it would be rare to need to even wait until the ads are finished. As far as shamshel's troubles, I have made the topic branch on GitHub so he can have access to those changes. But unless I receive more info or some epiphany as to what is causing shamshel problem, that new branch is essentially a dead end.
shamshel
10-29-2012, 12:48 AM
Ok, I have reverted "master" branch to before the "shamshel" changes. In addition I have added a new branch "shamshel" with the shamshel changes, which can be found here
github.com/svnpenn/etc/tree/shamshel
Everyone needs to understand this. This "actual" video loads while the ads are playing. Typically for me the actual video has loaded within 3 seconds of the ads starting. Of course slower computers will be different, but I would think it would be rare to need to even wait until the ads are finished. As far as shamshel's troubles, I have made the topic branch on GitHub so he can have access to those changes. But unless I receive more info or some epiphany as to what is causing shamshel problem, that new branch is essentially a dead end.
Thanks for the branch. I hope I can figure out what's wrong and contribute in some way. Right now, I'm really clueless why it's not working for me. I'm thinking of completely reinstalling Cygwin because I have no idea what else could be the problem.
Thanks also for explaining when the actual video loads. I didn't know that.
svnpenn
10-29-2012, 11:41 PM
Thanks for the branch. I hope I can figure out what's wrong and contribute in some way. Right now, I'm really clueless why it's not working for me.
By chance, are you running a 64-bit browser?
shamshel
10-30-2012, 10:46 PM
By chance, are you running a 64-bit browser?
Nope, 32-bit FireFox.
I've reinstalled Cygwin but the script still isn't working right. I've all but given up. Thanks anyway for your help, svnpenn.
chanc
11-01-2012, 01:51 AM
http://www.hulu.com/watch/419930
Administrator@pc ~
$ hulu.sh
This script requires Firefox.
Killed flash player for clean dump.
Attempt 1, Restart video.
Failed to open process #5948, error 87
grep: pg.core: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 2, Restart video.
Attempt 3, Restart video.
Failed to open process #5076, error 87
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Attempt 4, Restart video.
0 650_h264 akamai
1 400_h264 akamai
2 1000_h264 akamai
3 650_h264 limelight
4 400_h264 limelight
5 1000_h264 limelight
6 650_h264 level3
7 400_h264 level3
8 1000_h264 level3
Make choice. Avoid level3.
3
+ rtmpdump -o a.flv -W http://download.hulu.com/huludesktop.swf -r rtmpe://hulu-547.fcod.llnwd.net/a2461/o23 -y mp4:547/60140547/agave50362837_13087154_H264_650.mp4 -a 'a2461/o23?as=adobe-hmac-sha256&av=1&te=connect&mp=547/60140547&et=1351756225&fmta-token=b064eca9004e8d50b48f3698798e8af0e03dfed074c9 19fcf590f6a9321377f1&hgt=OZU7Pvs7j27-nhteNno7wqSElIglTEMB49vIlX00AUzNsrVQgc4q5gCpLdeRxQ cwLIJf5nfhepeK3-E-mnBm1-4qc_CgTYvvKNJRSpZTtYilINUfpO1WuKDCZhtuZYBOhjAwRdd_ 05IZfhvMaM9BnpoSZwUjQMGlgRTr26NP2xp9_gxB3gDnx3xPwI Y6PshHSo-i4eEqsbAzlZoTFGzWVkVUxivx4836NeQvmlypAHD_4HO0Ze4nR Zcdv_Ebdx5cd7IL066v2RSRU1NWfWxzgPGmgayjRX8QjTafKlH H6W0=&hgt_ver=331370278'
RTMPDump v2.4 GIT-2012-07-26 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP_HashSWF: connection lost while downloading swfurl http://download.hulu.com/huludesktop.swf
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close
Administrator@pc ~
$
While trying downloading, an error occurred.
Please help.
chanc
11-01-2012, 01:58 AM
given another try, and I succeeded.
Make choice. Avoid level3.
0
+ rtmpdump -o a.flv -W http://download.hulu.com/huludesktop.swf -r rtmpe://cp39466.edgefcs.net/ondemand -y mp4:hulu23/547/60140547/agave50362837_13087154_H264_650.mp4 -a 'ondemand?auth=daEdmcGc2bpcldEaRaTdOc4ckduaCaDcsaF-bqKISa-c0-YpHDvDs0BAm&aifp=sll02152008&slist=hulu23/547/60140547;.international=false&hgt=OZU7Pvs7j27-nhteNno7wpjFkh93pwWIHWZOaIRQqhL-a4OamqtOBIcM5XepWao-jnaBYte-lmyjqYJmh6LC9Dr_RKJ864d0AO_2swuCO84QkWxx7o0M-kM4A7DAmNO_j9wYEX5H1mEPwBSMwCWdnx6DpzYEVaUJ50iMrqM nG5VZjso5XbR9qnR1po-Xz0RRlh4PDkhBOAy_brqO67pcvx61GKkJkjxuQOE5OqOA0BtZ2 TNtMh2IvTUsxqtPwGum&hgt_ver=331370278'
RTMPDump v2.4 GIT-2012-07-26 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP_HashSWF: connection lost while downloading swfurl http://download.hulu.com/huludesktop.swf
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 1321.90
INFO: moovPosition 36.00
INFO: width 640.00
INFO: height 360.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 100.00
INFO: avclevel 30.00
INFO: aacaot 2.00
INFO: videoframerate 29.97
INFO: audiosamplerate 24000.00
INFO: audiochannels 2.00
INFO: tags:
INFO: ©too Hulu v1.12
INFO: trackinfo:
INFO: length 39651612.00
INFO: timescale 30000.00
INFO: language und
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 63451136.00
INFO: timescale 48000.00
INFO: language und
INFO: sampledescription:
INFO: sampletype mp4a
26532.354 kB / 336.07 sec (25.4%)
budmonster
04-01-2013, 01:37 AM
could some explain to me how to use this? where to place the hulu.sh file? what command to use to download the video from hulu, etc.? im using the hulu.pm plugin with get_flash_videos, but im having trouble with one video and head that this hulu.sh will download it for me.
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.