quodlibet / mutagen

Python module for handling audio metadata
https://mutagen.readthedocs.io
GNU General Public License v2.0
1.57k stars 158 forks source link

mutagen-inspect shows tag data but mid3cp shows #588

Closed glitch452 closed 1 year ago

glitch452 commented 1 year ago

I'm having some trouble with tagged .m4a files in the ALAC format from iTunes.

When I run the files through mutagen-inspect it outputs a bunch of data (see below). But when I try to use mid3cp I just get the message No ID3 header found ...

mid3cp ./05\ Levitating.m4a ./05\ Levitating2.m4a 
No ID3 header found in  ./05 Levitating.m4a
mutagen-inspect ./05\ Levitating.m4a 
-- /Users/***/Desktop/music conversion testing/05 Levitating.m4a
- MPEG-4 audio (AAC LC), 203.87 seconds, 320000 bps (audio/mp4)
----:com.apple.iTunes:Encoding Params=MP4FreeForm(b'vers\x00\x00\x00\x01acbf\x00\x00\x00\x02brat\x00\x04\xe2\x00srcq\x00\x00\x00\x7fcdcv\x00\x01\x07\x01', <AtomDataType.IMPLICIT: 0>)
----:com.apple.iTunes:iTunNORM=MP4FreeForm(b' 000026FF 00002688 0000E85B 0000DED6 00025774 000242F4 00007E88 00007E88 00002203 000021EC', <AtomDataType.UTF8: 1>)
----:com.apple.iTunes:iTunSMPB=MP4FreeForm(b' 00000000 00000840 000002A4 000000000089251C 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000', <AtomDataType.UTF8: 1>)
aART=Dua Lipa
covr=[91060 bytes of data]
cpil=False
disk=(1, 1)
pgap=False
tmpo=0
trkn=(5, 13)
©ART=Dua Lipa
©alb=Future Nostalgia
©day=2020
©lyr=If you wanna run away with me
I know a galaxy and I can take you for a ride
I had a premonition that we fell into a rhythm
Where the music don't stop for life
Glitter in the sky, glitter in my eyes
Shining just the way I like
If you feel like you need a little bit of company
You met me at the perfect time
...
phw commented 1 year ago

As the name suggests mid3cp is only handling ID3 tag, no other formats.

glitch452 commented 1 year ago

Ah, I thought there was support for iTunes tags on mp4 files? Is there a way to process (copy/paste) those with the main library?

phw commented 1 year ago

@glitch452 mutagen itself supports reading / writing tags for MP4 files. See https://mutagen.readthedocs.io/en/latest/api/mp4.html

glitch452 commented 1 year ago

@phw Thanks! I ended up getting Kid3 working for what I needed.