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?
3 Answers
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).
-
1you can run exiftool in the command line as
exiftool sample.mp3
– JunCommented Aug 31, 2018 at 21:05
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.
-
mediainfo worked. It can also export to JSON:
mediainfo --output=JSON file.mp3
Commented Oct 5, 2020 at 21:42