Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit MP4 metadata using Python

Tags:

python

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.

like image 650
Aaron Schif Avatar asked Jan 17 '13 04:01

Aaron Schif


People also ask

How do I add metadata to a file in python?

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.


1 Answers

You could try with Mutagen or Tagpy

Both seem very straightforward, but I don't have any experience with them.

like image 142
aesptux Avatar answered Sep 18 '22 13:09

aesptux