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 28th July 2012, 20:50   #21  |  Link
sirt
x264 fan
 
sirt's Avatar
 
Join Date: Feb 2011
Location: In the trap
Posts: 458
Quote:
Originally Posted by jmac698 View Post
My theory doesn't seem right. I looked at a subtracted fields. There does seem to be some pattern however.
Thanks for reflecting about this ! Anyway it is too complex for me, the only thing I can do is test and see what happens.
sirt is offline   Reply With Quote
Old 28th July 2012, 21:09   #22  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
if it is regular enough, fft3dfilter could remove it if you supply a proper pattern image (the pattern mode).
mandarinka is offline   Reply With Quote
Old 28th July 2012, 21:46   #23  |  Link
sirt
x264 fan
 
sirt's Avatar
 
Join Date: Feb 2011
Location: In the trap
Posts: 458
Quote:
Originally Posted by mandarinka View Post
if it is regular enough, fft3dfilter could remove it if you supply a proper pattern image (the pattern mode).
Thanks, do you have a configuration suggestion ?
sirt is offline   Reply With Quote
Old 28th July 2012, 21:54   #24  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
I don't see anything "blended" in this sample. The problem is that the fades were done after the telecine. I.e. those same-(24p)frame fields that are spread between two 30i frames have different brightness because of that, and don't fit together anymore.
I completely agree with Didee. You will have to undo the fading before ivtc-ing it (but i'm not sure whether this is possible to do in an acceptable way):
Code:
SeparateFields()
UnFade()
Weave()
Telecide(order=1, guide=1).Decimate(cycle=5)  #IVTC
Wilbert is offline   Reply With Quote
Old 28th July 2012, 21:58   #25  |  Link
sirt
x264 fan
 
sirt's Avatar
 
Join Date: Feb 2011
Location: In the trap
Posts: 458
Quote:
Originally Posted by Wilbert View Post
I completely agree with Didee. You will have to undo the fading before ivtc-ing it (but i'm not sure whether this is possible to do in an acceptable way):
Code:
SeparateFields()
UnFade()
Weave()
Telecide(order=1, guide=1).Decimate(cycle=5)  #IVTC
Thanks for your answer. What is that UnFade() ?
sirt is offline   Reply With Quote
Old 29th July 2012, 00:58   #26  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
Thanks for your answer. What is that UnFade() ?
The opposite of fade, but sadly such a filter doesn't exist.
Wilbert is offline   Reply With Quote
Old 30th July 2012, 16:20   #27  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
[bump after re-open]
Guest is offline   Reply With Quote
Old 31st July 2012, 11:29   #28  |  Link
mirkosp
Registered User
 
Join Date: Jul 2009
Posts: 19
I know it's meant to deal with moving text, but wouldn't ivtc_txt60mc get a perfect result anyway? A fade should hopefully be easy enough to interpolate with good results. That said, even if you don't get the fade back to linear it's not that big of a problem, it's going to look fine anyway in motion. So alternatively to ivtc_txt60mc, the simple solution is just to use vinverse (as it was already suggested) after you do proper ivtc (you most likely want to tell your matcher to avoid postprocessing the frames and perhaps you might have to manually make sure the matches are correct).
Hell, I'd say ivtc_txt60mc isn't really required to get back to linear. Ideally you could do this by doing a high quality bob, then just doing an overlay at 0.5 with the fields that need to be overlayed to get a linear fade.

Last edited by mirkosp; 31st July 2012 at 11:32.
mirkosp is offline   Reply With Quote
Old 31st July 2012, 13:03   #29  |  Link
cretindesalpes
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
 
cretindesalpes's Avatar
 
Join Date: Feb 2009
Location: No support in PM
Posts: 712
On a 3:2 telecine pattern, vinverse() the 2-field image, and for the 3-field image, average the 1st and 3rd fields, match with the 2nd field and vinverse() the result to smooth the remaining combing. But sometimes vinverse() cannot cancel the combing, especially on oblique, thin and and highly contrasted lines (mostly with anime/cartoon sources). In this case you could replace vinverse() with daa(). You could also limit the changes by the difference between the average lumas of the two fields.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding
cretindesalpes is offline   Reply With Quote
Old 31st July 2012, 13:33   #30  |  Link
sirt
x264 fan
 
sirt's Avatar
 
Join Date: Feb 2011
Location: In the trap
Posts: 458
Quote:
Originally Posted by mirkosp View Post
I know it's meant to deal with moving text, but wouldn't ivtc_txt60mc get a perfect result anyway? A fade should hopefully be easy enough to interpolate with good results. That said, even if you don't get the fade back to linear it's not that big of a problem, it's going to look fine anyway in motion. So alternatively to ivtc_txt60mc, the simple solution is just to use vinverse (as it was already suggested) after you do proper ivtc (you most likely want to tell your matcher to avoid postprocessing the frames and perhaps you might have to manually make sure the matches are correct).
Hell, I'd say ivtc_txt60mc isn't really required to get back to linear. Ideally you could do this by doing a high quality bob, then just doing an overlay at 0.5 with the fields that need to be overlayed to get a linear fade.
Thanks for your help, I saved the filter as an AVS file but I don't know how to make it work. I've tested ivtc_txt60mc(23.976) on the iVTCed video but it doesn't work (invalid parameters) and with ivtc_txt60mc(24) it doesn't work as well because it doesn't appl on the frame I need.



Quote:
Originally Posted by cretindesalpes View Post
On a 3:2 telecine pattern, vinverse() the 2-field image, and for the 3-field image, average the 1st and 3rd fields, match with the 2nd field and vinverse() the result to smooth the remaining combing. But sometimes vinverse() cannot cancel the combing, especially on oblique, thin and and highly contrasted lines (mostly with anime/cartoon sources). In this case you could replace vinverse() with daa(). You could also limit the changes by the difference between the average lumas of the two fields.
Thanks, this is a comparison with daa() :









As you see the lines are solved but it looks like the video is also filtered, probably because it is an aliasing filter. But, at least, it seems to always work without needing to be adjusted (like vinverse). Do you maybe know something similar like this ? I think we are on the way !

Last edited by sirt; 31st July 2012 at 13:43.
sirt is offline   Reply With Quote
Old 2nd August 2012, 11:25   #31  |  Link
sirt
x264 fan
 
sirt's Avatar
 
Join Date: Feb 2011
Location: In the trap
Posts: 458
Any idea ?
sirt is offline   Reply With Quote
Old 18th June 2013, 13:49   #32  |  Link
GMJCZP
Registered User
 
GMJCZP's Avatar
 
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 744
sirt, try this version of daa() that I modified to make it more smooth.

# Anti-aliasing with contra-sharpening by Didée (thanks to Didée, modded for this case with nnedi3)
# Is required VerticalCleaner
function DAAMod(clip c)
{
nn = c.nnedi3(field=-2) #or use nnedi2
dbl = mt_average(selecteven(nn),selectodd(nn),U=3,V=3)
dblD = mt_makediff(c,dbl,U=3,V=3)
shrpD = mt_makediff(dbl,dbl.removegrain((width(c)>1100) ? 20 : 14),U=3,V=3).verticalcleaner(mode=2)
DD = shrpD.repair(dblD,9)
return dbl.mt_adddiff(DD,U=3,V=3)
}

Last edited by GMJCZP; 18th June 2013 at 13:52.
GMJCZP is offline   Reply With Quote
Old 30th December 2016, 11:15   #33  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
@sirt
got an accurate solution for this issue.
but you'll have to switch to vaporsynth to test it cuz I don't do avisynth plugins
feisty2 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 06:22.


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