Package: libavif-bin
Version: 1.1.1-1

Version: 1.1.1 (dav1d [dec]:1.5.0, libgav1 [dec]:0.19.0, aom
[enc/dec]:v3.11.0, rav1e [enc]:0.7.1 (UNKNOWN), svt [enc]:v2.2.0)
libyuv : available (1891)

whatever image can reproduce this, even solid color.

```
 avifenc -q 85 --speed 5 7R401966_5.png 7R401966_5.avif
Successfully loaded: 7R401966_5.png
AVIF to be written: (Lossy)
 * Resolution     : 19688x8577
 * Bit Depth      : 12
 * Format         : YUV444
 * Alpha          : Absent
 * Range          : Full
 * Color Primaries: 2
 * Transfer Char. : 2
 * Matrix Coeffs. : 6
 * ICC Profile    : Present (476 bytes)
 * XMP Metadata   : Absent
 * Exif Metadata  : Absent
 * Transformations: None
 * Progressive    : Unavailable
Encoding with codec 'aom' speed [5], color quality [85 (High)], alpha
quality [100 (Lossless)], tileRowsLog2 [0], tileColsLog2 [0], 16 worker
thread(s), please wait...
ERROR: Failed to encode image: Encoding of color planes failed
Diagnostics:
 * aom_codec_encode() failed: Memory allocation error: Failed to allocate
lag buffers
Command exited with non-zero status 1
```

reduce color depth to 8-bit, it works, -j, --speed, -q does not matter.

```
ttime avifenc -j 16 --depth 8 -q 85 7R401966_5.png 7R401966_5.avif
Successfully loaded: 7R401966_5.png
AVIF to be written: (Lossy)
 * Resolution     : 19688x8577
 * Bit Depth      : 8
 * Format         : YUV444
 * Alpha          : Absent
 * Range          : Full
 * Color Primaries: 2
 * Transfer Char. : 2
 * Matrix Coeffs. : 6
 * ICC Profile    : Present (476 bytes)
 * XMP Metadata   : Absent
 * Exif Metadata  : Absent
 * Transformations: None
 * Progressive    : Unavailable
Encoding with codec 'aom' speed [6], color quality [85 (High)], alpha
quality [100 (Lossless)], tileRowsLog2 [0], tileColsLog2 [0], 16 worker
thread(s), please wait...
Encoded successfully.
 * Color total size: 14878438 bytes
 * Alpha total size: 0 bytes
Wrote AVIF: 7R401966_5.avif
4869676 kBpeak, 165.20s user, 0 FSI, 29064 FSO, 850% CPU, 19.49s real
```

crop down the image, not working
```
avifenc -j 16 --crop 0,0,100,117 --depth 12 --speed 6 -q 85 7R401966_5.png
7R401966_5.avif
Successfully loaded: 7R401966_5.png
AVIF to be written: (Lossy)
 * Resolution     : 19688x8577
 * Bit Depth      : 12
 * Format         : YUV444
 * Alpha          : Absent
 * Range          : Full
 * Color Primaries: 2
 * Transfer Char. : 2
 * Matrix Coeffs. : 6
 * ICC Profile    : Present (476 bytes)
 * XMP Metadata   : Absent
 * Exif Metadata  : Absent
 * Transformations:
    * clap (Clean Aperture): W: 100/1, H: 117/1, hOff: -9794/1, vOff:
-4230/1
      * Valid, derived crop rect: X: 0, Y: 0, W: 100, H: 117
 * Progressive    : Unavailable
Encoding with codec 'aom' speed [6], color quality [85 (High)], alpha
quality [100 (Lossless)], tileRowsLog2 [0], tileColsLog2 [0], 16 worker
thread(s), please wait...
ERROR: Failed to encode image: Encoding of color planes failed
Diagnostics:
 * aom_codec_encode() failed: Memory allocation error: Failed to allocate
lag buffers
Command exited with non-zero status 1
```

using imagemagick donig similar conversion, manipulating image size and
color depth, seemingly aom or avifenc cannot allocate memory somewhere
larger than 4GiB.

system has enough RAM: 96GiB - 4GiB for GPU.

Reply via email to