Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
21st October 2011, 03:08 | #1 | Link |
Registered User
Join Date: Jul 2011
Posts: 224
|
New Application trimsrt trims and shifts srt subtitle file based on range of frames
I made a couple of posts and searched everywhere I could think of for an application that would take an srt subtitle file and trim/shift it based on a range of frames for situations where you do something like this in Avisynth:
Code:
A = NicAC3Source("E:\AviSynth\job.ac3") V = FFVideoSource("E:\AviSynth\job.mkv") AudioDub(V, A) AlignedSplice(Trim(2832, 16727), Trim(16896, 31295)) The Source code is included, I release it under the GPL. If you find any problems please report them. If you know c++ and fix a problem or extend the application, please share. I just started using Avisynth a couple of weeks ago, and I just wrote this application over the last couple days. So far it has worked perfectly for me, but consider it to be in Beta testing stage. most of my testing has been using 2 frame ranges (2832,16727,16896,31295), but it should accept as many frame ranges as you need. Code:
Usage is -i <file> -f <fps> -t <frames> omitting -f <fps> assumes an fps of 23.976024 trimsrt -i 004.srt -t 2832,16727,16896,31295 trimsrt -i 004.srt -f 29.97 -t 2832,16727,16896,31295 other format conversion to srt tip: To convert SUB/IDX or .SUP to .SRT. I recommend using Subtitle Edit: http://forum.doom9.org/showthread.php?t=162721 Last edited by xekon; 25th October 2011 at 21:42. |
Thread Tools | Search this Thread |
Display Modes | |
|
|