Back

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

I just set this up on my laptop and for the life of me I couldn't get the snapshots to work. Spent twenty minutes playing with codecs before realizing Avisynth was the culprit.

I had grabbed an older build of Avisynth. Make sure you have the latest build. Don't grab the first link on the sourceforge download page! I installed the newer version and snapshots work fine now.
Reply
@ghinzdra: I managed it: you have to edit the plugin-file and change "actionSuspendCard" to "actionDelete". You can also copy-paste the below text under the comments of the file (after deleting the previous content)

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)

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

mw.addHook("init", init)

Like this you have a Suspend button AND a DeleteFact button.
Edited: 2009-02-20, 3:23 am
Reply
i was trying to use this on a .vob file - but then i encoded it to an .avi using mpeg2(i think) and the snapshots worked

if avi synth doesn't work - it will give an error message - its really brief though, so i used a screenshot - thats when i found out the format was "null"
Reply
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions! - Sign up here
JapanesePod101
suffah Wrote:I just set this up on my laptop and for the life of me I couldn't get the snapshots to work. Spent twenty minutes playing with codecs before realizing Avisynth was the culprit.

I had grabbed an older build of Avisynth. Make sure you have the latest build. Don't grab the first link on the sourceforge download page! I installed the newer version and snapshots work fine now.
I have AviSynth 2.5.8 and I definitely clicked the Snashot feature tick-box.

I use VLC player to play movies - do I need to download specific video Codecs or anything to get the Subs2SRS snapshot feature working?
Reply
I use the KM-Player which like VLC does not need any codecs either. So after installing Xvid (I think) I got subs2srs produce snapshots.
Reply
duder Wrote:if avi synth doesn't work - it will give an error message - its really brief though, so i used a screenshot - thats when i found out the format was "null"
subs2srs will always request that avs2avi use null format. It just means that we don't want to recompress the video - just scan through every frame and let AviSynth do it's job.

anon6969 Wrote:I use VLC player to play movies - do I need to download specific video Codecs or anything to get the Subs2SRS snapshot feature working?
You will definitely need some form of video codec. I use CCCP.
Edited: 2009-02-20, 3:56 pm
Reply
shakkun Wrote:
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..?
thx.... i didn't know it was flexible like that.
Reply
im not exactly sure what im doing wrong, but for the 140 card deck im trying to create, it seems that 25,400 snapshots are created. I think thats every single frame. Is there something that I'm screwing up here

-thanks for the correction on the "null" issue -
Reply
Quote:
anon6969 Wrote:I use VLC player to play movies - do I need to download specific video Codecs or anything to get the Subs2SRS snapshot feature working?
You will definitely need some form of video codec. I use CCCP.
Thanks. After installing that codec pack the Snapshot function works fine.

When setting the FrameRate, is it ok to go by what windows says in the file properties for the video file? For most of the movies I have, Windows says the rate is 29 - so should I change from the default value in Subs2SRS?
Edited: 2009-02-24, 5:41 am
Reply
This is a great program! Thanks for all the hard work cb4960! The interface is well designed and easy to understand, and it worked great the very first time (except I forgot to check "Make Snapshots" - but that was my own fault)
Reply
I have the same snapshot issue. I have a 1500 card deck and it makes like 75,000 snapshots. Any suggestions?
Reply
This is frustrating. I finally got the snapshots to not make 75,000 by adjusting the shift timings settings (not sure what that has to do with making snapshots but it worked), then when I tried to make a new deck with a new video file and new sub file, it does not make snapshots no matter what setting I have. It's not a codec problem because it was making snapshots before. The avs2avi runs, but only for about 10 seconds and no snapshots are produced. I've tried changing the frame rate and the size of the snapshot to no avail. The new video file that isn't making snapshot is the exact same file type with the same dimensions as the one that did produce snapshots earlier, so I'm at a loss.
Reply
I sent the link to this thread to Khatzumoto (AJATT blog) a few weeks ago. Apparently he's taken quite a shine to this program.

Also, although I don't post there, I wonder if the folks at Antimoon would like to know about this? I know that I'm going to teach my wife how to use it for Sex and the City and Prison Break for English. The idea of a Japanese lady speaking like Samantha Jones just sounds hilarious.

PS: cb4960, I know I suggested it before, but is there a way to have the program only parse selected time segments of the video? Example: First five minutes 0:00:00 to 0:05:00 to kind of "test" if the set-up is correct. Or midway 0:38:15 to 0:49:28 for videos that don't match up with the subs at various spots (video from the tv broadcast but subs from the DVD).

To be able to test out a video for the first 2 to 5 minutes though will save a lot of annoyance.
Reply
@Nukemarine

I'm glad that you're getting some use out of the program.

