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
2 answers

Use mutagen to load metadata of audio file from google drive

I want to write a program building a database of my audio file in google drive. The language is python. Does anyone know of a method to retrieve audio metadata of file from google drive api? What I want to do is using the id of the file from google…
Calcius
  • 3
  • 3
0
votes
2 answers

Re-opening a file in python gives permission error

I have searched and tried to implement solutions suggested here: Errno 13 Permission denied: 'file.mp3' Python Error while re-opening sound file in python But there doesn't seem to be any good solutions to this. Here is my code, can anyone tell me…
0
votes
1 answer

Right way to equalize mp3 file in python

I'm currently working on a little python script to equalize MP3 file. I've read some docs about MP3 file format (at https://en.wikipedia.org/wiki/ID3) And i've noticed that in the ID3v2 format there is a field for Equalization (EQUA, EQU2) Using…
creekorful
  • 351
  • 4
  • 14
0
votes
1 answer

Changing mp3 songs in a queue Python,Pygame,Mutagen,Tkinter

I am new to python and I'm trying to build a music player which can add all mp3 songs to its list in that folder. I can see all the songs in a list , But when i click next button it only goes one song next and one song previous. if i click next…
Vineeth Sai
  • 3,389
  • 7
  • 23
  • 34
0
votes
1 answer

after using python mutagen,metatags not displayed

I wanted to edit the meta data of a bunch of mp3 files,so I used python mutegan. The details of the mp3 file before running mutagen I used this simple code to change the details of the mp3 file. from mutagen.easyid3 import EasyID3 audio =…
0
votes
1 answer

Change ID3 Tags Python 2.7

Hello I've been trying to make something that bulk changes ID3 tags and Mutagen seemed like the way to go but I cannot figure out why the tags are staying put. I get no errors it just doesn't save the details when i open Properties on the MP3 file.…
0
votes
1 answer

Python3 Mutagen not outputing unicode tags

I'm attempting to automate some ID3 tagging with Mutagen, but whenever I attempt to insert unicode characters I have them replaced by question marks. Smallest test code that results in this error is as follows from mutagen.id3 import ID3,…
Sayaka
  • 1
  • 1
0
votes
1 answer

where to place the mutagen folder

I'm making an app in a cloud9 workspace and I need to import mutagen. I used the command: $ hg clone https://bitbucket.org/lazka/mutagen as they say in the docs. The thing is that I want to import it in my views file without having to write a very…
0
votes
2 answers

Python detecting file type before operation

I'm working on this piece of code and this weird bug showed up on the Try command near the end of the code. The whole script is aimed towards .flac files, and sometimes it'd read .jpg files in the folders and blow up. Simply enough I went ahead and…
Bernardo Meurer
  • 2,295
  • 5
  • 31
  • 52
0
votes
1 answer

Mutagen's OggFileType producing 'Type Error: NoneType' exception

Ive just started using mutagen and have succefully used it with m4a, mp3, ape, afs, and flac. However Im having difficulty with the OggFileType class, when I try to create an instance of OggFileType Im presented with a "TypeError: 'NoneType' object…
volting
  • 16,773
  • 7
  • 36
  • 54
0
votes
1 answer

Mutagen Key Error

the code below is a code to try and get the tags off of a mp3 file using mutagen and then automatically update the tags which are non-existent using the mutagen api. The problem comes when we try and update the tags which are not there. Any Help…
0
votes
0 answers

This python script error on only some files while numbering mp3 tracks

This is a script I did to put the track numbers before the name of mp3s to keep the tracks in the correct order instead of alphabetized. It ran fine on all (100+ folders / 1300+ songs) except for three folders . I cannot tell wtf is going on…
bkane56
  • 1,669
  • 1
  • 12
  • 17
0
votes
1 answer

Mutagen (Mutagenwrapper): Extracting multiple images from an MP3 file

My script has no problems extracting the images from FLAC files, however when given an MP3 file, it will only grab the first image and not the rest. Things I've tried: Converting ID3v2.3 to ID3v2.4 Converting ID3v2.3 to APEv2 Printing out the full…
0
votes
2 answers

Fetching the title and artist of online MP3 files in Python 2.7

I'm writing a script in Python 2.7 that needs to fetch the title, artist and preferably length (but that's less important), of linked MP3 files. I'm not really sure how to go about doing this, I've tried a few approaches with urllib and mutagen, but…
0
votes
1 answer

Python Mutagen: add cover photo/album art by url?

Using mutagen, I am able to add normal metatags such as title, artist, and genre however when I try to add an image via a url, it doesn't work. from mutagen.mp4 import MP4 from mutagen.mp4 import MP4Cover from PIL import Image import urllib2 as…
bnynn
  • 501
  • 1
  • 6
  • 20
1 2 3
9
10