Sick Gaming
Fedora - TransFLAC: Convert FLAC to lossy formats - Printable Version

+- Sick Gaming (https://www.sickgaming.net)
+-- Forum: Computers (https://www.sickgaming.net/forum-86.html)
+--- Forum: Linux, FreeBSD, and Unix types (https://www.sickgaming.net/forum-88.html)
+--- Thread: Fedora - TransFLAC: Convert FLAC to lossy formats (/thread-101437.html)



Fedora - TransFLAC: Convert FLAC to lossy formats - xSicKxBot - 09-08-2023

Fedora - TransFLAC: Convert FLAC to lossy formats

<div><h2 class="wp-block-heading"><strong>FLAC: The Lossless Audio Compression Format</strong></h2>
<p><a href="https://xiph.org/flac/" target="_blank" rel="noreferrer noopener">FLAC</a>, 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.</p>
<p> <span id="more-38681"></span> </p>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<h2 class="wp-block-heading">TransFLAC: Convert FLAC to lossy formats</h2>
<p><a href="https://bitbucket.org/gbcox/transflac/wiki/Home">TransFLAC</a> 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.</p>
<p>The following four parameters must be specified:</p>
<ol>
<li><strong>Input FLAC Directory</strong>: 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.</li>
<li><strong>Output Lossy Directory:</strong> 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.</li>
<li><strong>Lossy Codec:</strong> 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.<br />Valid values are: <a href="https://opus-codec.org/" target="_blank" rel="noreferrer noopener">OPUS</a> | <a href="https://xiph.org/vorbis/" target="_blank" rel="noreferrer noopener">OGG</a> | <a href="https://en.wikipedia.org/wiki/Fraunhofer_FDK_AAC" target="_blank" rel="noreferrer noopener">AAC</a> | <a href="https://lame.sourceforge.io/" target="_blank" rel="noreferrer noopener">MP3</a></li>
<li><strong>Codec Quality:</strong> The quality preset used to encode the lossy audio files. The case of the quality name does not matter. <strong>OPUS STANDARD</strong> quality provides full bandwidth, stereo music, good audio quality approaching transparency, and is the recommended setting.<br />Valid values are: LOW | MEDIUM | STANDARD | HIGH | PREMIUM</li>
</ol>
<p><strong>TransFLAC</strong> allows for <a href="https://bitbucket.org/gbcox/transflac/wiki/src-tf-conf-override.sh" target="_blank" rel="noreferrer noopener">customization</a> of certain items in the configuration.  The project <a href="https://bitbucket.org/gbcox/transflac/wiki/TransFLAC">wiki</a> provides additional information.</p>
<p><strong>Installation</strong> on <a href="https://fedoraproject.org/" target="_blank" rel="noreferrer noopener">Fedora Linux</a>:</p>
<pre class="wp-block-preformatted">$ sudo dnf install transflac</pre>
<figure class="wp-block-image size-large"><img decoding="async" width="528" src="https://fedoramagazine.org/wp-content/uploads/2023/08/transflac_demo-2.svg" alt="TransFLAC Convert FLAC to lossy formats" class="wp-image-38713" /></figure>
</div>


https://www.sickgaming.net/blog/2023/08/18/transflac-convert-flac-to-lossy-formats/