Good Day, I have a interesting problem I would like to solve with premiere pro (or vapoursynth)
My Footage:
#F1: 30fps - 1280x720 - shaking
#F2: 30fps - 1920x1080 - stable
They have the exact same content from the exactly the same spot, Only resolution, crop and shakiness is different.
How can I tranform/warp/crop/align/stablize my #F1 to match my #F2 extacly(!) ? Preferably it would align itself with #F2 as reference.
+ Reply to Thread
Results 1 to 11 of 11
-
-
You might be able to make use autooverlay in avisynth , but it won't perform warp transformations. Only position,scale,z-axis rotation. There is no vapoursynth version yet
https://forum.doom9.org/showthread.php?t=175247
https://github.com/introspected/AutoOverlay
Are they from same camera and lens too? Because there can be differences in optics, rolling shutter, camera settings, a bunch of other variables that will make it difficult to match . Or are these 2 different cameras, and not "exactly" the same spot
Or can you provide more background information? Why is one shaking , and one stable? Was something done to one but not the other ? -
Position, scale and z-axis rotation should work too, but I think it needs also x and y rotation to match 100% (warp may not be needed)
But thank you for the tip! I will try to use avisynth with premier pro (it seems there is a way to do so) and give autooverlay a try.
I also thought maybe using 'rotoscoping' and some way to align them automaticly. I also hoped Premiere Pro would have some built-in features, as it would help with the workflow
No, there are not, but there is no complex background and the important part of the video would align perfectly. ( I tried it with one frame of each video and cropped and stretched etc it in photoshop, to see if it would match. The only problem is the shakiness between the frames. Otherwise, I could try to align it manually, what would not be perfect and efficient)
*edit I know if they not match exactly I would get ghosting in the resulting video, but if they match 99% I can hide some ghosting with other artifact removing scriptsLast edited by E-Sy; 19th Feb 2020 at 16:57.
-
If so , this is a problem. Even small angles of either image x, y rotation , or camera x,y rotation can appear to be large differences, especially at the periphery they will be magnified. You will not be able to get it to align nicely because of perspective differences
( I tried it with one frame of each video and cropped and stretched etc it in photoshop, to see if it would match. The only problem is the shakiness between the frames. Otherwise, I could try to align it manually, what would not be perfect and efficient) -
How "stable" is F2 ? is it tripod or handheld ?
You might be able to stabilize F1 normally around a reference point (e.g. a wall or object) in after effects or similar; and then use that as the reference offset from F2
Can you upload a small sample clip from F1, F2 ? -
If so , this is a problem. Even small angles of either image x, y rotation , or camera x,y rotation can appear to be large differences, especially at the periphery they will be magnified. You will not be able to get it to align nicely because of perspective differences
In a perfect world there would be a script that would first to try to align+rotate as much as possible and than use eg. a grid and make sure each cell has the right transformation/warp
(Just to understand what I initially searched)
You might be able to combine methods (e.g. get it close with one of the other methods, ) , and finish with photoshop auto align . The benefit of photoshop is it can handle small perspective distortions. But it's tedious to do because each frame needs it's reference
How "stable" is F2 ? is it tripod or handheld ?
You might be able to stabilize F1 normally around a reference point (e.g. a wall or object) in after effects or similar; and then use that as the reference offset from F2
Can you upload a small sample clip from F1, F2 ?Last edited by E-Sy; 19th Feb 2020 at 17:38.
-
What do you mean by "plain" ? Is it a blank wall, or no objects like trees, cars, rocks ? Buildings ?
Do Photoshop can handle videos? Or should I convert to png and make a batch conversion?
Camera built-in stabilizer (so handheld) without moving of the camera
"without moving of the camera" - did you mean camera translation ? ie. Operator is not walking or in a moving car or something. Stationary. It's just the handheld movements that have been in-camera stabilized?
You might be able to stabilize F1 normally around a reference point (e.g. a wall or object) in after effects or similar; and then use that as the reference offset from F2
Can you upload a small sample clip from F1, F2 ?
It difficult to give more suggestions without a better description or "seeing" the videos. But I would stabilize F2 more on a static reference object (e.g. a wall or rock, whatever, in the background) . That is your reference. Then stabilize F1 on that same reference. The stabilization I'm talking about is locked off (VFX stabilize) . That eliminates the camera motion entirely (As if it's on a tripod) . You can add back some of the normal camera motion to both shots after (destabilize , as if it was "moving" handheld like F1) -
What do you mean by "plain" ? Is it a blank wall, or no objects like trees, cars, rocks ? Buildings ?
You need to align per frame (e.g. F1 frame 10 to F2 frame 10, F1 frame 11 to F2 frame 11, etc...)
But I would stabilize F2 more on a static reference object (e.g. a wall or rock, whatever, in the background) . That is your reference. Then stabilize F1 on that same reference. The stabilization I'm talking about is locked off (VFX stabilize) . That eliminates the camera motion entirely (As if it's on a tripod) . You can add back some of the normal camera motion to both shots after (destabilize , as if it was "moving" handheld like F1)
So F1 is a different camera. (And they are not "Exactly" in the same spot - physically impossible).
"without moving of the camera" - did you mean camera translation ? ie. Operator is not walking or in a moving car or something. Stationary. It's just the handheld movements that have been in-camera stabilized?
Yes the camera operator is not moving (as much as a human can hold still) and yes exatcly only the handheld movments got stabilized
(btw thank you for your time, you helped me already with giving me ideas to try!) -
If you're doing this in the future, I would consider adding tracking reference markers if you can . Such as "+" strips of colored tape on the background black blanket . Even static background objects help, such as a chair, whatever . ( That is, if it's not some "performance" in front of an audience such as a stage performance, and it doesn't "distract" from what you are doing)
Because a black blanket can be difficult to track. It can be almost featureless in the shadows of the stage light. If you can track the floor / ground plane (if it's not featureless), then that can work too. You want to track stationary objects as the reference to stabilize (not the subject in the center of the screen if they are moving) . If the subject isn't moving/changing, than that can be a suitable target too
I need to see if premiere would stabilize both videos the same way, but with your suggestion to add motion back; this could actually do the trick
Your success in how well you can stabilize (to a perfect locked off VFX shot) depends on how well you can track. If the "important part" is moving, that can interfere with tracking data. You can exclude it with mattes, for example. -
If you're doing this in the future, I would consider adding tracking reference markers if you can . Such as "+" strips of colored tape on the background black blanket . Even static background objects help, such as a chair, whatever . ( That is, if it's not some "performance" in front of an audience such as a stage performance, and it doesn't "distract" from what you are doing)
You can try in PP; but if it doesn't work use After Effects (e.g. point tracker) or Mocha .
Your success in how well you can stabilize (to a perfect locked off VFX shot) depends on how well you can track. If the "important part" is moving, that can interfere with tracking data. You can exclude it with mattes, for example.
Do you maybe also know wich keywords I need to google for auto position, scale and z-axis rotation with my F2 as reference? Doing this first, than stabilize with tracking should hopefully be 99% accurate (if tracking works well ofcourse, if not this might be a problem; Does after effects allow temporary blurring both videos for the stabilizing? Blurring the full HD clip a litte more should give the same 'blur-radius' as the HD one so it might work better.. But I need to test it first before I think about solutions for problems I might not have) -
Does the foreground subject move ? Are their things like moving shadows or reflections, or maybe the back audience heads moving ? ie. is there any other motion that might interfere with motion tracking? If not, and entire field of view is "clean", you might be able to use the regular warp stabilizer in PP with the output set to "no motion" . If there are "contaminants" then the result might not be as accurate
Do you maybe also know wich keywords I need to google for auto position, scale and z-axis rotation with my F2 as reference? Doing this first, than stabilize with tracking should hopefully be 99% accurate (if tracking works well ofcourse, if not this might be a problem; Does after effects allow temporary blurring both videos for the stabilizing? Blurring the full HD clip a litte more should give the same 'blur-radius' as the HD one so it might work better.. But I need to test it first before I think about solutions for problems I might not have)
There is no (easy) way to use your F2 as a reference directly and have F1 "follow along" . (There are some complex algorithms that do millions of iterations to find best match, but it's very difficult to implement in practice)
This type of stabilization eliminates all camera motion. It's not like smoothing motion. It eliminates motion completely. It will be as if you shot it with a locked off tripod. The scale of each shot will be static if there was manual or auto zooming. If there was hand panning or tilt, it will be eliminated. You can choose a reference frame to stabilize. The delta between F1 and F2 will be static, even if it's cropped or field of view is different
So after each of F1, F2 are stabilized separately, both have their camera motions removed - all you need to do is match 1 frame (position, scale, rotation) and both videos should align and match for the entire length of video. This is easy to do manually and you can check with "difference" mode to get the most accurate match. eg. you might need + 1.236 pixels to the left etc...
Blurring almost never helps with tracking itself. It's usually very detrimental, except if you have very bad noise. Blurring usually only helps with compositing if you're trying to "degrade" the F2 to match the F1 in a composite
Similar Threads
-
Align two versions of the same frame without Photoshop?
By hbenthow in forum EditingReplies: 16Last Post: 17th Dec 2019, 19:19 -
Can't align left-center subtitles
By fretta in forum SubtitleReplies: 1Last Post: 27th Nov 2019, 13:53 -
VSDC Free Video Editor: align multiple video on timeline
By kj1983 in forum EditingReplies: 0Last Post: 15th Sep 2017, 23:49 -
Waveform monitor in place of an oscilloscope to align a VCR?
By Brad in forum Newbie / General discussionsReplies: 23Last Post: 31st May 2017, 18:32 -
Panasonic AG-5710P (or AG-1980P) Re-Align Loading Mechanism
By pumabr in forum Capturing and VCRReplies: 2Last Post: 24th Jul 2015, 08:48