← 返回命令列表

Linux command

avifdec 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Decode

avifdec [input.avif] [output.png]

Example

avifdec -q [85] [input.avif] [output.jpg]

Show

avifdec -i [input.avif]

Example

avifdec -d 16 [input.avif] [output.png]

Example

avifdec -j [4] [input.avif] [output.png]

说明

avifdec decodes AVIF (AV1 Image File Format) images to standard formats like PNG, JPEG, or Y4M. AVIF is a modern image format offering superior compression and quality compared to JPEG. The tool is part of libavif and enables viewing and converting AVIF images to more widely supported formats.

参数

-c _codec_
AV1 codec to use (aom, dav1d, libgav1). Default: auto-selected from available codecs
-d _depth_
Output bit depth, 8 or 16 (PNG only; JPEG is always 8bpc)
-q _quality_
Output JPEG quality, 0-100 (default: 90)
-j _jobs_
Number of worker threads, or 'all' for all cores (default: all)
-i, --info
Display image information instead of saving to disk
--png-compress _level_
PNG compression level, 0-9 (0=none, 9=max)
--chroma-upsampling _mode_
Chroma upsampling for 420/422: automatic, fastest, best, nearest, bilinear (default: automatic)
--ignore-icc
Ignore embedded ICC color profile
--index _n_
Decode specific frame index, or 'all' for every frame (default: 0)
--no-strict
Disable strict validation checks
-r
Output raw RGB values instead of premultiplying by alpha

FAQ

What is the avifdec command used for?

avifdec decodes AVIF (AV1 Image File Format) images to standard formats like PNG, JPEG, or Y4M. AVIF is a modern image format offering superior compression and quality compared to JPEG. The tool is part of libavif and enables viewing and converting AVIF images to more widely supported formats.

How do I run a basic avifdec example?

Run `avifdec [input.avif] [output.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _codec_ do in avifdec?

AV1 codec to use (aom, dav1d, libgav1). Default: auto-selected from available codecs