11

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?

1
  • .wav metadata is poorly supported. I'd search for something to edit RIFF INFO if that's possible.
    – Rob
    Commented Apr 8, 2012 at 3:14

3 Answers 3

8

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).

1
  • 1
    you can run exiftool in the command line as exiftool sample.mp3
    – Jun
    Commented Aug 31, 2018 at 21:05
9

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.

1
  • mediainfo worked. It can also export to JSON: mediainfo --output=JSON file.mp3 Commented Oct 5, 2020 at 21:42
2

Try the utility id3info for MP3 files.

2
  • Thanks, but this doesn't print any info for the .wav files I exported from Audacity.
    – Joey Adams
    Commented Apr 8, 2012 at 2:59
  • OK, I thought you were talking about .mp3 files. I don't know about metadata in .wav files.
    – Renan
    Commented Apr 8, 2012 at 3:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .