Selur's Little Message Board
[HELP] Vapoursynth, Frame, Stabilize not working - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: [HELP] Vapoursynth, Frame, Stabilize not working (/thread-2791.html)

Pages: 1 2


RE: Vapoursynth, Frame, Stabilize not working - belyshev - 02.06.2022

Selur you are awesome. I will follow your instructions.


RE: Vapoursynth, Frame, Stabilize not working - zspeciman - 05.11.2024

There is this one and its really good in the few tough cases where Stab doesn't work well and StabilizeIT zooms and move too much.  
https://github.com/georgmartius/vid.stab
Is that something that can be implemented in Hybrid?


RE: Vapoursynth, Frame, Stabilize not working - Selur - 05.11.2024

Quote:https://github.com/georgmartius/vid.stab
Is that something that can be implemented in Hybrid?
This is a 2pass process, first you run vidstabdetect and later vidstabtransform so you won't get a preview, but this is already in Hybrid. (was added in 2018.10.07.1)
You need to use 'No XSynth' and then under "Filtering->FFmpeg->Filtering->Vidstab" it's there. Personally I never really used it, but it hopefully still works as it should. Smile (Found a bug Smile Filtering->FFmpeg should be disabled when 'Only use encoder' for NVEncC&co is enabled, which it is not atm. => fixed in dev Hybrid_dev_2024.11.05-192319 and newer)

Cu Selur


RE: Vapoursynth, Frame, Stabilize not working - zspeciman - 05.11.2024

thats a welcome surprise.  Where is vidstabdetect located?


RE: Vapoursynth, Frame, Stabilize not working - Selur - 05.11.2024

You use "Filtering->FFmpeg->Filtering->Vidstab" to configure both detect and transform.


RE: Vapoursynth, Frame, Stabilize not working - zspeciman - 02.12.2024

Regarding Stab under Stabilize tab.  The Shift Max X/Y.  If I set it to 4/4.  Does that mean the range it can go 2 up, 2 down, 2 left, 2 right, so a shift a max shift of 4.  Or its 4 up, 4 down, 4 left, 4 right, a max shift of 8?


RE: Vapoursynth, Frame, Stabilize not working - Selur - 02.12.2024

afaik.:
x (aka. dxmax): should be 4 pixels in each direction on the horizontal axis
y (aka. dxmay): should be 4 pixels in each direction on the vertical axis
It's important to note that these parameters limit the maximum shift that can be detected between consecutive frames. If you set them too low, you might miss larger motions in the video, while setting them too high could potentially lead to false motion detection. So depending on the amount of general motion speed and resolution, you might want to adjust the default 4.
(Stab calls DePanEstimate. https://github.com/Vapoursynth-Plugins-Gitify/DePan => https://github.com/Vapoursynth-Plugins-Gitify/DePan/blob/2f055894a75f8d261129cad1e6391c3e38eeda90/DePan/DePan.cpp#L112)

Cu Selur


RE: Vapoursynth, Frame, Stabilize not working - i4004 - 30.05.2025

(01.06.2022, 08:33)Selur Wrote: StabilizeIT does zoom into the clip to hide shaking borders.
You can crop before or after the filter. (you just need to change the filter order)
My guess is that StabilizeIT doesn't cope well with the mess the fields of that clip are in.
-> if anyone knows of another generic statbilize script for Vapoursynth, that works here let me know and I can add support for it

 can't find any stabilizeit documentation, on doom9 forum or by searching hybrid folders on hdd for "from.doom9"(?)


RE: Vapoursynth, Frame, Stabilize not working - Selur - 30.05.2025

fromDoom9.py is a function collection of stuff I found over at doom9s. (usually stuff I think is useful and that might get lost otherwise)
Like https://github.com/Selur/VapoursynthScriptsInHybrid/blob/5873c560e1536bc96dc53e94d5f1302afbea71b5/fromDoom9.py#L65 mentioned, StabilizeIT was from VS_Fan, see: https://forum.doom9.org/showthread.php?p=1769570#post1769570
There is no documentation for it.

Cu Selur