python - Mutagen does not recognize MP4 iTunes voice memo tags -


problem

i have recorded voice memos on iphone. have added titles different events. after synchronizing, appear in separate album. in itunes listed titles, mp4-files named following format: yyyymmdd hhmmss.m4a (aac encoded).

in order move files rename files little python-script using mutagen.

import mutagen.mp4 m f = m.mp4("file.m4a") print(f.tags) print(f.mp4tags()) # f['\xa9nam'] = "test" # works print(f['\xa9nam']) # works if edited previous line or in itunes 

however, mutagen not recognize tags correctly, after have been edited (in itunes). output of f.tags looks this:

{'----:com.apple.itunes:itunsmpb': [mp4freeform(b' 00000000 00000840 000003e0 0000000007823be0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000', <atomdatatype.utf8: 1>)], '©too': ['com.apple.voicememos (ios 10.2)']} 

and f.mp4tags() yields {}. after editing title appear in f.tags:

{'©nam': ['test'], '----:com.apple.itunes:itunsmpb': [mp4freeform(b' 00000000 00000840 000003e0 0000000007823be0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000', <atomdatatype.utf8: 1>)], '©too': ['com.apple.voicememos (ios 10.2)']} 

question

how read original *.m4a - iphone voice memo tags ?

as discussed here title not stored inside file tags in itunes library file.

one can set itunes create *.xml containing information in readable fashion.

a similar question on apple-support answered link basic script renaming voice memos; reading that.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -