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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th April 2020, 11:03   #1  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
Stabilize clip1 using clip2 as reference

Usual potentially good idea, without technical knowledge to put it in practice...

Let's say that you have two versions of the same movie;

first, let's call it clip1, has better image but "wobbles" on almost every frame by few pixels - up, down, left, right, without a precise pattern

second, let's call it clip2, has worst image (definition, colors, frame size etc.) but rock solid stable image.

Now, is it possible to stabilize clip1, using clip2 as reference?

At least for steady shots - where no panning, zooming etc. occours; I thought, maybe a script that will "explore" all the borders for few pixels, and if nothing change (or change very slightly) at least in one border, it could be considered a steady shot.

Perfect solution: to get the biggest frame size using several frames of the wobbling shot, instead of cropping them all.

Thanks!
spoRv is offline   Reply With Quote
Old 5th April 2020, 12:05   #2  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
I would simply throw deshaker over it by using extremly tight constraints in terms of stabilization settings.

Matching both sources sounds like a huge PITA.

Just post a sample clip...
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 5th April 2020, 12:30   #3  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
Not matching, the reference clip should be used only to know if a certain shot is steady - hence stabilization filter would be used or not; which is the best filter frankly I don't know...

Or, alternatively, a stabilization filter that have a threshold setting where it works below a certain pixel shift (steady shot) while not over it (panning, zooming etc.)
spoRv is offline   Reply With Quote
Old 5th April 2020, 12:32   #4  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
Is this a job for http://avisynth.nl/index.php/AutoOverlay ?
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 5th April 2020, 12:54   #5  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
Whoa! I wasn't aware of this Filter!

In the past I constantly broke my mind how to combine the IRE-DVD (4x3 Openmatte) and the Bluray (cropped 16x9) of Koyaanisqatsi.
It seems AutoOverlay perfectly fits the bill...
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 5th April 2020, 13:13   #6  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
Quote:
Originally Posted by wonkey_monkey View Post
Sadly the wobble is still there even using it...
spoRv is offline   Reply With Quote
Old 5th April 2020, 13:26   #7  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
I suspect there might be warping of the film-material within the frames.
So let's have a look.

Please post two non-recompressed sample clips.
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 6th April 2020, 23:29   #8  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
Stab does the job quite well, with no need of reference clip: http://avisynth.nl/index.php/Stab

Now, if only black borders could be filled with previous and/or next frame (when they are from a steady shot) this would be perfect!
spoRv is offline   Reply With Quote
Old 7th April 2020, 04:11   #9  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,695
If you need really good stabilization, Mercalli is one of the best on the market. It is not free, but if you really need the best result, it is the tool to use.
johnmeyer is offline   Reply With Quote
Old 7th April 2020, 10:01   #10  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Couple of Mercalli alternatives here:- https://alternativeto.net/software/mercalli-prodad/

vReveal(Freemium) and Dynapel SteadyHand(commercial), both now discontinued (no updates).

vReveal on Major Geeks:- https://www.majorgeeks.com/files/details/vreveal.html

No idea if any good.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 7th April 2020, 10:19   #11  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
No stabiliser's ever going to get it exactly right, though. spoRv having a stable source means a more accurate result can be achieved. If the sources are similar enough, maybe even interleaving them and throwing mcompensate at it might do some good, although it probably needs something more bespoke.
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 17th April 2020, 18:50   #12  |  Link
spoRv
Registered User
 
Join Date: Nov 2016
Posts: 151
I think a conditional filter in avisynth would do.

Let's say that image "wobbles" by few pixels up and/or down; the "right" size should be 1920x800, but sometimes the frame is smaller and top and/or bottom there is a border up to Y pixel...

So, there must be a filter that says something like:
if horizontal line 1 is black but line 800 is not, then crop(0,1,0,0).whateverresize(1920,800)
if horizontal line 1 is black and line 800 is too, then crop(0,1,0,-1).whateverresize(1920,800)
if horizontal lines 1&2 are black but line 800 is not, then crop(0,2,0,0).whateverresize(1920,800)
etc. up to lines 1&2&3... up to Y

Anyone would dare to try?
spoRv is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 13:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.