Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bash Script - Get song artist from command line

Tags:

bash

shell

Is there a bash command/program that can get information about a song from the command line? I want to get things like album, artist, length, etc.

Format is .mp3

like image 248
Daniel Kats Avatar asked Dec 21 '25 11:12

Daniel Kats


1 Answers

You can try exiftool, it's very easy to use:

$ exiftool -Title -Artist -Album -Duration  ScarboroughFair.mp3
Title                           : Scarborough Fair
Artist                          : 莎拉 布莱曼
Album                           : 月光女神
Duration                        : 0:04:11 (approx)
like image 82
kev Avatar answered Dec 24 '25 01:12

kev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!