LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mp3 file analysis program (https://www.linuxquestions.org/questions/linux-software-2/mp3-file-analysis-program-885191/)

paziulek 06-08-2011 07:45 AM

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...

David the H. 06-08-2011 10:28 AM

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.

teckk 06-08-2011 10:40 AM

Code:

file music.mp3
Code:

ffmpeg -i music.mp3
Code:

mplayer music.mp3
Will give you info on your .mp3 file.

paziulek 06-08-2011 11:08 AM

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

paziulek 06-08-2011 11:16 AM

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!

David the H. 06-08-2011 01:52 PM

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.


All times are GMT -5. The time now is 05:44 AM.