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. |
8th May 2008, 09:08 | #162 | Link |
Registered User
Join Date: Mar 2007
Posts: 5
|
I can't seem to make NNEDI work with yadifmod. This is the code I'm using:
Code:
AviSource("Deint.avi") loadplugin("D:\Video\AviSynth 2.5\plugins\nnedi.dll") loadplugin("D:\Video\AviSynth 2.5\plugins\yadifmod.dll") ConvertToYUY2() AssumeBFF() interp = nnedi() yadifmod(edeint=interp) |
8th May 2008, 15:42 | #163 | Link |
Registered User
Join Date: Jan 2005
Location: cz
Posts: 704
|
hi Tritical,
regarding deinterlace using nnedi: is it possible to add to nnedi if statement like this: if object with horizontal shape appers, new line is computed either from above, either from below line(s). b,w-known (different colors), ?-to be computed bbb ??? bbb ??? www ??? www --------------- bbb ??? bbb bbb www ??? www OR bbb ??? bbb www www ??? www is it possible to decide the color from neibour frames? this will avoid flickering after deinterlace. (instead of lines with width 1 pixel) |
8th May 2008, 22:08 | #164 | Link |
"Yeah, that's right."
Join Date: Jan 2003
Location: USA
Posts: 78
|
NNEDI slowness?
I'm working with NTSC 29.97 camcorder interlaced video captured at 720x480 compressed YUY2 huffy. I'm seeing my encoding speed drop to less than a quarter of what it was before using NNEDI.
Here's my original yadif only AVS (CCE SP2 Speed = .20): Code:
Setmemorymax(768) Load_Stdcall_plugin("C:\Program Files\AviSynth 2.5\plugins\yadif.dll") AviSource("G:\VideoCapture\cam1.avi") Trim(14,19527)+Trim(19534,20380)+Trim(20523,27914)+Trim(28672,110689) assumetff() Crop(0,8,-16,-8,True) yadif(mode=1, order=1) HDRAGC(coef_gain=.5,max_gain=1,min_gain=0,black_clip=.1,reducer=2,max_sat=1.3) FFT3DGPU(sigma=4, bt=3, bw=32, bh=32, ow=16, oh=16, sharpen=1.5, interlaced=false) assumetff() separatefields().selectevery(4,0,3).weave() AddBorders(8, 8, 8, 8, $000000) FadeOut2(55) FadeIn2(55) Here's my yadifmod+nnedi AVS (CCE SP2 Speed = .04): Code:
Setmemorymax(768) AviSource("G:\VideoCapture\cam1.avi") Trim(14,19527)+Trim(19534,20380)+Trim(20523,27914)+Trim(28672,110689) assumetff() Crop(0,8,-16,-8,True) yadifmod(mode=1, order=1, edeint=nnedi(field=-2)) HDRAGC(coef_gain=.5,max_gain=1,min_gain=0,black_clip=.1,reducer=2,max_sat=1.3) FFT3DGPU(sigma=4, bt=3, bw=32, bh=32, ow=16, oh=16, sharpen=1.5, interlaced=false) assumetff() separatefields().selectevery(4,0,3).weave() AddBorders(8, 8, 8, 8, $000000) FadeOut2(55) FadeIn2(55) Code:
yadifmod(mode=1, order=1, edeint=nnedi(field=-2, threads=1, opt=2)) Am I missing something because other have eluded that using nnedi was at least as fast if not faster. I've been at this for several years now but still feel like a newbie sometimes... Thanks so much!
__________________
SYSTEM: Abit IS7-E board, Northwood P4 2.8 GHz w/HT, 800 MHz Bus, 2G Dual Channel G.Skill DDR PC3200, ATI AIW 9600, 120 GB ATA drives (UDMA 5), WinXP Pro SP3. No OC. |
8th May 2008, 22:45 | #165 | Link | |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
Tar? Molasses? Glacial migration? Sorry, NNEDI is just about the definition of slow. It's got the quality to justify it, though... (The "NN" in NNEDI stands for neural networks, if you didn't know - running those chews a lot of CPU...) np: Kettel - Peeksje 1994 (My Dogan)
__________________
now playing: [artist] - [track] ([album]) |
|
9th May 2008, 11:17 | #168 | Link | |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
np: DJ Koze - Brutalga Square (Speicher CD2)
__________________
now playing: [artist] - [track] ([album]) |
|
9th May 2008, 15:19 | #169 | Link |
Sleepy overworked fellow
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
|
I can "accomplish that feat" too (almost realtime) and I've got a q6600, 2x 2GB DDR2 RAM and 8800 GTS.
__________________
AnimeIVTC() - v2.00 -http://boinc.berkeley.edu/- Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p) |
9th May 2008, 15:53 | #170 | Link | |
Registered User
Join Date: Jan 2007
Posts: 943
|
Quote:
Does it really mean (cough) almost 30 fps? Does it use MT? What exact NNEDI setting is used? Thank you. |
|
12th May 2008, 03:09 | #173 | Link |
Sleepy overworked fellow
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
|
MPEG-2 720x480 source, nnedi alone, default parameters, 90-100% cpu usage (multithreading is used even without MT() or SetMTMode()), 165MB RAM, 175 MB virtual memory, 20-30 fps
__________________
AnimeIVTC() - v2.00 -http://boinc.berkeley.edu/- Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p) |
12th July 2008, 14:14 | #176 | Link | |
Didée 4 President
Join Date: Jun 2008
Posts: 239
|
Quote:
this script looks really good, but I don't succeed to get the same results on very ugly videos than with this PS script(to be used in MPC) : Code:
// +deinterlace (blend).txt=ps_3_0 sampler s0 : register(s0); float4 p0 : register(c0); float4 p1 : register(c1); #define width (p0[0]) #define height (p0[1]) #define counter (p0[2]) #define clock (p0[3]) #define one_over_width (p1[0]) #define one_over_height (p1[1]) #define PI acos(-1) float4 main(float2 tex : TEXCOORD0) : COLOR { float2 h = float2(0, one_over_height); float4 c1 = tex2D(s0, tex-h); float4 c2 = tex2D(s0, tex+h); float4 c0 = (c1+c2)/2; return c0; } any idea how to get the same results with AVS ? thanks, Last edited by pitch.fr; 12th July 2008 at 14:18. |
|
12th July 2008, 19:39 | #177 | Link |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Code:
Bob().ConvertFPS(last.framerate) But why not simply apply bobbing on playback? That gives you the full temporal resolution instead of the above blended mess at half the temporal resolution... (ffdshow will happily apply a KernelBob on playback - for best results set your monitor's refresh rate to an integer multiple of the produced framerate, i.e. 48, 50 or 60 Hz according to your source...) np: Underworld & Gabriel Yared - Happy Toast (Breaking & Entering OST)
__________________
now playing: [artist] - [track] ([album]) |
12th July 2008, 23:35 | #178 | Link |
Didée 4 President
Join Date: Jun 2008
Posts: 239
|
thanks for the tip, but I've already tried all the ffdshow deinterlacers(including yours), and none of them appealed to me.
I'm talking about "artefacts" due to poorly or non-interlaced heavily interlaced videos. these combing effects have no pattern, they are just erratic. the MPC PS script I posted above literally does miracles on such poorly encoded AVI's or MPEG files just looking for something just as powerful at this point.......and I can't find something that does miracles like this in ffdshow or AVS |
13th July 2008, 00:35 | #179 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,391
|
I'm not used to read such pixelshader code, but it seems it's simply replacing each pixel with the average of its top & bottom neighbor?
Code:
Blur(0,1)
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
13th July 2008, 00:41 | #180 | Link | |
ffdshow/AviSynth wrangler
Join Date: Feb 2003
Location: Austria
Posts: 2,441
|
Quote:
If you mean interlaced videos that have been resized without proper handling so the interlaced frames got smeared together - do yourself a favour and throw them into the recycle bin; they're well beyond repair... If that's not what you meant - could you perhaps post a sample? np: The Cinematic Orchestra - Child Song (Live At The Royal Albert Hall)
__________________
now playing: [artist] - [track] ([album]) |
|
Tags |
deinterlace, nnedi |
|
|