[RESOLVED] Sequence of operation

Support forum for DGDecNV
Post Reply
User avatar
gonca
Distinguished Member
Distinguished Member
Posts: 705
Joined: Sun Apr 08, 2012 6:12 pm

[RESOLVED] Sequence of operation

Post by gonca » Sun Jun 16, 2019 6:29 am

I realize that if I de-interlace and resize with DGDecodeNV that the de-interlace function is applied first then the resize.
Does this apply when using your stand alone filters?
Example
LoadPlugin("C:/Program Files (Portable)/dgdecnv/x64 Binaries/DGDecodeNV.dll")
DGSource("__vid__", resize_w=1920, resize_h=720, fieldop=0)
DGTelecide(mode=2, dthresh=3.5)
Is the operation (resize) in DGsource applied before the operation in DGTelecide

User avatar
DJATOM
Distinguished Member
Distinguished Member
Posts: 53
Joined: Fri Oct 16, 2015 6:14 pm

Re: Sequence of operation

Post by DJATOM » Sun Jun 16, 2019 8:15 am

Obviously DGSource returns de-interlaced and resized data, then DGTelecide do his stuff. If that's what you asked for.
RTX 2070 | Ryzen R9 3900X (no OC) | 32 GB RAM

User avatar
gonca
Distinguished Member
Distinguished Member
Posts: 705
Joined: Sun Apr 08, 2012 6:12 pm

Re: Sequence of operation

Post by gonca » Sun Jun 16, 2019 9:56 am

I am not de-interlacing with DGSource in my example
I am using DGTelicide as the de-interlacer, that is why I am asking the question as DGTelecide is part of DGSource

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: Sequence of operation

Post by admin » Sun Jun 16, 2019 10:36 am

As DJATOM says, DGSource() will do its stuff before DGTelecide(). Therefore, as resizing before deinterlacing is bad, your script is bad. You should resize after deinterlacing (using Avisynth resizing).

DGTelecide() is not "part of DGSource()". It is simply packaged in the same DLL.

User avatar
gonca
Distinguished Member
Distinguished Member
Posts: 705
Joined: Sun Apr 08, 2012 6:12 pm

Re: Sequence of operation

Post by gonca » Sun Jun 16, 2019 10:43 am

Thanks for the clarification

User avatar
gonca
Distinguished Member
Distinguished Member
Posts: 705
Joined: Sun Apr 08, 2012 6:12 pm

Re: [RESOLVED] Sequence of operation

Post by gonca » Mon Jun 17, 2019 4:57 pm

One more question if I may, is this sequence of filters okay?

De-interlace
Crop
Denoise
Resize
Sharpen

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] Sequence of operation

Post by admin » Mon Jun 17, 2019 5:15 pm

Looks fine to me. You can also crop first if you do it mod 2.

User avatar
gonca
Distinguished Member
Distinguished Member
Posts: 705
Joined: Sun Apr 08, 2012 6:12 pm

Re: [RESOLVED] Sequence of operation

Post by gonca » Mon Jun 17, 2019 5:35 pm

Thank you

Post Reply