Questions tagged [mutagen]

Mutagen is a Python module to handle audio metadata.

Mutagen is a Python module to handle audio metadata.

It supports ASF, FLAC, M4A, Monkey's Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, Ogg Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files.

All versions of ID3v2 are supported (for reading), and all standard ID3v2.4 frames are parsed. It can only write ID3v2.4 (and ID3v1.1) so it is not compatible with libid3 nor Windows Media Player (which still require ID3V2.3 as of 2013). It can read Xing headers to accurately calculate the bitrate and length of MP3s. ID3 and APEv2 tags can be edited regardless of audio format. It can also manipulate Ogg streams on an individual packet/page level.

Home Page: http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen

146 questions
0
votes
1 answer

Check for album art with mutagen

I used eyed3 to work with id3 but everytime I want to load a file with a special character like "ü" it crashes because it cannot open these files... That's why I switched to mutagen. I want check my whole library for album art. #pict_test…
Davlog
  • 2,162
  • 8
  • 36
  • 60
0
votes
3 answers

Working with a non-encodable mp4 tag name in utf-8 Python code

For reasons that are not clear to me, some of the fields that mp4 files use as tag names contain non-printable characters, at least the way mutagen sees them. The one that's causing me trouble is '\xa9wrt', which is the tag name for the composer…
kuzzooroo
  • 6,788
  • 11
  • 46
  • 84
0
votes
2 answers

how to correct the misencoded string?

i used mutagen to read the mp3 metadata, since the id3 tag is read in as unicode but in fact it is GBK encoded. how to correct this in python? audio = EasyID3(name) title = audio["title"][0] print title print…
Dyno Fu
  • 8,753
  • 4
  • 39
  • 64
0
votes
1 answer

Mutagen 1.22 Encoding Issue

I am having an issue with character encoding with Mutagen. I casted the dict[key] to Unicode, bu all I receive are errors. The character in question is U+00E9 or é, but what I prints is ├⌐. I am assuming the default character set for Mutagen is…
Mr. Polywhirl
  • 42,981
  • 12
  • 84
  • 132
0
votes
1 answer

ID3 tag editing in programming language

I've been trying to write a program that edits the ID3 tags of all the songs of a given artist, given that the folder structure is "musicFolder\Artist\Year Album\## Song.mp3". It would edit the tags Title, Artist, Album Artist, Album, Year and Track…
H.v.M.
  • 1,348
  • 3
  • 16
  • 42
0
votes
1 answer

There is an errors embed album art with mutagen?

The problem is, whenever i embed a picture into the mp3 and that mp3 file always increase less bytes than the picture actually is. I'll explain in code: import os from mutagen.mp3 import MP3 from mutagen.id3 import ID3, APIC, error from mutagen…
prehawk
  • 195
  • 12
0
votes
2 answers

Optimizing a Mass ID3 Tag Scan

I'm building a small tool that I want to scan over a music collection, read the ID3 info of a track, and store it as long as that particular artist does not have a song that has been accessed more than twice. I'm planning on using Mutagen for…
user1427661
  • 11,158
  • 28
  • 90
  • 132
0
votes
1 answer

python mutagen eyed3 write id3v1 tag

I am using mutagen to manipulate my mp3's but I am finding it hard to write id3v1 tags using this, looks like the popular eyed3 package also doesnt not give any examples on how to do this. Can anyone who has worked on mutagen and eyed3 give me…
Prem Minister
  • 407
  • 2
  • 10
  • 20
-1
votes
2 answers

How to corrupt mp3 files without altering general informations

I need to make some MP3 available on the internet for educational purpose. And I don't want it to be illegally downloaded. Thus I want to corrupt the MP3 files in such a way as to make them musically unreadable in other media players. Problem: I…
Xetolone
  • 357
  • 1
  • 12
-1
votes
1 answer

Music Player will only play first song in playlist then stop

Trying to make a playlist maker using pygame but it will only play the very first song on the list and it does load the next song but no audio is played from pygame import mixer # Load the required library from os import listdir from mutagen.mp3…
-1
votes
4 answers

More Efficient Way of Reading Large List of dicts

For my project I use the mutagen library to read ID3 tags from 5000+ mp3 files. After reading them I construct the following objects using them. class Track: def __init__(self, artist, title, album=None): self.artist = artist …
XrXr
  • 2,027
  • 1
  • 14
  • 20
1 2 3
9
10