CUDA Suggestions and Talk

These CUDA filters are packaged into DGDecodeNV, which is part of DGDecNV.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDA Suggestions and Talk

Post by admin »

There is only the Avisynth function. There is no need to try to accelerate this function as it is already virtually instantaneous. It is implemented by simply mapping the requested frame number.
DAE avatar
Chris
Posts: 13
Joined: Sun Dec 02, 2018 10:48 am

Re: CUDA Suggestions and Talk

Post by Chris »

Thanks a lot for your help and assistance!

One more question popped up I want to address: DGIndexNV/EncNV are only able to go with mod4 as lowest, right?
I am asking because sometimes I want to crop/resize by mod2 for where I take off 2 pixels from top (black bar), staxrip set to mod2, applying resize (staxrip) makes the video 720 x 404, removing staxrip resize, adding DGSource resize 720 x 404, makes the video 720 x 402.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDA Suggestions and Talk

Post by admin »

It's covered in the DGDecodeNV user manual.

Currently, mod 2 is OK for right and bottom but left and top must be mod 4. It's an nVidia driver issue that will be fixed at some point.

If you must have mod 2 for top or left, then you can use Avisynth cropping.
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: CUDA Suggestions and Talk

Post by Sharc »

SMDegrain.avsi is a powerful but slow avisynth filter. Could similar be done in CUDA? Any thoughts?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDA Suggestions and Talk

Post by admin »

Guest 2 just suggested that as well. I'll take a look into feasibility.
DAE avatar
Sharc
Posts: 233
Joined: Thu Sep 23, 2010 1:53 pm

Re: CUDA Suggestions and Talk

Post by Sharc »

Thanks.
Will be a big challenge I think because it uses mvtools and masktools. :scratch:
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDA Suggestions and Talk

Post by admin »

Sharc wrote:
Wed Aug 07, 2019 11:42 am
Will be a big challenge
For sure.
User avatar
DJATOM
Posts: 176
Joined: Fri Oct 16, 2015 6:14 pm

Re: CUDA Suggestions and Talk

Post by DJATOM »

I'm not sure if it's possible to reuse Opticflow vectors data in mvtools2, but if it's compatible, that should provide nice speedup in scripts.
PC: RTX 2070 | Ryzen R9 5950X (no OC) | 64 GB RAM
Notebook: RTX 4060 | Ryzen R9 7945HX | 32 GB RAM
DAE avatar
Boulder
Posts: 113
Joined: Fri Jul 29, 2011 7:22 am

Re: CUDA Suggestions and Talk

Post by Boulder »

Having a high quality resizer like ResampleHQ would be a nice addition to the toolset.

https://gist.github.com/4re/64642122e359c37543fe

I personally use it all the time for downsizing with Bicubic, but I don't know if the GF hardware supports that one (particularly the b and c parameters that I tune for each source with a Zopti run).
User avatar
Bullwinkle
Posts: 337
Joined: Thu Sep 05, 2019 6:37 pm

Re: CUDA Suggestions and Talk

Post by Bullwinkle »

+2 on that, Boulder, the bold one haha. Meese and squirrels are are worth 2, hoomans 1. Get over it.
User avatar
JoyBell
Posts: 16
Joined: Mon Feb 17, 2020 11:50 pm

Re: CUDA Suggestions and Talk

Post by JoyBell »

Ever since this summer I was wondering if these modern open shader sharpeners could be added as a avisynth script.
Sorry if a bunch of people have brought this up already. They have good enough results to upsample 1440p to 2160p with very good results all while only dropping real time FPS a few percentages. This has to be much faster than my software cutting me from 10fps to 4 fps encoding.

Overview and results
https://www.techspot.com/review/1884-am ... s-reshade/
Image

I don't know how much harder it is to port than from reshade or come to think of it if I am muddling CUDA and shader scripts in my head.
https://www.youtube.com/watch?v=8PON7Vtdbk0

FidelityFX CAS (Contrast Adaptive Sharpening) v1.0
https://github.com/GPUOpen-Effects/Fide ... er/FFX_CAS
User avatar
hydra3333
Posts: 393
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: CUDA Suggestions and Talk

Post by hydra3333 »

Goodness me, the youtube video examples look very nice !

