View previous topic :: View next topic |
Author |
Message |
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Wed Sep 28, 2005 6:01 pm Post subject: howto get mp3 bitrates from files? |
|
|
Hi,
I'd like to list the data rated of files in a directory of mp3 files.
I can seem to find a simple command for mplayer so I wanted an idea before I spend hours searching.
I was expecting something like
mplayer -r *.mp3
maybe I'm just not looking in the right place .
Thanks far any tips.
TIA , gentree. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
skunk l33t
Joined: 28 May 2003 Posts: 646 Location: granada, spain
|
Posted: Wed Sep 28, 2005 7:08 pm Post subject: |
|
|
id3info |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Sep 29, 2005 10:17 am Post subject: |
|
|
Thanks, but not really what I need:
Code: | bash-3.00#ls
The Six Wives of Henry VIII
bash-3.00#id3info *
*** Tag information for The Six Wives of Henry VIII
| zip!
Code: | bash-3.00#id3info --help
id3info 3.8.3
Usage: id3info [OPTIONS]... [FILES]...
-h --help Print help and exit
-V --version Print version and exit
-a --assign Test the assignment operator (default=off)
-w --warning Turn on warnings (for debugging) (default=off)
-n --notice Turn on notices (for debugging) (default=off)
bash-3.00#man id3info
No manual entry for id3info
| RTFM? What FM!
mplayer obviously knows from the headers what format and bitrate the file is encoded at but short of starting to play it and breaking in , I cant find a way to get this info printed by a command.
_________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
cylgalad Veteran
Joined: 18 Apr 2003 Posts: 1327 Location: France
|
Posted: Thu Sep 29, 2005 10:44 am Post subject: |
|
|
What about... |
|
Back to top |
|
|
skunk l33t
Joined: 28 May 2003 Posts: 646 Location: granada, spain
|
Posted: Thu Sep 29, 2005 10:51 am Post subject: |
|
|
id3info want mp3s as argument, not a directory (because "The Six Wives of Henry VIII" is a directory, right?)
if you want to do it recursively:
Code: | $ find . -name "*.mp3" -exec id3info \{\} \; |
|
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Sep 29, 2005 10:59 am Post subject: |
|
|
Code: | bash-3.00#ls
01 - catherine of aragon.mp3 04 - jane seymour.mp3 back.jpg
02 - anne of cleves.mp3 05 - anne boleyn.mp3 cd.jpg
03 - catherine howard.mp3 06 - catherine parr.mp3 front.jpg
bash-3.00#id3info *
*** Tag information for 01 - catherine of aragon.mp3
=== TIT2 (Title/songname/content description): Catherine of Aragon
=== TPE1 (Lead performer(s)/Soloist(s)): Rick Wakeman
=== TALB (Album/Movie/Show title): The Six Wives of Henry VIII
=== TYER (Year): 1973
=== TRCK (Track number/Position in set): 1
=== TCON (Content type): (17)
*** mp3 info
MPEG1/layer III
Bitrate: 192KBps
Frequency: 44KHz
|
many thx.
is there a switch to just output the mp3 info.
A better question: where's the doc ?
I find no man entry nothing obvious on google and I just rebuilt id3lib with USE="doc" and still no man page for the lib or or the command.
TIA _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
Gutz n00b
Joined: 04 Mar 2004 Posts: 35 Location: IL
|
Posted: Thu Sep 29, 2005 3:27 pm Post subject: |
|
|
What about doing
Code: | id3info * | grep Bitrate |
_________________ mmmoooo |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu Sep 29, 2005 10:53 pm Post subject: |
|
|
well if I need the title and the bitrate only I'd already thought of grep with a regexp filter but I'd have to scatch my head.
I wondered if there was not a more direct route.
thangs agin. _________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
|