SOLVED! Locked on absolute object tracking in VPX. Super easy.

K-Wood wrote on 9/22/2022, 9:08 AM

PROBLEM - Say you have an object that jumps around the video frame (person jogging, dog or child running around) and you want to have the camera follow them like a super steady cam or drone.

You could manually reframe the video with keyframes on every single frame. It will take ages and still be jittery. Or...

You can use an upside down version of the same video, as a tracking source, to absolutely stabilize movement of whatever you decide to track. But because of a bug in VPX, you can't just rotate the track 180 degrees and use it as a source. Instead, you have to export the track, rotated, first. Like this...

SOLUTION (from within your current project) -

1. create a new movie within the active project (by clicking on the "+" tab above the timeline).

2. paste/drag/load the clip you want to have tracked, onto the new tab.

3. in that new tab, rotate the clip 180% (rotate right, twice).

4. export that rotated clip at the lowest acceptable resolution.

5. go back to the original movies tab.

6. import the rotated clip into the original timeline, and place it above the un-rotated, original clip.

7. 'switch off the image' in the lower track.

8. select the lower of the two clips (the original, un-rotated clip)

9. right click - select "Attach to picture position in the video...".

10. click through the next two popup windows.

11. draw the square around the object that you want to be absolutely steady (in the rotated (upside down) clip).

12. wait till it calculates the tracking for you. Then 'switch on the image' in the lower track. Then 'switch off the image' in the upper track.

13. go to Effects - Size/Position - to make the video frame large enough, to remove black space around the clip, as it now jumps around to keep the tracked object steady within the clip.

14. at this point, you can even delete the rotated clip from the timeline and the magic of absolute tracking will remain.

15. don't use 'Zoom' in Size/Position. It'll break the tracking.

16. don't try to rotate the clip and not render it. I've tried every combination I can think up. It won't work. There's a bug in VPX, since 2017, whereby tracking info created from a rotated clip will always be applied to the target, as if the source is not rotated. Which in this case, means that the wobbly video just ends up being exactly twice as wobbly!

Will post a tutorial when I get the time. But the above will work. And the effect is perfect.

 

MAGIX Video Pro X Version 18.0.1.95 (UDP3)
proDAD Mercalli V5 Suite
NewBlue Filters 5 Ultimate

Thinkpad-X1
Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz   1.99 GHz
Intel(R) UHD Graphics 620 (driver version 27.20.100.8935)
16 GB Installed RAM
Windows 11 Pro 21H2 (OS build 22000.778)

Last changed by K-Wood

MAGIX Video Pro X Version 18.0.1.95 (UDP3)
proDAD Mercalli V5 Suite
NewBlue Filters 5 Ultimate

Thinkpad-X1
Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz   1.99 GHz
Intel(R) UHD Graphics 620 (driver version 27.20.100.8935)
16 GB Installed RAM
Windows 11 Pro 21H2 (OS build 22000.778)

 

Comments

johnebaker wrote on 9/22/2022, 9:40 AM

@K-Wood

Hi

Good one 👍👍👍

I was working on a different method, however your is more elegant.

The original method for doing this was to attach an object to the video required to be stabilised (original video) then copy and paste the keyframes from the attached object to the original and use the option to invert them.

This method is no longer available as you cannot get to the keyframes to invert them.

Your work around is great, does the same as the old method via a different route.

When you get the tutorial done let me or another Moderator know, so we can check it and release it.

John EB
Forum Moderator

VPX 14, MEP Premium 2022, and earlier versions 2015 and 2016, Music Maker Premium 2022.

PC - running Windows 11 21H2 Professional 64bit on Intel i7-8700K 3.2 GHz, 16GB RAM, RTX 2060 6GB 192-bit GDDR6, 1 x 2Tb (OS and programs), 2 x 4TB HDD (Data) internal HDD + 60GB internal SSD, + 6 ext backup HDDs.

Laptop - Lenovo Legion 5i Phantom, Intel Core i7-10750H, 16GB DDR4-SDRAM, 512GB SSD, 43.9 cm screen Full HD 1920 x 1080, Intel UHD 630 iGPU and NVIDIA GeForce RTX 2060 (6GB GDDR6)

Sony FDR-AX53e Video camera, Contour HD 1080 and Sony HDR-AS30V Sports cams.

browj2 wrote on 9/22/2022, 10:11 AM

@K-Wood

Brilliant!

John C.B.

VideoPro X(14); Movie Studio 2023 Platinum; MM2023 with MM2022 Premium Edition; see About me for more.

Desktop System - Windows 10 Pro 21H1; MB ROG STRIX B560-A Gaming WiFi; Graphics Card Zotac Gaming NVIDIA GeForce RTX-3060, PS; Power supply EVGA 750W; Intel Core i7-10700K @ 3.80GHz (UHD Graphics 630); RAM 32 GB; OS on Kingston SSD 1TB; secondary WD 2TB; others 1.5TB, 3TB, 500GB, 4TB, 5TB, 6TB, 8TB; three monitors - HP 25" main, LG 4K 27" second, HP 27" third; Casio WK-225 piano keyboard; M-Audio M-Track USB mixer.

