← 返回命令列表

Linux command

reflac 命令

文本

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

常用示例

Re-encode FLAC files

reflac [path/to/music]

Maximum compression

reflac -8 [path/to/music]

Verify after encoding

reflac --verify [path/to/music]

Preserve file times

reflac --preserve-modtime [path/to/music]

Dry run

reflac --dry-run [path/to/music]

Recursive processing

reflac -r [path/to/directory]

说明

reflac is a batch tool for re-encoding FLAC audio files with updated compression settings. It recursively processes directories of FLAC files, applying the specified compression level while preserving all metadata tags, ensuring no audio data is lost during the process. The tool supports parallel processing via the -j option, significantly speeding up operations on large music libraries. Compression levels range from -0 (fastest) to -8 (smallest file size), matching the standard FLAC encoder options. The --verify flag enables integrity checking by decoding each re-encoded file and comparing it against the original audio data. This is particularly useful when upgrading a FLAC collection encoded with older or suboptimal compression settings to take advantage of improved encoding in newer FLAC versions, reducing storage requirements without any quality loss.

参数

-0 to -8
Compression level.
--verify
Verify after encode.
--preserve-modtime
Keep file times.
--dry-run
Show what would happen.
-r, --recursive
Process subdirectories.
-j _N_
Parallel jobs.

FAQ

What is the reflac command used for?

reflac is a batch tool for re-encoding FLAC audio files with updated compression settings. It recursively processes directories of FLAC files, applying the specified compression level while preserving all metadata tags, ensuring no audio data is lost during the process. The tool supports parallel processing via the -j option, significantly speeding up operations on large music libraries. Compression levels range from -0 (fastest) to -8 (smallest file size), matching the standard FLAC encoder options. The --verify flag enables integrity checking by decoding each re-encoded file and comparing it against the original audio data. This is particularly useful when upgrading a FLAC collection encoded with older or suboptimal compression settings to take advantage of improved encoding in newer FLAC versions, reducing storage requirements without any quality loss.

How do I run a basic reflac example?

Run `reflac [path/to/music]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -0 to -8 do in reflac?

Compression level.