Log in

View Full Version : Vapoursynth: Remove Frames to Sync Videos


jay123210599
24th January 2025, 23:54
I have 5 videos I want to make a comparison with, but they're out of sync. How do I remove the right amount of frames from each video until they're in sync?

Selur
25th January 2025, 10:05
Easy solution: Use an NLE tool and not Vapoursynth/Vapoursynth. (NLEs are meant to deal with multiple audio & video tracks and their alignment)
With Vapoursynth: Figure out which frames you want to remove, then remove the frames by splitting (using trim) and re-combine your sources.
Since you already have 300+ post you should have a basic understanding of using Vapoursynth and using trim to archive what you want should be easy (and a lot of manual work).
Something like https://github.com/k-aito/vapoursynth-find-matching-frames might help with figuring out which frames you want to remove.
Doing this for a small clip might be feasible, for larger projects probably not, that is what NLEs are for.

Emulgator
25th January 2025, 18:25
Over in AviSynthland ;-)
https://forum.doom9.org/showthread.php?p=2013689#post2013689

jay123210599
26th January 2025, 00:11
Easy solution: Use an NLE tool and not Vapoursynth/Vapoursynth. (NLEs are meant to deal with multiple audio & video tracks and their alignment)
With Vapoursynth: Figure out which frames you want to remove, then remove the frames by splitting (using trim) and re-combine your sources.
Since you already have 300+ post you should have a basic understanding of using Vapoursynth and using trim to archive what you want should be easy (and a lot of manual work).
Something like https://github.com/k-aito/vapoursynth-find-matching-frames might help with figuring out which frames you want to remove.
Doing this for a small clip might be feasible, for larger projects probably not, that is what NLEs are for.

What are some NLE tools? Do some for Vapoursynth exist?

Selur
26th January 2025, 07:18
What are some NLE tools?
https://letmegooglethat.com/?q=What+are+some+NLE+tools%3F

Do some for Vapoursynth exist?
I know of no NLE which uses Vapourynth some might be able to open Vapoursynth scripts as source using AVFS (AV FileSystem), but in general intermediate files would be needed when aiming to combine an NLE with Vapoursynth.

Cu Selur