Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.


#389 Does not change bps and sample-rate for 24bps/96kHz WAVfile

Fabian Greffrath


A user tries to compress a WAV file having 24 bit and 96 kHz to FLAC format as follows:

flac --bps=16 --sample-rate=44100 -o 1.flac 1.wav

However, the resulting FLAC file still has the orignal bit and sample rate, not the ones given on the command line.


  • Yes, this is intended behaviour. FLAC will not convert the files to 44.1kHz and 16 bits for you, as FLAC is lossless. If this behaviour would be implemented, this would not be lossless. These command line options are only to import RAW-files, but are overriden in case a WAV file is supplied

    If you want the file to be converted, use something like SoX

    Last edit: Martijn van Beurden 2013-01-02
  • Ulrich Klauer
    Ulrich Klauer

    It should probably give a warning though that the options contradict the header (and that the header takes precedence).

  • akryl9296

    Yeah, it should. I think it even should respect what user wants to do with the file - maybe format is lossless, but tool to encode it should be able to execute simple commands specified by user, regardless if the end result loses data or not (24 bps flac files aren't read by most physical mp3/flac players out there, so lowering bps is desired here). Wasted a good hour with crap software it seems.