![]() ![]() When I open the file in AegiSub the time codes are in SRT format, which means that the errant subtitle is showing as 00:01:03.87. I export the Subtitle as an SRT (File>Export>Captions) and then move to AegiSub where I know there is option to shift a group of susbtitles and have time code change. ![]() In Premiere I can see that the first mis-aligned subitle needs to move to 00:01:13:09 (I will shift all subtitles at one go, but this first one is the marker). A little bit of extra audio was inserted into beginning of film, but there's no way to drag/extend the subtitle track backward to fill in that gap (and even if I did, the actual time codes would not change to the right position) ![]() Now that all the subtitles have been manually placed, if I wanted to shift them, there's no way to grab all the subtitles and drag them forward ![]() Subtitle track was created using File>New>Captions>Open Captions and then placing that into a video track I can't do it in Premiere itself for the following reasons: The "timecode" that I'm trying to represent is a timecode that is used in video editing quite often, and is seen displayed in the format "hh:mm:ss:ff", or 10:00:05:24, for example ("ff" = frames").I need to shift a set of time codes in an SRT file (using Aegisub Editor) to fix a mis-alignment within Premiere (Open Captions Subtitle file). Return (int)this.totalFrames / ameRate % 60 Return (int)this.totalFrames / ameRate / 60 % 60 Return (int)this.totalFrames / ameRate / 60 / 60 Public Timecode(int totalFrames, short frameRate = 25) Private static readonly Regex TimecodeRegex = new RegexOptions.Compiled | RegexOptions.ExplicitCapture) / Represents a timecode in hh:mm:ss:ff format. The total number of frames for this timecode. Return (float)this.totalFrames / (float)ameRate / The total number of seconds in this timecode. Private static string PadTimecodeUnit(int unit, int places = 2) / Pads a number for display in a timecode string. The total number of frames in one day, for this timecode's framerate. Return new Timecode(timecodeA.totalFrames + timecodeB.totalFrames, ameRate) Throw new InvalidOperationException("Cannot add two timecodes with different framerates.") Public static Timecode operator +(Timecode timecodeA, Timecode timecodeB) Return new Timecode(hours, minutes, seconds, frames) Int frames = int.Parse(captureGroups.Value) Int seconds = int.Parse(captureGroups.Value) Int minutes = int.Parse(captureGroups.Value) Int hours = int.Parse(captureGroups.Value) GroupCollection captureGroups = TimecodeRegex.Match(timecodeStr).Groups Public static Timecode Parse(string timecodeStr, short framerate = 25) / Parses a timecode string of the format "hh:mm:ss:ff". Return new Timecode(timecodeA.totalFrames + frames, ameRate) Public static Timecode operator +(Timecode timecodeA, int frames) / Adds a given number of frames to the timecode. Return timecodeA.TotalSeconds() > timecodeB.TotalSeconds() Public static bool operator (Timecode timecodeA, Timecode timecodeB) Return new Timecode(timecodeA.totalFrames - frames, ameRate) Public static Timecode operator -(Timecode timecodeA, int frames) Int totalFramesB = timecodeB.totalFrames Int totalFramesA = timecodeA.totalFrames Throw new InvalidOperationException("Cannot subtract two timecodes with different framerates.") Public static Timecode operator -(Timecode timecodeA, Timecode timecodeB) / If the second timecode has fewer frames than the first, it is presumed to have rolled over the 24 hour mark and therefore be conceptually greater than the first. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |