age
29th October 2019, 15:31
https://github.com/age1988/vapoursynth-tonemapping
redbtn
29th October 2019, 16:34
Error if c=age_tm.reinhard_rgby(c,target_nits=120,source_peak=None). If i manually set source_peak=4000 works fine.
And can i ask why chromaloc=center?
2019-10-29 20:29:32.603
Failed to evaluate the script:
Python exception:
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 872, in vapoursynth.VideoProps.__getattr__
File "src\cython\vapoursynth.pyx", line 772, in vapoursynth.VideoProps.__getitem__
KeyError: 'No key named MasteringDisplayMaxLuminance exists'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1946, in vapoursynth.vpy_evaluateScript
File "src\cython\vapoursynth.pyx", line 1947, in vapoursynth.vpy_evaluateScript
File "E:/test/sample.vpy", line 11, in
c=age_tm.reinhard_rgby(c,target_nits=120,source_peak=None)
File "C:\Users\intel\AppData\Roaming\Python\Python37\site-packages\age_tm.py", line 314, in reinhard_rgby
source_peak=c.get_frame(0).props.MasteringDisplayMaxLuminance
File "src\cython\vapoursynth.pyx", line 874, in vapoursynth.VideoProps.__getattr__
AttributeError
My script
import vapoursynth as vs
import age_tm
core = vs.get_core()
clip = core.lsmas.LWLibavSource(source="E:/test/sample.mkv", format="YUV420P10", cache=1)
clip = core.std.AssumeFPS(clip, fpsnum=24000, fpsden=1001)
c = clip
c=age_tm.reinhard_rgby(c,target_nits=120,source_peak=None)
c.set_output()
Also it’s not written anywhere that it automatically does resize to FHD by bicubic
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.