Skip to content

How to use only one core when encoding #54

Answered by bigcat88
LePistole-glitch asked this question in Q&A
Discussion options

You must be logged in to vote

@LePistole-glitch
Hi, of course you can pass encoding options to .heif/.heic for the x265 encoder. I don't think it's all tested, I'm doing some small autotests on it, but this is the first question about encoder options.
So if something doesn't work, ask in this repository and we'll see what's wrong.
Here is a thread control option i found: option-pools

im = Image.open("input.png")
im.save("output.heic", enc_params={"x265:pools": "0"})

Note: Since x265 is a video encoder and we are working with images, we are always working with one frame.

Starting with version 0.9.0 I will add simpler options for this and for managing number of decode threads, stay tuned.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LePistole-glitch
Comment options

Answer selected by bigcat88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants