admin管理员组

文章数量:1310392

I am looking for a way to read and modify the rating (popularity meter (POPM) or "stars") of an .m4a music file using Python.

Question: What is the correct tag name for the rating (popularity meter) in .m4a files? How can I read and modify it using Python?

so far, I have successfully modified metadata such as:

  • Title
  • Author
  • etc. However, I am specifically trying to modify the rating (the star rating displayed in Windows Explorer).

I believe this information is stored within the ATOM metadata of .m4a files, but I am unsure of the correct tag name.

What I have tried (without success): I attempted modifying the following tags using mutagen:

'rtng' b'rtng' '\xa9rtg' 'POPM' (which works for MP3 files but not .m4a)

Unlike MP3 files, where the rating can be modified via the POPM (Popularity meter) tag using mutagen.mp3, .m4a tagging seems to work differently.

本文标签: tagsHow to ReadModify the Rating (Popularity Meter) of a m4a Music File in PythonStack Overflow