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
0
votes
1 answer

How to get the lyrics of a song from the song file using python

How can I access lyric tag of an mp3 using python modules? Assume mp3 already has lyrics tag filled with track's lyric.
Arian Shariat
  • 35
  • 2
  • 6
0
votes
1 answer

Python3 eyed3 module, reading comments from mp3 file?

My goal is to use python3 (3.8 preferred) to read and eventually set the comments tag on an MP3 file. I have installed eyed3 (python3.8 -m pip install eyed3) and the following code will load and can read all the tags, except when it comes to the…
Ryan Barnes
  • 107
  • 1
  • 10
0
votes
0 answers

How to get metadata (Genre, Artist) from mp3 file?

I have a problem that confused me. I want to get metadata (especially genre, artist) in python and I've tried some way to do this but each of them return null. I want to get at least one feature (genre, artist) and connect it Spotify or Last.fm api…
orhanors
  • 9
  • 5
0
votes
1 answer

TypeError: can't concat JpegImageFile to bytes

I'm trying to use pillow to download an image and then give that image to eyed3 to use as album art, but I get the following error: TypeError: can't concat JpegImageFile to bytes response = requests.get(album_art_url) img =…
Reez0
  • 2,512
  • 2
  • 17
  • 39
0
votes
1 answer

Special eyed3 type becomes python's NoneType

I've written a little script to move all my .flac files from dap to artist subfolders so it can easily be accessed from computer. I used python3 on Ubuntu with libs such as eyed3 and os. And it worked fine with almost 30 songs (2 artists). So here…
Pavel Bredelev
  • 1,301
  • 2
  • 12
  • 12
0
votes
0 answers

E: Unable to locate package python3-eyeD3

is eyed3 is not available for python 3 on ubuntu? $ sudo apt-get install python3-eyeD3 Getting error Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package…
0
votes
2 answers

How do i get Mac 10.13 to install modules into a 3.x install instead of 2.7

I'm trying to learn python practically. I installed PIP via easy_install and then I wanted to play with some mp3 files so I installed eyed3 via pip while in the project directory. Issue is that it installed the module into python 2.7 which comes…
Murray Chapman
  • 135
  • 1
  • 6
0
votes
1 answer

Jupyter Notebook not recognizing Eyed3

I'm trying to use the pyAudioAnalysis library to pull features from mp3 files. The problem I'm having is that I can't get my Jupyter Notebook to find eyed3, which is essential for the library. Here's my code : from pyAudioAnalysis import…
Kyle Frye
  • 111
  • 1
  • 11
0
votes
1 answer

eyed3 add tag release date resolves in error "can't assign to operator"

I try to add the release-date tag to an mp3 file using eyed3 in python. It works fine for the tags "artist" and "date". It is not working for "release-date": `audiofile.tag.release-date = dateToTag` throws the error: SyntaxError: can't assign to…
Rattlesnake
  • 143
  • 3
  • 12
0
votes
1 answer

Trying to access id3 tags of mp3 songs from a folder using a loop

I am trying to access the metadata of all mp3 songs in a folder. I'm working on Ubuntu 16.04 Virtualbox and eyed3 0.6.18-1 with a shared folder between windows and ubuntu. I tried the following: import os import eyeD3 for root, dir, files in…
Undead
  • 125
  • 2
  • 7
0
votes
1 answer

Python Filter Warnings from third party module 'eyed3'

It's posible to filter, at runtime, the Warnings raised from the imported eyed3 module during a re-taging operation ? It result in: WARNING:eyed3.mp3.headers:Lame tag CRC check failed WARNING:eyed3.id3:Non standard genre name: Roman…
FranGar
  • 137
  • 6
0
votes
0 answers

ID3 tags not displaying in Windows file properties

I am using eyeD3 within Python 3.6 to edit the ID3 tag of an mp3 file. I can confirm within the Python console that my ID3 tag edits are taking effect. However, when viewing the file properties within Windows, none of the changes are shown in the…
0
votes
1 answer

Python eyeD3 Syntax Error on Windows

Need some help here. Been on this for hours, i'm trying to install/use eyeD3 - a Python based ID3 editor on my Windows 10 machine and I've been getting this error, C:\Python\Python27\eyeD3\bin>python eyeD3 File "eyeD3", line 3 python -m…
0
votes
1 answer

cd into subdirectories from parent

So what I have at the moment is youtube-dl downloading into this folder "/media/zachary/Ante'esemone/Not in iTunes/" and it creates a folder with the name of the channel, for example: Aliasizm Caravan Palace MrSuicideSheep Then inside those…
Zachary Wight
  • 55
  • 1
  • 11
0
votes
1 answer

How to prevent “Tagging time” being set when tagging mp3 files from python (eyeD3)

I want to use the script from http://snipplr.com/view/4025/mp3-checksum-in-id3-tag/ to equip my mp3 collection with md5 checksums. The script can add a custom ID3 tag that holds the checksum of the audio data and it has as well the option to remove…
Chris
  • 103
  • 3