30.01.2024, 19:10
Hello Selur,
I tried the LUT dvhe0509_to_BT709.cube, but for my sample it was unable to properly map the colors.
Mediainfo report the HDR format: Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
The filter Tonemap (Placebo) was the only filter able to to map the colors to SDR but with a quite dark results.
To get a good result I had to apply the following filters
In the Tweak GUI settings I set the Brightness to "10", but in the code this value has been changed in "2560" (strange), but the code worked, so should not be a problem...
Dan
I tried the LUT dvhe0509_to_BT709.cube, but for my sample it was unable to properly map the colors.
Mediainfo report the HDR format: Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
The filter Tonemap (Placebo) was the only filter able to to map the colors to SDR but with a quite dark results.
To get a good result I had to apply the following filters
# adjusting color space from YUV420P10 to YUV444P16 for vsToneMapPlacebo
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16, range_s="limited")
# 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_param=0.000, use_dovi=True)
# adjusting color space from YUV444P16 to RGB48 for vsLevels
clip = core.resize.Bicubic(clip=clip, format=vs.RGB48, matrix_in_s="2020ncl", range_s="limited")
# Color Adjustment using Levels on RGB48 (16 bit)
clip = core.std.Levels(clip=clip, min_in=4096, max_in=60160, min_out=4096, max_out=60160, gamma=1.30)
# adjusting color space from RGB48 to YUV444P16 for vsTweak
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16, matrix_s="2020ncl", range_s="limited")
# Color Adjustment
clip = adjust.Tweak(clip=clip, hue=-5.00, sat=1.05, cont=1.01, bright=2560, coring=True)
In the Tweak GUI settings I set the Brightness to "10", but in the code this value has been changed in "2560" (strange), but the code worked, so should not be a problem...
Dan