VideoHelp Forum
+ Reply to Thread
Results 1 to 13 of 13
Thread
  1. Out of my paranoid curiosity, I decided to test whether FLAC audio is truly lossless or not. Using Adobe Audition, I tested it as follows:

    - Open WAV audio file
    - Save as FLAC (using same frequency and sampling settings as the original WAV)
    - Close & reopen the new FLAC
    - Save as a new WAV file (using same frequency/sampling settings)

    Then, I run a file comparison on the 2 WAV files, which produces a mismatch.

    I am assuming that this has something to do with some metadata in the WAV files which is different each time even if the audio is the same, but I want to be sure. Anyone have any ideas?
    Quote Quote  
  2. Difference could be due to dithering settings
    Quote Quote  
  3. Originally Posted by poisondeathray View Post
    Difference could be due to dithering settings
    Dithering was disabled.
    Quote Quote  
  4. Member
    Join Date
    Mar 2011
    Location
    Nova Scotia, Canada
    Search Comp PM
    I think it may be the metadata, the note outlined in blue at the top of this mentions preserving it: https://helpx.adobe.com/ca/audition/using/viewing-editing-xmp-metadata.html
    Quote Quote  
  5. Yes, it's likely that there are some changes in metadata. Or maybe differences in layout, padding or something like that.

    You can open your input/output files with this tool: http://media-analyzer.pro and check if your 'data' chunks have the same offset, at least. You may spot some differences in 'fmt ' chunk, as well.

    Perhaps the best way to satisfy your paranoid curiosity is to compare not WAV files, but RAW files (similar to WAV, but without additional headers)
    Quote Quote  
  6. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    Or you can just load your original on 1 track, your flac copy on a 2nd track, invert the (phase/polarity of the) copy, and then export the mix of the 2 (which should be digital silence if an exact match using such a "difference" mix).

    This way avoids all the file based, packet order, metadata issues and just tests raw payload.


    Scott
    Last edited by Cornucopia; 27th Dec 2023 at 20:59.
    Quote Quote  
  7. Originally Posted by Cornucopia View Post
    Or you can just load your original on 1 track, your flac copy on a 2nd track, invert the (phase/polarity of the) copy, and then export the mix of the 2 (which should be digital silence if an exact match using such a "difference" mix).

    This way avoids all the file based, packet order, metadata issues and just tests raw payload.


    Scott
    This is brilliant!
    Quote Quote  
  8. foobar2000 calculates an MD5 when converting to a lossless format. Either that or the codecs do it themselves. The MD5 isn't saved for a wave file, but you can convert from wave to flac to wave to flac and the MD5 shouldn't change. The MD5 is calculated on the uncompressed audio, so you'd need to convert to flac, back to wave and then back to flac to know the audio hasn't changed due to the flac compression.

    Image
    [Attachment 75826 - Click to enlarge]


    Image
    [Attachment 75827 - Click to enlarge]
    Last edited by hello_hello; 28th Dec 2023 at 14:54.
    Quote Quote  
  9. Member
    Join Date
    Mar 2011
    Location
    Nova Scotia, Canada
    Search Comp PM
    Originally Posted by Cornucopia View Post
    Or you can just load your original on 1 track, your flac copy on a 2nd track, invert the (phase/polarity of the) copy, and then export the mix of the 2 (which should be digital silence if an exact match using such a "difference" mix).

    This way avoids all the file based, packet order, metadata issues and just tests raw payload.


    Scott
    That's basically a classic analog audio test, digitized. I like it.
    Quote Quote  
  10. You can export only PCM data (so remove metadata uncertainty) and perform ANY sane comparison (assuming that PCM data are not misaligned) even simple "DOS" FC (filecompare 'fc /b') should be fine. Hypothetical misalignment may be related to codec internally aligning data to packet size (usually data are aligned with silence).
    Quote Quote  
  11. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    I've been backing up every CD I've owned throughout the years into FLAC, Don't tell me guys all that effort is gone to waste, Lol. I highly doubt there will be any extra or missing bits from the audio data itself.
    Quote Quote  
  12. Originally Posted by pandy View Post
    You can export only PCM data (so remove metadata uncertainty) and perform ANY sane comparison (assuming that PCM data are not misaligned) even simple "DOS" FC (filecompare 'fc /b') should be fine. Hypothetical misalignment may be related to codec internally aligning data to packet size (usually data are aligned with silence).
    How to export as raw PCM?
    Quote Quote  
  13. Originally Posted by gs684 View Post
    How to export as raw PCM?
    Simplest (from my perspective) is to use SoX to perform WAV to RAW (PCM) - however you need to manually choose proper RAW (PCM) format and of course prevent dither to be used.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!