View Full Version : Can I fix vertical jitter?
oddball
23rd November 2006, 18:45
I want to encode an HD cap to x264 but it has vertical jitter. The frames bounce up and down slightly by a few pixels at seemingly random intervals. Is there a plugin for say Avisynth that can detect jitter in a frame by comparing it to previous frames and correcting it?
AVIL
24th November 2006, 07:07
Hi,
Try Fizick's filter DEPAN whith horizontal compensation set to 0.
Good luck.
oddball
27th November 2006, 04:25
Unfortunately depan goes a bit mad on movement. I really need something to look at the movement of a logo since that is the only static image through the entire movie. If there is something that can look at the logo and detectect motion at the point up and down and apply that to the entire image? Bet there isn't though.
Fizick
27th November 2006, 06:31
Did you read depan doc and depan thread?
Use one (cropped) clip for motion estiamtion and apply to
second clip.
oddball
27th November 2006, 07:15
God this is so frustrating. I don't understand hardly any of those instructions in the manual. The movie I want to encode just moves up and down a few pixels every few frames (Around 15 frames but not always). If I could just enter a value of the number of pixels it moves up and down by and to apply that value to every frame it would be so much simpler.
The depan command I tried was
i = ConvertToYV12()
mdata = DePanEstimate(i)
DePanStabilize(i, data=mdata, dxmax=0)
But the frame moves up and down and sideways by mad amounts every few frames
videoFred
27th November 2006, 07:59
I think Fizick means something like this:
i = ConvertToYV12()
c= crop(i,100,100,-100,-100)
mdata = DePanEstimate(c)
DePanStabilize(i, data=mdata, dxmax=0)
As you see, DePanEstimate is using the cropped clip.
And DePanStabilize is using this info on the entire clip.
I have not tried this... maybe you must first resize the cropped clip.. try!
Do not use my values, but your own values for cropping, of cource. It depends where the logo is.
Fred.
oddball
27th November 2006, 09:38
Is there any way to show which crop it is monitoring? I know the logo is in the bottom right hand side. However I do not know the exact values. Might have to play with normal crop to see where the values lie. Hmm.
videoFred
27th November 2006, 09:46
Just put 'c' at the end of the script.
Then you see the cropped clip.
And you can set the right cropping, using virtualDubMods script editor.
Like this:
i = ConvertToYV12()
c= crop(i,100,100,-100,-100)
mdata = DePanEstimate(c)
DePanStabilize(i, data=mdata, dxmax=0)
c
Fred.
oddball
27th November 2006, 10:02
Using
i = ConvertToYV12()
j = ConvertToYV12().crop(0,712,-0,-0)
mdata = DePanEstimate(j,info=false)
DePanStabilize(i, data=mdata, dymax=1, dxmax=0, info=true)
Shows dy movement between 0.01 and 0.04. Yet Your above example when applied using that as the crop has no effect whatsoever. It detects the movement as it's showing it as a dy value (I thought dx was vertical. So why does it show vertical movement as dy?). It just has no effect when you set it.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.