HydrogenAudio

Lossy Audio Compression => MP3 => MP3 - General => Topic started by: knarf on 2010-08-26 22:45:02

Title: Software To Recreate LAME Histogram
Post by: knarf on 2010-08-26 22:45:02
I'm looking for a way to either capture the histogram that gets created when you do a LAME VBR encode (using 3.98.4 if it matters) or - even better - one that reads a VBR mp3 file created with LAME and then recreates the information in the histogram (the percent at each bit rate, average bitrate, MS / LR percentages, etc.).

I'm a statistics guy, and I feel like I get a lot of information about the way the music is mixed and mastered from the histogram, but it goes away so fast that I don't really get to study it.
Title: Software To Recreate LAME Histogram
Post by: /mnt on 2010-08-26 22:50:26
Encspot Pro should meet you needs, but it can be abit hard to find though.
Title: Software To Recreate LAME Histogram
Post by: knarf on 2010-08-26 23:30:46
Encspot Pro should meet you needs, but it can be abit hard to find though.


Thanks.  Found EncSpot Pro and the info looks good.

I'm not sure whether - since it's now freeware and out of development - the TOS allows me to post a link to where I found it to help others.  Totally willing to if it's OK.
Title: Software To Recreate LAME Histogram
Post by: greynol on 2010-08-27 01:10:02
I'm not sure whether - since it's now freeware and out of development - the TOS allows me to post a link to where I found it to help others.  Totally willing to if it's OK.

We've discussed this before, and though it's a bit murky, it isn't ok.
Title: Software To Recreate LAME Histogram
Post by: Aleron Ives on 2010-08-27 06:09:48
Use ALL2LAME. Once the batch is complete, it pauses and waits for you to press a key before it closes the command prompt. You can then right click in the window and select "Select All" to highlight everything, then press Enter to copy it to the clipboard. Paste the text into Notepad or the text editor of your choice to save it.
Title: Software To Recreate LAME Histogram
Post by: knarf on 2010-08-29 00:14:13
I'm not sure whether - since it's now freeware and out of development - the TOS allows me to post a link to where I found it to help others.  Totally willing to if it's OK.

We've discussed this before, and though it's a bit murky, it isn't ok.


Understood.  I did it in a couple Google searches, others can too.
Title: Software To Recreate LAME Histogram
Post by: m0rbidini on 2010-09-03 00:47:43
Is there anything similar for AAC files?
Title: Software To Recreate LAME Histogram
Post by: ErectX on 2010-09-08 06:53:42
mp3packer with the -i option will give you a histogram in text format:

>mp3packer -i "Armin Van Buuren - A State Of Trance Cd 1 Light.mp3"

*** 'Armin Van Buuren - A State Of Trance Cd 1 Light.mp3'
INFO:
MPEG1 layer 3
173875 frames
44100 Hz
38.281250 frames per second
4542.040816 seconds
123869044 bytes in file (218.173370 kbps)
123867284 bytes in MP3 frames (218.170270 kbps) = current bitrate
939988814 bits of payload data (206.952965 kbps)
117574647 bytes of payload data (207.086905 kbps)
608362 bits wasted from partially-full bytes (0.133940 kbps)
123834147 bytes of MP3 data (218.111905 kbps) = minimum bitrate possible
33137 bytes of padding (0.058365 kbps)
1760 bytes outside MP3 frames (0.003100 kbps)
0 sync errors
Bitrate distribution:
  32: 9,0
  128: 5502,0
  160: 25495,0
  192: 47512,0
  224: 45919,0
  256: 31861,0
  320: 17577,0
Largest frame uses 9392 bits = 1174 bytes = 359.537500 kbps
Smallest bitrate for CBR is 320
Title: Software To Recreate LAME Histogram
Post by: greynol on 2010-09-08 06:59:45
Digging way back into the past, musiCutter can for mp3s as well.  I don't know of any for aac though.
Title: Software To Recreate LAME Histogram
Post by: GHammer on 2010-09-08 13:23:29
metamp3 will show the info. Command line only.
Title: Software To Recreate LAME Histogram
Post by: romor on 2013-03-19 02:16:00
Is there anything similar for AAC files?

Reviving just to provide some kind of a solution, as Google showed me this thread while I was searching for aac histogram

I found that mp4box can provide bits per sample in nhml (xml human readable format) or nhnt (binary format). More info on gpac portal: http://gpac.wp.mines-telecom.fr/mp4box/med...rt/nhml-format/ (http://gpac.wp.mines-telecom.fr/mp4box/media-import/nhml-format/)

So by using for example `mp4box -nhml 1 sample.m4a`, among other things it will create .nhml file with sample by sample bit length (xpath: "/NHNTStream/NHNTSample/@dataLength")

In some scenarios `qaac` can be used with `-S` switch, which will save txt file with exact same data as above only in kbps units