Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show

Index » Learning resources

Reply #451 - 2010 March 02, 12:47 am
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

blackmacros wrote:

nest0r wrote:

Greater even than staring upon the ineffable vastness of Cthulhu!

Surely not

I know that humanity is not yet ready to believe my tale. Rather, it is in the best interests of humanity that this terror remain unknown, dead and dreaming at the bottom of the sea.

Also, I figured out the problem: Pinning subs2srs to the Start Menu. This has happened with a couple programs in the past--the first program to come to mind being TensaiGo, it also gave me errors when I tried to pin it.

Edit: Solution is to create a shortcut and pin that to the Start Menu. ^_^

Last edited by nest0r (2010 March 02, 5:03 am)

Reply #452 - 2010 March 05, 10:55 am
TaylorSan Member
From: Colorado Registered: 2009-01-03 Posts: 393

blackmacros wrote:

1. Download and install Mono from http://www.go-mono.com/mono-downloads/download.html

2. Download ffmpeg from the link Asriel provided http://www.megaupload.com/?d=ZBU4FM3M (perhaps you might want to package this with the download? As a layperson I found it very difficult to find despite much googling. Thankfully Asriel rode to the rescue)

3. Put the ffmpeg file in /bin. You can get to /bin by opening Finder, selecting Go from the toolbar, then select Go to folder and type /bin (pm215 mentioned this might not be a good idea, but I don't know how to add other directories to $PATH. I don't even really know what PATH is)

4. Open terminal (found in Applications-->Utilities)

5. Type "chmod a+x /bin/ffmpeg" (without quotes) into the terminal, then press enter

6. Type "export MONO_MWF_MAC_FORCE_X11=1" (without quotes) into the terminal and then press enter

7. Type "mono" (without quotes) in the terminal, followed by a space, and then drag the subs2srs.exe file onto the terminal so that it automatically finds its location. Press enter.

8. Use Subs2SRS. Yay.

I did all this and get:

Cannot open assembly '/Users/artistatlarge/Downloads/subs2srs-1': File does not contain a valid CIL image.

???

Could someone help me? I know NOTHING about how any of this stuff works, but I really want to use Subs2srs.

Reply #453 - 2010 March 05, 11:08 am
TaylorSan Member
From: Colorado Registered: 2009-01-03 Posts: 393

Yo - 気にするな!

I did it all again, and the program opened!!!!!! YES!

Now to try it out....

Thanks to everyone whose hard work helped me get this wonderful tool! I have wanted to get it for months, but all the technical stuff kept me at a distance. I'm really excited about this as I kind of saw it as the last major tool I wanted to put my J-studies into overdrive!

Now back to page 1 to learn how to use the darn thing......

EDIT- すごい=subs2srs

YES!!! This is amazing, like a golden beam of light emerging through dark clouds.....


All Hail cb4960!!!!!

Last edited by TaylorSan (2010 March 05, 12:17 pm)

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Reply #454 - 2010 March 05, 1:34 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Right?? To be honest, I'm always kind of surprised not to see more messages like 'All hail cb4960!!!' every day, and wonder how many people use subs2srs. Are many people kind of intimidated by the program? Because for Windows at least, it's really simple to get running (when you don't make n00b mistakes like I did and pin the .exe directly to the Start Menu). It takes literally 1-2 minutes for me to run through it to make a deck before it spends another few minutes doing its automated thing, and then another 1-2 minutes is spent importing the deck.

Last edited by nest0r (2010 March 05, 1:34 pm)

Reply #455 - 2010 March 07, 10:33 pm
blueshadow New member
From: Canada Registered: 2008-12-19 Posts: 9

All hail cb4960!!!

I'm sure there are a lot of lurkers like myself using it. This has pretty much become my primary source for new sentences. I just wish more shows came with japanese subs (especially older series and genre's other than drama's such as variety shows/news). But yeah, I find myself being interested in shows I've disregarded in the past simply because I can SRS it, and somehow, that makes watching the show more fun... yeah I'm weird like that.

Reply #456 - 2010 March 08, 12:22 am
avparker Member
From: Tokyo Registered: 2007-05-06 Posts: 168 Website

All hail cb4960!!!
I finally got around to installing subs2srs on my macbook, and it works great.

