Skip to content

Recording to FLAC results in undecodable file #16520

Description

@PatrickJosh

Bug Description

Hi,

with the current commit on the main branch (05ee404), I cannot record to FLAC any more; the resulting file is not readable by any flac decoder that I have tried (ffmpeg, libflac). libflac tells me that there is an issue with the metadata of the file, which does seem to be the case; have a look at the metadata from a file attached below (output of metaflac --list test.flac):

METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 0
  minimum blocksize: 65528 samples
  maximum blocksize: 47640 samples
  minimum framesize: 14 bytes
  maximum framesize: 11414 bytes
  sample_rate: 10 Hz
  channels: 3
  bits-per-sample: 32
  total samples: 452608
  MD5 signature: 8741c93c8c77b88572201850ae781805
METADATA block #1
  type: 4 (VORBIS_COMMENT)
  is last: true
  length: 40
  vendor string: reference libFLAC 1.5.0 20250211
  comments: 0

The length, sample rate and channels are not correct. Unfortunately, re-encoding the file is not possible (at least not with the tools mentioned above) as it is completely undecodable.

When compiling tag 2.5.6 and using the resulting binary, the resulting file is fine.

Here the mentioned example file (zipped because of file type restrictions): test.zip

Version

05ee404

OS

Fedora Linux 44

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions