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

Index » Learning resources

cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

suffah,

I was able to replicate the error message that you saw on a fresh install of Ubuntu 10.10.

However, I was able to successfully run subs2srs when I installed the modified UiaAtkBridge.dll from here:
http://miszacus.net/index.php?a=uiaatkbridge

Could you be a bit more specific about "but it crashes when I try to add input."? I was able to add a subs1 file, output directory, sub2 file, video file and the deck name without issue. I was also able to bring up the preview dialog and was able to successfully generate a deck with snapshots, videos clips, and audio clips.

Thanks.

Reply #627 - 2010 November 19, 5:25 am
dfmoss Member
From: Kyoto Registered: 2010-05-18 Posts: 11

Guys,
I am a mac user who knows nothing about how computers work. I mean, I use my mac religiously, but no matter how hard I try I can't get subs2srs to work. I don't know how to work my terminal to open up certain files, even though I've downloaded everything based on blackmacro's advice in   http://forum.koohii.com/viewtopic.php?pid=94670#p94670
but nothing works.

Is there a simple, stupid way to open this damn thing up? something that doesn't require me to type in a bunch of things properly into my terminal?
I'm really computer illiterate. Please help!

Reply #628 - 2010 November 19, 5:44 am
BlackMarsh Member
Registered: 2005-10-12 Posts: 106

Can't believe I've only just discovered this program. Amazing. I've just gone through the first episode of Fumo Chitai and weeded out the lines I don't need.

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Reply #629 - 2010 November 19, 1:48 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

dfmoss wrote:

Guys,
I am a mac user who knows nothing about how computers work. I mean, I use my mac religiously, but no matter how hard I try I can't get subs2srs to work. I don't know how to work my terminal to open up certain files, even though I've downloaded everything based on blackmacro's advice in   http://forum.koohii.com/viewtopic.php?pid=94670#p94670
but nothing works.

Is there a simple, stupid way to open this damn thing up? something that doesn't require me to type in a bunch of things properly into my terminal?
I'm really computer illiterate. Please help!

I think you're right, subs2srs is too hard to setup on a Mac. I will probably have some time tomorrow to properly look into this. I think I'll create a shell script (or something) that can be double-clicked and will automatically setup the environment variables and launch subs2srs.exe. I also want to prepackage the 64-bit version of FFmpeg for Mac. Of course, I'll need a volunteer to test it since I don't have access to a Mac...

Last edited by cb4960 (2010 November 19, 1:50 pm)

Reply #630 - 2010 November 19, 7:51 pm
mpacheco Member
From: Tokyo Registered: 2009-04-10 Posts: 79

cb4960 wrote:

Of course, I'll need a volunteer to test it since I don't have access to a Mac...

Lemme know when it's ready, I can test.

Reply #631 - 2010 November 19, 7:54 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

mpacheco wrote:

cb4960 wrote:

Of course, I'll need a volunteer to test it since I don't have access to a Mac...

Lemme know when it's ready, I can test.

Great, Thanks!

Reply #632 - 2010 November 20, 4:35 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

mpacheco,

Could you try the following two items?

subs2srs for 64-bit Mac
subs2srs for 32-bit Mac

The 64-bit version comes with the FFmpeg from here.

The 32-bit version comes with the FFmpeg from this post.

Try following the Mac instructions in the readme.txt file.

Let me know how it goes. Feel free to express a better way to do something. Thanks.

Last edited by cb4960 (2010 November 20, 7:15 pm)

Reply #633 - 2010 November 20, 9:21 pm
dfmoss Member
From: Kyoto Registered: 2010-05-18 Posts: 11

I tried testing the 32-bit subs2srs for on my old macintosh from '07.
I installed mono, x11 is also installed.
I then opened up console but can't seem to find a way to navigate to the download (are you sure it's console that we have to open up and not terminal?
On the readme, this is all the instructions are:
Mac OS X Users: How to Install and Launch:
-----------------------------------------
1) Make sure that you have Mono installed
   (http://www.go-mono.com/mono-downloads/download.html).

2) Make sure that X11.app is installed (/Applications/Utilities)

3) Unzip subs2srs.

4) Open a console and navigate to the unzipped directory
   (Example: "cd /the/subs2srs/directory")
   
5) To run subs2srs, type the following: "bash ./launch_subs2srs.sh"

6) If you want to run subs2srs again, you can now simply
   double-click "launch_subs2srs.sh" instead of doing steps 1-5


I'm sorry that I keep pushing this but I have no idea what steps 4-6 mean. As usual, I can't open this seemingly wonderful program because I'm an idiot when it comes to computer stuff. or something. Black macros suggested putting something in the /bin folder but that folder doesn't allow me to put anything into it. Please help!

cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

The downloads that I posted today were an attempt to make blackmacros post obsolete.

Maybe this makes it a tiny bit clearer.

1) Make sure that you have Mono installed
   (http://www.go-mono.com/mono-downloads/download.html).

2) Make sure that X11.app is installed (/Applications/Utilities)

3) Unzip subs2srs (for example to /Users/dfmoss/temp)

4) Open /Applications/Utilities/Terminal.app (I think that's what it's called)

5) In Terminal type "cd /Users/dfmoss/temp/subs2srs" without the quotes and press enter. The /User/dfmoss/temp/subs2srs part is the location of the subs2srs folder that was unzipped.

6) Still in Terminal, Type "bash ./launch_subs2srs.sh" without the quotes and press enter. This should bring up subs2srs.


It's very possible that the above still doesn't make sense. Let me know.

-------

For Mac Gurus:
For the purpose of executing a script via a double-click, does Mac have a special extension that it uses (like a .bat on Windows)? Or maybe the Mac OS will execute it on double-click as long as execute permissions are set (like Linux).

Last edited by cb4960 (2010 November 20, 10:04 pm)

Reply #635 - 2010 November 21, 5:21 am
dfmoss Member
From: Kyoto Registered: 2010-05-18 Posts: 11

It's still not working for me. I type in the terminal bash ./launch_subs2srs.sh and it tells me that there is no file or directory or that the command is not found. on a mac you can literally drag files or directories into the terminal, which I did, and it tells me that it's a directory. This is as far as I can seem to get it seems.

cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

dfmoss wrote:

It's still not working for me. I type in the terminal bash ./launch_subs2srs.sh and it tells me that there is no file or directory or that the command is not found. on a mac you can literally drag files or directories into the terminal, which I did, and it tells me that it's a directory. This is as far as I can seem to get it seems.

I guess I wrongly assumed that Mac came with bash by default.

I'm guessing that you would get the same error message if you just typed "bash" into Terminal.

Last edited by cb4960 (2010 November 21, 10:07 am)

Asriel Member
From: 東京 Registered: 2008-02-26 Posts: 1343

I'm running 10.6, and even when I was on 10.4, there was no problem running bash. I don't know what's wrong with dfmoss.

As for running something similar to .bat files, I'm not an expert, but it seems like you could write an applescript to do...pretty much whatever you wanted.

edit: I haven't dealt with subs2srs in a long time, but don't you have to be in the X11 terminal to run it?
/Applications/Utilities/X11.app instead of Terminal.app

Last edited by Asriel (2010 November 21, 10:39 am)

cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Asriel wrote:

I'm running 10.6, and even when I was on 10.4, there was no problem running bash. I don't know what's wrong with dfmoss.

As for running something similar to .bat files, I'm not an expert, but it seems like you could write an applescript to do...pretty much whatever you wanted.

Thanks for the info. I'll look into applescripts.

Reply #639 - 2010 November 21, 4:25 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Here is the latest experimental Mac versions:

subs2srs for 64-bit Mac
subs2srs for 32-bit Mac

From the readme file:

1) Install Mono 2.6.7 (version 2.8 is the latest but contains bugs):
   http://ftp.novell.com/pub/mono/archive/2.6.7/download/

2) Download subs2srs.

3) In Finder, double-click the subs2srs zip file to unzip it.

4) In Finder, navigate to the unzipped subs2srs folder.

5) In Finder, double-click "launch_subs2srs.applescript".

6) In the Apple Script Editor that pops up, click the big "Run" button.

   * If subs2srs doesn't come up, try the following:

     A) Open "launch_subs2srs.applescript"
     
     B) Change the line that looks like this:
     
        -- set export_x11_cmd to "export MONO_MWF_MAC_FORCE_X11; "
       
        to this (the first two dashes were removed):
       
        set export_x11_cmd to "export MONO_MWF_MAC_FORCE_X11; "
       
     C) Change the lines that looks like this:
     
        -- set launch_x_cmd to "/Applications/Utilities/X11.app; "
   
        to this (the first two dashes were removed):
       
        set launch_x_cmd to "/Applications/Utilities/X11.app; "
     
     D) Click the big "Run" button.

---

Let me know how it goes.

suffah Member
From: New York Registered: 2006-09-14 Posts: 261

cb4960 wrote:

suffah,

I was able to replicate the error message that you saw on a fresh install of Ubuntu 10.10.

However, I was able to successfully run subs2srs when I installed the modified UiaAtkBridge.dll from here:
http://miszacus.net/index.php?a=uiaatkbridge

