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 > General > Newbies

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th March 2013, 20:04   #1  |  Link
StickHorsie
Audio Restorator!
 
StickHorsie's Avatar
 
Join Date: May 2008
Location: Alkmaar, Netherlands
Posts: 27
Simple Avisynth script to un-jitter DVD movies with DePan, please?

I can't get the DePan sample scripts to work properly and staring at the manual doesn't seem to help a lot.

So instead of DePan, I use stab()+crop and even stab()+crop+stab()+crop if the DVD is very jittery. The results are usually acceptable, but I'm curious how much better DePan would be.

Anybody got a simple DePan script for movies with jitter (horizontally + vertically) up to 4 or 8 pixels, please? (Source is progressive, speed is 23.976 or 25fps.)
StickHorsie is offline   Reply With Quote
Old 28th March 2013, 03:02   #2  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
You can modify the Stab script to 4 or 8 pixels yourself. See if this does a better job:

Quote:
##############################################################################
#Original script by g-force converted into a stand alone script by McCauley #
#latest version from December 10, 2008 #
##############################################################################

#mirror - fill empty borders with mirrored from frame edge pixels (instead of black):
# 0 - no mirror (default);
# 1 - top;
# 2 - bottom;
# 4 - left;
# 8 - right;
# sum any of above - combination (15 - all ).
# From Depan


function Stab (clip clp, int "range", int "dxmax", int "dymax") {

range = default(range, 1)
dxmax = default(dxmax, 8)
dymax = default(dymax, 8)

temp = clp.TemporalSoften(7,255,255,25,2)
inter = Interleave(temp.Repair(clp.TemporalSoften(1,255,255,25,2)),clp)
mdata = DePanEstimate(inter,range=range,trust=0,dxmax=dxmax,dymax=dymax)

DePan(inter,data=mdata,offset=-1,Mirror=5)
SelectEvery(2,0) }
There are no guarantees, of course. Maybe you really do need Depan. But this is worth a try.
manono is offline   Reply With Quote
Reply

Tags
depan, depanestimate, jitter, stab, stabilize

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:04.


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