So, are you asking for the code to somehow be incorporated into cudasynth
(yay, although that wonderful initiative seems to have stalled, or worse)
or perhaps into DGdecode ... I could live with that :)
(although I'd guess the author here may suggest it does not align with the prime purpose of dgdecode :) ) ?

In any case it would be nice to hear DG's thoughts.

edit: ah, I just saw this thread https://forum.doom9.org/showthread.php? ... Sharpening
I really do like it here.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: CUDA Suggestions and Talk

Post by Rocky »

Ha, and I hadn't noticed this thread before!

Never say never. I will look into it. Something to do over the next (minimum of) 20 days of lockdown. I live alone so I'm going crazy.
User avatar
hydra3333
Posts: 393
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: CUDA Suggestions and Talk

Post by hydra3333 »

Rocky wrote:
Sat Apr 11, 2020 4:37 am
I live alone so I'm going crazy.
I don't and I'm going crazier ;) :D

Our Prime Minister has said for some time "at least six months" (in some form). Many official (or respected ;)) medical officers say even then at-risk people until a vaccine or mitigating medicine appears, if you don't want risk dying. (I read up on what it does, and it is a horrible way to die).

PS, good luck with it ... the code, the crazy, and the other.
I really do like it here.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: CUDA Suggestions and Talk

Post by Rocky »

hydra3333 wrote:
Sun Apr 12, 2020 12:00 pm
I don't and I'm going crazier
LOL. Cat or wife?
Our Prime Minister has said for some time "at least six months" (in some form). Many official (or respected ;)) medical officers say even then at-risk people until a vaccine or mitigating medicine appears
Can't comment on that or admin will bust me for political discussion. Suffice to say, what a load of bollocks. We've been had.

Should we make a new forum for CCP virus talk?
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Re: CUDA Suggestions and Talk

Post by Guest 2 »

hydra3333 wrote:
Sun Apr 12, 2020 12:00 pm
I don't and I'm going crazier
I live alone after separation and we have the hardest lockdown after China, as I live in Lombardia region in Italy.

Unfortunately I am addicted to pool and diving and staying at home is a PITA for my EDS.
User avatar
Natasha
Posts: 150
Joined: Wed Nov 20, 2019 11:11 am

Re: CUDA Suggestions and Talk

Post by Natasha »

Guest 2 wrote:
Sun Apr 12, 2020 5:06 pm
EDS.
Erectile dysfunction syndrome? I thought so.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: CUDA Suggestions and Talk

Post by admin »

Behave, Nattie. Consequences can be dire.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: CUDA Suggestions and Talk

Post by Rocky »

Guest 2 wrote:
Sun Apr 12, 2020 5:06 pm
I live alone after separation and we have the hardest lockdown after China, as I live in Lombardia region in Italy.
:wow: Stay well and safe. Stay strong. We are here for you.

Pool lovers get extra respect here. ;)
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Re: CUDA Suggestions and Talk

Post by Guest 2 »

Rocky wrote:
Sun Apr 12, 2020 7:09 pm
We are here for you.
Thanks pal. I really appreciate that. :salute:
DAE avatar
Guest 2
Posts: 903
Joined: Mon Sep 20, 2010 2:18 pm

Re: CUDA Suggestions and Talk

Post by Guest 2 »

Natasha wrote:
Sun Apr 12, 2020 7:05 pm
Erectile dysfunction syndrome? I thought so.
Is that your first result on Google?

The bias in the engine is given by your previous queries. :D

Anyway no, not THAT EDS.
User avatar
Curly
Posts: 709
Joined: Sun Mar 15, 2020 11:05 am

Re: CUDA Suggestions and Talk

Post by Curly »

I heard frogs are big boys. Is it so?
Curly Howard
Director of EAC3TO Development
User avatar
hydra3333
Posts: 393
Joined: Wed Oct 06, 2010 3:34 am
Contact:

Re: CUDA Suggestions and Talk

Post by hydra3333 »

admin wrote:
Sun May 21, 2017 8:12 am
I deal with a mostly interlaced material, sometimes noisy and blocky. Would it be difficult to create a DGDeblock which handles 576i/p, 720p, 1080i/p ?
Yes, I want to do a deblocker. You could help by providing typical samples and describing how you process them now. To be honest, I am not very familiar with real-world deblocking use cases and processing.
Yes, so, well, it's a couple of years since I enquired if there's any interest in a world beating DGDeblock :)

https://drive.google.com/file/d/1fv5vIT ... sp=sharing
I'm not sure if this sample is blocky as well as terrible, or just terrible.

No hassle if you're not interested, just wondering if it's a possibility.
I really do like it here.
User avatar
Rocky
Posts: 3525
Joined: Fri Sep 06, 2019 12:57 pm

Re: CUDA Suggestions and Talk

Post by Rocky »

How time flies! Always possible. Keep poking me, as you are doing here. ;)
DAE avatar
Guest

Re: CUDA Suggestions and Talk

Post by Guest »

DGDeblock, sounds good :wow:
Post Reply