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

Index » Learning resources

Reply #676 - 2011 January 18, 7:11 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Mesqueeb wrote:

Hi!
Since subs2srs doesn't work for me know somehow, I guess I need to do this:

http://miszacus.net/index.php?a=uiaatkbridge

But where do I put the file I've downloaded then? xP

This is where I placed mine:
/usr/lib/mono/gac/UiaAtkBridge/1.0.0.0__f4ceacb585d99812

I should have placed this in the readme because it's not exactly obvious.

Reply #677 - 2011 January 19, 2:54 am
Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

thanks ! this worked.
But now it gets stuck while Generating snapshots.......

"[mpeg4 @ 0x8b83e30]Invalid and inefficient vfw-avi packed B frames detected"
Is a line I keep noticing

and where the final frame stopped: at generating snapshot 264 / 770

Code:

Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (24000/1001)
Input #0, avi, from '/media/Tracy/動画/中国 普通话/Cape No.7 - tradsubs/cowry-cn7-cd1.avi':
  Metadata:
    ISFT            : VirtualDubMod 1.5.10.1 (build 2439/release)
  Duration: 01:03:38.06, start: 0.000000, bitrate: 1531 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 656x272 [PAR 1:1 DAR 41:17], 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.0, s16, 448 kb/s
Unrecognized option 'vf'

** (subs2srs.exe:4437): WARNING **: CreateProcess: error creating process handle

Thanks! ^^

Reply #678 - 2011 January 19, 10:05 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Mesqueeb wrote:

thanks ! this worked.
But now it gets stuck while Generating snapshots.......

"[mpeg4 @ 0x8b83e30]Invalid and inefficient vfw-avi packed B frames detected"
Is a line I keep noticing

and where the final frame stopped: at generating snapshot 264 / 770

Code:

Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (24000/1001)
Input #0, avi, from '/media/Tracy/動画/中国 普通话/Cape No.7 - tradsubs/cowry-cn7-cd1.avi':
  Metadata:
    ISFT            : VirtualDubMod 1.5.10.1 (build 2439/release)
  Duration: 01:03:38.06, start: 0.000000, bitrate: 1531 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 656x272 [PAR 1:1 DAR 41:17], 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0.1: Audio: ac3, 48000 Hz, 5.0, s16, 448 kb/s
Unrecognized option 'vf'

** (subs2srs.exe:4437): WARNING **: CreateProcess: error creating process handle

Thanks! ^^

The "[mpeg4 @ 0x8b83e30]Invalid and inefficient vfw-avi packed B frames detected" message is normal. It's just ffmpeg doing its thing.

From my Googlings, the "CreateProcess: error creating process" stems from a bug in Mono. The bug report can be found here. I'm not quite sure what to make of it. It might just be a random thing. If you have the time, could you try running subs2srs again and telling me where it stops? Also, what version of Mono are you using? Type "mono --version" to find out.

There is a workaround you can try. It's an iterative approach:

1) Open subs2srs, select all options as you would normally and click the "Go!" button.
2) Wait until it fails. Even though it fails it should leave behind the 264 snapshots (or whatever) and the .tsv file in your output directory.
3) Save a copy of the .tsv file somewhere. Leave the snapshots alone.
4) Look at the file name of the last snapshot. It contains a timestamp.
5) Open subs2srs again and fill out all options as normal, except this time check the "Span h:mm:ss)" option and put the timestamp from the snapshot into the "Start:" field. In the "End:" field, put a time that is greater than or equal to the end time of your video.
6) Click "Go!"
7) If it errors again, repeat steps 4-6.
8) Copy the original .tsv file (from step 3) and paste it back into the output directory (overwriting the one that is there).

Last edited by cb4960 (2011 January 19, 10:06 pm)

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Reply #679 - 2011 January 20, 1:08 am
Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

