Feature Request: Report Audio Bitrate of Video Files

Started by Silico, October 18, 2016, 07:20:13 PM

Previous topic - Next topic

Silico

[Can't delete this topic, though I've now found a relevant old topic here. Some condemn for "resurrecting dead topics", while some condemn for "not keeping discussion consolidated". The warning I got posting on the old topic suggests the former is in operation here, so I best not blank this topic.]


Unlike ffprobe, for every video file I've tested, version 10.30 of exiftool doesn't report the bitrate of audio encoding.

I'd prefer to use exiftool because of its easy output format control.

Phil Harvey

I assume you're talking about MP4 files as with the other topic?  it is possible that this information isn't in the MP4 metadata, but instead embedded in the audio stream.  ExifTool may need to decode this stream to extract the bitrate information, but writing decoders for all audio/video codecs is somewhat beyond the scope of ExifTool.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Silico

Thanks Phil for the reply.

Yes, they're MP4 files. I've had a look at how ffprobe, mediainfo, and mplayer do it, and they probably don't do a full decode, but rather divide the number of bytes in the stream by the number of seconds in the stream, though there are many subtleties.

I've settled on mplayer for now because its output is easiest to parse (though not as easy as exiftool).