Dump audio metadata (album title, track number, etc.) to command line

7

1

If I open an audio file with Audacity or Rhythmbox, for example, I can look at the metadata tags such as Artist Name, Track Title, Year, etc. . Is there a convenient way to do this on the command line under Linux?

Joey Adams

Posted 2012-04-08T02:42:23.093

Reputation: 2 029

.wav metadata is poorly supported. I'd search for something to edit RIFF INFO if that's possible. – Rob – 2012-04-08T03:14:30.103

Answers

6

If it's a standard sort of tag, I believe exiftool should do the trick.

If it doesn't you'd likely need to find something else that dumps the format that audacity uses (apparently info tags).

Journeyman Geek

Posted 2012-04-08T02:42:23.093

Reputation: 119 122

you can run exiftool in the command line as exiftool sample.mp3 – Jun – 2018-08-31T21:05:35.543

5

You can use one of these tools:

mediainfo

Simple program outputting all the basic information from audio files.

exiftool (from package perl-image-exiftool)

This one is more customizable and supports reading and writing meta information in image, audio and video files.

mutagen-inspect (from package mutagen)

Simple frontend to the mutagen audio tagging library for Python.

corvinus

Posted 2012-04-08T02:42:23.093

Reputation: 181

2

Try the utility id3info for MP3 files.

Renan

Posted 2012-04-08T02:42:23.093

Reputation: 7 463

Thanks, but this doesn't print any info for the .wav files I exported from Audacity. – Joey Adams – 2012-04-08T02:59:31.793

OK, I thought you were talking about .mp3 files. I don't know about metadata in .wav files. – Renan – 2012-04-08T03:00:45.440