[Flac] How can I recreate STREAMINFO metadata?

Alex Jones alex at weej.com
Thu Jun 8 17:37:12 PDT 2006


I have settled for simply decoding then re-encoding the FLAC files. This
gives me a valid STREAMINFO section. I'd really like to know how to do
it without re-encoding, though, as it seems a huge waste of CPU time!

Thanks

On Fri, 2006-06-09 at 00:31 +0100, Alex Jones wrote:
> 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!



More information about the Flac mailing list