Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #41  
Old 10-27-2012, 07:47 PM
shamshel shamshel is offline
Junior Member
 
Join Date: Oct 2012
Posts: 9
shamshel is on a distinguished road
Default

Re: hulu.sh, download from Hulu


Quote:
Originally Posted by svnpenn View Post
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.
Reply With Quote
  #42  
Old 10-27-2012, 08:11 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: hulu.sh, download from Hulu


Quote:
Originally Posted by shamshel
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.
Reply With Quote
  #43  
Old 10-27-2012, 08:52 PM
shamshel shamshel is offline
Junior Member
 
Join Date: Oct 2012
Posts: 9
shamshel is on a distinguished road
Default

Re: hulu.sh, download from Hulu


Quote:
Originally Posted by svnpenn View Post
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.
Reply With Quote
  #44  
Old 10-27-2012, 09:26 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: hulu.sh, download from Hulu


Quote:
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
Reply With Quote
  #45  
Old 10-28-2012, 03:35 AM
shamshel shamshel is offline
Junior Member
 
Join Date: Oct 2012
Posts: 9
shamshel is on a distinguished road
Default

Re: hulu.sh, download from Hulu


Quote:
Originally Posted by svnpenn View Post
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.....
Reply With Quote
  #46  
Old 10-28-2012, 07:13 AM
chanc chanc is offline
Senior Member
 
Join Date: Sep 2012
Posts: 115
chanc is on a distinguished road
Default

Re: hulu.sh, download from Hulu


http://www.hulu.com/watch/406882?utm..._term=10947797

Code:
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=7b56a029ff8df997b68811ff8ca44436edb428a4810b05274209bc660056e57d&hgt=OZU7Pvs7j27-nhteNno7wj5LZZZ08ovPImyO2D2g1XJhyaMB6mRGBAYWlzm8CTsqUKQy8Kt7Nv2peyCl5xho1MB-x6F3INbzKmnTjP2XsYxHFrGPdvGkI8zGG1q9Zf7asUvD8ojLpZblESkBTcei58BDfPQVBDOaw0SqBWcZoBjzUQXOZa7FrtQJ8xx-4qwgzAB9zP83xuHoCEY8PDecCjgkgzVyAyER8hMwn4lHo8kE9ROWCGPip1O3tOStYUKmkrCARl3f16T6t4aQe_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.

Last edited by chanc : 10-28-2012 at 07:17 AM. Reason: add
Reply With Quote
  #47  
Old 10-28-2012, 08:35 AM
Tri Tri is offline
Junior Member
 
Join Date: Jan 2012
Posts: 17
Tri is on a distinguished road
Default

Re: hulu.sh, download from Hulu


Can someone make detail tutorial how to download videos from hulu?
What do I do when I download RTMPexplorer and Cygwin?
Reply With Quote
  #48  
Old 10-28-2012, 10:53 AM
shamshel shamshel is offline
Junior Member
 
Join Date: Oct 2012
Posts: 9
shamshel is on a distinguished road
Default

Re: hulu.sh, download from Hulu


Quote:
Originally Posted by chanc View Post
http://www.hulu.com/watch/406882?utm..._term=10947797

Code:
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=7b56a029ff8df997b68811ff8ca44436edb428a4810b05274209bc660056e57d&hgt=OZU7Pvs7j27-nhteNno7wj5LZZZ08ovPImyO2D2g1XJhyaMB6mRGBAYWlzm8CTsqUKQy8Kt7Nv2peyCl5xho1MB-x6F3INbzKmnTjP2XsYxHFrGPdvGkI8zGG1q9Zf7asUvD8ojLpZblESkBTcei58BDfPQVBDOaw0SqBWcZoBjzUQXOZa7FrtQJ8xx-4qwgzAB9zP83xuHoCEY8PDecCjgkgzVyAyER8hMwn4lHo8kE9ROWCGPip1O3tOStYUKmkrCARl3f16T6t4aQe_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/...890523/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?

Quote:
Originally Posted by Tri View Post
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.
Reply With Quote
  #49  
Old 10-28-2012, 11:36 AM
Tri Tri is offline
Junior Member
 
Join Date: Jan 2012
Posts: 17
Tri is on a distinguished road
Default

Re: hulu.sh, download from Hulu


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?
Reply With Quote
  #50  
Old 10-28-2012, 12:06 PM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

Re: hulu.sh, download from Hulu


Quote:
Originally Posted by chanc
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

Quote:
Originally Posted by 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.
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:29 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons