Revese TrackEvent

Comments

Thiago_Sase wrote on 2/12/2025, 2:48 PM

@jetdv

It would certainly take some thinking to get to the best solution.

That's for sure, Sir.

Thiago_Sase wrote on 2/12/2025, 2:49 PM

@nonam3 Thanks for the tip, I tried it, but did not work;

double playbackRate = evnt.PlaybackRate;


Timecode mediaOffset = MyTake.Offset;
Timecode eventLength = evnt.Length;


Timecode adjustedOffset = Timecode.FromMilliseconds(mediaOffset.ToMilliseconds() * playbackRate);


Timecode reversedStart = Timecode.FromMilliseconds(
    adjustedOffset.ToMilliseconds() + (MyTake.Length.ToMilliseconds() * playbackRate) - (eventLength.ToMilliseconds() * playbackRate)
);

 

Last changed by Thiago_Sase on 2/12/2025, 2:50 PM, changed a total of 1 times.

OS: Windows 10 22H2
CPU: Intel Core I7 12700
MEMORY: 32GB DDR4 3200MHz
GHAPHIC CARD: RTX 3060 8GB
HARD DRIVES: SSD for System and M.2 for Media Files

jetdv wrote on 2/12/2025, 2:58 PM

@Thiago_Sase, my thought would be:

  1. Change the Playback Rate to 1
  2. Change the length to match a Playback Rate of 1 (length / Playback Rate)
  3. Reverse the event
  4. Change the length back to the original event length
  5. Change the Playback Rate back to the original Playback Rate
Thiago_Sase wrote on 2/12/2025, 3:08 PM

 

@Thiago_Sase, my thought would be:

1. Change the Playback Rate to 1

2. Change the length to match a Playback Rate of 1 (length / Playback Rate)

3. Reverse the event

4. Change the length back to the original event length

5. Change the Playback Rate back to the original Playback Rate

@jetdv I'll try to create that structure, step by step, and see if solve the issue. Thanks.