Metadata tags for .flac files don't always work

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Fortemezzo
Junior Member
Junior Member
Posts: 6
Joined: 2022-07-08, 09:20 UTC

Metadata tags for .flac files don't always work

Post by *Fortemezzo »

Metadata tags don't work for .flac files that don't have padding. For example, this file doesn't work:

Code: Select all

> metaflac --list "09 - Solace.flac"                                                          
METADATA block #0
  type: 0 (STREAMINFO)
  <cut for brevity>
METADATA block #1
  type: 3 (SEEKTABLE)
  <cut for brevity>
METADATA block #2
  type: 4 (VORBIS_COMMENT)
  [b]is last: true[/b]
  length: 132
  vendor string: reference libFLAC 1.3.2 20170101
  comments: 5
    comment[0]: title=Solace
    comment[1]: Album=Cielo e Terra
    comment[2]: Artist=Al Di Meola
    comment[3]: DATE=1985
    comment[4]: TRACKNUMBER=09
When I add padding, it does work.

Code: Select all

> metaflac --preserve-modtime --add-padding=1 "09 - Solace.flac"
The blocks that changed:

Code: Select all

METADATA block #2
  type: 4 (VORBIS_COMMENT)
  [b]is last: false[/b]
  length: 132
  vendor string: reference libFLAC 1.3.2 20170101
  comments: 5
    comment[0]: title=Solace
    comment[1]: Album=Cielo e Terra
    comment[2]: Artist=Al Di Meola
    comment[3]: DATE=1985
    comment[4]: TRACKNUMBER=09
METADATA block #3
  type: 1 (PADDING)
  is last: true
  length: 1
I suspect that TC is looking at the "is last" flag and expects the VORBIS_COMMENT to not be the last block.

Example files (small, just silence, no copyright):

https://www.dropbox.com/sh/w9ucbf901zi5gjq/AABBD4IAwV6qZf38cvZbxwNEa?dl=0
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Metadata tags for .flac files don't always work

Post by *ghisler(Author) »

Thanks a lot for the samples, I will check in the debugger why it doesn't work.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Metadata tags for .flac files don't always work

Post by *ghisler(Author) »

This should be fixed in TC 10.51 RC1, please test it.
Author of Total Commander
https://www.ghisler.com
Fortemezzo
Junior Member
Junior Member
Posts: 6
Joined: 2022-07-08, 09:20 UTC

Re: Metadata tags for .flac files don't always work

Post by *Fortemezzo »

Works great now. Thanks a lot.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Metadata tags for .flac files don't always work

Post by *white »

Moderator message from: white » 2022-08-12, 13:02 UTC

Moved to Fixed bugs.
Post Reply