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

open
nobody
5
2013-04-30
2012-01-03
Fabian Greffrath
No

c.f. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652615

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.

Discussion

  • 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
    2013-04-30

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