TomArrow
22nd November 2018, 22:16
I'm doing the following:
video=FFVideoSource("HDRVideo.mkv")
video=video.ConvertBits(16).ConvertToYUV444()
video=Spline36ResizeMT(video,1920,800,SetAffinity=false).Sharpen(0.2)
video=z_ConvertFormat(video,pixel_type="RGBPS",colorspace_op="2020ncl:st2084:2020:l=>rgb:linear:2020:l", dither_type="none").DGHable(exposure=0.1,d=0.00001,e=0.0295,f=0.3,a=5)
video=z_ConvertFormat(video,pixel_type="YUV444P16",colorspace_op="rgb:linear:2020:l=>709:709:709:l",dither_type="ordered")
video
The main purpose of this is the HDR to SDR tonemapping via DGHable.
But here I was wondering, is there any way to adjust the image in the RGBPS color format? That's the format it has after the first call to z_ConvertFormat and as I understand it, this is a floating point format in which the image is stored in linear color space.
It would be nice if I could make some very basic adjustments to the image in this colorspace. For example contrast, gain, etc. for a very rudimentary color correction. In particular I'd like trying to just scale the green channel down a little bit (say, multiply it with 0.95).
Unfortunately RGBAdjust doesn't work in RGBPS. Tweak doesn't work for obvious reasons.
Is there some kind of list of filters that actually are compatible with this color format?
I know I could just make the tweaks after it's converted back to a "normal" color format, but I want to play around with the linear color space a bit.
video=FFVideoSource("HDRVideo.mkv")
video=video.ConvertBits(16).ConvertToYUV444()
video=Spline36ResizeMT(video,1920,800,SetAffinity=false).Sharpen(0.2)
video=z_ConvertFormat(video,pixel_type="RGBPS",colorspace_op="2020ncl:st2084:2020:l=>rgb:linear:2020:l", dither_type="none").DGHable(exposure=0.1,d=0.00001,e=0.0295,f=0.3,a=5)
video=z_ConvertFormat(video,pixel_type="YUV444P16",colorspace_op="rgb:linear:2020:l=>709:709:709:l",dither_type="ordered")
video
The main purpose of this is the HDR to SDR tonemapping via DGHable.
But here I was wondering, is there any way to adjust the image in the RGBPS color format? That's the format it has after the first call to z_ConvertFormat and as I understand it, this is a floating point format in which the image is stored in linear color space.
It would be nice if I could make some very basic adjustments to the image in this colorspace. For example contrast, gain, etc. for a very rudimentary color correction. In particular I'd like trying to just scale the green channel down a little bit (say, multiply it with 0.95).
Unfortunately RGBAdjust doesn't work in RGBPS. Tweak doesn't work for obvious reasons.
Is there some kind of list of filters that actually are compatible with this color format?
I know I could just make the tweaks after it's converted back to a "normal" color format, but I want to play around with the linear color space a bit.