View Full Version : Problems with an override text part 2
Henox
14th December 2008, 14:07
Hello, that's me again
Ok, check this frame :
http://i38.tinypic.com/29efz0w.jpg
You can notice some artefacts. I would like to correct them by using tfm for example trough an override text again. Here is my code :
LoadVFAPIplugin("C:\Program Files\Pegasys Inc\TMPGEnc Plus 2.5\TMPGEnc.vfp","TMPGsource")
TMPGsource("C:\Users\ ...\Videos\EXAMPLESVIDEO\b.tpr")
FlipVertical
ConvertToYV12()
deint = nnedi(field=0)
Tdeint(mode=0,field=0,edeint=deint,slow=0 ,ovr="C:\Users\ ...\Videos\EXAMPLESVIDEO\ovverideb3.txt",ovrDefault=1,full=false,mi=255)
deint = nnedi(field=1)
Tdeint(mode=0,field=1,edeint=deint,slow=0 ,ovr="C:\Users\...\Videos\EXAMPLESVIDEO\ovverideb4.txt",ovrDefault=1,full=false,mi=255)
interp = separatefields().eedi2(field=-2)
deint2 = tdeint(mode=2,edeint=interp)
tfm(clip2=deint2,slow=0 ,mi=255)
Well I added the last three lines but it's like it doesn't work : those lines are ignored. How could I set it properly to aplly trough an override text ? I want to correct artefacts which appear after ivtc or imperfections like there.
Henox
14th December 2008, 23:41
No idea ? I just want to apply that tfm on specifical frames (eventually on a lot of frames) but basing me on this code. Is that possible ?
tritical
20th December 2008, 06:14
interp = separatefields().eedi2(field=-2)
deint2 = tdeint(mode=2,edeint=interp)
tfm(clip2=deint2,slow=0 ,mi=255)
You say those 3 lines are ignored, but what do you expect them to do exactly? Using mi=255 with the default block size of 16 means tfm will never detect anything as being combed.. so it will field match, but not deinterlace anything.
LoadVFAPIplugin("C:\Program Files\Pegasys Inc\TMPGEnc Plus 2.5\TMPGEnc.vfp","TMPGsource")
TMPGsource("C:\Users\ ...\Videos\EXAMPLESVIDEO\b.tpr")
FlipVertical
ConvertToYV12()
deint = nnedi(field=0)
Tdeint(mode=0,field=0,edeint=deint,slow=0 ,ovr="C:\Users\ ...\Videos\EXAMPLESVIDEO\ovverideb3.txt",ovrDefault=1,full=false,mi=255)
deint = nnedi(field=1)
Tdeint(mode=0,field=1,edeint=deint,slow=0 ,ovr="C:\Users\...\Videos\EXAMPLESVIDEO\ovverideb4.txt",ovrDefault=1,full=false,mi=255)
I assume here, that ovverideb3.txt lists some frame numbers (frames you want to deinterlace keeping the bottom field) with the '+' specifer, and ovverideb4.txt also lists some frame numbers (frames you want to deinterlace keeping the top field) with the '+' specifier. Since you have ovrDefault=1, all other frames not listed in the override files will be returned untouched. Does this part work as expected? My only concern is that you assign both nnedi(field=0) and nnedi(field=1) to 'deint'. I can't remember if that will work out as intended in this script or not (I think not). Try naming them deint1 and deint2. If it still doesn't work correctly, please post the override files and I will look into it.
Henox
20th December 2008, 08:22
Hello tritical, thank you for your answer.
I put those three lines to let helpers have an idea of what I want to do. I would like to apply tfm with the settings mentionned (interp, deint2...) trough an override text on specifical frames of my video (the TPR project). It's simple in fact : after ivtcing on tmgpenc, I'm trying to use external deinterlacers trough override texts to correct some bad frames which can't be done with normal ivtc. Moreover I would like this tfm to be independent from the other lines.
Then you posted the code I use. Consider those four lines :
deint = nnedi(field=0)
Tdeint(mode=0,field=0,edeint=deint,slow=0 ,ovr="C:\Users\ ...\Videos\EXAMPLESVIDEO\ovverideb3.txt",ovrDefault=1,full=false,mi=255)
deint = nnedi(field=1)
Tdeint(mode=0,field=1,edeint=deint,slow=0 ,ovr="C:\Users\...\Videos\EXAMPLESVIDEO\ovverideb4.txt",ovrDefault=1,full=false,mi=255)
They perfectly work which means only the frames specified in override3 and override4 with a "+" are deinterlaced and not the whole video. I could change both "deint" to "deint1" and "deint2" but it seems it works. Well, both lines are idependent from each other. The problem was sometimes, with those settings, some frames are not deinterlaced as expected or worst tdeint is applying on parts of the frames which don't need to be deinterlaced. I posted an example on my last thread. Here it is :
http://i37.tinypic.com/28tgw7m.jpg
You can see some lines of the car is flickering. But this part is progressive on the orignal frame which means to me tdeint is applying on the whole frame without selecting what to deinterlace. Sometimes it simply blends (with the settings before) and don't using nnedi doesn't change the situation.
To sum up, I have too problems : correctly use the lines of external denterlacers and make them independent from each other.
Try to set (if possible) the codes in other way to have different results.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.