mp3plot
An mp3 bitrate plot tool

Projects index

Index

  1. Details
  2. Description
  3. Downloads
  4. Acknowledgements
  5. Cross-references
  6. Changes

Details

Description

This tool prints out a plot of the bitrate distribution of a VBR MP3 file (it will also do it for CBR files although it isn't very meaningful).

It should be architecture independent but I haven't tested beyond PCs.

There's a much more mature tool that does the same and more: mp3stat at signal-lost.homeip.net/projects. mp3stat refuses to work on my system(s) and having an interest in mp3's internal structure I gave a shot at it with mp3plot.

Version 0.4.0a introduces experimental graphical plot to an image, run with -g and an image with the input file and .png appended will be created. It is currently highly experimental see below:

A note of warning currently the output image will have a vertical line for each frame, loop at the above example (this means more than 2000 pixels per minute).

Downloads

Source code
mp3plot-0.4.0a.tar.gz

You'll need the boost-program-options library to compile. And of course the standard libraries and compilers, the program is written in C++ and only tested with g++.
To get the (optional) experimental image output support, you'll need either GraphicsMagick++ or ImageMagick++.

Compile in the standard GNU fashion:
$ tar zxvf mp3plot-0.4.0a.tar.gz
$ cd mp3plot-0.4.0a
$ ./configure
$ make
# make install

NOTE: configure might have problems finding Boost::Program_options, if it can't find it, try to guess the correct suffix, e.g.:
$ ls /usr/lib/*boost_program_options*
/usr/lib/libboost_program_options-mt.a
/usr/lib/libboost_program_options-mt.so

Here the suffix is -mt, rerun configure this way:
$ ./configure --with-boost-program-options=mt

OR if you're on a Debian or derived (such as Ubuntu) system you can recreate the debian package:
$ tar zxvf mp3plot-0.4.0a.tar.gz
$ cd mp3plot-0.4.0a
$ dpkg-buildpackage -rfakeroot

Precompiled linux static binaries (no image support included in the static packages)
Debian (Sid) packages
(dependancies updated in May 7th 2008)

Acknowledgements

I got most of my reference information on the MP3 file structure from the MP3 File Structure Description document located at www.multiweb.cz/twoinches/MP3inside.htm.

Cross-references

For the benefit of users I'll list pages I know with some kind of (meaningful) reference to mp3plot, such as those providing packaging or explanations beyond my capabilities.

Changes

0.4.0a (May, 26th 2007)


© 2007-2008 Toni Corvera < outlyer at gmail dot com >