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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th October 2019, 15:31   #1  |  Link
age
Registered User
 
Join Date: Oct 2015
Posts: 44
Age's HDR to SDR tone mapping

https://github.com/age1988/vapoursynth-tonemapping
age is offline   Reply With Quote
Old 29th October 2019, 16:34   #2  |  Link
redbtn
Registered User
 
redbtn's Avatar
 
Join Date: Jan 2019
Location: Russia
Posts: 123
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?
Quote:
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
Quote:
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

Last edited by redbtn; 29th October 2019 at 17:38.
redbtn is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:31.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.