Your message dated Thu, 19 Mar 2026 18:27:57 -0400
with message-id <[email protected]>
and subject line Re: avifenc "aom_codec_encode() failed: Memory allocation 
error: Failed to allocate lag buffers"
has caused the Debian Bug report #1090366,
regarding avifenc "aom_codec_encode() failed: Memory allocation error: Failed 
to allocate lag buffers"
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1090366: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1090366
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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.

--- End Message ---
--- Begin Message ---
Version: 1.2.1-1.2

Hi,

On Tue, 17 Dec 2024 15:27:31 +0000 Terrance Hendrik 
<[email protected]> wrote:
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.


I cannot reproduce this issue with libavif in Debian Trixie or Debian 
Sid/Testing.
As a result, I consider this bug done on these releases. This bug report is also
closed accordingly.

If you could still reproduce this issue on recent Debian Stable/Testing/Sid 
systems,
please feel free to reopen this bug report.

Best Regards,
Boyuan Yang

--- End Message ---

Reply via email to