Skip to content

Embedded picture/coverart [flac] causing corruption after conversion #53

@leetsome

Description

@leetsome

It took me a while to track this one down. Here goes nothing ..

I've noticed that, from time to time a mp3 i converted from flac (TIDAL download)
had completely coruupted tags.

Get-IID3Tag throws:
MethodInvocationException: Exception calling "Create" with "1" argument(s): "MPEG audio header not found."

FFProbe throws:
[mp3 @ 00000270cfd8e740] Skipping 16384 bytes of junk at 7839.
[mp3@ 00000270cfd8e740] Estimating duration from bitrate, this may be inaccurate

After some digging i found that the corruption occurs if the embedded image is too large.
Tidal-Flacs sometimes have 300dpi / 1280x1280 images which is too much for some reason
Even a 24kb 320x320 72dpi is too much and would cause the corruption (after conversion to mp3 of course)

There seems to be a threshold of 16kb, because everything below or no image present wouldn't cause
any corruption.

Please look into it.

//edit
Just to clarify.. the converted files do play (9/10), but the tag-table is completely corrupted.
Only ACID (former Sony ACID) refuses to play them

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions