Hi, when encoding very small videos, less than 64x64 x265 throws an error. x265 [error]: Picture size must be at least one CTU
however the documentation clearly states that any valid size is supported /* Width (in pixels) of the source pictures. If this width is not an even * multiple of 4, the encoder will pad the pictures internally to meet this * minimum requirement. All valid HEVC widths are supported */ int sourceWidth; /* Height (in pixels) of the source pictures. If this height is not an even * multiple of 4, the encoder will pad the pictures internally to meet this * minimum requirement. All valid HEVC heights are supported */ int sourceHeight; This does not seem the case, as you need to fiddle with the maxCUSize manually, and still doesn't work for images that are smaller than 16x16 x265 [error]: max cu size must be 16, 32, or 64 It doesn't seem like x265 exposes the crop parameters either (only the default display window which is not appropriate for this use case), so it's not possible to pad the image with black and just crop the relative amount. Do you have any advice for the above? Could you adjust the documentation to reflect the current limitation of the API and possibly update the API to support this use case? Thanks -- Vittorio
_______________________________________________ x265-devel mailing list x265-devel@videolan.org https://mailman.videolan.org/listinfo/x265-devel