[x265] API or documentation problem for tiny images

Vittorio Giovara vittorio.giovara at gmail.com
Fri Apr 27 20:38:03 CEST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180427/8c4e54c5/attachment.html>


More information about the x265-devel mailing list