edit:
version mono:
Mono JIT compiler version 2.6.7 (Debian 2.6.7-3ubuntu1)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
    TLS:           __thread
    GC:            Included Boehm (with typed GC and Parallel Mark)
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  x86
    Disabled:      none



Haha! You are a genius of figuring out something like that! ^^
First I'll try again from scratch, if that fails again, what do you mean with "telling me where it stops?" At frame x ? ^^ Or at which process? I'd guess the snapshot phase... Sorry I'm not quite following on you there xD

but if it fails again I'll go over to your iterative approach!!
Thanks!!!

-Mesqueeb

Last edited by Mesqueeb (2011 January 20, 1:16 am)

Reply #680 - 2011 January 20, 2:25 am
Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

Okay, I let it run again, when I came back it was "finished"
only after I imported it into anki numerous files that were used on cards were missing in the media file.... I use .idx subs for the movie I want.
I had no avis generated while the program said everything went alright if I remember correctly, but still no avis in the media folder.... an also a lot of missing jpg's and even png's

it would seem that the subs become png images in the media folder, which is fine by me though.
am I am doing something wrong? xD I am really confused!

Reply #681 - 2011 January 20, 3:17 am
Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

Okay, it says: generating video clip, and it seems to go correctly...
BUT! When I look at the terminal it says:

(look at the last line)

FFmpeg version 0.6-4:0.6-2ubuntu6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  5 2010 22:35:47 with gcc 4.4.5
  configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  libavutil   configuration: --extra-version=4:0.6-2ubuntu3+medibuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-x11grab --enable-libfaad --enable-libxvid --enable-libx264 --enable-librtmp --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavcodec  configuration: --extra-version=4:0.6-2ubuntu3+medibuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-x11grab --enable-libfaad --enable-libxvid --enable-libx264 --enable-librtmp --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavformat configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavdevice configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavfilter configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libswscale  configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libpostproc configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
/tmp/~subs2srs_temp.avi: No such file or directory


So the last line, as well as the "  WARNING: library configuration mismatch " concerns me >,<

As for this time I tried it with a chinese movie I had with SRT subs!! Now the subs did not became .png files, but was normal text!
As for this time it came out again with no video, and no snapshots....

Does it have anything to do with the dimensions of the generate video and snapshots? Should we put the dimensions the same as the movie, or keep the standard ones? The crop is also something I don't quite understand... >,<

'd be happy with any input cb4960! cheers!

-Mesqueeb

Reply #682 - 2011 January 20, 7:30 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Mesqueeb wrote:

Okay, it says: generating video clip, and it seems to go correctly...
BUT! When I look at the terminal it says:

(look at the last line)

FFmpeg version 0.6-4:0.6-2ubuntu6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  5 2010 22:35:47 with gcc 4.4.5

[...]

/tmp/~subs2srs_temp.avi: No such file or directory

Okay, I think I know what the problem is now. In the same folder as subs2srs.exe there is also a file named settings.txt. Edit settings.txt and search for a setting called "force_legacy_ffmpeg". By default it is set to "false". Please set it to "true". This will enable compatibility with the older version of ffmpeg that is in the Ubuntu 10.10 repository. Now just restart subs2srs and and everything should work fine. To be honest, I meant to set it to "true" by default for the Linux release but completely forgot.

Hopefully this solves the issue, but if it doesn't, let me know and I'll try to think of something else.

Mesqueeb wrote:

Does it have anything to do with the dimensions of the generate video and snapshots? Should we put the dimensions the same as the movie, or keep the standard ones? The crop is also something I don't quite understand... >,<

subs2srs won't let you pick invalid dimensions so you should be fine in that regard. I usually pick dimensions that are about 1/3 the video size. The crop will remove pixels from the bottom of video based on the original video resolution. So if your video was 640x480 and you chose a crop of 100 pixels, the final resolution before being resized would be 640x380. Cropping the bottom like this can be useful for removing hard subs that have been burned into the video itself.

Last edited by cb4960 (2011 January 20, 7:31 pm)