Could you be a bit more specific about "but it crashes when I try to add input."? I was able to add a subs1 file, output directory, sub2 file, video file and the deck name without issue. I was also able to bring up the preview dialog and was able to successfully generate a deck with snapshots, videos clips, and audio clips.

Thanks.

Thanks for getting back to me.

Just tried it again and it worked perfectly!  Thanks again for your help with this one.

Reply #641 - 2010 November 25, 7:30 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Oddly I hadn't checked this before: If I'm using .idx/.sub files with dual subtitles, will simply removing the English portion of the .idx result in Japanese-only turnout in subs2srs?

Last edited by nest0r (2010 November 25, 7:30 pm)

Reply #642 - 2010 November 25, 8:59 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

nest0r wrote:

Oddly I hadn't checked this before: If I'm using .idx/.sub files with dual subtitles, will simply removing the English portion of the .idx result in Japanese-only turnout in subs2srs?

I think so. Is subs2srs not recognizing the subtitle streams correctly?

Reply #643 - 2010 November 25, 9:35 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

cb4960 wrote:

nest0r wrote:

Oddly I hadn't checked this before: If I'm using .idx/.sub files with dual subtitles, will simply removing the English portion of the .idx result in Japanese-only turnout in subs2srs?

I think so. Is subs2srs not recognizing the subtitle streams correctly?

I hadn't checked. I just did, the preview that was generated showed Japanese subtitles, as expected, so yes, removing the English section of the .idx worked.

Reply #644 - 2010 November 25, 9:56 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Ohhh lol. I see, you meant the option for selecting streams. I didn't even see it! The version of subs2srs I'm using is too small, window-wise, forcing me to scroll from left to right once I hit the bottom in order to see stuff to the right, and I can't maximize or resize it. But I see I can adjust the main_window size in the settings.txt so that's good. Changing it to 830x830 is perfect.

Last edited by nest0r (2010 November 25, 10:05 pm)

howtwosavealif3 Member
From: USA Registered: 2008-02-09 Posts: 889 Website

nest0r wrote:

Oddly I hadn't checked this before: If I'm using .idx/.sub files with dual subtitles, will simply removing the English portion of the .idx result in Japanese-only turnout in subs2srs?

how do you use .sub .idx files ( i have both of 'em for the same movie) since they're like pictues... do you  just do all the lines in the movie (filtering isn't possible with .sub idx? i would guess since it's like pictures not text)

Reply #646 - 2010 November 26, 1:57 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

howtwosavealif3 wrote:

nest0r wrote:

Oddly I hadn't checked this before: If I'm using .idx/.sub files with dual subtitles, will simply removing the English portion of the .idx result in Japanese-only turnout in subs2srs?

how do you use .sub .idx files ( i have both of 'em for the same movie) since they're like pictues... do you  just do all the lines in the movie (filtering isn't possible with .sub idx? i would guess since it's like pictures not text)

For the most part, it's the exact same as usual. My main filtering when making cards is by audio length, and I do subs2srs decks only as video clips (on the front, text/meaning on back), the only goal being listening/parsing.

It would be cool though if there was some kind of Anki OCR plugin. Hmmm...

Reply #647 - 2010 November 26, 6:50 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

nest0r wrote:

It would be cool though if there was some kind of Anki OCR plugin. Hmmm...

After writing Capture2Text, I now have some OCR experience. Maybe I will include OCR in subs2srs itself in some future update.

Edit: I did a couple minutes of testing with the Tiger and Dragon subtitles and it worked very well.

Last edited by cb4960 (2010 November 26, 7:01 pm)

Reply #648 - 2010 November 27, 2:15 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

cb4960 wrote:

nest0r wrote:

It would be cool though if there was some kind of Anki OCR plugin. Hmmm...

After writing Capture2Text, I now have some OCR experience. Maybe I will include OCR in subs2srs itself in some future update.

Edit: I did a couple minutes of testing with the Tiger and Dragon subtitles and it worked very well.

Nice! Seems like it would allow for consistent, optimal accuracy (within the OCR's current limitations).

Reply #649 - 2010 November 27, 8:34 pm
Nukemarine Member
From: 神奈川 Registered: 2007-07-15 Posts: 2347

Sort of off topic, but from where can we get the Tiger and Dragon subtitles?

Reply #650 - 2010 November 27, 8:56 pm
mpacheco Member
From: Tokyo Registered: 2009-04-10 Posts: 79

Nukemarine wrote:

Sort of off topic, but from where can we get the Tiger and Dragon subtitles?

http://project-modelino.com/japanese-movies.htm