Closed keni7385 closed 7 months ago
For x265, you're looking for set_parameter_integer("ctu",x);
. (set_parameter_string
for string parameters)
For x265, you're looking for
set_parameter_integer("ctu",x);
. (set_parameter_string
for string parameters)
You can also use the command line tool. The man page (https://github.com/strukturag/libheif/blob/master/examples/heif-enc.1#L71-L74) says:
When using the x265 encoder, you may pass it any of its parameters by
prefixing the parameter name with x265:.
Hence, to set the ctu parameter, you will have to set x265:ctu
in libheif (e.g.: -p x265:ctu=64).
Thank you to both of you.
String parameter solved my issue:
encoder.set_string_parameter("x265:ctu", "16");
I was trying encoder.set_integer_parameter("x265:ctu", 16)
, which didn't work. Indeed, only x265_set_parameter_string
has the logic to handle parameters prefixed by "x265:"
Hello,
How can I set the
ctuSize
when usingheif_compression_HEVC
asheif::Encoder
?Is the parameter already exposed to libheif users? Or does the codebase require changes?
Thank you!