21.04, missing codecs

Bug #1943658 reported by Pierre
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libavif (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Using an install of libavif as below, codecs are not found or not setup properly. Is there options or other packages that should be installed to have these codecs enabled?

For cross reference, I was working on getting libgd 2.3.x and 2.4 branches run with 21.04 and avif, see https://github.com/libgd/libgd/issues/770

libavif-bin/hirsute,now 0.8.4-2 amd64 [installed]
  Library for handling .avif files (utilities)

libavif9/hirsute,now 0.8.4-2 amd64 [installed]
  Library for handling .avif files

libavif-dev/hirsute,now 0.8.4-2 amd64 [installed]
  Library for handling .avif files (development files)

libaom-dev/hirsute,now 1.0.0.errata1-3build1 amd64 [installed]
  AV1 Video Codec Library -- Development Files

libaom0/hirsute,now 1.0.0.errata1-3build1 amd64 [installed]
  AV1 Video Codec Library

libdav1d-dev/hirsute,now 0.7.1-3 amd64 [installed]
  fast and small AV1 video stream decoder (development files)

libdav1d4/hirsute,now 0.7.1-3 amd64 [installed,automatic]
  fast and small AV1 video stream decoder (shared library)

libgav1-0/hirsute,now 0.16.0-5 amd64 [installed,automatic]
  AV1 decoder developed by Google -- runtime library

libgav1-dev/hirsute,now 0.16.0-5 amd64 [installed]
  AV1 decoder developed by Google -- development kit

➜ builds git:(master) ✗ avifenc ../test/gdtest.png out.avif
Successfully loaded: ../test/gdtest.png
AVIF to be written: (Lossy)
 * Resolution : 565x424
 * Bit Depth : 8
 * Format : YUV444
 * Alpha : Present
 * 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 '(null)' speed [8], color QP [0 (Lossless) <-> 10 (High)], alpha QP [0 (Lossless) <-> 0 (Lossless)], tileRowsLog2 [0], tileColsLog2 [0], 1 worker thread(s), please wait...
ERROR: Failed to encode image: No codec available

Pierre (pierre-php)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libavif (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel Novomeský (novomesk) wrote :

This also affects KDE apps using kimageformat-plugins.

They are unable to save AVIF pictures because libavif was not built with support for AV1 encoder (
libavif or rav1e).

Revision history for this message
Boyuan Yang (hosiet) wrote :

The fix is available in libavif 0.9.3-2 and later versions. In other words, the fix will be present in Ubuntu 22.04 LTS.

Such fix is unable to be applied onto Ubuntu 21.04 or Ubuntu 21.10 due to libaom, sorry.

Changed in libavif (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Pierre (pierre-php) wrote : Re: [Bug 1943658] Re: 21.04, missing codecs

thanks for the update :)

aom is only one codec. Current versions have zero codec installed, making
de facto avif useless :)

On Tue, Feb 15, 2022, 2:30 AM Boyuan Yang <email address hidden>
wrote:

> The fix is available in libavif 0.9.3-2 and later versions. In other
> words, the fix will be present in Ubuntu 22.04 LTS.
>
> Such fix is unable to be applied onto Ubuntu 21.04 or Ubuntu 21.10 due
> to libaom, sorry.
>
> ** Changed in: libavif (Ubuntu)
> Status: Confirmed => Fix Released
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1943658
>
> Title:
> 21.04, missing codecs
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/libavif/+bug/1943658/+subscriptions
>
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.