<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 27, 2018 at 2:38 PM, Vittorio Giovara <span dir="ltr"><<a href="mailto:vittorio.giovara@gmail.com" target="_blank">vittorio.giovara@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, when encoding very small videos, less than 64x64 x265 throws an error.<br><br>x265 [error]: Picture size must be at least one CTU<br><br></div>however the documentation clearly states that any valid size is supported<br><br>    /* Width (in pixels) of the source pictures. If this width is not an even<br>     * multiple of 4, the encoder will pad the pictures internally to meet this<br>     * minimum requirement. All valid HEVC widths are supported */<br>    int       sourceWidth;<br><br>    /* Height (in pixels) of the source pictures. If this height is not an even<br>     * multiple of 4, the encoder will pad the pictures internally to meet this<br>     * minimum requirement. All valid HEVC heights are supported */<br>    int       sourceHeight;<br clear="all"><div><div><br></div><div>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<br><br>x265 [error]: max cu size must be 16, 32, or 64<br><br></div><div>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.<br><br></div><div>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?<br><br></div><div>Thanks<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"></font></span></div></div></blockquote></div><br></div><div class="gmail_extra">Ping<br></div><div class="gmail_extra">-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Vittorio</div>
</div></div>