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

1.3.0
closed-invalid
nobody
5
2015-03-12
2012-01-03
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

  • Martijn van Beurden

    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).

     
  • akryl9296

    akryl9296 - 2014-06-23

    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.

     
  • lvqcl

    lvqcl - 2015-03-09

    Now flac prints a message:

    ERROR: raw format options (--endian, --sign, --channels, --bps, and --sample-rate) are not allowed for non-raw input

    and refuses to encode.

     
  • Erik

    Erik - 2015-03-12
    • status: open --> closed-invalid
    • Group: --> 1.3.0
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks