Edit MP4 metadata using Python

Question:

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.

Asked By: Aaron Schif

||

Answers:

You could try with Mutagen or Tagpy

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

Answered By: aesptux

I know this post is ancient, but, If anyone is interested I put together some basic example python code.

I am focused on MP3s but going to expand it, just working on a custom MP3 Player with TKinter & Mutagen.

This example is strictly using Mutagen:
https://github.com/JayRizzo/MP3Player/blob/master/mp3TagEditor.py

Answered By: JayRizzo
Categories: questions Tags:
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.