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. |
![]() |
#1 | Link |
Registered User
Join Date: Apr 2024
Posts: 324
|
vspreview with vs_align
Like I mentioned before, I have different videos that I want to compare to, but they are out of sync. How do I use vs_align to perfectly align the videos in vspreview?
https://github.com/pifroggi/vs_align |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: May 2011
Posts: 364
|
Again, vs_preview has nothing to do with your thread questions, it is just a previewer that previews whatever is set for output in you vapoursunth/ python script, you confuse yourself and others.
from vs_align, I did not install it, just looked in manual, after you install pytorch and numpy (for precision=1 you might not need that, not sure, it looks like frame stats are used only), you might use temporal alignment, Code:
clip = vs_align.temporal(clip, ref) Then, at the end of your script, you set both outputs, clip and ref and compare them in your previewer selecting particular outputs. |
![]() |
![]() |
![]() |
#3 | Link |
Registered User
Join Date: May 2011
Posts: 364
|
but for a simple clips misaligning of your clips you can use trim or slice feature and do it manually,
Code:
clip=core.lsmas.LWLibavSource(r"misaligned.mkv") ref=core.lsmas.LWLibavSource(r"ref_version.mkv") #guessing ref is 15 frames ahead of clip, so cut those 15 frames from ref's beginning ref = ref[15:] #guessing clip is 15 frames ahead of ref, so cut those 15 frames from clip's beginning #clip = clip[15:] clip.set_output() ref.set_output(1) |
![]() |
![]() |
![]() |
#8 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,600
|
I would choose that has the most similar shared frames to the others as reference
e.g if you have 5 versions, perhaps different edits, different cuts - pick the one that the most shared frames with all the others . If you pick one that has the most missing frames compared to the others, it will not be as good candidate for reference |
![]() |
![]() |
![]() |
Tags |
scripts, vapoursynth, video comparison, video player |
Thread Tools | Search this Thread |
Display Modes | |
|
|