g-nie / pynormalize

Audio normalization for Python
MIT License
1 stars 0 forks source link

Output FLAC files have MD5 signature mismatch #4

Open milnak opened 1 year ago

milnak commented 1 year ago

maybe due to adding metadata after conversion?

$ flac -t '.\36 Things Ain''t What They Used To Be [7ts2LXcMzG0].flac'

flac 1.4.2
Copyright (C) 2000-2009  Josh Coalson, 2011-2022  Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

36 Things Ain't What They Used To Be [7ts2LXcMzG0].flac: ok

$ cd NORMALIZED

$ flac -t '.\36 Things Ain''t What They Used To Be [7ts2LXcMzG0].flac'

flac 1.4.2
Copyright (C) 2000-2009  Josh Coalson, 2011-2022  Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

36 Things Ain't What They Used To Be [7ts2LXcMzG0].flac: ERROR, MD5 signature mismatch
milnak commented 1 year ago

Looks like metadata isn't included in MD5 signature, so it's gotta be something else.

$ metaflac --list '.\36 Things Ain''t What They Used To Be [7ts2LXcMzG0].flac'
METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 34
  minimum blocksize: 4608 samples
  maximum blocksize: 4608 samples
  minimum framesize: 8920 bytes
  maximum framesize: 24549 bytes
  sample_rate: 48000 Hz
  channels: 2
  bits-per-sample: 24
  total samples: 20286720
  MD5 signature: 5d8e6ca49a849f8487a24253edff2ed3
METADATA block #1
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 46
  vendor string: Lavf59.27.100
  comments: 1
    comment[0]: encoder=Lavf59.27.100
METADATA block #2
  type: 1 (PADDING)
  is last: true
  length: 8192