Bug 2034197

Summary: Unable to encode images to the AVIF format using avifenc
Product: [Fedora] Fedora Reporter: Cajus Pollmeier <fedora>
Component: libavifAssignee: Robert-André Mauchin 🐧 <zebob.m>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 35CC: asn, zebob.m
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libavif-0.9.2-3.fc35 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-01 01:35:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Cajus Pollmeier 2021-12-20 11:38:22 UTC
Description of problem:

As the subject says, I'm unable to encode images (in this case a jpeg image) to avif.


Version-Release number of selected component (if applicable):

libavif-0.9.2-2.fc35.x86_64
libavif-tools-0.9.2-2.fc35.x86_64

How reproducible:

Just try to convert one of the fedora wallpaper files.

Steps to Reproduce:
1. Run "avifenc /usr/share/backgrounds/fedora-workstation/lapis.jpg ~/test.avif"

Actual results:

Directly copied JPEG pixel data (no YUV conversion): /usr/share/backgrounds/fedora-workstation/lapis.jpg
Successfully loaded: /usr/share/backgrounds/fedora-workstation/lapis.jpg
AVIF to be written: (Lossy)
 * Resolution     : 3648x2736
 * Bit Depth      : 8
 * Format         : YUV420
 * Chroma Sam. Pos: 0
 * Alpha          : Absent
 * Range          : Full
 * Color Primaries: 1
 * Transfer Char. : 13
 * Matrix Coeffs. : 6
 * ICC Profile    : Absent (0 bytes)
 * XMP Metadata   : Absent (0 bytes)
 * EXIF Metadata  : Absent (0 bytes)
 * Transformations: None
Encoding with AV1 codec 'aom' speed [6], color QP [24 (Medium) <-> 26 (Medium)], alpha QP [0 (Lossless) <-> 0 (Lossless)], tileRowsLog2 [0], tileColsLog2 [0], 1 worker thread(s), please wait...
ERROR: Failed to encode image: Encoding of color planes failed
Diagnostics:
 * aom_codec_enc_init() failed: ABI version mismatch: (null)


Expected results:

test.avif should be created.

Additional info:

Version: 0.9.2 (dav1d [dec]:0.9.2, aom [enc/dec]:v3.2.0, rav1e [enc]:0.5.0 (UNKNOWN), svt [enc]:0.8.6)
libyuv : unavailable

When I rebuild the package with the libyuv dependency, it works.

Comment 1 Fedora Update System 2021-12-28 16:02:37 UTC
FEDORA-2021-e04e7b2612 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e04e7b2612

Comment 2 Robert-André Mauchin 🐧 2021-12-28 16:08:52 UTC
Sorry for the delay. It seems av1 was updated and libavif was not rebuilt afterwards. I have submitted another build. Please test it if you can.

Comment 3 Fedora Update System 2021-12-29 01:12:23 UTC
FEDORA-2021-e04e7b2612 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e04e7b2612`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e04e7b2612

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2022-01-01 01:35:00 UTC
FEDORA-2021-e04e7b2612 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.