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

Acer Nitro 5
11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz   3.11 GHz
Intel(R) Iris(R) Xe Graphics (driver version 27.20.100.9664)
NVIDIA GeForce GTX 1650 (driver version 27.21.14.6179)
32 GB Installed RAM
Windows 11 Pro 21H2 (OS build 22000.1098)

Last changed by K-Wood

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

Acer Nitro 5
11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz   3.11 GHz
Intel(R) Iris(R) Xe Graphics (driver version 27.20.100.9664)
NVIDIA GeForce GTX 1650 (driver version 27.21.14.6179)
32 GB Installed RAM
Windows 11 Pro 21H2 (OS build 22000.1098)

 

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 16, Movie Studio 2025, and earlier versions 2015 and 2016, Music Maker Premium 2024.

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

Laptop - Lenovo Legion 5i Phantom - running Windows 11 23H2 on 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, DJI Osmo Action 3 and Sony HDR-AS30V Sports cams.

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

@K-Wood

Brilliant!

John C.B.

VideoPro X(16); Movie Studio 2024 Platinum; MM2025 Premium Edition; Samplitude Pro X8 Suite; see About me for more.

Desktop System - Windows 10 Pro 22H2; 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.

YouTube Channel: @JCBrownVideos

Former user 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,

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.

All my forum comments are based on or refer to my System 1.

My struggle is over! I built my (now) system 2 in 2011 when DV was king and MPEG 2 was just coming onto the scene and I needed a more powerful system to cope. Since then we've advanced to MP4 and to bigger and bigger resolutions. I was really suffering, not so much in editing (with proxies) but in encoding, which just took ages. A video, with Neat Video noise reduction applied, would encode at 12% of film speed. My new system 1 does the same job at 160% of film speed. Marvellous. I'm keeping my old system as a capture station for analogue video tapes and DV.

System 1

Windows 11 v23H2 severely modified by Openshell and ExplorerPatcher

Power supply: 850W Cooler Master (should have got modular)

CPU: Intel i7 13700K running at 3400mhz, cooled by a Kraken 2x140mm All In One liquid cooler.

RAM: 64gb (2x32gb sticks) G.Skill "Ripjaws" DDR4 3200Mhz

GPU 1: iGPU UHD 770

GPU 2: NVidia RTX 3060Ti Windforce 8gb

C drive: NVME 500gb

Various other SSD and HDDs.

Monitor: 27"/68cm Samsung, 2560 x 1440, 43 pixels/cm.

MEP 2021 version 20.0.1.80

Movie Studio 2023 version 22.0.3.172

Magix Video Easy version 7.0.1.145

System 2

(Still in use for TV and videotape capture)

Windows 10 v22H2

CPU: i5-750 at 2670mhz with 12gb RAM

Onboard IEEE1394 (Firewire) port

GPU: ATI Radeon HD 4770 (512mb) which is ignored by MEP

Hard drives: C Drive 256gb SSD, various other HDDs.

Monitor: Dell 22"/56cm, 1680x1050, 35 pixels/cm

MEP 2021 version 20.0.1.80

Movie Studio 2023 version 22.0.3.172

VPX 12

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 16, Movie Studio 2025, and earlier versions 2015 and 2016, Music Maker Premium 2024.

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

Laptop - Lenovo Legion 5i Phantom - running Windows 11 23H2 on 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, DJI Osmo Action 3 and Sony HDR-AS30V Sports cams.

Former user 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,