Reply #683 - 2011 January 21, 5:22 am
Mesqueeb Member
From: Japan Registered: 2008-10-14 Posts: 253 Website

Everything works now!
It's strange because I even checked the readme which said:

* Note 1: If you have a more modern version of FFmpeg (0.6.1+), open
             settings.txt and set "force_legacy_ffmpeg = false"

Me, assuming I have the latest version, went ahead and put it on "false" only to come to the conclusion in already was "false" so I just left it at that. ^^
So be sure to add in the next release's readme that 10.10 users should put/leave the value to "true" Not false like the readme states now! ^^ (just a hint)

Also, the little advice you gave me on the cropping is really easy to understand if you state it like that. Now I also found that it's all stated in "help > Usage" in the program. xD Maybe for stupid users (like me who didn't find that link at first) you can also add "for any program specific help see the "help > Usage" link in the program. Haha, it's probably just me though!!


1 more question:

Will the video clips play on the ipod touch's AnkiMobile application? ^^


Thanks for all your help, and I love your programme!

-Mesqueeb

Last edited by Mesqueeb (2011 January 21, 5:38 am)

Reply #684 - 2011 January 22, 1:39 am
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Mesqueeb wrote:

Everything works now!

1 more question:

Will the video clips play on the ipod touch's AnkiMobile application? ^^

I don't know about that one - you might try the Anki forums. Let me know what you find out and I'll put it into the FAQ. If it helps, the video files that subs2srs outputs have XviD encoded video and MP3 encoded audio.

Reply #685 - 2011 February 10, 4:15 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

I just had an idea. For generating video/snapshots, how about an option to use percentages based on the source video file, for quickly determining proportionate dimensions.

Also still hoping to one day see .trs support, though I suppose it's so low on the priority of desires even I forgot to mention it again till now. ;p

http://forum.koohii.com/viewtopic.php?pid=98873#p98873

Edit: Oh right. Snapshot dimensions chooser. Where have I been. I always use the same dimensions, so. Yes. That's my excuse. Plus it's only been in subs2srs since umm July, 2010. I totally knew about it actually. I was just testing you all.

Last edited by nest0r (2011 February 10, 4:30 pm)

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

nest0r wrote:

I just had an idea. For generating video/snapshots, how about an option to use percentages based on the source video file, for quickly determining proportionate dimensions.

Also still hoping to one day see .trs support, though I suppose it's so low on the priority of desires even I forgot to mention it again till now. ;p

http://forum.koohii.com/viewtopic.php?pid=98873#p98873

Edit: Oh right. Snapshot dimensions chooser. Where have I been. I always use the same dimensions, so. Yes. That's my excuse. Plus it's only been in subs2srs since umm July, 2010. I totally knew about it actually. I was just testing you all.

It's actually not your fault. You are the victim of an ingenious plot of mine. Last July I leapt forward through time anime-style, saw your post today, leapt back, and added the feature. I've been waiting 7 months just for the day when you would be publicly humiliated. I even had to train super intelligent primates to hack Icecream's account, delete her posts, and get her banned - predicting of course that Fabrice would turn off the delete post feature - all so you couldn't delete your post in shame. Muhahahahahha.

Oh, maybe I'll leap back again and add .trs support to make it even sweeter...

nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Haha. Very clever... except for one small detail. You will notice that, this forum not being a draconian, irrational system, I could have edited my comment at any time. But I did not. Why? I will tell you! I left my seeming error intact so that it would appear to you that your plan succeeded! I knew all along about your little scheme.

Now you have revealed your devious nature for all to see. Or should I say, I revealed it by laying a most black and cunning complot. I believe there are a few agencies that would be interested in your temporal abilities. Check and mate.

At any rate, having tried out both Minilyric and Transcriber, I must say I prefer Transcriber as an annotation tool, so it could be useful to have that (I was wavering but I just compared them so yeah I'm sticking with .trs).

Last edited by nest0r (2011 February 11, 1:35 am)

Reply #688 - 2011 February 11, 3:50 am
GreenAirth Member
From: Nagano, Japan Registered: 2009-12-20 Posts: 68

Sorry, I've just got to come in here and say you two are hilarious. Your scheming antics made me laugh out loud.

I should also say how much I love substosrs; I don't think it's an exaggeration to say it revolutionised my learning. Thanks cb4960.

Reply #689 - 2011 February 12, 6:52 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

By the way, even though I can't remember why I wanted ‘multiple spans’ as an option, I just wanted to point out that you never incorporated it: http://forum.koohii.com/viewtopic.php?pid=92075#p92075

Also, that recent thread looking for shadowing materials reminded me that you incorporated spans and subtitle timing and stuff in the extract audio section, thanks a lot! I'm only slightly slow. Fluency in 10 years. (re: http://forum.koohii.com/viewtopic.php?pid=72667#p72667)

By the way, having never used it, does that extract audio by subtitles thing name the files based on the lines? Or however people use mp3 tags and filenames in playlists (I've never extensively done such a thing) in their iPod Touches and whatnot.

Ugh, I have no idea what I was talking about before. Multiple spans and selecting every 5 lines/conversations? What in the world... ? Maybe I was thinking of the call-and-response production thing? What do multiple spans have to do with it... maybe something like first having a span that removes the opening and ending songs, then selecting multiple spans within that span of various conversations, which would be divided up line by line?? Yes! I think that's it! Maybe. I guess I was talking about multiple spans in both subs2srs decks and audio files for listening, in order to have call-and-response cards in Anki as well as conversations for listening?

And maybe also an option to leave those extra spans untouched by the other length and whitelist filters and stuff if one wants to use them as they are but might want the rest of the lines to be filtered? Okay that's too much, I, I shouldn't ask for that. I can just make two decks in such cases. That's really just too much to ask for. I shouldn't even leave it in this comment.

Last edited by nest0r (2011 February 12, 7:11 pm)

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

nest0r wrote:

Haha. Very clever... except for one small detail. You will notice that, this forum not being a draconian, irrational system, I could have edited my comment at any time. But I did not. Why? I will tell you! I left my seeming error intact so that it would appear to you that your plan succeeded! I knew all along about your little scheme.

Now you have revealed your devious nature for all to see. Or should I say, I revealed it by laying a most black and cunning complot. I believe there are a few agencies that would be interested in your temporal abilities. Check and mate.

Drat! Always one step ahead!

nest0r wrote:

By the way, even though I can't remember why I wanted ‘multiple spans’ as an option, I just wanted to point out that you never incorporated it: http://forum.koohii.com/viewtopic.php?pid=92075#p92075

I did implement multiple spans. Kinda. The preview dialog allows you to activate and deactivate lines using the button on the right. You can activate/deactivate one line at a time or multiple lines at a time.

nest0r wrote:

By the way, having never used it, does that extract audio by subtitles thing name the files based on the lines? Or however people use mp3 tags and filenames in playlists (I've never extensively done such a thing) in their iPod Touches and whatnot.

The file names contain the name, episode and timestamp. The subtitles are embedded in the lyrics tag.

Last edited by cb4960 (2011 February 12, 10:06 pm)

nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Brilliant! I never used the preview before. ;p Didn't realize you could select what to include/exclude. Heh. I think that implementation looks perfect and better than what I could've thought of.

Thanks as always.

nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Ah ha! I figured out what I was talking about before.

So it's like, what I was thinking of was to extract the audio and cut it into segments based on spans selected not by time but by subtitle start and end markers—and not with each line between them broken into separate audio files.

So you'd end up with say, a single 2:37 audio file that starts with a subtitle line where someone asks a question, goes through the exchange of dialogue, then ends with the final line in the conversation, just as an example. Or rather, a set of audio files like that but from a single subtitle+video.

Because with current extract audio options, it seems like you'll have clips based on amounts of time rather than meaningful spans of time, and lines would likely be cut off. If we use the audio clips in the deck creation process, you'd have titular/numerical lines that would be consecutively numbered but not necessarily based on consecutive lines from the source, due to filters.

Still, now that I write that out, I think it would probably just be better, rather than developing a whole functionality around a single user strategy, to use subs2srs' current function to generate audio clips from the subtitle file as per the usual deck creation utilities, and then use the preview to make sure a desired string of lines are selected, and simply keep them together in folders or playlists or combine them as a single file with Audacity or something. In that case you could just ignore this comment. ;p

If I was going through that process purely to create audio clips, I'd probably just not use the filters when doing so.

But as a general idea that occurred to me, based on that preview interface screenshot: Could there be a way to enable/disable the various filters from the preview dialogue to quickly see how they affect lines, or would that be more trouble than it's worth. Or perhaps one could disable the filters for selected lines? By filters I'm referring to Advanced Options like Prune Subs and Language Specific...

Let's see, also, for the audio tool, what about generating playlists or cue sheets or something? Also, would renaming the resulting audio files based on lines from the subtitles or corresponding lyrics tag be useful?

Or the option, from the preview window, to generate a single audio clip from selected lines? You could select a bundle, perhaps name it (conversation #1 for example, or interesting lines #3), then extract as a single media file? hehe Okay I'll stop. As usual, feel free to take or discard from my rambles what you will. I'm/we're always grateful for whatever new tools and features you come up with regardless.

Also, that single cb4960 megathread someone mentioned sounds like a good idea...

Last edited by nest0r (2011 February 13, 12:16 am)

Reply #693 - 2011 February 13, 1:55 am
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

nest0r wrote:

Ah ha! I figured out what I was talking about before.

So it's like, what I was thinking of was to extract the audio and cut it into segments based on spans selected not by time but by subtitle start and end markers—and not with each line between them broken into separate audio files.

So you'd end up with say, a single 2:37 audio file that starts with a subtitle line where someone asks a question, goes through the exchange of dialogue, then ends with the final line in the conversation, just as an example. Or rather, a set of audio files like that but from a single subtitle+video.

Because with current extract audio options, it seems like you'll have clips based on amounts of time rather than meaningful spans of time, and lines would likely be cut off. If we use the audio clips in the deck creation process, you'd have titular/numerical lines that would be consecutively numbered but not necessarily based on consecutive lines from the source, due to filters.

Still, now that I write that out, I think it would probably just be better, rather than developing a whole functionality around a single user strategy, to use subs2srs' current function to generate audio clips from the subtitle file as per the usual deck creation utilities, and then use the preview to make sure a desired string of lines are selected, and simply keep them together in folders or playlists or combine them as a single file with Audacity or something. In that case you could just ignore this comment. ;p

I suppose you could use also use Aegisub to time the entire conversation as a single 2:37 line and repeat this process for each interesting conversion in the episode. Then when subs2srs does it's normal processing, you would get nicely chopped up audio files in the output directory - each one containing a full conversion.

nest0r wrote:

If I was going through that process purely to create audio clips, I'd probably just not use the filters when doing so.

But as a general idea that occurred to me, based on that preview interface screenshot: Could there be a way to enable/disable the various filters from the preview dialogue to quickly see how they affect lines, or would that be more trouble than it's worth. Or perhaps one could disable the filters for selected lines? By filters I'm referring to Advanced Options like Prune Subs and Language Specific...

You're in luck, that's how it currently works. Just change a filter in either the Main dialog or the Advanced Options dialog and click the Regenerate Preview button in the Preview dialog to see which lines get deactivated.

Reply #694 - 2011 February 13, 2:12 am
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Ohhh, why do I always assume that when those secondary windows open like that, they freeze out the window ‘beneath’? I need to stop doing that. (And thus the regenerate preview button, good call. ;p)

Last edited by nest0r (2011 February 13, 2:31 am)

Reply #695 - 2011 March 01, 7:17 am
rigol Member
From: Germany Registered: 2010-01-11 Posts: 26

Maybe a very dumb question, but... I wanted to create a deck for an episode of Air, started it yesterday and it still runs. It's 376 lines, and the snapshots seem to take forever - running for 22 hours now, I let it run overnight and it's at "Generating snapshot: 358 of 376" Why is it taking sooo long? With Clannad, it took about 20 minutes I think. Is it because of some codec?

Reply #696 - 2011 March 01, 1:54 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

rigol wrote:

Maybe a very dumb question, but... I wanted to create a deck for an episode of Air, started it yesterday and it still runs. It's 376 lines, and the snapshots seem to take forever - running for 22 hours now, I let it run overnight and it's at "Generating snapshot: 358 of 376" Why is it taking sooo long? With Clannad, it took about 20 minutes I think. Is it because of some codec?

Wow! It might be time to retire that Apple II smile. I hope it at least worked OK when it eventually finished.

Even at 1080 resolution, it shouldn't take more than 30 minutes on a somewhat modern computer.

Is the video file on a DVD or external hard drive or a network? If so, move the video file to your internal hard drive first.

If that's not the case, what codec does the video file use? What are your system specs?

Reply #697 - 2011 March 03, 10:10 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Heeeeeeeey nest0r,

You wouldn't happen to have any .trs+audio files that I could test with the upcoming subs2srs Transcriber parser, would you?

Thanks.

Reply #698 - 2011 March 03, 10:33 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

Nope, no idea what you're talking about. However, I do have a link to the English translation of a Japanese short story: http://sn.im/y5gt46ze - Make sure you visit this sn.im link and not something like tinyurl.com.

;p

Last edited by nest0r (2011 March 03, 10:34 pm)

Reply #699 - 2011 March 04, 5:32 pm
nest0r Member
Registered: 2007-10-19 Posts: 5236 Website

By the way, that was the first one I made. I just now fixed the author's name followed by the next line (deleted both breakpoints, then set resolution to 10 seconds and made sure the cursor was just before each line when I hit Enter to set the breakpoints, so they were aligned just before each of those signals began).

Also, just now remembered to set encoding to UTF-8 before saving w/ ctrl+s.

I totally forgot about the paragraph thing for a bit also, where you make sure the cursor's blinking at the beginning of a line where you want to create a paragraph break, Create Turn, and name the ‘speaker’ something (anything) instead of having no speaker. I think there's a bug in Transcriber though: after creating the first turn, the OK/Cancel button seemed to disappear, but then I realized it was still there but I had to increase the size of that window.

Edit: Just noticed the speaker name doesn't matter, at least for Kage Shibari. Although perhaps in the future I can imagine using the filters to select lines by particular speakers. I like the idea of having ‘turns’, as well, for conversations. Seems like there are production/discursive possibilities I hadn't thought of...

Last edited by nest0r (2011 March 04, 9:45 pm)

Reply #700 - 2011 March 04, 10:49 pm
cb4960 Member
From: Los Angeles Registered: 2007-06-22 Posts: 917

Hello,

I have just released version 22.0 of subs2srs.

Download subs2srs v22.0 via SourceForge

What Changed?

+ Added Transcriber (.trs) support. (Thanks nest0r - better late than never, right smile).

+ Added support for non-MP3 formats (.ogg, .aac, etc.) in the Audio... field of the main
   interface.

+ Added option to choose which encoding to use for Subs1 and Subs2. See the Encoding tab
   of the Advanced Subtitle Options dialog. You can also set the encoding in the Extract Audio
   from Media tool and the Dueling Subtitles tool. Also added a default encoding setting in
   settings.txt.

cb4960

Last edited by cb4960 (2011 March 04, 10:52 pm)