Notebook - Microsoft Surface Pro 4, i5-6300U, 8 GB RAM, 256 SSD, W10 Pro 20H2.

Gid wrote on 9/22/2022, 4:09 PM

@K-Wood I like that, I tried it on another's post about a bird,

The Attach picture couldn't track the bird or the post it was on very well, I tried a dozen times, there's some sudden movements & a bit of motion blur with that, I tried sharpening, changing contrast etc' on the rotated one but in the end i applied V Video stabilization 1st, then used this method,

This is the file i used if anyone wants to try it, it's a 3840x2160 screen capture so i reduced it to 1920x1080 for trials in VPX, I also removed the 'Shaky video' text before. https://drive.google.com/file/d/1PVJWoSWd5WN0WZB_gx2o1eLMDoPUHC0T/view?usp=sharing

Several hrs later i settled on this 1920 version of V stabilization + your method

Like i say i like that, it was an interesting experiment,

Magix Movie Studio Platinum, from 2004-ish - Latest version,
Video Pro X (Latest)
Adobe After Effects,
Vegas Pro 20 (Latest build), 
HitFilm Pro,  
Boris Continuum, Sapphire, Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, Optics,
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans

I'm 53, I've been a UK joiner for 37yrs, apprentice trained & time served, I make videos about my work & post them on Youtube so that i can share what I've learnt over the yrs,
https://www.youtube.com/c/Gidjoiner

At the moment my filming is done with a Samsung Galaxy S21 Ultra 5G

AAProds wrote on 9/22/2022, 9:46 PM

Comparison using Gid's bird in MMS 2023. I used the Mercalli 5 plugin.

It is a shame that Section doesn't work on trimming the black sides away from the K-Wood method. While I can crop them away on the timeline, they re-appear in the export. Using those tumblers for accurate zooming is just a pain.

Given the results and the relative effort involved, I'd be going for the current Mercalli 6 Standalone deal (if you don't have the Mercalli 5 plugin) and stabilise outside of Magix, then import the file for further editing. Mercalli was also much faster than K-Wood's method.

Last changed by AAProds on 9/22/2022, 10:43 PM, changed a total of 5 times.

MEP 2021 version 20.0.1.80

Windows 10 v21H1

CPU: i5-750 at 2670mhz with 4gb RAM, GPU: ATI Radeon HD 4770 (512mb) which is ignored by MEP, Hard drives: C Drive 256gb SSD, 8tb of HDDs for data

MEP 2022

Windows 8.1

CPU: i3-3220 at 3300mhz with 8gb RAM, GPU: Integrated/Onboard only (Intel something or other 8 years old)

johnebaker wrote on 9/23/2022, 3:22 AM

Hi

I too get varying results depending on the amount of shake in the source video,.

The bird video clip has too much rapid movement in random directions for the method to work well. Using other video files of aircraft the method works very well as the 'shake' movement is smoother

John EB

VPX 14, MEP Premium 2022, and earlier versions 2015 and 2016, Music Maker Premium 2022.

PC - running Windows 11 21H2 Professional 64bit on Intel i7-8700K 3.2 GHz, 16GB RAM, RTX 2060 6GB 192-bit GDDR6, 1 x 2Tb (OS and programs), 2 x 4TB HDD (Data) internal HDD + 60GB internal SSD, + 6 ext backup HDDs.

Laptop - Lenovo Legion 5i Phantom, Intel Core i7-10750H, 16GB DDR4-SDRAM, 512GB SSD, 43.9 cm screen Full HD 1920 x 1080, Intel UHD 630 iGPU and NVIDIA GeForce RTX 2060 (6GB GDDR6)

Sony FDR-AX53e Video camera, Contour HD 1080 and Sony HDR-AS30V Sports cams.

Gid wrote on 9/23/2022, 1:04 PM

I get a very similar result in the standalone Mercalli v6 as @AAProds v5 version,

This is Adobe After Effects - Warp Stabilizer, nothing added to it before analysis, just that dodgy UHD clip i shared in the comment above, there's a bit of drift just after half way, similar point to where the others posted on here jump up a bit,

 

Magix Movie Studio Platinum, from 2004-ish - Latest version,
Video Pro X (Latest)
Adobe After Effects,
Vegas Pro 20 (Latest build), 
HitFilm Pro,  
Boris Continuum, Sapphire, Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, Optics,
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans

I'm 53, I've been a UK joiner for 37yrs, apprentice trained & time served, I make videos about my work & post them on Youtube so that i can share what I've learnt over the yrs,
https://www.youtube.com/c/Gidjoiner

At the moment my filming is done with a Samsung Galaxy S21 Ultra 5G