ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: linuxuser on May 13, 2010, 10:27:20 AM

Title: mp3: Bitrate query
Post by: linuxuser on May 13, 2010, 10:27:20 AM
exiftool -AudioBitrate always shows 128000. I would like to know the average bitrate of the mp3-file, which was encoded with a lame preset.
Title: Re: mp3: Bitrate query
Post by: Phil Harvey on May 13, 2010, 10:37:49 AM
Can send me a sample file?  (philharvey66 at gmail.com)
Title: Re: mp3: Bitrate query
Post by: Phil Harvey on May 18, 2010, 08:22:31 AM
Thanks for the samples.  These use a variable-bit-rate encoding, and the bitrate can be calculated from the values of other tags.  I will add a new Composite AudioBitrate tag which will do this calculation for VBR files.

- Phil
Title: Re: mp3: Bitrate query
Post by: linuxuser on May 18, 2010, 08:46:20 AM
Thanks Phil, does this mean, that the bitrate of files with CBR cannot be queried using this field?
Title: Re: mp3: Bitrate query
Post by: Phil Harvey on May 18, 2010, 07:04:18 PM
Quote from: linuxuser on May 18, 2010, 08:46:20 AM
Thanks Phil, does this mean, that the bitrate of files with CBR cannot be queried using this field?

The MPEG:AudioBitrate tag will still exist.  With "exiftool -audiobitrate FILE", the MPEG:AudioBitrate will be extracted for CBR files and the new Composite:AudioBitrate tag will be extracted for VBR files.  Of course, you can always extract both with -a, or either one specifically by specifying the group name.

- Phil