knowledge/technology/files/media/image/AVIF.md
2024-03-06 14:42:49 +01:00

1.5 KiB

obj mime extension website
format image/avif avif https://aomediacodec.github.io/av1-avif

AVIF

AV1 Image File Format (AVIF) is an open, royalty-free image file format specification for storing images or image sequences compressed with AV1 in the HEIF container format. It competes with HEIC, which uses the same container format built upon ISOBMFF, but HEVC for compression. Version 1.0.0 of the AVIF specification was finalized in February 2019.

Name Value
Filename extension .avif
MIME image/avif

Features

The AV1 Image File Format supports:

  • Multiple color spaces, including:
    • HDR (with PQ or HLG transfer functions and BT.2020 color primaries, as part of BT.2100)
    • SDR (with sRGB/ BT.709 / BT.601 or with wide color gamut)
    • Color space signaling via CICP (ITU-T H.273 and ISO/IEC 23091-2) or ICC profiles
  • Lossless compression and lossy compression
  • 8-, 10-, and 12-bit color depths
  • Monochrome (alpha/depth) or multi-components
  • 4:2:0, 4:2:2, 4:4:4 chroma subsampling and RGB
  • Film grain synthesis
  • Image sequences/animation

Usage

libavif provides functions for working with AVIF images.

Convert from AVIF:

avifdec [INPUT] [OUTPUT]

Get information

avifdec --info [INPUT]

Convert to AVIF

avifenc [OPTIONS] [INPUT] [OUTPUT]

Flags:

-j, --jobs <NUM> Number of threads
-l, --lossless Lossless encoding