Flac

From Schmid.wiki
(Redirected from FLAC)
Jump to: navigation, search

Contents

FLAC - Free Lossless Audio Codec

Ripping With Linux

Using rip

  • it is easy to use
  • it uses cdparanoia (which is nice) for the ripping
  • it fetches name data from CDDB
  • it is command-line based

Installation

       # emerge flac
       # emerge rip

Usage

       # rip -SFvf "%N-%S"
-S              : an alias for:
                        close tray before ripping
                        use CDDB to rename files
                        moves output audio files to $PWD/ArtistName/AlbumTitle/
                        use gogo encoding (overridden by -F)
                        create a playlist in current directory in a common format,
                        eject disk after ripping
-F              : encode to FLAC
-v              : verbose output (for checking for possible errors during ripping)
-f "%N-%S"      : name format: <track number>-<song name>

Ripping Manually

Encoding to FLAC:

$ mkdir -p [artist]/[album] && cd [artist]/[album]
$ cdparanoia -B 1-  <- all tracks
              |____________________ batch mode, creates a wav file for each track
$ for f in `ls *.wav`;do flac -8 $f;done

Or the one-liner version:

fixme: not done yet
$ cdparanoia 1- - | flac 

Ripping With Windows

Installation

  • download and install flac.
  • download and install CDEx
  • CDEx might complain about missing wnaspi32.dll in C:\Windows\System32. It can be downloaded here.

CDEx Setup

General Options

Options -> Settings (F4) :
       Remote CDDB : Your E-mail address : a random fake address

Enable FLAC Encoding

Options -> Settings (F4) :
       Encoder   :
  1. Thread Priority: Lowest (always low priority for hardcore computation, it leaves your computer usable while the computations are performed).
  2. Encoder: "External Encoder"
  3. Point the Encoder Path to flac.exe ("C:\Program Files\FLAC\flac.exe")
  4. Parameter String: -8 -o %2 %1
  5. Bitrate is irrelevant
  6. File Extension is "flac"
  7. Don't check "On-the-fly..." - I had problems with track length

Parameter String

-8: Compression level - higher numbers mean more CPU usage but smaller files, lower ones mean less
CPU and larger files. Can be 0-8
-o: Output file name. This is how CDex "tells" FLAC to follow the Filename Format from the Filename
tab.

References

Personal tools