Menu

#374 WAV file length incorrect

1.3.0
closed-invalid
Erik
None
5
2015-10-03
2011-02-04
tlauck
No

A WAV file is created with SoundforgePro 10. Encoded to FLAC. Then the FLAC file is decoded. The resulting WAV file has the same audio samples but the file length and MD5 checksum differ. Note: if the second generation WAV file is reencoded to FLAC and then redecoded, the third generation WAV file will be identical to the second generation WAV file.

I have not investigated why the file lengths differ. While this may or may not affect sound quality it does tend to undermine faith in the FLAC process.

Discussion

  • tlauck

    tlauck - 2011-02-04

    Audio files for test example

     
  • Mikhail Kurgansky

    Use --keep-foreign-metada option

     
  • Erik

    Erik - 2015-10-03

    Just tested this with FLAC from git. Did

    $ flac --keep-foreign-metadata Sound1.wav -o a.flac
    $ flac -d a.flac -o a.wav
    $ md5sum a.wav Sound1.wav 
    ea6e0f5aead64d0f6bdfeb23bbb61547  a.wav
    ea6e0f5aead64d0f6bdfeb23bbb61547  Sound1.wav
    

    Using --keep-foreign-metadata the input and out files are identical.

    Closing this.

     
  • Erik

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

Log in to post a comment.