Back

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

NightSky Wrote:Are you planning on releasing the source? (apologies if you already answered that, I skimmed the thread). I'd probably be quite happy to help porting this to Mac/Linux if you wanted a hand.

Cheers
cb4960 Wrote:For anyone interested, here is the latest source code:

Download subs2srs version 6 source code on MediaFire
Reply
cb4960 Wrote:
duder Wrote:this is clearly the greatest thing since sliced bread, and I will gladly elect you the mayor of srs for your outstanding contributions to the community.

upon trying this out, i went into the dark hole that is gathering subtitles - and it was terrible - japanese subtitles are hard to make and really hard to find

-would it be possible in future versions to use other subtitle formats like .sub and display them in the srs as pictures instead of text? If I could just take the english and japanese .sub files off my dvds, then i could make any number of decks quickly.

thanks for everything that you have done up to this point and keep up the good work
Good suggestion. Might be a while before I get around to it though.
Another n00b question: I've never used Avisynth before to take screenshots--is it possible to have it take snapshots including idx/sub lines as they would appear in the film? I'm not sure if that's what's being asked above since I'm so n00berz.
Reply
that request is in regard to the fact that subtitles on a dvd are in a format that is graphic based and not text based. It is very easy using any number of programs to get a subtitle in a graphic format. Unfortunately getting one that is in .srt (text) is not so easy. While there are many sources out there, only really random stuff is available in .srt. Converting a graphic to a text based subtitle takes the use of an OCR program that is both life-sucking and miserably slow.

sites like daddicts do not release their text based versions of subs so others cannot profit off their hard work by reselling their finished products.

a text based subtitle (.srt) would be infinitely more useful as you could use analyze your information and divide it any number of ways.

so the hope is that subs2srs will be able to convert that graphic based sub into one that could then be imported into the program, which in turn would simply be displayed as a picture of that particular subtitle.

Its not as easy as it sounds to do this, but i have my fingers crossed.

I don't imagine that you have to import the whole screenshot in order to do that - though I suppose you could do that.


after reading your question again - I think it should be mentioned that there are 2 kinds of subs - hard and soft - hard subs are encoded directly into the video file and cannot easily be removed. Soft subs are included with the video file and are simply overlaid onto the picture. That original post was in reference to soft sobs
Edited: 2009-02-12, 5:25 am
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
Yes, I have quite a few idx/subs, and I seem to have trouble converting them with various programs, and I didn't think hardcoding them before processing would be worth the bother, so I was hoping that Avisynth could be somehow told to process video frames in conjunction with their accompanying idx/sub files while taking screenshots. I guess that's not possible, though.
Edited: 2009-02-12, 8:16 am
Reply
The next version will be able to extract the timings and bitmaps from an idx/sub pair. No hardcoding required! I will probably release it this weekend.
Reply
Awesome!
Reply
Hello,
I have just released version 7 of subs2srs (see the first post).

New Features:

Vobsub Support: You can now use subs2srs with .idx/.sub subtitle files. Here is an example of what it looks like in Anki:

[Image: thegraduatesankiws2.png]

Keep in mind that you can change the background and foreground colors in the Vobsub tab of the advanced subtitle options dialog.

I have successfully tested this with about half of the files posted by nest0r here.

Extract Audio from Video at Intervals Tool: It's located in the Tools menu. It allows you to split the audio from video files at a provided interval (for example, each clip can be 5 minutes long). No subtitle file is needed. This can be useful for immersion learning (like AJATT). You can put the files on your mp3 player and listen thoughout the day.

cb4960
Edited: 2009-02-15, 7:21 pm
Reply
Thanks a lot dude, can't wait to try this out.
Reply
Awesome, thanks! Time to put some ドラマ in my deck.
Reply
for my level personally, it's inefficient b.c. i already get 80/90% but by all means it seems like a fun way to get through basic/intermediate the stuff that pops up the most in anime
Reply
I just found this post randomly while looking for something else, and have to say, this is so awesome that I can't stand it! I had seen "toki wo kakeru shojo" before (actually, I rented it and watched it in Japan) and I had made some cards with a few choice words and sentences that I wanted to memorize... however, Windowz was getting slow and I wiped my computer - and that file was in a directory I didn't back up. *sigh* I downloaded the sample card pack today and it was basically like watching the whole movie again. It took me an hour or two to go through the whole thing. I kept 77 cards from the deck for study, and it was pretty easy to get rid of the cards I didn't need. I just marked sentences I needed to know as a "1" and everything else a "4" and then sorted by due date and deleted everything due a few weeks out, then I imported the remaining cards into my main deck. It was like rewatching the movie again, and reinforced everything I had learned before. This is just the coolest thing ever! I came back to say thanks, and to top it all off, I found a that there was a new version that works with vobsub files directly. Thank you!!!!!!
Reply
Been really looking forward to the vobsub support in this update! Love your work cb4960.

