I need to give attributes (meta data) to a file in python code on Linux, specifically Ubuntu.
Specifically I need to set the author, title, album, etc. on MP4 files.
You can make use of extended file attributes which is a filesystem feature that do just what you want: store custom metadata along files. In Python, this is implemented by the os module through setxattr() and getxattr() functions.
You could try with Mutagen or Tagpy
Both seem very straightforward, but I don't have any experience with them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With