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.
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
It should probably give a warning though that the options contradict the header (and that the header takes precedence).
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.
Now flac prints a message:
and refuses to encode.