How to show bit-rate on mp3 files from the command line?
Sometime in the past, I had installed some Debian package that would show the bit-rate on a .mp3 file, but alas, I cannot remember the name of the package. I thought it was the id3v2 utility, but that does not apparently show the bit-rate. I installed mpg123, but the mpg123 man page says nothing about showing that type of info. I do not want a GUI, I need it from the command line.
Can someone tell me what package I can install to show the bit-rate (no, I don't want to build it from source if at all possible), and ideally it would show it along with the ID3v2 MP3 tags as well similar to what id3v2 does. Thanks, bgoodr |
I think that
Code:
mpg123 -t file.mp3 Regards |
Quote:
Thanks, bg |
In that case, you can use the the -n option (number of frames):
Code:
mpg123 -t -n 1 file.mp3 Regards |
id3info (which is a sort of demo tool in id3lib) will give you the bit rate and tags but only id3v1. There's also id3, mp3info, the aforementioned id3v2, and several others. I can't remember which are which and do what, though.
|
Quote:
Quote:
bg |
Quote:
I found some of my files that, when running both with "mpg123 -t -n 1" and "mpg123 -t", I see output of the form that does NOT include any kbit/s reading: Code:
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 |
Testing the id3 package
The id3 program only shows the id3 tags, not the bit rate (unless there is some undocumented option not shown in the id3 man page).
Trying the other suggested tools ... bg |
Testing the mp3info package
mp3info is not id3v2 aware, resulting in this error message:
Code:
<file> does not have an ID3 1.x tag. |
I've not got time to test it, but I seem to recall that the midentify.sh script that's in the mplayer source archive might be able to give you this information.
edit: Here it is: Code:
#!/bin/sh |
midentify.sh works for me!
Quote:
Again, thanks everyone! bg |
I posted a related question based upon my usage of mplayer at:
http://www.linuxquestions.org/questi...95#post3688695 |
ffmpeg -i file.mp3
file file.mp3 mediainfo file.mp3 and probably dozens of other ways. |
Quote:
|
Quote:
hth, |
All times are GMT -5. The time now is 10:51 AM. |