Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto get mp3 bitrates from files?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Wed Sep 28, 2005 6:01 pm    Post subject: howto get mp3 bitrates from files? Reply with quote

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. 8)
_________________
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
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Wed Sep 28, 2005 7:08 pm    Post subject: Reply with quote

id3info
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Thu Sep 29, 2005 10:17 am    Post subject: Reply with quote

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.

:roll:
_________________
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
View user's profile Send private message
cylgalad
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1327
Location: France

PostPosted: Thu Sep 29, 2005 10:44 am    Post subject: Reply with quote

What about...
Code:
file *
:?: :grin:
Back to top
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Thu Sep 29, 2005 10:51 am    Post subject: Reply with quote

id3info want mp3s as argument, not a directory :roll: (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
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Thu Sep 29, 2005 10:59 am    Post subject: Reply with quote

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.

8)

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
View user's profile Send private message
Gutz
n00b
n00b


Joined: 04 Mar 2004
Posts: 35
Location: IL

PostPosted: Thu Sep 29, 2005 3:27 pm    Post subject: Reply with quote

What about doing
Code:
id3info * | grep Bitrate

_________________
mmmoooo
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Thu Sep 29, 2005 10:53 pm    Post subject: Reply with quote

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. 8)
_________________
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum