Questions tagged [eyed3]

eyeD3 is a Python tool for working with audio files, specifically mp3 files containing ID3 metadata (i.e. song info).

It provides a command-line tool (eyeD3) and a Python library (import eyed3) that can be used to write your own applications or plugins that are callable from the command-line tool.

For example, to set some song information in an mp3 file called song.mp3:

$ eyeD3 -a Nobunny -A "Love Visions" -t "I Am a Girlfriend" -n 4 song.mp3

With this command we’ve set the artist (-a/--artist), album (-A/--album), title (-t/--title), and track number (-n/--track-num) properties in the ID3 tag of the file.
This is the standard interface that eyeD3 has always had in the past, therefore it is also the default plugin when no other is specified.

The results of this command can be seen by running the eyeD3 with no options.

$ eyeD3 song.mp3
song.mp3      [ 3.06 MB ]
-------------------------------------------------------------------------
ID3 v2.4:
title: I Am a Girlfriend
artist: Nobunny
album: Love Visions
track: 4
-------------------------------------------------------------------------

The same can be accomplished using Python.

import eyed3

audiofile = eyed3.load("song.mp3")
audiofile.tag.artist = u"Nobunny"
audiofile.tag.album = u"Love Visions"
audiofile.tag.title = u"I Am a Girlfriend"
audiofile.tag.track_num = 4

audiofile.tag.save()

eyeD3 is written and maintained by Travis Shirk and is licensed under version 2 of the GPL.

Features

  • Python package for writing application and/or plugins.
  • Command-line tool driver script that supports plugins. viewer/editor interface.
  • Easy editing/viewing of audio metadata from the command-line, using the ‘classic’ plugin.
  • Support for ID3 versions 1.x, 2.2 (read-only), 2.3, and 2.4.
  • Support for the MP3 audio format exposing details such as play time, bit rate, sampling frequency, etc.
  • Abstract design allowing future support for different audio formats and metadata containers.
88 questions
19
votes
3 answers

How to add album art to mp3 file using python 3?

I was wondering what module to use for setting an image as the album art for a particular mp3 file. Mutagen seemed to be a popular choice, but it doesn't seem to work on python 3 and I can't find any documentation.
Lakshay Kalbhor
  • 577
  • 3
  • 7
  • 19
8
votes
8 answers

Python - eyeD3 Lame tag CRC check failed

I am trying to write a script to clean up mp3 file names using Python and eyeD3 but I am getting "WARNING:eyed3.mp3.headers:Lame tag CRC check failed" when I try to load an mp3 file using the following script import string import os import…
Jay Bell
  • 447
  • 7
  • 20
8
votes
1 answer

Create new ID3 tag using python and eyed3

I have a bunch of mp3 files that have no ID3 tag at all. I am trying to use eyed3 to add an ID3 tag to the files, but cannot figure out what method to use. Here is my code: import eyed3 file = eyed3.load("test.mp3") file.tag.artist = u"MP3…
egridley
  • 83
  • 1
  • 3
8
votes
1 answer

Python Eyed3 Warning

Some of my mp3 files seem to have a non standard genre. When I loop through them (which I have to do in my program) I get tons of warnings like this one : eyed3.id3:WARNING: Non standard genre name: Rock - Punk/Pop-Punk , Rock - Alternative…
Davlog
  • 2,162
  • 8
  • 36
  • 60
6
votes
4 answers

How to extract the raw data from a mp3 file using python?

I have got homework regarding audio data analysis using Python. I wonder is there any good module for me to use to extract the raw data from a mp3 file. I mean the raw data, not the metadata, id3 tags. I know how to use the wave module to process…
zhangyangyu
  • 8,520
  • 2
  • 33
  • 43
6
votes
3 answers

Setting "Album Artist" using eyed3?

I'm trying to use eyed3, as a Python library, in order to change the artist name for a large collection of .MP3 files. I tried using the sample code of the project's web page (http://eyed3.nicfit.net/) and setsaudiofile.tag.artist changes the…
MikeTheTall
  • 3,214
  • 4
  • 31
  • 40
5
votes
2 answers

How to remove existing album art image from an Mp3 using eyed3 module

I have been attempting to use the eyed3 module for tagging mp3 files, but unfortunately, I find the module documentation difficult to understand and was wondering if someone can help me?.. Documentation can be found at https://eyed3.readthedocs.io I…
SShah
  • 1,044
  • 8
  • 19
5
votes
2 answers

Changing lyrics in an MP3 file via eyeD3

I am trying to create a program in Python which automatically retrieves lyrics for a particular folder of MP3s. [I get the lyrics from azlyrics.com ] So far, I have succeeded in doing everything except for actually embedding the lyrics into the…
Prateek Alat
  • 216
  • 2
  • 8
4
votes
2 answers

Setting an ID3 comment using EyeD3 in Python

I have the following python script in a folder with a mp3 file: import os import eyed3 def track(file): tag = eyed3.load(file) tag.tag.comment = u"teststring" tag.tag.genre = u"Pop" tag.tag.save() for fn in os.listdir('.'): …
Oli
  • 2,370
  • 2
  • 26
  • 42
4
votes
4 answers

Retrieve lyrics from an mp3 file in Python using eyeD3

I am currently trying to use Python and its eyeD3 library to extract the lyrics from an mp3 file. The lyrics have been embedded into the mp3 file already (via: MusicBee). I am trying to use eyeD3 to return the lyrics. I can't figure out how to do…
DonJuma
  • 2,028
  • 13
  • 42
  • 70
4
votes
2 answers

Making the eyeD3-module available for import in python

On Windows, I have installed Python 2.7 and added python.exe's directory to PATH. Then I installed pip und used pip install eyeD3 to install the eyeD3 module successfully. However, using import eyeD3 doesn't work, but throws an ImportError. I had…
Peter Wildemann
  • 465
  • 4
  • 13
4
votes
2 answers

eyed3 for python - how to load selective id3 data from audio file?

I'm using eyed3 module for reading only 'artist name' tag from a music library, but when some files load correctly others fail just at at the beginning, at the state of loading: mp3file = eyed3.load(filepath) for example, reading my library evolves…
van_folmert
  • 4,257
  • 10
  • 44
  • 89
3
votes
1 answer

eyed3 package for Python not properly setting ID3 metadata

For this I am using Python 2.7.13, Windows 10, and the eyed3 package as documented here. Goal: I am trying to create a script that can input any desired ID3 metadata for MP3 files that are missing information. Problem: The script appears to update…
Orin
  • 80
  • 1
  • 8
3
votes
2 answers

Using eyeD3 to embed album art from URL

i am working on a python script that downloads a music file from a server and then adds an album image to it from a URL, for this i am using the eyeD3 python library my original code below. import eyed3 mySong =…
Chris James
  • 151
  • 2
  • 14
3
votes
0 answers

Python eyed3 what tags are available?

is there a list of tags which you can extract with eyed3? Apart from the obvious ones such as artist, track etc what others are available? I found out through trail and error that Bitrate is actually info.bit_rate I can't seem to find a list in the…
twigg
  • 3,753
  • 13
  • 54
  • 96
1
2 3 4 5 6