Open-Source video bitrate analyzer

Ever wanted/needed to analyze the bitrate of a video file? Here is an Open-Source solution, that just requires a little bit of simple command line knowledge to get going.

image

The Open-Source video bitrate analyzer is based on ffprobe and gnuplot, and some nifty scripts created by clever people. I initially found these tips via a discussions thread over at CreativeCow, and here is how to do it with OS X 10.9 Mavericks.

1. Install Xcode Command-line Tools via Terminal

  • sudo xcode-select –install

2. Install X11 – http://xquartz.macosforge.org

3. Install MacPorts – http://www.macports.org

4. Install the following via MacPorts…

Make sure MacPorts is up-to-date

  • sudo port selfupdate

Python3

  • sudo port install python33
  • sudo port select –set python python33

Matplotlib Python 3 Library

  • sudo port install py33-matplotlib

Perl 5 and JSON/perl conversion module

  • sudo port install perl5
  • sudo port install p5-json

ffmpeg – to get ffprobe

  • sudo port install ffmpeg

5. Download a copy of plotframes and plotbitrate.py (faster)

6. Make your plotframes/plotbitrate.py executable and go!

Examples:

  • ./plotframes -i /path/to/video.mp4 [-t svg -o video.svg
  • ./plotbitrate.py /path/to/video.mp4

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