n10v / id3v2

🎵 ID3 decoding and encoding library for Go
https://pkg.go.dev/github.com/bogem/id3v2/v2
MIT License
338 stars 52 forks source link

Broken id3v2.3 tag after resaving #81

Open unknown321 opened 1 year ago

unknown321 commented 1 year ago

Package version: github.com/bogem/id3v2/v2 v2.1.4

Problem:

ID3v2.3 tags are somewhat broken after resaving them without any modifications. In kid3 tags are readable, but album art doesn't render. Completely unreadable on my Walkman NW-A55 (see screenshots).

walkman:

kid3:

Truncated in.mp3, github doesn't allow mp3 (and archived mp3) attachments: https://files.catbox.moe/dh1w34.mp3.

Run https://play.golang.com/p/aONev45lE-K to create out.mp3

$ id3v2 -l in.mp3 
id3v2 tag info for in.mp3:
TIT2 (Title/songname/content description): Thunderstruck
TPE1 (Lead performer(s)/Soloist(s)): AC/DC
TALB (Album/Movie/Show title): The Razors Edge
TRCK (Track number/Position in set): 1
TCON (Content type): Hard Rock (79)
APIC (Attached picture): ()[, 3]: image/jpg, 8890 bytes
TYER (Year): 1990
in.mp3: No ID3v1 tag

$ id3v2 -l out.mp3 
id3v2 tag info for out.mp3:
TALB (Album/Movie/Show title): The Razors Edge
TRCK (Track number/Position in set): 1
TCON (Content type): Hard Rock (79)
TYER (Year): 1990
TIT2 (Title/songname/content description): Thunderstruck
TPE1 (Lead performer(s)/Soloist(s)): AC/DC
APIC (Attached picture): ()[, 3]: image/jpg, 8891 bytes
out.mp3: No ID3v1 tag

$ id3v2 --version
id3v2 0.1.12
Uses id3lib-3.8.3
n10v commented 1 year ago

Hey @unknown321, thanks for your bug report! I'm looking into it. I'm sorry that it took me a while to react on your bug report.