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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 21st October 2011, 03:08   #1  |  Link
xekon
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))
I was unable to find an application that would do this via command line, so I wrote this program.

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
Guide showing trimsrt usage via batch script: http://forum.doom9.org/showthread.php?t=162830

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
Attached Files
File Type: zip trimsrt.zip (54.6 KB, 127 views)

Last edited by xekon; 25th October 2011 at 21:42.
xekon is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.