Home > linux > Use ffmpeg to output mp3 tags/bitrate

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.

Advertisements
Categories: linux Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: