failed to download from hulu with hulu.sh

Steam recording with RTMPDump or FFmpeg.
Post Reply
chanc
Posts: 10
Joined: Thu Jan 17, 2013 3:28 pm

failed to download from hulu with hulu.sh

Post by chanc »

Code: Select all

http://www.hulu.com/watch/464705
[email protected] ~
$ /usr/local/bin/hulu.sh CDN 480 http://www.hulu.com/watch/464705
/usr/local/bin/hulu.sh: line 85: cd: C:\Documents: Not a directory
waiting for firefox to load...
dumping firefox...
rtmpdump -W http://download.hulu.com/huludesktop.swf -r -a ? -y -o 464705.flv
RTMPDump v2.4-76-g9ac8171
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP URL: No :// in url!
WARNING: Couldn't parse the specified url (-a)!
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname


svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: failed to download from hulu with hulu.sh

Post by svnpenn »

Fixed, perhaps try again

github.com/svnpenn/a/commit/6615

chanc
Posts: 10
Joined: Thu Jan 17, 2013 3:28 pm

Re: failed to download from hulu with hulu.sh

Post by chanc »

It shows like this now:

Code: Select all

[email protected] ~
$ /usr/local/bin/hulu.sh CDN 480 http://www.hulu.com/watch/464705
cp: 不会以"./Mozilla/Firefox/Profiles/9mb0hq6u.default/cookies.sqlite" 覆盖刚创建的"/tmp/cookies.sqlite"
waiting for firefox to load...
dumping firefox...
rtmpdump -W http://download.hulu.com/huludesktop.swf -r -a ? -y -o 464705.flv
RTMPDump v2.4-76-g9ac8171
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP URL: No :// in url!
WARNING: Couldn't parse the specified url (-a)!
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname


svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: failed to download from hulu with hulu.sh

Post by svnpenn »

chanc wrote:It shows like this now:

Code: Select all

[email protected] ~
$ /usr/local/bin/hulu.sh CDN 480 http://www.hulu.com/watch/464705
You are putting in wrong parameters. A perhaps correct command line would be
like this

Code: Select all

hulu.sh limelight 1000_h264 http://www.hulu.com/watch/441373
these params can be found by running like this

Code: Select all

$ hulu.sh http://www.hulu.com/watch/441373
waiting for firefox to load...
dumping firefox...
akamai      650_h264
akamai      400_h264
akamai     1000_h264
limelight   650_h264
limelight   400_h264
limelight  1000_h264
level3      650_h264
level3      400_h264
level3     1000_h264
I have added a check now, if your chosen params are not found then it shoots you
back to usage page.
chanc wrote:

Code: Select all

cp: 不会以"./Mozilla/Firefox/Profiles/9mb0hq6u.default/cookies.sqlite" 覆盖刚创建的"/tmp/cookies.sqlite"
It appears you have more than one Firefox profile. This error is happening
because the script is trying to copy the cookies from both profiles to the same
place at the same time. I put in a fix to now use cookies from the last profile.
If this profile does not have the Hulu cookies and you are trying to watch Hulu
plus, then I will need another solution.

github.com/svnpenn/a/commit/76d2f

chanc
Posts: 10
Joined: Thu Jan 17, 2013 3:28 pm

Re: failed to download from hulu with hulu.sh

Post by chanc »

Thanks Steven
Having employed the latest .But the problem remains.
After the scripts got firefox started, the browser won't last. It just died soon afterwards.

Code: Select all

[email protected] ~
$ hulu.sh http://www.hulu.com/watch/340684
waiting for firefox to load...
dumping firefox...
Then , I wondered whether it was because I had not used a proxy , for I am in China.
I tried :

Code: Select all

[email protected] ~
$ hulu.sh --proxy http://127.0.0.1:8087 http://www.hulu.com/watch/340684
waiting for firefox to load...
dumping firefox...
rtmpdump -W http://download.hulu.com/huludesktop.swf -r -a ? -y -o 340684.flv
RTMPDump v2.4-76-g9ac8171
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP URL: No :// in url!
WARNING: Couldn't parse the specified url (-a)!
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname
And then I tried :

Code: Select all

[email protected] ~
$ hulu.sh --proxy http://127.0.0.1:8087 limelight 650_h264 http://www.hulu.com/watch/441373
waiting for firefox to load...
dumping firefox...
rtmpdump -W http://download.hulu.com/huludesktop.swf -r -a ? -y -o .flv
RTMPDump v2.4-76-g9ac8171
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: RTMP URL: No :// in url!
WARNING: Couldn't parse the specified url (-a)!
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname
The browser started and then died.

svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: failed to download from hulu with hulu.sh

Post by svnpenn »

chanc wrote: Then , I wondered whether it was because I had not used a proxy , for I am in
China.
After looking I noticed that the Hulu page you are checking is not Hulu plus,
hence does not require special cookies. Even still I tweaked the code to use the
last modified cookies file. Not perfect but an improvement.

In addition Firefox proxy settings are stored in "prefs.js". The script will now
find the last modified "prefs.js" and copy it as well.

github.com/svnpenn/a/commit/e4d89

kitana
Posts: 24
Joined: Sat Mar 23, 2013 3:50 am

Re: failed to download from hulu with hulu.sh

Post by kitana »

svnpenn wrote:
You are putting in wrong parameters. A perhaps correct command line would be
like this

Code: Select all

hulu.sh limelight 1000_h264 http://www.hulu.com/watch/441373
these params can be found by running like this

Code: Select all

$ hulu.sh http://www.hulu.com/watch/441373
waiting for firefox to load...
dumping firefox...
akamai      650_h264
akamai      400_h264
akamai     1000_h264
limelight   650_h264
limelight   400_h264
limelight  1000_h264
level3      650_h264
level3      400_h264
level3     1000_h264
@svnpenn

I'm using baby-cygwin-15 under XP SP3 (hulu.sh inside usr/local/bin per README.txt) and this is what I get. Any ideas?
Hulu.jpg

svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: failed to download from hulu with hulu.sh

Post by svnpenn »

kitana wrote: I'm using baby-cygwin-15 under XP SP3 (hulu.sh inside usr/local/bin per
README.txt) and this is what I get. Any ideas?
Hulu.jpg
Try baby-cygwin-17, I just uploaded it.

kitana
Posts: 24
Joined: Sat Mar 23, 2013 3:50 am

Re: failed to download from hulu with hulu.sh

Post by kitana »

svnpenn wrote:
kitana wrote: I'm using baby-cygwin-15 under XP SP3 (hulu.sh inside usr/local/bin per
README.txt) and this is what I get. Any ideas?
Hulu.jpg
Try baby-cygwin-17, I just uploaded it.
FF started/played the stream fine (same in baby-cygwin-15). Do I wait for the entire video to finish playing or the script had already stopped?
Hulu.jpg

svnpenn
Posts: 263
Joined: Tue Nov 01, 2011 12:19 am

Re: failed to download from hulu with hulu.sh

Post by svnpenn »

kitana wrote: FF started/played the stream fine (same in baby-cygwin-15). Do I wait for the
entire video to finish playing or the script had already stopped?
Ok, try baby-cygwin-19, just uploaded.

Post Reply