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 > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #11  
Old 02-24-2011, 05:49 AM
wongsta wongsta is offline
Junior Member
 
Join Date: Aug 2009
Posts: 2
wongsta is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


Some of the fansubbing groups (horrible subs, crunchysubs...) have been releasing using crunchyroll subtitles, so a method must already exist to extract the subs from crunchyroll...maybe investigate over there?
Reply With Quote
  #12  
Old 02-24-2011, 06:56 AM
kira2100 kira2100 is offline
Junior Member
 
Join Date: Feb 2011
Posts: 4
kira2100 is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


i very hope someone can tell me how to get subtitles.
Reply With Quote
  #13  
Old 04-11-2011, 01:57 AM
shen0978 shen0978 is offline
Junior Member
 
Join Date: Apr 2011
Posts: 1
shen0978 is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


Quote:
Originally Posted by kira2100 View Post
i very hope someone can tell me how to get subtitles.
I very hope, too
Reply With Quote
  #14  
Old 08-25-2011, 08:18 AM
tRon tRon is offline
Junior Member
 
Join Date: Aug 2011
Posts: 7
tRon is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


Hi everyone,

I've been investigating how to get their subtitle files and have made good progress. From what I've read online people have been able to get the raw encrypted xml subtitle file. With some googling I found someone's code which contains the algorithm to decrypt the xml file into a regular .ass subtitle file. Attached is a zip file of the xml and ass files. They are the subtitle files for Bleach episode 284.

If there is still interest in this topic I can provide more information after tidy up the code that was used etc.

tRon
Attached Files
File Type: zip xml_and_ass_files.zip (19.4 KB, 0 views)
Reply With Quote
  #15  
Old 08-25-2011, 10:13 AM
any ANONYMOUS forum user any ANONYMOUS forum user is offline
any user of the forum who preferred to post anonymously
 
Join Date: Aug 2011
Location: Server of stream-recorder.com
Posts: 211
any ANONYMOUS forum user is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


Quote:
Originally Posted by tRon View Post
Hi everyone,

I've been investigating how to get their subtitle files and have made good progress. From what I've read online people have been able to get the raw encrypted xml subtitle file. With some googling I found someone's code which contains the algorithm to decrypt the xml file into a regular .ass subtitle file. Attached is a zip file of the xml and ass files. They are the subtitle files for Bleach episode 284.

If there is still interest in this topic I can provide more information after tidy up the code that was used etc.

tRon
tRon, please do share how to download subtitles from crunchyroll.com. Thanks!
Reply With Quote
  #16  
Old 08-25-2011, 10:46 AM
Zero3K Zero3K is offline
Senior Member
 
Join Date: Feb 2010
Posts: 132
Zero3K is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


I just tried downloading a video from Crunchyroll.com using the latest version of GetFLV. The resulting file had no subtitle.
Reply With Quote
  #17  
Old 08-26-2011, 05:18 AM
tRon tRon is offline
Junior Member
 
Join Date: Aug 2011
Posts: 7
tRon is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


It looks like my method is no longer needed. Keepvid.com now supports crunchyroll videos.
More details here: http://stream-recorder.com/forum/www...html#post31964
Reply With Quote
  #18  
Old 08-26-2011, 05:24 AM
any ANONYMOUS forum user any ANONYMOUS forum user is offline
any user of the forum who preferred to post anonymously
 
Join Date: Aug 2011
Location: Server of stream-recorder.com
Posts: 211
any ANONYMOUS forum user is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


Quote:
Originally Posted by tRon View Post
It looks like my method is no longer needed.
Could you please share it anyway?
Reply With Quote
  #19  
Old 08-26-2011, 02:36 PM
tRon tRon is offline
Junior Member
 
Join Date: Aug 2011
Posts: 7
tRon is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


Sure.

So what I did was just use a decryption algorithm that I stumbled across on google. All the credit belongs to the author of this code and its related libraries: http://xbmc-addon-repository.googlec.../crunchyDec.py . The author's xbmc-addon-repository project has all this other code which looks like it's used to pull the video and subtitle files from crunchyroll as well. I didn't use nor will I refer to any of it since it's already well-established on these forums on how to pull those files.

