This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Coversion Dolby Vision to SDR
#7
Hi! I found this thread because I am doing the same. It seems ToneMap (Placebo) is the only one that can accurately do the conversion for me. However, when I set the Tweak and bump the brightness in the GUI, it does not seem to add it to the script and still gives me a darker image. Any ideas? Thanks in advance!

https://imgur.com/a/K70QVtB

https://imgur.com/a/q5KRHmq

format="YUV420P10", stream_index=0, cache=0, prefer_hw=0)
frame = clip.get_frame(0)
# setting color matrix to 2020ncl.
clip = core.std.SetFrameProps(clip, _Matrix=vs.MATRIX_BT2020_NCL)
# setting color transfer (vs.TRANSFER_BT2020_10), if it is not set.
if validate.transferIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT2020_10)
# setting color primaries info (to vs.PRIMARIES_BT2020), if it is not set.
if validate.primariesIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT2020)
# setting color range to PC (full) range.
clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_FULL)
# making sure frame rate is set to 24fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=24, fpsden=1)
# making sure the detected scan type is set (detected: progressive)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive
# adjusting color using Tweak
clip = adjust.Tweak(clip=clip, hue=0.00, sat=1.00, cont=1.00, bright=60, coring=True)
# adjusting color space from YUV420P10 to YUV444P16 for vsToneMapPlacebo
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16, range_s="full")
# color adjustment using ToneMap (Placebo)
clip = core.placebo.Tonemap(clip=clip, src_csp=3, dst_csp=0, src_min=0.0050, src_max=1000.0000, dst_min=0.2023, dst_max=203.0000, dynamic_peak_detection=1, tone_mapping_function=1, tone_mapping_param=0.000, tone_mapping_mode=4, use_dovi=True)
# adjusting output color from: YUV444P16 to YUV420P10 for x265Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, range_s="full", dither_type="error_diffusion")
# set output frame rate to 24fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=24, fpsden=1)
# output
clip.set_output()
Reply


Messages In This Thread
Coversion Dolby Vision to SDR - by Dan64 - 28.01.2024, 15:24
RE: Coversion Dolby Vision to SDR - by Selur - 28.01.2024, 15:33
RE: Coversion Dolby Vision to SDR - by Dan64 - 28.01.2024, 16:48
RE: Coversion Dolby Vision to SDR - by Selur - 28.01.2024, 18:48
RE: Coversion Dolby Vision to SDR - by Dan64 - 30.01.2024, 19:10
RE: Coversion Dolby Vision to SDR - by Selur - 30.01.2024, 19:13
RE: Coversion Dolby Vision to SDR - by yassssss - 23.02.2025, 17:42
RE: Coversion Dolby Vision to SDR - by Selur - 23.02.2025, 17:46
RE: Coversion Dolby Vision to SDR - by Selur - 23.02.2025, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)