Port Cube

These CUDA filters are packaged into DGDecodeNV, which is part of DGDecNV.
User avatar
tormento
Posts: 842
Joined: Mon Sep 20, 2010 2:18 pm

Port Cube

Post by tormento »

Rocky wrote:
Fri Jun 16, 2023 5:24 pm
Have you tried DGPQtoHLG? I'm willing to address any issues you have with it.
Yes and the quality you can achieve with a LUT is another world. Plus you can customize the LUT according to your preferences or the effect you want to achieve.
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

PQ to HLG is a well-defined specification that we follow. All this "another world" stuff is nonsense.
User avatar
Levi
Posts: 46
Joined: Sat Apr 18, 2020 6:12 pm

Port Cube

Post by Levi »

User avatar
Sherman
Posts: 491
Joined: Mon Jan 06, 2020 10:19 pm

Port Cube

Post by Sherman »

The malcontents should learn to code. It's so easy!
User avatar
Curly
Posts: 262
Joined: Sun Mar 15, 2020 11:05 am

Port Cube

Post by Curly »

Easy 4 u 2 say.
User avatar
Baltasar
Posts: 43
Joined: Tue Nov 02, 2021 9:51 am

Port Cube

Post by Baltasar »

This worked for me.

User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

There are ample resources for learning CUDA. We published sample source code for a CUDA filter, and documented our full dialog with nVidia during the development of DGDecNV. Everything you need is in the nVidia SDKs, API documentation, and developer forum. Focus, persistence, and attention to detail!

The zimg/avsresize authors...maybe they'd be willing to work with us to port their stuff to CUDA. I'd be more than happy to help. I could add some CUDASynth magic to eliminate extra PCIe transfers, etc. Their filters can remain standalone and fully in their control. We'll help for free. That seems like the most likely path to reach the promised land.
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

tormento wrote:
Wed Aug 10, 2022 10:08 am
P.S: Will you add tetrahedral to AVSCube too?
sekrit-twc has added tetrahedral to timecube so after it is ported to AVS we can ditch DGCube and stop all the associated nonsense. ;)
User avatar
tormento
Posts: 842
Joined: Mon Sep 20, 2010 2:18 pm

Port Cube

Post by tormento »

Rocky wrote:
Sun Jul 02, 2023 7:55 am
Then we can ditch DGCube and stop all the associated nonsense. ;)
Not everybody has a 56 core CPU. Someone still relies on GPU. (me)
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

Oh OK. We'll keep it then.
User avatar
tormento
Posts: 842
Joined: Mon Sep 20, 2010 2:18 pm

Port Cube

Post by tormento »

Rocky wrote:
Sun Jul 02, 2023 4:34 pm
Oh OK. We'll keep it then.
https://github.com/rigaya/NVEnc/blob/ma ... ram2value2

lut3d=<string>
Apply a 3D LUT to an input video. Currently supports .cube file only.

lut3d_interp=<string>
nearest, trilinear, tetrahedral, pyramid, prism

I think this could ease my pain.

I could use nvenc to encode to lossless intermediate and then proceed with x265.

Do you think is now feasible to use the source code to implement it in DGCube? :)
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

tormento wrote:
Tue Jul 04, 2023 3:52 am
Do you think is now feasible to use the source code to implement it in DGCube? :)
Implement what? Please be specific and precise.

And what is your pain exactly? You cannot implement some desired processing? Or you can but it doesn't run as fast as you'd like?
User avatar
tormento
Posts: 842
Joined: Mon Sep 20, 2010 2:18 pm

Port Cube

Post by tormento »

Rocky wrote:
Tue Jul 04, 2023 7:42 am
Implement what? Please be specific and precise.
Nothing, Rocky. I think I won't bug you again about DGCube.

I have eased my pains applying LUT with NVEnc to an intermediate lossless HEVC and then encoded it with standard x265. Easy peasy and unbelievably fast.

Thanks again for having implemented HEVC 4:4:4 decoding :)
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

tormento wrote:
Tue Jul 04, 2023 12:55 pm
I have eased my pains...
Won't you have the grace to explain what your pains are after I explicitly asked and after all I've done for you over the years.
User avatar
tormento
Posts: 842
Joined: Mon Sep 20, 2010 2:18 pm

Port Cube

Post by tormento »

Rocky wrote:
Tue Jul 04, 2023 1:28 pm
Won't you have the grace to explain what your pains are after I explicitly asked and after all I've done for you over the years.
As I told many times, my CPU is too old and slow to comfortably apply zimg conversion and have a correct PQ to HLG transformation, using DGCube.

I have squeezed my brain to find a workaround and I am testing NVEnc to do all the job but the final encode.

It does everything in HW, fast and clean, tetrahedral included.

1080p SDR to HLG 160.65 fps
2160p PQ to HLG 42.90 fps

The only issue is storage requirements but I can cope with that.
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

It's not just storage, it's the time to write out massive lossless streams and then read them again. And having to encode twice. That's not fast and it's certainly not clean. Nevertheless I'm happy you have what you consider to be an adequate workaround for your pains.
As I told many times
That feels rude and unfriendly. And who knows what "comfortable" means for you?
my CPU is too old and slow
When you upgrade your HW for HEVC lossless, think too about upgrading your CPU.
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

Hehe, I have successfully ported sekrit-twc's latest vscube to AVS+. Still have to fix up some loose ends but it's running fine with tetrahedral and all cpu modes. It took just less than 3 hours to port.
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

Here is a test release of the AVS+ support for sekrit-twc's latest vscube. Refer to the user manual for syntax and examples. Your test results will be greatly appreciated. My testing shows the AVS+ version with prefetch(6) to be faster than the Vapoursynth version.

https://rationalqm.us/cube/AVSCube_test.rar

Say thank you.
User avatar
Sherman
Posts: 491
Joined: Mon Jan 06, 2020 10:19 pm

Port Cube

Post by Sherman »

Rocky wrote:
Fri Jul 07, 2023 10:05 am
It took just less than 3 hours to port.
You're slipping, Rocky. Do you need to get some young blood involved?
User avatar
Natasha
Posts: 131
Joined: Wed Nov 20, 2019 11:11 am

Port Cube

Post by Natasha »

Sherman wrote:
Sat Jul 08, 2023 12:59 pm
young blood
The best kind!
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

The timecube+AVS support test build was relocated:

https://rationalqm.us/cube/

All the cube stuff is now together in directory cube.
User avatar
Rocky
Posts: 3028
Joined: Fri Sep 06, 2019 12:57 pm

Port Cube

Post by Rocky »

Here is an updated test build for AVS+ support for sekrit-twc's vscube. It includes sekrit-twc's bug fix for the AVX2 support of tetrahedral mode.

https://rationalqm.us/cube/AVSCube_test.rar
Post Reply