Time for me to get extracting the idx/subs from the MKV files I encoded from dvds, or is subs2srs going to automagically do this in the future??
Reply
Another quick way of getting rid of cards you don't want is using the "add Button to toolbar"-plugin:
http://ichi2.net/anki/wiki/Plugins#Addbuttontotoolbar
It puts a "suspend card" buttom next to the audio button.
Reply
Ok, I have to ask: Is getting idx/subs from a DVD a labor intensive process? Last I checked, it was a kind of hackish method.
Reply
I' m looking into it at the very moment .... I'll give you news anytime .

EDIT : actually what's bothering me is not really the technical feat ..... it has more to do with the stuff : I mean it a well know fact that subtitles on dvd match rarely what' s said on screen.... (pro are more concerned about casual viewers who wants a quick to catch traduction than japanese learners who are looking for perfect serif )

On the other hand I have several magnificent scripts (gunsligers girls , FLCL , etc...) with no timing .... I'm pondering about combining that with the timing of english fansub but until now I get no results . Do you guys have any ideas to use a script with subs2srs ?
Edited: 2009-02-17, 2:51 am
Reply
On a side note .... cb4960 where did you get the japenese subtitles for toki wo kakeru shojo ?
they're damn good!
did you find them on dramanote or something like this ? did you handtype everything ? It's not like we've never done that before ....still this wonderful soft make would stakanov lazy Big Grin
Reply
ghinzdra Wrote:On a side note .... cb4960 where did you get the japenese subtitles for toki wo kakeru shojo ?
they're damn good!
did you find them on dramanote or something like this ? did you handtype everything ? It's not like we've never done that before ....still this wonderful soft make would stakanov lazy Big Grin
Probably from one of these links: http://forum.koohii.com/showthread.php?p...6#pid42286 (Kitsunekko I bet)
Reply
Nukemarine Wrote:Ok, I have to ask: Is getting idx/subs from a DVD a labor intensive process? Last I checked, it was a kind of hackish method.
No, it's easy. It's exactly like getting the idx/subs from an English DVD. It's only a pain if you want text based srts etc because automatic OCR is basically non-existant. Here's a guide.
Reply
howtwosavealif3 Wrote:for my level personally, it's inefficient b.c. i already get 80/90% but by all means it seems like a fun way to get through basic/intermediate the stuff that pops up the most in anime
So do I but this is what I do: While watching a drama I keep a txt doc open. Whenever there's a new word I write it down. At the end I'll have a list of maybe 8-10 words, which I then paste in the word filtering section of sub2srs and run it. It runs fast because it only has to make a few cards. Easy. I don't even have to pause the video.

I don't know how to do the same with idx/sub files though. Maybe write the times down..?
Reply
shakkun Wrote:
Nukemarine Wrote:Ok, I have to ask: Is getting idx/subs from a DVD a labor intensive process? Last I checked, it was a kind of hackish method.
No, it's easy. It's exactly like getting the idx/subs from an English DVD. It's only a pain if you want text based srts etc because automatic OCR is basically non-existant. Here's a guide.
well is there something else to install besides vobsub ? because ain't able to get the hand on the IFO files .... while xilisoft subtitle does . It seems to works just fine but I'm still extracting a video file out of my dvd to try subs2srs so I'll give a definitive answer later.
Edited: 2009-02-17, 4:27 am
Reply
The Snapshot feature isn't working for me. It appears in the .csv file but no Snapshot files are actually made. I have Avisynth installed (2.5 I think). Can anybody help me with this issue?
Reply
anon6969 Wrote:The Snapshot feature isn't working for me. It appears in the .csv file but no Snapshot files are actually made. I have Avisynth installed (2.5 I think). Can anybody help me with this issue?
I had this problem and realized I didn't check the "Make snapshots" button. Took me 3 tries to set it properly.

EDIT: Also make sure you have the proper codec installed for the video. That seemed to fix it for me.
Edited: 2009-02-19, 2:46 am
Reply
HerrPetersen Wrote:Another quick way of getting rid of cards you don't want is using the "add Button to toolbar"-plugin:
http://ichi2.net/anki/wiki/Plugins#Addbuttontotoolbar
It puts a "suspend card" buttom next to the audio button.
Does it only add a "suspend card" button ???? I thought you could tune your own version of the toolbar and create a button for any action ....As sub2srs is creating a huge stack of cards for each file , most of wich I have no interest whatsoever , I'd like to add a delete button . It would be a huge gain of time . But no matter where I click , how much I look into the options , I don't get a" customize your toolbar" option , just a suspend card button .

So is it possible or not with the "add button to toolbar" plugin?
Reply
After reviewing you can go to edit cards --> show only tags --> suspend --> action delete. But having a delete button would definetly be cool.
The code in the plugin looks really simple, so I guess it would be easy to rewrite it:
Here the code.

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from ankiqt import mw

def init():
mw.mainWin.toolBar.addSeparator()
mw.mainWin.toolBar.addAction(mw.mainWin.actionSuspendCard)

mw.addHook("init", init)

I will try put sth like .actionDeleteCard there - will report back shortly.

EDIT: No success. Will ask in the anki-forum.
Edited: 2009-02-19, 5:27 pm
Reply
@anon do you have some codecs installed? I was not able to make snapshots until I installed the Xvid codec (and maybe some more).
Edited: 2009-02-19, 5:37 pm
Reply