Archive

Posts Tagged ‘mp3’

Use ffmpeg to output mp3 tags/bitrate

Someone asked me for a quick and simple way to output the bitrate of a mp3 file from the commandline. Two ways (and probably a gazillion more…), either use the excellent mediainfo application, which is readily available in most repositories, or – if you aren’t so much into installing another package for just a quick and simple task – use the mostly preinstalled ffmpeg like this:
ffmpeg -i <file> 2>&1 | sed -n '/Input/,/Stream/p'

Both work with variable bitrates by the way.

Categories: linux Tags: ,
%d bloggers like this: