LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-08-2011, 07:45 AM   #1
paziulek
Member
 
Registered: Mar 2009
Location: N.C.
Distribution: "gentoo|debian|arch"
Posts: 106

Rep: Reputation: 11
mp3 file analysis program


hi everybody,

I am looking for a mp3 file analysis program ( shell preferred / or X ) - something that would give me similar output as >LAME< does during the encoding phase.

Quote:
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
9342/10156 (92%)| 0:06/ 0:06| 0:06/ 0:06| 39.940x| 0:00
32 [ 80] %***
40 [ 0]
48 [ 0]
56 [ 0]
64 [ 0]
80 [ 0]
96 [ 0]
112 [ 0]
128 [ 22] *
160 [ 506] %%%%*******************
192 [3194] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*****************
224 [3983] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%***********************
256 [ 622] %%%%%%%%%%%%%%%%************
320 [ 935] %%%%%%%%%%%%%%%%%%%%%%%%*****************
any app that can analyze VBR/ABR filez - not just output a bogus bitrate, but return a more detailed info. LAME has a '-g' (run graphical analysis) option which has to be enabled during the compile time - tried several ways and -g is still disabled, plus there is not much info on -g and i do not even know if this is what I am looking for. Any suggestions are highly welcome.

paz


edit:
found enc spot pro v2.2 - nice, but win32...

Last edited by paziulek; 06-08-2011 at 08:58 AM.
 
Old 06-08-2011, 10:28 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
What exactly do you want this for? Finding badly-encoded files, for example? What information do you need it to display?

It may be overkill for you, or not what you want, but I like mp3diags. It can do all kinds of diagnostics on your files and fix many of them automatically.

A quick search for installable packages with "mp3" in the name also turned up:

checkmp3
mp3check
mp3info
mp3report
mp3val

I have no idea if any of them do what you want, however.
 
Old 06-08-2011, 10:40 AM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Code:
file music.mp3
Code:
ffmpeg -i music.mp3
Code:
mplayer music.mp3
Will give you info on your .mp3 file.
 
Old 06-08-2011, 11:08 AM   #4
paziulek
Member
 
Registered: Mar 2009
Location: N.C.
Distribution: "gentoo|debian|arch"
Posts: 106

Original Poster
Rep: Reputation: 11
Thanks David,

What i am looking for is to compare encoded mp3's ( 96vbr & 320vbr of the same feed ) and determine minimum "acceptable" bitrate for a specific feed/sound file without listening to every audio file. I need this for h264, portable media ( 300-400MB of h264 ) - so I do not want to end up with 2 hour "spoken/monologue" content encoded at 256kbit and 64kbit encoded classical music. by running EncSpot Pro or re-encoding it via lame, it is possible to tell what lowest bitrate/quality would be "acceptable" for a specific audio file, once determined, encode, mux and it is ready.
a shell utility would be perfect since it could be used for batch/automated minimum bitrate discovery. basically an app which detects the characteristics of audio...

I tried mp3check, mp3info, MP3Diags, mediainfo and lame

Quote:
mp3check -e lameV0q0.mp3
shows bitrate switching info ( VBR/ABR ), useful, but it creates a 65MB output ( for 4 min content ) and it would be quite inefficient to run it against 2h content, parse and (....) and return the stats

so far EncSpot pro and its "bit histogram" shows most info I need - runs under wine... still looking for a shell alternative
paz

Last edited by paziulek; 06-08-2011 at 11:27 AM.
 
Old 06-08-2011, 11:16 AM   #5
paziulek
Member
 
Registered: Mar 2009
Location: N.C.
Distribution: "gentoo|debian|arch"
Posts: 106

Original Poster
Rep: Reputation: 11
Thanks teckk,

the output of the ffmpeg -i / mplayer -identify gives not much info on a VBR/ABR file, I am looking for a bit more then average bitrate and sampling rate.
and output 'file' ain't cool:
Quote:
gentoo tmp # file orig.mp3
orig.mp3: Audio file with ID3 version 2.3.0, contains:
thanks!
 
Old 06-08-2011, 01:52 PM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Sorry then. That's a bit beyond my understanding. The only other suggestion I can think of is possibly sox. It's a general command-line sound-processing program with a lot of features. Perhaps it has something you can use.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need program to convert rm file to mp3 lion_heart_300 SUSE / openSUSE 2 12-03-2006 06:06 PM
Stock analysis program? ahz Linux - Software 5 05-19-2005 06:00 PM
How do I coding network analysis program. sebustian Linux - Networking 0 08-21-2004 04:00 PM
How to coding network analysis program.? sebustian Linux - Networking 0 08-11-2004 01:33 AM
MP3 analysis and Lp ripping King of Japan Linux - Newbie 5 11-02-2003 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration