Horizontal stride for luma and chroma needs to be 128-byte aligned, if not, the input needs to be padded until it meets the requirement. Height needs to be even.
H.265 and AV1 2-Pass encode have the following restrictions:
If the input resolution width and height are not both aligned to 32-pixels, H.265 and AV1 2-Pass encode output may vary (encode output may mismatch)
AV1 encode has the following restrictions:
Requires FFmpeg version 4.0 or above
HW limitation:
Due to Quadra HW limitation, AV1 non-8x8-aligned input resolution will be cropped
If width is not 8-pixel aligned, width will be cropped
E.g. Input resolution 854x480 -> output resolution will be cropped to 848x480
If height is not 8-pixel aligned, height will be cropped
E.g. Input resolution 960x540 -> output resolution will be cropped to 960x536
Input resolution restriction:
Minimum resolution supported by encoder
width >= 144 pixels
height >= 128 pixels
If the input resolution is less than the minimum resolution, the encoder will encode according to the minimum resolution and also encode the crop information to ensure that when decode the bitstream encoded by encoder, the decoded YUV resolution is the same as the input resolution.
Maximum resolution supported by encoder
width <= 4096 pixels
height <= 4352 pixels
width * height <= (4096 * 2304) pixels