[Flac] How can I recreate STREAMINFO metadata?

Alex Jones alex at weej.com
Thu Jun 8 16:31:30 PDT 2006


I have some FLACs that have STREAMINFO that looks like this:

METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 34
  minumum blocksize: 4608 samples
  maximum blocksize: 4608 samples
  minimum framesize: 0 bytes
  maximum framesize: 0 bytes
  sample_rate: 44100 Hz
  channels: 2
  bits-per-sample: 16
  total samples: 0
  MD5 signature: 00000000000000000000000000000000

(This came about because the GStreamer pipeline I used to make these
FLACs choked on a premature EOS from a WAV source.)

How can I rebuild the STREAMINFO? There is no option for anything like
this, as far as I can see, in "metaflac".

Many thanks for your help!
-- 
Alex Jones <alex at weej.com>



More information about the Flac mailing list