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

Automated Crunchyroll Video Downloader

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

JRowe95 11-21-2012 10:29 PM

Automated Crunchyroll Video Downloader


 
I know how to download crunchyroll videos manually by using ip tables and rtmpsrv and rtmpdump, but that is such a long and boring process since you need to kill rtmpsrv once it gets the parameters and turn off the iptables rule and copy paste the command from rtmpsrv into terminal in order to download the video.

I was wondering if anyone has or could make a script of some kind that asks for user input of the url that they want to download. I was thinking shell script using 'sed' or 'grep' or something like that to get the rtmpdump parameters out.

So pretty much this is the process in order of how I do it.

Code:

"sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT"
"rtmpsrv"
Open web browser and navigate to the crunchyroll page you want to download.
Wait for parameters to appear on screen.
Kill rtmpsrv
"sudo iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT"
copy and paste the parameters into terminal and run it.

So if their is any way to automate this process that would be just the best, and also if its possible add the ability to input a list of urls and do many at the same time or one after the other.

JRowe95 11-22-2012 12:33 AM

Re: Automated Crunchyroll Video Downloader


 
No need to be so arrogant. You could of just said that their was a better way to do it and point me in the right direction instead of making out like i'm an idiot. The way I described works for me and I have tried other ways but have had no luck with them. So thanks for nothing.

svnpenn 11-22-2012 12:40 AM

Re: Automated Crunchyroll Video Downloader


 
You run iptables on a separate user, on the same computer. This way you dont constantly set and unset iptables. If you dont read the README, you deserve what you get.

github.com/svnpenn/rtmpdump/blob/master/README#L158

JRowe95 11-22-2012 01:42 AM

Re: Automated Crunchyroll Video Downloader


 
Ok I read the readme but im still having to turn off the iptables rule to download the video with rtmpdump otherwise it just spits out
Code:

ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Here is my output:
Code:

jason@Jason-Ubuntu:~$ sudo iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner \! --uid-owner dump \-j REDIRECT
jason@Jason-Ubuntu:~$ rtmpsrv
RTMP Server v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935

rtmpdump -r "rtmpe://cp150757.edgefcs.net/ondemand/?auth=daEbwddcYaTchcucFdDaec6c4bHcOddcxam-bqREuS-dHa-nDGylqMCEwu&aifp=0009&slist=c18/s/ve900327/video.mp4" -a "ondemand/?auth=daEbwddcYaTchcucFdDaec6c4bHcOddcxam-bqREuS-dHa-nDGylqMCEwu&aifp=0009&slist=c18/s/ve900327/video.mp4" -f "LNX 11,5,31,2" -W "http://static.ak.crunchyroll.com/flash/20121113143627.3b39cdda2f82615db501d81cf0365762/ChromelessPlayerApp.swf?config_url=http%3A%2F%2Fwww.crunchyroll.com%2Fxml%2F%3Freq%3DRpcApiVideoPlayer_GetChromelessConfig&use_explicit_config=1" -p "http://www.crunchyroll.com/my-little-monster/episode-1-sitting-next-to-yoshida-kun-612037" -y "mp4:c18/s/ve900327/video.mp4" -o video.flv

Closing connection... done!

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: Type mismatch: client sent 6, server answered 8
INFO: Connected...
Duplicate request, skipping.
Caught signal: 13, cleaning up, just a second...
ERROR: WriteN, RTMP send error 32 (42 bytes)
Closing connection... done!

ERROR: RTMP_ReadPacket, failed to read RTMP packet header
^CCaught signal: 2, cleaning up, just a second...


svnpenn 11-22-2012 02:07 AM

Re: Automated Crunchyroll Video Downloader


 
Quote:

Originally Posted by JRowe95
Ok I read the readme but im still having to turn off the iptables rule to download the video with rtmpdump

At this point I would need to boot my linux partition to confirm that it is still working. I do not have the motivation to do that, so I must bow out of this thread.

Ithiel 02-07-2013 03:57 AM

Re: Automated Crunchyroll Video Downloader


 
Although it's not entirely automated, there is a batch file that uses rtmpExplorer to download the flv, extracts the video url from the command.bat file it generates and feeds that into the subtitle downloader python script, uses an flv splitter to extract the 264 and aac, then mkvmerge on the video, audio, and subtitles to create a finished mkv file.

Basically takes several free scripts/apps and ties them together with a batch file. Not the most advanced thing in the world, but gets the job done on a Windows PC.

Code:

http://www.darkztar.com/forum/showthread.php?219034-Ripping-videos-amp-subtitles-from-Crunchyroll-(noob-friendly)


All times are GMT -6. The time now is 04:38 AM.