In response to your question, if the video and subtitles match when you play it using your favorite media player, they should also match with subs2srs. So you can put the video file and subtitle file in the same directory and then just rename the subtitle file to match the filename of the video file (sans the extension). Then just fast-forward to the part that you want to test.

Or is this not what you mean?
Edited: 2009-02-28, 11:45 pm
Reply
@thairob and duder

I have determined the cause of the problem. I will post a fixed version of subs2srs within a day.
Reply
Thanks cb4960! I didn't mean to sound like a whiner. I should have properly thanked you for such a great app before starting in on the complaints. Any fixes or updates are appreciated!
Reply
thairob Wrote:Thanks cb4960! I didn't mean to sound like a whiner. I should have properly thanked you for such a great app before starting in on the complaints. Any fixes or updates are appreciated!
No problem. I think we all know how annoying buggy software can be.
Reply
I just posted version 7.1 of subs2srs (see first post).

No new features. Just a fix for the annoying bug that caused subs2srs to take a snapshot of EVERY frame in the video. If the problem persists, please do not hesitate to let it be known.

Thanks,
cb4960
Edited: 2009-03-01, 12:46 am
Reply
cb4960 Wrote:@Nukemarine

I'm glad that you're getting some use out of the program.

In response to your question, if the video and subtitles match when you play it using your favorite media player, they should also match with subs2srs. So you can put the video file and subtitle file in the same directory and then just rename the subtitle file to match the filename of the video file (sans the extension). Then just fast-forward to the part that you want to test.

Or is this not what you mean?
Here's the problem: I have several shows that have DVD rips of the subs but the video is from a broadcast (Densha Otoko for example). That means the timing is off every cut for commercial ie four times though out the show. In addition, the DVD sub rips have 2 shows on them sometimes.

Now, if I could tell sub2srs to do only a portion of the video, this is not a big problem. I just tell it to do first 5 min 36 secs for the sub to mesh with the video before the timing goes off. I then shift the timing of the subs to match the next portion of the video then tell sub2srs to do 5 min 36 secs to 15 min 52 secs.

It seems minor, as it's a special situation (subs from a site that ripped them from DVDs, shows from some drama addict site that gets it from initial broadcast). With other types of subs, this is not problem as I have Aegisub to shift timings to match. Unless there's a way I can do that with ripped subs, in which case I would do that.

And again, the other benefit is that being able to create a file from a 5 minute segment of a show allows us to create a test deck to see if everything matches. This is good as creating a deck from an entire show can take 20 to 30 minutes right?
Reply
hey, i really like the idea of this, however im having a bit of an encoding problem, dont know if anyone will know how to sort it out....

well im trying to use subs2srs to put simplified chinese subtitles into anki, but when i do it, the resulting deck file is just a load of garbbled mess... any idea how i can sort this out?
Reply
Thanks for the update, but it still won't produce snapshots for me. This is what has happened so far: I downloaded Version 7 and did a test deck by ripping subs from a DVD with VobSub and used a converted .avi of the DVD. It worked except it made like 75,000 snapshots. During the tinkering process of trying to get it to work, I did do several cancels after avs2avi started to run. (this may be part of why it doesn't work now) Then I finally got it to work by adjusting the Shift Timing setting.

I discarded that test deck and then created the folders and files for the real deck I wanted to make, but now it absolutely will not make snapshots. The audio and subtitle files work fine, and I can import them into Anki without a problem, but again no snapshots. Avs2avi runs briefly, (like 9 seconds) and it doesn't give any error or anything. The first line at the top when it starts is: FourCC: None (RGB32). Don't know if that is relevant or not. Any suggestions anyone? I'd really like to have the snapshots to go with the deck.

(Also, I thought it possibly might be the video file, so I went back and tried to use the original test deck video that had previously worked, but it also won't produce snapshots now.)
Reply
@bob2222, thairob
Please check your email.
Reply
HerrPetersen Wrote:@ghinzdra: I managed it: you have to edit the plugin-file and change "actionSuspendCard" to "actionDelete". You can also copy-paste the below text under the comments of the file (after deleting the previous content)

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)

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

mw.addHook("init", init)

Like this you have a Suspend button AND a DeleteFact button.
sorry for the delay ... But thanks for the tip!!! it works great!
Reply
@Nukemarine

Okay, I think that I get it now. You just need the ability to enter a start time and an end time. That should be easy enough.
Reply
@bob2222 and anyone with a similar problem,

The problem is that the subtitles [that were sent via email] are encoded in Simplified Chinese (GB2312), but subs2srs expects subtitles to be encoded using UTF-8. (Sorry, I know I didn't mention this anywhere).

So you need to convert the subtitles from GB2312 to UTF-8. If you have Microsoft Word, you can just open the file and select Simplified Chinese (GB2312) from the list. Then save the file as a text file and select Unicode (UTF-8) from the list.
Edited: 2009-03-01, 12:41 pm
Reply