kanji koohii FORUM
Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - Printable Version

+- kanji koohii FORUM (http://forum.koohii.com)
+-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html)
+--- Forum: Learning resources (http://forum.koohii.com/forum-9.html)
+--- Thread: Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show (/thread-2512.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - bombpersons - 2009-10-05

Looks really good =D Though it was a bit confusing to read through with all the code in one file 0.o

I use python a lot, I wouldn't mind contributing =)


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - pm215 - 2009-10-05

bombpersons Wrote:Looks really good =D Though it was a bit confusing to read through with all the code in one file 0.o

I use python a lot, I wouldn't mind contributing =)
Yeah, I should probably split it up; legacy of the way it started as a short script and grew. Also I don't write much python so the style might be weird. Patches gratefully accepted :-)


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - distefam - 2009-10-05

I've attempted to locate the audio files and they definitely haven't been made. I attempted the same process but with video this time. Video files were output, however, they have scrambled audio when I play them. I have uploaded a sample video here:
http://tr.im/AJec


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - cb4960 - 2009-10-05

The video that you uploaded plays fine on my computer. I'm using CCCP with the included Media Player Classic.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - distefam - 2009-10-05

Looks like you're right, when I play it with Mplayer it works fine. Should have thought of that myself. So it looks like the encoding is working properly, do you have any ideas about the audio?


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - cb4960 - 2009-10-05

If you want, you can try a simple test to ensure ffmpeg and mp3splt work correctly on your system.

Copy the video file into the ffmpeg directory (in subs2srs\Utils\ffmpeg) and execute this command from the command prompt:
Code:
ffmpeg.exe -ab 96k -vn -y -i "input.mkv" -ss 00:05:00.000 -t 00:01:00.000 "output.mp3"
Being sure to replace input.mkv with the name of you video. It will produce a 1 minute MP3 called "output.mp3" starting at the 5 minute mark of the video.

Then copy output.mp3 to the mp3splt directory (in subs2srs\Utils\mp3splt). Now run this from the command prompt:
Code:
mp3splt.exe -q -o the_split_file -2 -g %[@a=blah,@b=blah,@t=blah,@n=1] -d "C:\Temp\subs2srs_temp" "output.mp3" 000.20.00 000.30.00
This will output a 10 second MP3 called "the_split_file.mp3" into the folder "C:\Temp\subs2srs_temp".

Do you see this file?


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - distefam - 2009-10-06

I executed the above commands and it did create the file. However, when running the commands as they were written windows was unable to find the command. I'm not familiar to DOS as I am on a mac and it uses a Unix prompt, but when you are trying to run a command from the command line in Unix one has to add the path to one's profile. I was able to get the commands to run once I specified the entire path to ffmpeg.exe, mp3split.exe and the input files.

I don't think this could be the cause, but I suppose it is a possibility that subs2srs can't find ffmpeg.exe and mp3split? Perhaps it is something else.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - b0ng0 - 2009-10-06

I have a question (sorry if it's already been answered).

Most of my files that have subs, have them encoded into the file (not as seperate sub files). Can I extract them somehow?


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - distefam - 2009-10-06

b0ng0 Wrote:I have a question (sorry if it's already been answered).

Most of my files that have subs, have them encoded into the file (not as seperate sub files). Can I extract them somehow?
Not if they are hardsubbed. In other words, if they are embedded in the video you cannot. If you can switch them off however, you can extract them from the file.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - zodiac - 2009-10-06

What format is the file? If it's mkv you can google mkvtools.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - theasianpleaser - 2009-10-06

Has anyone gotten the Final Fantasy 7 files posted by Bombpersons on the Wiki page to work?

I can't seem to do it.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - jcdietz03 - 2009-10-06

The show I want to do with this is InuYasha (Original Series, TV Episode 1). However, I cannot find the subtitles anywhere on the internet, so I want to make my own. How do I make a subtitle file? Is there a way I can extract timing info from the existing English subtitle file?


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - cb4960 - 2009-10-06

snozle Wrote:I executed the above commands and it did create the file. However, when running the commands as they were written windows was unable to find the command. I'm not familiar to DOS as I am on a mac and it uses a Unix prompt, but when you are trying to run a command from the command line in Unix one has to add the path to one's profile. I was able to get the commands to run once I specified the entire path to ffmpeg.exe, mp3split.exe and the input files.

I don't think this could be the cause, but I suppose it is a possibility that subs2srs can't find ffmpeg.exe and mp3split? Perhaps it is something else.
On to the next step. I have uploaded a version that will output a log containing all of the commands it uses for splitting audio.

http://www.mediafire.com/download.php?wy0b2ytzmrz

Replace the old .exe with the new one. After running it, the log (named subs2srs.log) will be be in the same directory as subs2srs.exe.

Send it to my username at gmail.com. I'll see if anything looks out of the ordinary.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - zodiac - 2009-10-08

jcdietz03 Wrote:The show I want to do with this is InuYasha (Original Series, TV Episode 1). However, I cannot find the subtitles anywhere on the internet, so I want to make my own. How do I make a subtitle file? Is there a way I can extract timing info from the existing English subtitle file?
You should be able to open the subtitle file in an ordinary text editor and edit it without touching the timing information.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - bombpersons - 2009-10-08

theasianpleaser Wrote:Has anyone gotten the Final Fantasy 7 files posted by Bombpersons on the Wiki page to work?

I can't seem to do it.
The one's at the learnanylanguage forum? What's the problem?


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - bombpersons - 2009-10-08

jcdietz03 Wrote:The show I want to do with this is InuYasha (Original Series, TV Episode 1). However, I cannot find the subtitles anywhere on the internet, so I want to make my own. How do I make a subtitle file? Is there a way I can extract timing info from the existing English subtitle file?
If you open the english subtitles with aegisub, you can just replace the engish with japanese.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - cb4960 - 2009-10-10

Hello,

I have just released version 16 of subs2srs.

Download subs2srs v16 via SourceForge

New:

1) Linux/Mac Support!
Using Mono you can now use subs2srs on a Linux or Mac platform.

[Image: subs2srsv16ubuntu.png]

In order to run, you must do the following:

1) Download the Mono version of subs2srs from SourceForge. Both the Mono and Windows versions actually use the same executable, but the Mono version does not come packaged with ffmpeg.

2) Install Mono and Mono WinForms. To do this on Ubuntu 9.04, execute these commands:
Code:
sudo apt-get install mono
sudo apt-get install mono-winforms*
You might not need that first command, but I can't remember whether or not Ubuntu comes pre-installed with Mono.

3) Install ffmpeg. The ffmpeg execucatable must be called "ffmpeg" and the directory that it resides in must be in $PATH. To do this on Ubuntu 9.04, execute these commands:
Code:
sudo apt-get install ffmpeg
sudo apt-get install libavcodec-unstripped-52
Other distros might not need the second command.

