View Single Post
Old 15th May 2020, 21:14   #192  |  Link
Stereodude
Registered User
 
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
Quote:
Originally Posted by zapp7 View Post
So I converted to RGB using:
Code:
z_ConvertFormat(pixel_type="RGBP16", colorspace_op="170m:601:170m:f=>rgb:srgb:170m:f")
Saved that as 16 bit tiffs. Ran through Topaz. Then when I convert back to YV12 using:

Code:
z_ConvertFormat(pixel_type="YV12", colorspace_op="rgb:srgb:170m:f=>709:709:709:f")
it throws an error saying "clip must be planar", likely due to it being RGB48? How can this be tackled?
ConvertToPlanarRGB()
z_ConvertFormat(pixel_type="YUV420P16", colorspace_op="rgb:srgb:170m:f=>709:709:709:f")

What is your plan for the final output resolution? Regardless I would generally suggest that you should not convert to 8-bit YUV here. I would suggest keeping 16-bits (as above).

Use f3kdb to convert down to 10-bits for your HEVC compression.

f3kdb(range=31, grainY=15, grainC=10, sample_mode=2, dither_algo=3, dynamic_grain=true, keep_tv_range=false, output_depth=10)

Quote:
Also, since I'm saving as tiffs I'm not sure how to apply the SAR of 10:11. The result is that for 2160p, Topaz wants to produce a frame size of 3168x2160, instead of 2880x2160. What is the best point in this workflow to fix that, and how?
You can't force a particular resolution for the output of Topaz? Does it have bars on the sides, or does it fill the entire frame?

If it fills the frame you will have to squeeze it horizontally. I would probably squeeze it in the z_ConvertFormat line.

like:
z_ConvertFormat(width=2880, height=2160, resample_filter="bicubic", pixel_type="YUV420P16", colorspace_op="rgb:srgb:170m:f=>709:709:709:f")

As to which scalar (resample_filter) you should use, I don't know. There will be lots of opinions.

Then it will have a SAR of 1:1 and you can encode it with x265 as 10-bit HEVC.

Last edited by Stereodude; 15th May 2020 at 21:25.
Stereodude is offline   Reply With Quote