Scroll to navigation

AVIFDEC(1) General Commands Manual AVIFDEC(1)

NAME

avifdec - decompress an AVIF file to an image file

SYNOPSIS

avifdec [options] input.avif output.[jpg|jpeg|png|y4m]

avifdec --info input.avif

DESCRIPTION

avifdec decompresses an AVIF file to an image file. Output format can be either JPEG, PNG or YUV4MPEG2 (Y4M).

OPTIONS

Show syntax help.
Show the version number.
Number of jobs (worker threads), or `all' to potentially use as many cores as possible. (Default: all).
Codec to use.

Possible values depend on the codecs enabled at build time (see --help or --version for the available codecs). Default is auto-selected from the available codecs.

aom
dav1d
libgav1
Output depth, either 8 or 16. (PNG only; For y4m, depth is retained, and JPEG is always 8bpc).
Output quality in 0..100. (JPEG only, default: 90).
PNG compression level in 0..9 (PNG only; 0=none, 9=max). Defaults to libpng’s builtin default.
Chroma upsampling (for 420/422). One of `automatic' (default), `fastest', `best', `nearest', or `bilinear'.
Output raw RGB values instead of multiplying by alpha when saving to opaque formats (JPEG only; not applicable to y4m).
When decoding an image sequence or progressive image, specify which frame index to decode (Default: 0).
Enable progressive AVIF processing. If a progressive image is encountered and --progressive is passed, avifdec will use --index to choose which layer to decode (in progressive order).
Disable strict decoding, which disables strict validation checks and errors.
Decode all frames and display all image information instead of saving to disk.
Provide an ICC profile payload (implies --ignore-icc).
If the input file contains an embedded ICC profile, ignore it (no-op if absent).
Maximum image size (in total pixels) that should be tolerated. (Default: 268435456).
Maximum image dimension (width or height) that should be tolerated. Set to 0 to ignore. (Default: 32768).
--
Signal the end of options. Everything after this is interpreted as file names.

EXAMPLES

$ avifdec input.avif output.png

REPORTING BUGS

https://github.com/AOMediaCodec/libavif/issues

SEE ALSO

avifenc(1)

2022-04-30 libavif 1.2.0