Converting FLAC audio files: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
(Created page with "== Mac OS == [https://developers.google.com/tag-manager/devguide Recommended software]: === ffmpeg === This is a command line utility which relies on the `libfdk_aac` libra...")
(No difference)

Revision as of 16:46, 25 July 2020

Mac OS

Recommended software:

ffmpeg

This is a command line utility which relies on the libfdk_aac library, which is a separate install.

AAC encoding documentation

I was getting errors where the output AAC files would be 0 bytes after an error to the effect of Could not find tag for codec h264 in stream #0. Adding -c:v copy as a parameter to the ffmpeg command fixed this.

Constant bit rate AAC files seem to come out smaller in size than constant bit rate files.

Constant bit rate

With AAC, 128k is supposedly indistinguishable from CD quality.

$ ffmpeg -i input.flac -c:a libfdk_aac -b:a 128k output.m4a

Variable bit rate

A variable bit rate setting of 3 is supposedly indistinguishable from CD quality.

$ ffmpeg -i input.flac -c:a libfdk_aac -vbr 3 output.m4a

Batch conversion

Wrap the ffmpeg command in a loop:

$ for i in *.flac; do ffmpeg -i "$i" -c:a libfdk_aac  -vbr 3 -c:v copy "${i%.*}.m4a"; done

Audacity

  • File > Chains > Apply Chain
  • Select MP3 Conversion
  • Click Apply to Files... button
  • Navigate to directory containing FLAC files.
  • Select FLAC files to convert.
  • Conversion process will start automatically (default conversion rate is 320kps)
  • mp3 files are deposited in a directory in the source directory named cleaned

Other software options

  • XLD - (X Lossless Decoder) This gets mentioned and recommended a lot
  • xACT (does converting and splitting)
  • dBpoweramp
  • ffmpeg (command line)

Windows

  • AVS Audio Converter
  • Drag the .flac files into the files pane.
  • Settings
    • Codec: mp3
    • Channels: stereo
    • Bitrate: 192kps
    • Sample Rate: 44100 Hz
    • Sample Size: 16 bit