If you want to find out the length of an audio track from the command line, there are at least two ways to do this.
You will need to have the package "ecasound" installed.
sudo apt-get update sudo apt-get install ecasound
file_name 904.784s ( 5m4)
sudo apt-get update sudo apt-get install libsox-fmt-mp3
soxi file_name | grep Duration
Duration : 00:15:03.70 = 19926497 samples ~ 67777.2 CDDA sectors
Storm Dragon and Willem van der Walt contributed to this article.