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. |
10th August 2018, 20:50 | #21 | Link | |
Cary Knoop
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 397
|
Quote:
Not sure what you mean by convert to "perceptually uniform color space", converting to XYZ as an intermediate and back together with gamut mapping out of gamut values should do the job just fine. |
|
10th August 2018, 23:29 | #25 | Link |
Excessively jovial fellow
Join Date: Jun 2004
Location: rude
Posts: 1,100
|
Code:
import vapoursynth as vs core = vs.get_core() # tested vs.RGBS, vs.RGBH, vs.RGB24 and vs.RGB48 clip = core.std.BlankClip(width=3840,height=2160,format=vs.RGBS, length=1000) clip = core.timecube.Cube(clip, cube=r"D:\Encode\vscube\test.cube") clip.set_output() RGB48 (16-bit int): 127.69 fps RGBH (16-bit/half precision float): 129.5 fps RGBS (32-bit/single precision float): 56.65 fps Intel i7-8700K @ 4.9 GHz, 16GB DDR4-3200. Using 12 threads (or, more precisely, 12 simultaneous requests in vspipe). That many threads is definitely suboptimal for RGBS though; I tried it with 2 threads and it went up to 65-ish FPS. Judging by a quick and dirty test, for RGBH it doesn't scale beyond 6 threads, while RGB24 can benefit from 8-10 threads but not from all 12. It's most likely memory/cache bound. Last edited by TheFluff; 11th August 2018 at 00:29. |
10th August 2018, 23:42 | #26 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Thank you, TheFluff.
I will get the 3D LUT filter and run some experiments. BTW, my DGHDRtoSDR() with DGSource() delivering YUV420P16 coincidentally also runs at 56 fps under Vapoursynth (i7 7700K + 1080 Ti). Last edited by videoh; 10th August 2018 at 23:49. |
11th August 2018, 00:18 | #27 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,667
|
Any idea why the vpy script would fail with:
vapoursynth.Error: LoadLibraryEx failed with code 87: update windows and try again when loading vscube.dll? I did retarget the Windows SDK to the one I had on my machine (10.0.16299.0) but it built OK. Would that cause it? Last edited by videoh; 11th August 2018 at 00:21. |
11th August 2018, 22:28 | #30 | Link |
Excessively jovial fellow
Join Date: Jun 2004
Location: rude
Posts: 1,100
|
It was pointed out to me that I forgot to pass "keep=True" to blankclip. Since the script is memory bound, passing that parameter pretty much just doubles the performance, so the fps numbers quoted above are about half of what the filter itself is actually capable of.
|
|
|