I followed blackmacros instructions ( http://forum.koohii.com/viewtopic.php?pid=94670#p94670 ).

To clarify a couple of steps
0. You need to make sure the X11.app is installed (under Applications/Utilities).
I forget whether this is installed by default. If not, it should be included on the OS disc, or you can get it off the Apple download site.

4. Before running the "mono [subs2srs.exe]" you need to run the X11.app (Applications/Utilities/X11.app). Otherwise you get an error about being unable to open the "display".



As a final note, putting stuff in /bin is a bad idea, but the alternative is a bit technical.
Here's what I did:
- make a directory in my home folder called "progs" (or whatever you want)
- put the "ffmpeg" file in that directory
- add the "progs" directory to your PATH

The last step means adding the following line to your ".bash_profile" file in your home directory  :   
export PATH="$HOME/progs:$PATH"

To do the last step you can just edit the file, or paste the following command into the terminal:
echo "export PATH=\"\$HOME/progs:\$PATH\"" >> ~/.bash_profile


Finally, you can create an "alias" so you can run it by just typing "subs2srs" without having to remember where you put the executable.
Add an alias to your .bash_profile file with the command you use to run it.
e.g. mine is
alias subs2srs='mono /Users/avp/progs/subs2srs/subs2srs.exe'

Reply #457 - 2010 March 08, 12:58 am
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Hail!!

Can you think of a way I might somehow run older Anki decks or a .tsv (?) through a kind of filter like the max milliseconds in subs2srs? I have several old decks where I wouldn't mind culling the cards longer than 2500ms, having made them with the vers just before the option was instated. Likewise if this were somehow a general option for subs2srs--to do a second pass later on (like if you change your mind about max ms), that could be interesting/useful. Obviously without a source file + re-encoding, there would be limitations (ie you can't undo 'subtractions'), but.

Hmm, maybe that would be better for some sort of Anki deck-culling plug-ins, though.

Last edited by nest0r (2010 March 08, 1:01 am)

Reply #458 - 2010 March 08, 1:22 am
TaylorSan Member
From: Colorado Registered: 2009-01-03 Posts: 393

Personally I was totally intimidated by it at first glance. I just saw a looooooong set of instructions and pages of tech speak in this thread, and shied away with the plan to someday come back, grit my teeth, and make myself figure it out. It turned out to not be so bad (though I have no idea what I did... just followed blackmacros instructions-after skimming through this massive thread to the damn end--> all noob mac users hail blackmacros!), and I can't do justice with mere words to how amazing this is for learning.

For me the computer tech speak is like trying to eat veggies when I was a kid.....nnnyu-uh! Even if it's good for me, I savagely resist educating myself in this regard. I just want to use my computer to learn japanese, not learn code stuff. I do the minimum to get want I need, and rely on the good graces of people who know what they're doing, and are kind enough to guide my noobie ass.

Anyone remember Phil Hartman's SNL Caveman Lawyer?....yeah.

I have no idea what putting stuff in /bin means, or why it's bad. I think I did that to get the thing to go, and I'm happy if it goes, and it did. I did what blackmacros instructed and subs2srs popped up, and I made a deck super-fast so I'm happy. At my pace and level I'll bee working through one episode for a while so I'm content for now. But I wonder if I need to tinker with it as avparker is describing....? I really don't savvy this PATH stuff....

I know I sound like a dumb ass yokel here, but that's about an accurate self description when it comes to this kind of crap for me LOL. And my guess is that I'm not the only one around here like this.

All Hail Caveman Lawyer!

Last edited by TaylorSan (2010 March 08, 1:23 am)

Reply #459 - 2010 March 08, 4:03 am
mistamark Member
From: Japan Registered: 2008-03-26 Posts: 127 Website

TaylorSan wrote:

...
I have no idea what putting stuff in /bin means, or why it's bad. I think I did that to get the thing to go, and I'm happy if it goes, and it did. I did what blackmacros instructed and subs2srs popped up, and I made a deck super-fast so I'm happy. At my pace and level I'll bee working through one episode for a while so I'm content for now. But I wonder if I need to tinker with it as avparker is describing....? I really don't savvy this PATH stuff....!

Don't worry about it. If it works then it's all good. the world isn't going to end because you moved some files around smile Top marks for working through it.