4) To run subs2srs, open a console, cd to the location of the subs2srs executable and type:
Code:
mono subs2srs.exe
Note 1: I have only tested this on Ubuntu 9.04. If someone has success with another distro or with a Mac, please share setup details and any issues you encounter.

Note 2: As an aside, this port was extremely simple. Practically the only thing I had to do was to use ffmpeg instead of mp3splt to split the audio files.

2) MP3 ID3 tags now include the dialog text
Each MP3 is now embedded with the corresponding Subs1 and Subs2 line in the lyrics tag.


cb4960


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - bombpersons - 2009-10-10

AAAAAAAAAAAAAAAWWWWWWWWWWWWEEEEEEEEEEESSSSSSSSSSSSSSOOOOOOOOOMMMMMMMMEEEEEEEEEEEEE!!!!!!!!!

Thanks a lot cb4960, now I can finally stop using windows entirely =)

*Just tried it on Ubuntu Jaunty (9.04), works great =)


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - pm215 - 2009-10-10

cb4960 Wrote:Note 2: As an aside, this port was extremely simple. Practically the only thing I had to do was to use ffmpeg instead of mp3splt to split the audio files.
Just curious -- any particular reason for not just using the ubuntu packaged mp3splt?


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - bombpersons - 2009-10-10

pm215 Wrote:
cb4960 Wrote:Note 2: As an aside, this port was extremely simple. Practically the only thing I had to do was to use ffmpeg instead of mp3splt to split the audio files.
Just curious -- any particular reason for not just using the ubuntu packaged mp3splt?
Meh, less dependencies are always good =)


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - cb4960 - 2009-10-10

I could have kept using mp3splt, but I didn't want to have yet another program that needed to be installed beforehand. Actually the dependency on mp3splt goes back to the early days of subs2srs when it still relied on Avisynth. Eventually I made the switch to ffmpeg but kept using mp3splt because it was a convenient way to tag the mp3 files. At the time it seemed to work well enough, so I never felt the need to find an alternative. This seemed like a good opportunity to remove an unnecessary dependency.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - pm215 - 2009-10-11

While I'm asking random questions: is it really faster to do a single ffmpeg to yank/convert audio/video to a temp file and then invoke it again to do the split by line, rather than just doing the split and convert at the same time? I was thinking about speed-testing both approaches but if you've already done it I'll save myself the bother :-)


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - cb4960 - 2009-10-11

pm215 Wrote:While I'm asking random questions: is it really faster to do a single ffmpeg to yank/convert audio/video to a temp file and then invoke it again to do the split by line, rather than just doing the split and convert at the same time? I was thinking about speed-testing both approaches but if you've already done it I'll save myself the bother :-)
I originally had it the other way, but (for some reason) it was dreadfully slow.

EDIT: It looks like I introduced the current method in Version 10. In the post I made about it, I claimed it that it was 20 times faster.

EDIT2: Oh, and I don't mind random questions Smile


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - ruiner - 2009-10-11

Thanks for the update! You rock.


Use subs2srs to Create Anki Decks Based on Your Favorite Movie or Show - sarenya - 2009-10-19

Hello! I have read this whole thread, though not recently, so I apologize if this information is present somewhere and I've missed it.

I'm currently living in Japan and so have access to all sorts of fun Japanese movie content (Lord of the Rings dubbed, say). I'm wondering what the best way of going all the way from a physical DVD all the way to Anki cards is. It's my understanding that this is currently to manually convert the DVD to a movie, then convert the DVD subtitle tracks to external subtitle files, then feed that collection of files into subs2srs. If this is the case, that's fine, but if there are shortcuts available I'd be eager to exploit them.

In any event, this in an incredible tool and an amazing use of technology to take some of the gruntwork out of getting language resources.