2022 Developer Survey is open! Take survey.

Hot answers tagged

38 votes
Accepted

Lossless audio conversion from FLAC to ALAC using ffmpeg

Ok, I was probably a little quick to ask here but for the sake of future reference here is the answer: One should pass the flag -acodec alac to ffmpeg for a lossless conversion between FLAC and ALAC: ...
user avatar
17 votes

Convert FLAC files to OGG Vorbis

You can use a graphical converter like soundconverter. However, since you need to add it to the ogg collection, I believe you might be looking for some command line solutions. You can probably try, ...
user avatar
  • 36.7k
16 votes
Accepted

convert WAV music library to FLAC on command line and achieve best quality

Both WAV and FLAC formats are lossless, which means they do not lose any quality from an original music CD. WAV however is uncompressed, while FLAC uses a lossless compression mechanism (pretty much ...
user avatar
  • 8,798
16 votes

Why can I not split a .ape file?

shntool on Ubuntu 14.04 sudo add-apt-repository -y ppa:flacon sudo apt-get update sudo apt-get install -y flacon shntool split -f *.cue -o flac -t '%n - %p - %t' *.ape flacon is a GUI for shntool, ...
user avatar
14 votes

How to convert WavPack to FLAC?

The ffmpeg error you're getting makes me think you might just have a corrupted file. You could try sox audiofile.wv audiofile.flac. Alternatively, you could use the wavpack tools: wvunpack audiofile....
user avatar
  • 102k
10 votes

How to display technical codec info for a FLAC file?

metaflac --list will display that information (and more) for all blocks in a FLAC file. You can additionally use --block-number=X, where X is the block you want to have information about, to only get ...
user avatar
  • 5,968
9 votes

How to display technical codec info for a FLAC file?

Easiest is to use the Unix command line utility file. For example: file "example.flac" example.flac: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 2474304 samples
user avatar
8 votes

convert wav to flac with tags

Install the flac command from the package of the same name and run #!/bin/bash find . -name '*.wav' | while read file # eg stuff/artist/album/title.wav do file="$PWD/${file#./}" # make absolute ...
user avatar
  • 45k
7 votes

How to display technical codec info for a FLAC file?

You can use the ffprobe CLI tool that's included with ffmpeg: $ ffprobe -hide_banner 10\ Ivory\ Tower.flac Input #0, flac, from '10 Ivory Tower.flac': Metadata: ARTIST : Van Morrison ...
user avatar
  • 345k
6 votes

How do I convert FLAC files to AAC (preferrably VBR 320k+)?

I suggest using FFmpeg to convert from FLAC to AAC. FFmpeg is easily installed on a Mac OS X machine with brew: brew install ffmpeg Then run the following command to convert all FLAC files in the ...
user avatar
5 votes

Why two .flac files which, allegedly, contain the same data, vary so much in size?

Run MediaInfo on the two files. It will tell you why they differ. FLAC is always lossless as compared to the input file, but that doesn't mean there aren't good reasons why two FLAC files of the same ...
user avatar
  • 68.4k
4 votes
Accepted

Space-efficient Linux filesystem for music disk?

Can I format an SSD as one of the read-only CDFS-style formats? Yes. You can use mkisofs to write directly to your SSD, no existing filesystem or partition table necessary. mkisofs -o /dev/sdg /...
user avatar
  • 10.4k
4 votes

How to convert all .wav files in subdirectories to .flac?

If you want to replace all wav reclusively with their flac counterparts, the easiest way I found is using flac binaries: find . -name '*.wav' -exec flac --best {} --delete-input-file \;
user avatar
3 votes

How to convert WavPack to FLAC?

If you don't mind using command lines, you could use ffmpeg. If you simply run: ffmpeg -i file.wv -acodec flac file.flac (Assuming of course the file you want to convert is called "file.wv"), will ...
user avatar
3 votes

How to reduce size of a FLAC file without damaging its quality?

You can encode flac to flac. Not sure how much the compression level will help, though. I tested with a voice message recorded by my IP phone. for level in {0..8} do flac --verify -$level -o ...
user avatar
  • 41.8k
3 votes
Accepted

How to display technical codec info for a FLAC file?

From the man page, # -a, --analyze # Analyze a FLAC encoded file (same as -d except an analysis file is written) flac -a myfile.flac EDIT It might be easier to use soxi from the Sound eXchange ...
user avatar
3 votes
Accepted

Converting files to OGG with FFMPEG produces an extremely large file

As you can see in the output, you encoded your audio into Format : FLAC. This is a format with lossless compression. ogg is just a container, and can hold different formats. To keep a similar size and ...
user avatar
  • 45k
3 votes
Accepted

How to convert all .wav files in subdirectories to .flac?

find + ffmpeg solution: find ~/Music -type f -iname "*.wav" -exec sh -c \ 'bn=${1##*/}; bn=${bn%.*}; ffmpeg -loglevel 16 -i "$1" "${0}${bn}.flac"' ~/Music_Flac/ {} \; $0 - passed into shell command ...
user avatar
3 votes

What is the best way of getting rid of a symbol (question mark) in hundreds of FLAC files

To strip any character likely to be unloved by Windows from the filenames of FLAC files in the current directory: for f in *.flac; do mv "$f" "$(echo -n "$f" | tr -cd ' -~' | tr '<>:"/\\|?*' '...
user avatar
  • 9,755
3 votes
Accepted

Batch convert (decode) audio into multiple formats with ffmpeg

ffmpeg accepts multiple output formats. Set the input file.format with -i followed by the output file.format: ffmpeg -i input.wav output.ogg output.mp3 output.flac Batch conversion: As a simple one ...
user avatar
  • 4,760
3 votes

Batch convert (decode) audio into multiple formats with ffmpeg

Using GNU Parallel you can run: parallel ffmpeg -i {1} {1.}.{2} ::: *.wav ::: ogg mp3 flac {1} = replacement string for first input source {1.} = replacement string for first input source with ...
user avatar
  • 29.7k
3 votes

Convert WAV to FLAC while preserving tags

The standard flac command will perform the re-encoding step: flac some.wav -o some.flac For tagging, Kid3 provides a command-line interface, and recognizes tags in WAV files. kid3-cli has its own ...
user avatar
  • 7,101
2 votes

How do I convert FLAC files to AAC (preferrably VBR 320k+)?

This is my script wrapping ffmpeg for converting any supported audio format to AAC (using libfdk-aac encoder which is the recommended aac encoder by ffmpeg wiki). #!/usr/bin/env python2.7 from ...
user avatar
  • 267
2 votes

How do I split a flac with a cue?

There is a project that works for several input files: split2flac From the project description: split2flac splits one big APE/FLAC/TTA/WV/WAV audio image (or a collection of such files, ...
user avatar
2 votes

Why can I not split a .ape file?

From the error message it looks like you don't have Monkey's Audio Codec installed. It is not mentioned as a dependency in the HOWTO you refer to but for decoding .ape that is necessary. You can ...
user avatar
  • 75.1k
2 votes
Accepted

flac: Output to stdout (-c) breaks, same command written to file (-o) works

It can't calculate the final length through pipe, so it can't write it to the header of flac. It doesn't break the file, it saves as a livestream, which you shouldn't know when will be the end, and ...
user avatar
  • 13.7k
2 votes

Lossless audio conversion from FLAC to ALAC using ffmpeg

And for converting a whole directory... Usage pushd './Music/Some Album [flac]' bash flac-to-alac.sh flac-to-alac.sh: #!/usr/bin/env bash my_bin="$(dirname $0)/flac-to-alac-ffmpeg.sh" find ...
user avatar
  • 415
2 votes

What is the best way of getting rid of a symbol (question mark) in hundreds of FLAC files

The answer by AlexP is a great one, but if you're willing to install some extra software, there's an even easier option. Look into detox. It's a dead-simple program packaged by most distributions ...
user avatar
2 votes

Is there a way to convert flac files to ape?

I never heard of this file format before, so this is all Google / Wikipedia: Monkey's Audio on Wikipedia The multi-platform ffmpeg supports decoding Monkey's Audio files since version 0.5. A ...
user avatar
  • 41.8k

Only top scored, non community-wiki answers of a minimum length are eligible