<div dir="ltr">Hi Vittorio,<div>Apologies for the late response and thank you for pointing out the discrepancy in our documentation and error message.</div><div>To my knowledge, if the picture width/height is not<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> a multiple of minimum CU size</span> then the picture is padded. Images smaller than 64x64 should be padded and encoded without the need of modifying the maxCUSize manually. We acknowledge the problem you have reported and will get back to you with a good solution very soon. </div><div><br></div><div><br></div><div>Regards,</div><div>Kavitha</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 7, 2018 at 9:06 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"><span class=""><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 1, 2018 at 2:20 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"><span><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="m_8620352338543457441m_8962514145489101035HOEnZb"><font color="#888888"><br></font></span></div><span class="m_8620352338543457441m_8962514145489101035HOEnZb"><font color="#888888"></font></span></div></div></blockquote></div><br></div></span><div class="gmail_extra">Ping<span class="m_8620352338543457441HOEnZb"><font color="#888888"><br></font></span></div></div></blockquote></div><br clear="all"></div></span><div class="gmail_extra">second ping<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra">-- <br><div class="m_8620352338543457441gmail_signature" data-smartmail="gmail_signature">Vittorio</div>
</div></font></span></div>
<br>______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(0,0,0)">Regards,<br>Kavitha</span></div></div></div></div>
</div>