Reply #460 - 2010 March 09, 9:00 am
jpkuelho Member
From: Brazil Registered: 2009-04-07 Posts: 54

I'm having problems importing in anki, no sound and the Image shows as "?",
I'm pretty sure I importing to the correct fields and the media files are alright

Reply #461 - 2010 March 09, 10:21 am
Nukemarine Member
From: 神奈川 Registered: 2007-07-15 Posts: 2347

Jpkuelho,

I have to ask, are the media files in the same folder with a name that matches the anki file? It's easy to forget that part especially if you're importing to an overall anki file you use for multiple shows.

Reply #462 - 2010 March 09, 11:43 am
jpkuelho Member
From: Brazil Registered: 2009-04-07 Posts: 54

Yeah , that did the trick , thanks Nukemarine
so theres no way of using the same deck for all the episodes of a show?

Reply #463 - 2010 March 09, 9:05 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

jpkuelho wrote:

Yeah , that did the trick , thanks Nukemarine
so theres no way of using the same deck for all the episodes of a show?

There is no reason why couldn't use the same deck for all episodes of a show.

You have a couple of options:

1) Place the materials required for each episode in the same directory. That is, place all videos files in the video directory, all Japanese subtitle files in Subs1 directory, all English subtitles in the Subs2 directory. Subs2srs will process them all and produce a single .tsv file and a single media folder containing everything.

2) Or you can do processing for each episode separately and import the .tsv files into Anki as needed. Just move the contents of each episode's media folder into the media folder of your Anki deck.

Reply #464 - 2010 March 18, 7:53 pm
caivano Member
From: Tokyo Registered: 2010-03-14 Posts: 705

holyfeck this program looks amazing! now I know why people keep going on about sus2srs, I assumed they were doing it manually :$

Reply #465 - 2010 April 01, 9:48 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

@cb4960 - Feature request? Sort of: A way to use audio + .trs files (from Transcriber) to create Anki decks? ;p

Reply #466 - 2010 April 01, 10:29 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

nest0r wrote:

@cb4960 - Feature request? Sort of: A way to use audio + .trs files (from Transcriber) to create Anki decks? ;p

This Transcriber?
http://trans.sourceforge.net/en/presentation.php

Sure, I'll take a look at it. I was also thinking of adding support for Lyrics files (.lrc) one of these days.

Reply #467 - 2010 April 01, 10:43 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

cb4960 wrote:

nest0r wrote:

@cb4960 - Feature request? Sort of: A way to use audio + .trs files (from Transcriber) to create Anki decks? ;p

This Transcriber?
http://trans.sourceforge.net/en/presentation.php

Sure, I'll take a look at it. I was also thinking of adding support for Lyrics files (.lrc) one of these days.

Cool. Yes that's it, we've been using it for this tool, which I'm calling Kage Shibari till someone stops me: http://forum.koohii.com/viewtopic.php?pid=98708#p98708 (in case you missed those developments). Be sure not to read this, because there's nothing of interest here: http://forum.koohii.com/viewtopic.php?pid=98779#p98779

Transcriber's really good for annotating audio, didn't realize how easy it was till I messed with it. So you end up with a file that resembles a subtitle file but preserves the formatting. I figured it's great for controlled shadowing, but you could also use the same basic idea to cut up the audio, pair with sentences, and make Anki decks. My brain isn't allowing me to storm further but I'm sure there's more possibilities as well. Edit: Annotated dorama transcripts...

Last edited by nest0r (2010 April 02, 1:27 am)

Reply #468 - 2010 April 02, 10:38 am
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

Anyone know what the problem is here?
http://i43.tinypic.com/2r2apz9.png
I'm using the idx/sub that I ripped from the DVD
The big picture (MPlayer) is the video playing with the extracted subs.
The smaller picture on top is what subs2srs gave me from the exact same subs.

It doesn't happen to all of them, but a lot more than I would like. I counted 100 of the subs, and 42 of them were garbled like this.
42/100!

Anyone know what I can do about this?

Reply #469 - 2010 April 02, 10:54 am
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

I was just reading the subs2srs/sourceforge site. Someone gave subs2srs a thumbs down. I want their head on a pike!!

Reply #470 - 2010 April 02, 11:55 am
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

nest0r wrote:

I was just reading the subs2srs/sourceforge site. Someone gave subs2srs a thumbs down. I want their head on a pike!!

The sad part is that this user didn't leave a comment detailing what they didn't like or what they felt could have been improved upon.

Reply #471 - 2010 April 02, 12:13 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Asriel wrote:

Anyone know what the problem is here?
http://i43.tinypic.com/2r2apz9.png
I'm using the idx/sub that I ripped from the DVD
The big picture (MPlayer) is the video playing with the extracted subs.
The smaller picture on top is what subs2srs gave me from the exact same subs.

It doesn't happen to all of them, but a lot more than I would like. I counted 100 of the subs, and 42 of them were garbled like this.
42/100!

Anyone know what I can do about this?

For some reason it works on the Windows version. Here are the media files:
http://www.mediafire.com/?gyydlztij2y

Edit: I updated the media files to match the name that you were using. So you can drag them into your media folder if you want.

I'll also try the linux version a little later.

Edit: I just tried the linux version and it DOES garble some of the images. Strange.

Last edited by cb4960 (2010 April 02, 12:43 pm)

Reply #472 - 2010 April 15, 12:18 am
superliman New member
From: USA Registered: 2009-09-05 Posts: 7

I also tried following blackmacros' instructions for installing subs2srs onto Mac but ran into some problems,

I then found avparker's follow up clarification on some steps and said I needed to have X11.app installed. As far as I can tell, it appears I do not. However, I have no idea how to get this file! I'm in Japan and didn't bring my Mac OS X CD with me and it seems difficult to find on the internet. Does anyone know where I can get it? Or can I somehow verify the legality of my OS X on the Apple website and download it?

I could only find an older version of X11.app on Apple.com when I looked, I'm running 10.4.11.

If anyone has any ideas I'd greatly appreciate it. I downloaded the 5 Centimeters Per Second subs2srs Anki Deck and loving it! I'd love to create some decks of my own (and even share them) but I've been having many troubles.

Thank you!

Reply #473 - 2010 April 15, 12:33 am
Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

I'm actually having a bunch of troubles with it, and I'm not sure if it's just me (on the mac version)

1. Previously-stated idx/sub problem
2. Can't create snapshots with changed size (want to crop out hardcoded subs). Probably a ffmpeg problem, not subs2srs

I would also like it if we could have a preview/list of all the subs, and then be able to choose the ones to delete, or rather, choose only the ones we want to save. I guess this can easily be done in anki though, so not that essential. Just kind of annoying when I only want a few subs out of 500.

Reply #474 - 2010 April 15, 1:59 am
avparker Member
From: Tokyo Registered: 2007-05-06 Posts: 168 Website

superliman wrote:

I then found avparker's follow up clarification on some steps and said I needed to have X11.app installed. As far as I can tell, it appears I do not. However, I have no idea how to get this file! I'm in Japan and didn't bring my Mac OS X CD with me and it seems difficult to find on the internet. Does anyone know where I can get it? Or can I somehow verify the legality of my OS X on the Apple website and download it?

I could only find an older version of X11.app on Apple.com when I looked, I'm running 10.4.11.

If anyone has any ideas I'd greatly appreciate it. I downloaded the 5 Centimeters Per Second subs2srs Anki Deck and loving it! I'd love to create some decks of my own (and even share them) but I've been having many troubles.

Thank you!

Hi superliman,
X11.app is free, and is part of the developer tools which you can download from apple (you might need to sign up for the free developer account - not sure).
Unfortunately I'm not really sure where to get a copy for OSX 10.4.

I did a quick search, and found this page: http://roundhere.net/journal/install-x1 … thout-dvd/
I can't vouch for it though.

Reply #475 - 2010 April 15, 6:42 am
superliman New member
From: USA Registered: 2009-09-05 Posts: 7

Thanks for the link!, I downloaded it and installed X11. I followed your instructions and ran the X11.app found in Utilities before running the mono subs2srs.exe command, however I still get an error something like:

"Could not open display (X-Server required. Check your DISPLAY environment variable)"

Is all I really need to do is run the X11 app before typing in the commands into Terminal? X11 opens up its own terminal but I assume I just leave that alone and enter the commands into the regular Terminal. Still no luck, any ideas appreciated.