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 Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th May 2008, 18:00   #161  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
Congrats on the Netflix problem!
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 8th May 2008, 09:08   #162  |  Link
JP06
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)
It runs, but the output is the plain yadif output. When run alone, NNEDI works fine.
JP06 is offline   Reply With Quote
Old 8th May 2008, 15:42   #163  |  Link
Terka
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)
Terka is offline   Reply With Quote
Old 8th May 2008, 22:08   #164  |  Link
puddy
"Yeah, that's right."
 
puddy's Avatar
 
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)
Notice my sig, I have an HT processor. Using default nnedit settings it starts two threads on my machine. If I force it to use just one thread and make sure it is using SSE I don't see any change in speed:
Code:
yadifmod(mode=1, order=1, edeint=nnedi(field=-2, threads=1, opt=2))
I've also tried 2 Threads + SSE = same

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.
puddy is offline   Reply With Quote
Old 8th May 2008, 22:45   #165  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by puddy View Post
Am I missing something because other have eluded that using nnedi was at least as fast if not faster.
Using NNEDI was as fast as what?

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])
Leak is offline   Reply With Quote
Old 9th May 2008, 03:05   #166  |  Link
R3Z
Silver Über Alles
 
R3Z's Avatar
 
Join Date: Aug 2006
Location: Australia
Posts: 269
Quote:
Originally Posted by Leak View Post
Using NNEDI was as fast as what?

Tar? Molasses? Glacial migration?
I had a chuckle.
R3Z is offline   Reply With Quote
Old 9th May 2008, 05:37   #167  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
It's not THAT slow. I can get almost realtime usage out of it. I have seen a lot worse.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 9th May 2008, 11:17   #168  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by Merlin7777 View Post
It's not THAT slow. I can get almost realtime usage out of it. I have seen a lot worse.
Whoa... so what supercomputer did you use to accomplish that feat, if I may ask?

np: DJ Koze - Brutalga Square (Speicher CD2)
__________________
now playing: [artist] - [track] ([album])
Leak is offline   Reply With Quote
Old 9th May 2008, 15:19   #169  |  Link
thetoof
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)
thetoof is offline   Reply With Quote
Old 9th May 2008, 15:53   #170  |  Link
jeffy
Registered User
 
Join Date: Jan 2007
Posts: 943
Quote:
Originally Posted by thetoof View Post
I can "accomplish that feat" too (almost realtime) and I've got a q6600, 2x 2GB DDR2 RAM and 8800 GTS.
Could you please tell us what's in the script that runs almost realtime? The source is in MPEG-2 or MPEG-4 format, SD or HD?
Does it really mean (cough) almost 30 fps? Does it use MT?
What exact NNEDI setting is used?
Thank you.
jeffy is offline   Reply With Quote
Old 9th May 2008, 21:46   #171  |  Link
Terka
Registered User
 
Join Date: Jan 2005
Location: cz
Posts: 704
Tritical, is it possible to modify nnedi be temporal too?
Terka is offline   Reply With Quote
Old 10th May 2008, 07:49   #172  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,699
Yep, I am running an E6600 with 3gb ram. It runs fine. Note: this is with SD sources.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 12th May 2008, 03:09   #173  |  Link
thetoof
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)
thetoof is offline   Reply With Quote
Old 2nd June 2008, 21:18   #174  |  Link
Undead Sega
Registered User
 
Join Date: Oct 2007
Posts: 713
how is running NNEDI on a GPU going? i would really want to see that happen very soon

especially MCBob, i need to use that filter for a 7mins 100fps video!
Undead Sega is offline   Reply With Quote
Old 15th June 2008, 13:37   #175  |  Link
g_aleph_r
Registered User
 
Join Date: Feb 2007
Posts: 25
Quote:
Originally Posted by Undead Sega View Post
how is running NNEDI on a GPU going? i would really want to see that happen very soon
Me too!!
g_aleph_r is offline   Reply With Quote
Old 12th July 2008, 14:14   #176  |  Link
pitch.fr
Didée 4 President
 
Join Date: Jun 2008
Posts: 239
Quote:
Originally Posted by Didée View Post
(The next topic could be: "How to implement the zoom filter used in the CSI TV-series?")
that's something I would also like to know

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;
}
on videos full of combing artefacts, this script does miracles

any idea how to get the same results with AVS ?

thanks,

Last edited by pitch.fr; 12th July 2008 at 14:18.
pitch.fr is offline   Reply With Quote
Old 12th July 2008, 19:39   #177  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by pitch.fr View Post
any idea how to get the same results with AVS ?
Code:
Bob().ConvertFPS(last.framerate)
You might probably want to replace Bob with something more advanced like LeakKernelBob (okay, I'm biased... ) or something.

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])
Leak is offline   Reply With Quote
Old 12th July 2008, 23:35   #178  |  Link
pitch.fr
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
pitch.fr is offline   Reply With Quote
Old 13th July 2008, 00:35   #179  |  Link
Didée
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)
Ah, the miracle.
__________________
- 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!)
Didée is offline   Reply With Quote
Old 13th July 2008, 00:41   #180  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by pitch.fr View Post
I'm talking about "artefacts" due to poorly or non-interlaced heavily interlaced videos.
"non-interlaced heavily interlaced videos"

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])
Leak is offline   Reply With Quote
Reply

Tags
deinterlace, nnedi


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 23:50.


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