translated

This commit is contained in:
geekpi 2023-08-22 08:59:44 +08:00
parent aaac24c17c
commit e286ccc82d
2 changed files with 79 additions and 75 deletions

View File

@ -1,75 +0,0 @@
[#]: subject: "TransFLAC: Convert FLAC to lossy formats"
[#]: via: "https://fedoramagazine.org/transflac-convert-flac-to-lossy-formats/"
[#]: author: "Gerald B. Cox https://fedoramagazine.org/author/gbcox/"
[#]: collector: "lujun9972"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
TransFLAC: Convert FLAC to lossy formats
======
![][1]
### **FLAC: The Lossless Audio Compression Format**
[FLAC][2], or Free Lossless Audio Codec, is a lossless audio compression format that preserves all the original audio data. This means that FLAC files can be decoded to an identical copy of the original audio file, without any loss in quality. However, lossless compression typically results in larger file sizes than lossy compression, which is why a method to convert FLAC to lossy formats is desirable. This is where TransFLAC can help.
FLAC is a popular format for archiving digital audio files, as well as for storing music collections on home computers. It is also becoming increasingly common for music streaming services to offer FLAC as an option for high-quality audio.
For portable devices, where storage space is limited, lossy audio formats such as MP3, AAC, and OGG Vorbis are often used. These formats can achieve much smaller file sizes than lossless formats, while still providing good sound quality.
In general, FLAC is a good choice for applications where lossless audio quality is important, such as archiving, mastering, and critical listening. Lossy formats are a good choice for applications where file size is more important, such as storing music on portable devices or streaming music over the internet.
### TransFLAC: Convert FLAC to lossy formats
[TransFLAC][3] is a command-line application that converts FLAC audio files to a lossy format at a specified quality level. It can keep both the FLAC and lossy libraries synchronized, either partially or fully. TransFLAC also synchronizes album art stored in the directory structure, such as cover, albumart, and folder files. You can run TransFLAC interactively in a terminal window, or you can schedule it to run automatically using applications such as cron or systemd.
The following four parameters must be specified:
1. **Input FLAC Directory** : The directory to recursively search for FLAC audio files. The case of the directory name matters. TransFLAC will convert all FLAC audio files in the directory tree to the specified lossy codec format. The program will resolve any symlinks encountered and display the physical path.
2. **Output Lossy Directory:** The directory to store the lossy audio files. The case of the directory name matters. The program will resolve any symlinks encountered and display the physical path.
3. **Lossy Codec:** The codec used to convert the FLAC audio files. The case of the codec name does not matter. OPUS generally provides the best sound quality for a given file size or bitrate, and is the recommended codec.
Valid values are: [OPUS][4] | [OGG][5] | [AAC][6] | [MP3][7]
4. **Codec Quality:** The quality preset used to encode the lossy audio files. The case of the quality name does not matter. **OPUS STANDARD** quality provides full bandwidth, stereo music, good audio quality approaching transparency, and is the recommended setting.
Valid values are: LOW | MEDIUM | STANDARD | HIGH | PREMIUM
**TransFLAC** allows for [customization][8] of certain items in the configuration. The project [wiki][9] provides additional information.
**Installation** on [Fedora Linux][10]:
```
$ sudo dnf install transflac
```
![][11]
--------------------------------------------------------------------------------
via: https://fedoramagazine.org/transflac-convert-flac-to-lossy-formats/
作者:[Gerald B. Cox][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://fedoramagazine.org/author/gbcox/
[b]: https://github.com/lujun9972
[1]: https://fedoramagazine.org/wp-content/uploads/2023/08/transflac-816x345.jpg
[2]: https://xiph.org/flac/
[3]: https://bitbucket.org/gbcox/transflac/wiki/Home
[4]: https://opus-codec.org/
[5]: https://xiph.org/vorbis/
[6]: https://en.wikipedia.org/wiki/Fraunhofer_FDK_AAC
[7]: https://lame.sourceforge.io/
[8]: https://bitbucket.org/gbcox/transflac/wiki/src-tf-conf-override.sh
[9]: https://bitbucket.org/gbcox/transflac/wiki/TransFLAC
[10]: https://fedoraproject.org/
[11]: https://fedoramagazine.org/wp-content/uploads/2023/08/transflac_demo-2.svg

View File

@ -0,0 +1,79 @@
[#]: subject: "TransFLAC: Convert FLAC to lossy formats"
[#]: via: "https://fedoramagazine.org/transflac-convert-flac-to-lossy-formats/"
[#]: author: "Gerald B. Cox https://fedoramagazine.org/author/gbcox/"
[#]: collector: "lujun9972"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
TransFLAC将 FLAC 转换为有损格式
======
![][1]
### **FLAC无损音频压缩格式**
[FLAC][2],即自由无损音频编解码器,是一种无损音频压缩格式,可保留所有原始音频数据。这意味着 FLAC 文件可以解码成与原始音频文件完全相同的副本,而不会有任何质量上的损失。不过,无损压缩通常会比有损压缩的文件大小更大,这就是为什么需要一种将 FLAC 转为有损格式的方法。这就是 TransFLAC 可以提供帮助的地方。
FLAC 是一种流行的数字音频文件存档格式,也可用于在家用电脑上存储音乐收藏。音乐流媒体服务也越来越普遍地提供 FLAC 作为高品质音频的一种选择。
对于存储空间有限的便携设备,通常使用 MP3、AAC 和 OGG Vorbis 等有损音频格式。这些格式的文件大小比无损格式小得多,但音质仍然很好。
一般来说FLAC 是对无损音频质量要求较高的应用(如存档、母带制作和认真聆听)的不错选择。对于文件大小更为重要的应用,如在便携设备上存储音乐或通过互联网串流音乐,有损格式是不错的选择。
### TransFLAC将 FLAC 转换为有损格式
[TransFLAC][3] 是一款命令行应用,可将 FLAC 音频文件转换为指定质量级别的有损格式。它能使 FLAC 和有损格式库保持部分或完全同步。TransFLAC 还能同步目录结构中存储的专辑封面、专辑封底和文件夹文件。你可以在终端窗口中交互式运行 TransFLAC也可以使用 cron 或 systemd 等应用安排其自动运行。
必须指定以下四个参数:
1. **输入 FLAC 目录**:要递归搜索 FLAC 音频文件的目录。目录名的大小写很重要。TransFLAC 会将目录树中的所有 FLAC 音频文件转换为指定的有损编解码格式。程序将解决遇到的任何符号链接,并显示物理路径。
2. **输出有损目录**:有损音频文件的存储目录。目录名的大小写很重要。程序将解析遇到的任何符号链接并显示物理路径。
3. **有损编解码器**:用于转换 FLAC 音频文件的编解码器。编解码器名称的大小写并不重要。对于给定的文件大小或比特率OPUS 通常能提供最佳音质,是推荐的编解码器。
有效值为 [opus][4] | [ogg][5] | [aac][6] | [mp3][7]
4. **编解码器质量** 用于编码有损音频文件的质量预设。质量名称的大小写并不重要。**OPUS STANDARD** 质量提供全带宽、立体声音乐、良好的音频质量和透明度,是推荐的设置。
有效值为 低 | 中 | 标准 | 高 | 优质
**TransFLAC** 允许对配置中的某些项目进行[自定义][8]。项目 [wiki][9] 提供了更多信息。
在 [Fedora Linux][10] 上**安装**
```
$ sudo dnf install transflac
```
![][11]
--------------------------------------------------------------------------------
via: https://fedoramagazine.org/transflac-convert-flac-to-lossy-formats/
作者:[Gerald B. Cox][a]
选题:[lujun9972][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://fedoramagazine.org/author/gbcox/
[b]: https://github.com/lujun9972
[1]: https://fedoramagazine.org/wp-content/uploads/2023/08/transflac-816x345.jpg
[2]: https://xiph.org/flac/
[3]: https://bitbucket.org/gbcox/transflac/wiki/Home
[4]: https://opus-codec.org/
[5]: https://xiph.org/vorbis/
[6]: https://en.wikipedia.org/wiki/Fraunhofer_FDK_AAC
[7]: https://lame.sourceforge.io/
[8]: https://bitbucket.org/gbcox/transflac/wiki/src-tf-conf-override.sh
[9]: https://bitbucket.org/gbcox/transflac/wiki/TransFLAC
[10]: https://fedoraproject.org/
[11]: https://fedoramagazine.org/wp-content/uploads/2023/08/transflac_demo-2.svg