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
  #1  
Old 11-21-2012, 11:29 PM
JRowe95 JRowe95 is offline
Junior Member
 
Join Date: May 2012
Posts: 4
JRowe95 is on a distinguished road
Default

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.
Reply With Quote
  #2  
Old 11-22-2012, 01:33 AM
JRowe95 JRowe95 is offline
Junior Member
 
Join Date: May 2012
Posts: 4
JRowe95 is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 11-22-2012, 01:40 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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
Reply With Quote
  #4  
Old 11-22-2012, 02:42 AM
JRowe95 JRowe95 is offline
Junior Member
 
Join Date: May 2012
Posts: 4
JRowe95 is on a distinguished road
Default

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...
Reply With Quote
  #5  
Old 11-22-2012, 03:07 AM
svnpenn svnpenn is offline
Banned
 
Join Date: Apr 2011
Location: Dallas
Posts: 757
svnpenn is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 02-07-2013, 04:57 AM
Ithiel Ithiel is offline
Junior Member
 
Join Date: Feb 2013
Posts: 3
Ithiel is on a distinguished road
Default

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)
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 10:59 AM.


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