Since it was written in python I wrote a script in python (my first one, hehe) to invoke crunchyDec.py. All the decryption code is by the original author. My only contribution is decode.py which is very crude and basic.

A .zip file containing all the code is available here: http://tron.orconhosting.net.nz/crun...ml_decoder.zip

You will need python installed on your computer to run the script. I use Windows 7 64-bit so I installed the "Python 2.7.2 Windows X86-64 Installer" (from http://python.org/download/). The correct installation and configuration of python is beyond the scope of what I'll cover.

The steps below work as at 2011-08-27 07:30am NZT
Once you've got python set up, to run the script with python:
  1. Extract the contents of the zip file into any folder.
  2. Open a windows command prompt and change the directory (cd) to the folder containing the unzipped files.
    The easiest way to do this in Win7/Vista is to open the folder, click on the "address bar" and type "cmd" (without the quotes) and press enter. This should open a command prompt in the right directory/folder.
  3. Type in: python decode.py input.xml output.ass
    and press enter to start the script.
    "input.xml" is a required parameter; it is the name of your xml file containing the encrypted subtitles.
    "output.ass" is a required parameter; it is the name of the .ass subtitle file to be created.
    If you don't know your way around windows command prompt make sure none of your file names contain spaces.
  4. If everything executes correctly the command prompt should display
    Code:
    [your unzipped folder location]>python decode.py sample.xml sample.ass
    CRUNCHYROLL: --> Attempting to decrypt subtitles...
    CRUNCHYROLL: --> Success!  Subtitles decrypted.
    and you should have a new .ass file in the same folder.
Notes: i) The script contains no error checking or handling whatsoever. If you get errors or are otherwise unable to successfully decrypt the xml file it likely means you didn't provide the correct parameters, or crunchyroll has changed their encryption algorithm.
ii) So long as the keepvid method works I don't intend on making any changes/improvements to this script.


Here are the steps to download the raw (encrypted) xml subtitle files.
  1. Find the id number of the subtitle file for your video. I know of at least 3 methods
    • Following Steven's method to grep the plugin-container.exe dump: http://stream-recorder.com/forum/use...ows-t8808.html . Grep for /xml/ and that should show you the id number somewhere.
    • When playing the video from crunchyroll right-click on the video. The subtitle id will be number next to the name of the subtitle track, but less one. E.g. if the subtitle track is "[57051] English", then the id is 57050.
    • Display the page source of the page with the video and look for something like this:
      HTML Code:
      <div>Subtitles: <span><img src="http://static.lln.crunchyroll.com/i/country_flags/us.gif"  /> <a href="/naruto-shippuden/episode-225-the-cursed-ghost-ship-580904?ssid=57050" title="English (US)">English (US)</a></span></div>
      The 'ssid=57050' part tells you the id is 57050.
  2. Download the xml file at this url: http://www.crunchyroll.com/xml/?req=...tle_script_id=idNumberHere
    where idNumberHere is the id number you found above.
    In my example I would have used http://www.crunchyroll.com/xml/?req=...ipt_id=5705 0
Note: I have only tested these steps with the Bleach series on crunchyroll but I assume all non-member videos use the same structure.

I hope that helps and that I haven't left out anything obvious.

Thanks,
tRon

Last edited by tRon : 08-26-2011 at 02:45 PM. Reason: forgot to include link to .zip file
Reply With Quote
  #20  
Old 10-03-2011, 11:20 PM
Randomhouse Randomhouse is offline
Junior Member
 
Join Date: Sep 2011
Posts: 9
Randomhouse is on a distinguished road
Default

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


Hey tRon, first thanks for the guide. I know you said you aren't going to explain the python part in your last post but since I haven't worked with it before I'm having a hard time figuring it out. I've installed the windows 64bit version and I've tried running the command in the GUI and cmd both and neither can recognize the command. Can you give a lil bit more help?
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 04:20 PM.


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