Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg to convert from flac to wav

I need to convert a flac file to a wav file without changing sample rate and bit depth. As far as I know changing these properties may distort the audio, so how do i specify them not to be changed?

Also, is there any way to prevent metadata to be written to the output file?

like image 463
user3580089 Avatar asked Apr 28 '14 06:04

user3580089


People also ask

Does FFmpeg support FLAC?

This is can be quickly achieved in a terminal with FFmpeg. VPS / Dedicated server administrators, and Linux desktop users can install FFmpeg for in-depth recording, streaming, and conversion functions for Flac, Mp3, Ogg, Raw, Wav, Mkv, Mov, Mp4, Webm, and more.

Can FFmpeg convert audio?

FFmpeg is a great tool for quickly changing an AV file's format or quality, extracting audio, creating GIFs, and more.


1 Answers

As rogerdpack commented, the command line:

ffmpeg -i inputfile.flac output.wav 

should do exactly what you want.

Addressing your concerns about keeping the resulting audio intact, FLAC is a lossless format and decoding it to raw PCM stored in a WAV file will keep perfect fidelity. The only thing you might have to be concerned about is if your FLAC file is a higher than normal bit depth like 24, 32 or 64 bits per sample, or has a crazy multichannel configuration. I haven't kept up on whether FFmpeg supports all those combinations. However, most FLAC files are just 16-bit, 44.1 kHz audio files, so this shouldn't be an issue.

About scrubbing metadata, check this Superuser question.

like image 166
Multimedia Mike Avatar answered Sep 21 '22 08:09

Multimedia Mike