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?
+ Reply to Thread
Results 1 to 13 of 13
-
-
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
-
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) -
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.
ScottLast edited by Cornucopia; 27th Dec 2023 at 20:59.
-
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.
[Attachment 75826 - Click to enlarge]
[Attachment 75827 - Click to enlarge]Last edited by hello_hello; 28th Dec 2023 at 14:54.
Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview) -
-
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).
-
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.
Similar Threads
-
lossless 4.2.0 video to lossless 4.2.2 - any issues?
By spicediver10191 in forum Video ConversionReplies: 21Last Post: 10th Jun 2023, 01:00 -
How to convert wav to flac in FLAC Encoder?
By dzimi in forum AudioReplies: 5Last Post: 12th Sep 2021, 01:08 -
lossless FLAC conversion
By jack lantern in forum AudioReplies: 3Last Post: 14th Nov 2020, 14:18 -
Quick sanity check: Lossless to lossless encoding HuffYUV to UTVideo
By nicholasserra in forum Video ConversionReplies: 2Last Post: 20th Aug 2020, 11:41 -
FFMPEG - hevc_nvenc & h264_nvenc lossless presets not truly lossless?
By AnomalyDetected in forum Video ConversionReplies: 5Last Post: 27th Oct 2019, 02:24