title
Products            Buy            Support Forum            Professional            About            Codec Central
 

Coverter fidelity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • haihayho
    • Apr 2022
    • 5

    Coverter fidelity

    So according to this reply, and theoretically, same "source" files should be the same and have identical hash. I get that and personally, I agree that uncompressed data should always be the same.

    However, when I convert a blank WAV (no metadata) to WAV and uncompressed FLAC, all 3 of them show different hash. Does it mean they are different? If anyone can explain this to me I'm much appreciated.
  • Spoon
    Administrator
    • Apr 2002
    • 43896

    #2
    Re: Coverter fidelity

    If using windows install the utility codec 'Calculate Audio CRC':



    Then convert all 3 files to this codec and a notepad will appear showing the audio CRC for the decoded data, if it matches all 3, then they are identical.
    Spoon
    www.dbpoweramp.com

    Comment

    • garym
      dBpoweramp Guru
      • Nov 2007
      • 5743

      #3
      Re: Coverter fidelity

      As @spoon notes it is important to compare *audio* CRCs. You are likely comparing total file CRCs, and these can differ because of the metadata (non-audio) information in each file.

      Comment

      • haihayho
        • Apr 2022
        • 5

        #4
        Re: Coverter fidelity

        Thank you, I was looking for something like this. The results are the same.

        However, it's pretty strange cause what might cause my problem in the first place is metadata, but I deleted all of them, so all files are "blank".
        Last edited by haihayho; 04-26-2022, 02:14 AM.

        Comment

        • Spoon
          Administrator
          • Apr 2002
          • 43896

          #5
          Re: Coverter fidelity

          There are headers also in the files.
          Spoon
          www.dbpoweramp.com

          Comment

          • simbun
            dBpoweramp Guru
            • Apr 2021
            • 450

            #6
            Re: Coverter fidelity

            Expecting the hash of the WAV and FLAC to match is like expecting the hash of a word document and a LibreOffice document to match; even though they may have the same user content they're two completely different formats.

            I don't know enough about the wav format to know why your original wav and the converted wav didn't match, but if you used the same tool and options they should. I converted from a single wav multiple times to wav and flac formats, and all the wav's matched as did all the flac's.

            Flac stores the hash of the decoded audio content internally, so even if you'd made lots of tag changes, or even changed the flac compression level itself, it's trivial to compare/validate that the audio is still the same (by storing the original value somewhere).

            To display the MD5 of the decoded audio data:
            Code:
            metaflac --show-md5sum <filename>
            To verify that the actual audio data still matches the stored hash (to highlight data corruption):
            Code:
            flac -t <filename>

            Comment

            Working...

            ]]>