← 返回命令列表

Linux command

avifenc 命令

网络

需要网络或远程资源。

常用示例

Convert

avifenc [path/to/input.png] [path/to/output.avif]

Example

avifenc --speed [2] [path/to/input.png] [path/to/output.avif]

Example

avifenc --qcolor [60] [path/to/input.png] [path/to/output.avif]

说明

avifenc encodes images into the AV1 Image File Format (AVIF), a modern image format based on the AV1 video codec. AVIF provides excellent compression efficiency, often achieving smaller file sizes than JPEG and WebP at equivalent quality. The encoder supports input from PNG, JPEG, and Y4M formats and can produce both lossy and lossless AVIF images.

参数

-q, --qcolor _n_
Quality for color (0-100, where 100 is lossless; default 60)
--qalpha _n_
Quality for alpha channel (0-100, where 100 is lossless; default 100)
-s, --speed _n_
Encoding speed (0-10, default 6). Lower values produce better quality but take longer
-l, --lossless
Encode losslessly (sets quality to 100 for both color and alpha)
-d, --depth _bits_
Output bit depth (8, 10, or 12)
-j, --jobs _n_
Number of parallel encoding jobs, or `all` to use all available cores (default: all)
-o, --output _file_
Output filename (alternative to positional argument)
--min _n_, --max _n_
Deprecated: minimum/maximum quantizer (0-63, lower is better quality). Replaced by `--qcolor`

FAQ

What is the avifenc command used for?

avifenc encodes images into the AV1 Image File Format (AVIF), a modern image format based on the AV1 video codec. AVIF provides excellent compression efficiency, often achieving smaller file sizes than JPEG and WebP at equivalent quality. The encoder supports input from PNG, JPEG, and Y4M formats and can produce both lossy and lossless AVIF images.

How do I run a basic avifenc example?

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

What does -q, --qcolor _n_ do in avifenc?

Quality for color (0-100, where 100 is lossless; default 60)