MediaInfo and BitRate Viewer – Essential Tools for Video Analysis

Jan Ozer

I appreciate the opportunity to contribute to the outstanding content on the OTTVerse website. In my first article, I wanted to introduce those new to streaming media to the essential free tools necessary for their practice, MediaInfo and Bitrate Viewer.

Jan Ozer, Streaming Learning Center


MediaInfo is a video analysis tool that displays the most significant data points regarding a video file, including resolution, data rate, codec, bit depth, frame rate, duration, etc. It’s available for download here, and there are versions for Windows, Mac, iOS, Android, Debian, Ubuntu, Linux Mint, and many other operating systems.

How to configure MediaInfo for video analysis
Figure 1. Configuring MediaInfo

Once you install MediaInfo on Windows, you should explore the preferences that you access from the Options menu (Figure 1). Here you choose your default view out of the about 15 different views for the data. I prefer the Tree view shown in Figure 3 and use the HTML view shown in Figure 4 frequently to view encoding details—more on that below.

The three checked boxes on the right are checked by default. Most relevant is to enable the Explorer extension, which allows you to right-click a media file and open the file within MediaInfo. You can open multiple instances of MediaInfo, and once an instance is open, you can change files by dragging a different file onto the interface. 

Back in the preferences window, it’s also nice to be able to hover your pointer over a media file in Explorer and load the Explorer Tooltip, which identifies the container format, data rate, resolution, frame rate, codec, and codec-related information like profile (Figure 2). 

Tooltips in MediaInfo tool for video analysis
Figure 2.  The MediaInfo Tooltip.

Figure 3 shows the data presented by MediaInfo. There are three major sections, General, which shows container format, duration, file size, overall bitrate and other data; Video, which details video characteristics, and Audio, which does the same for audio. Most of the information is self-explanatory, like Format (codec), profile, duration, bit rate, width, height, frame rate, and bit depth.

I’ve just started working with HDR files where information like color primaries and mastering display color primaries are absolutely essential to understanding critical parameters of the file you’re about to encode and the files that you’ve produced.

MediaInfo tool's tree view
Figure 3. MediaInfo in Tree view. 

Bits/pixel is another critical data point, which as the title suggests, shows the amount of data allocated to each pixel in the video. Figure 3 shows an 8K file which is why the bits/pixel value is a relatively low 0.039. As a very general rule of thumb, a bits/pixel value of around 0.1 is sufficient to produce good quality in a 1080p H.264-encoded video.

So, if you’re watching a 1080p H.264-encoded video that looks terrible, and the bits/pixel value is 0.05, the problem is very likely that the data rate was too low. If you watch a very high-quality 1080p video and the bits/pixel value is 0.400, it’s a good guess that the data rate is much higher than necessary.

If you’ve to compare two videos with different resolutions and bitrates, the bits/pixel value gives you a common data point to compare how much compression was applied to the file. Most codecs get more efficient at higher resolutions, and, of course, HEVC is more efficient than H.264, which is why a bits-per-pixel value of 0.039 for an 8K HEVC encoded video is more than adequate. 

Related:  What is Video Encoding or Transcoding - Complete Guide

The other highlighted description in Figure 3 is Encoding Settings, and here MediaInfo, particularly in HTML view, becomes a gold mine, especially when viewing most files encoded with FFmpeg.

You see this in Figure 4, which you access by clicking View > HTML. In this view, you see all the encoding settings either applied in your command string or via default values in a neat little grouping, which you can search by clicking Ctrl-F.  This gets particularly useful with HEVC, which has dozens of parameters that appear in the Encoding settings listings.

MediaInfo's HTML view
Figure 4.  Encoding settings reviewed in HTML view.

When you’re experimenting with new FFmpeg settings, you should check your output in this view after each encode. FFmpeg doesn’t always report command string errors, and unless you verify that the settings worked as advertised, you may later find that they don’t. 

The HTML view is also wonderful for understanding how other producers are encoding their files. When researching the impact of the VBV buffer here, I downloaded files from Apple, CNN, and other services to learn what VBV values they used in their videos, which verified many of my assumptions and recommendations.

However, not all codecs and encoders provide this information. For example, if you encode using the AV1 codec in FFmpeg, encoding settings don’t appear. Ditto for encodes with many other encoders. 

Note that you can’t use drag and drop file loading when in HTML view; MediaInfo will attempt to load and play the file. So, click back to Tree or other view and MediaInfo should load the file and display the file-related data normally.

BitRate Viewer

The other software program, BitRate Viewer, is only available for Windows and can’t input any codecs newer than H.264, so HEVC, VP9, and AV1 are all out. If you can live with these limitations, you’ll find the program useful in several scenarios. For example, as shown in Figure 5, bitrate control techniques significantly impact the moving-average data rate of the file (wavy blue line) and the peaks and valleys in the data rate. 

Bitrate Viewer tool for video analysis

On top is a 1080p test file encoded at 5 mbps using 200% constrained VBR, and you see the data rate peaking at 8203. On the bottom, the file is encoded at 5 Mbps using 110% constrained VBR encoding, and the peak rate is 5852, much more palatable for those streaming over 4G or even 5G. If viewers on constrained connections experienced buffering issues in the first file, one glimpse at BitRate Viewer would explain why. 

As my consulting and teaching practice has extended beyond H.264 and Windows, I use Bitrate Viewer less and less. Still, virtually all streaming producers are delivering H.264-encoded video; if you’re still experimenting with your encoding parameters and have a Windows workstation around, Bitrate Viewer will probably come in handy.

Jan Ozer
Jan Ozer

Develops training courses for streaming media professionals; provides encoding-related testing services to encoder developers; helps video producers perfect their encoding ladders and deploy new codecs. Jan blogs primarily at the Streaming Learning Center.

2 thoughts on “MediaInfo and BitRate Viewer – Essential Tools for Video Analysis”

  1. Hi Jan, I’m window shopping for complex scenes to test encoders against. What’s your opinion today in regards to indicators of video complexity?

    In other media you’ve published it was reviewing the datarate (CRF23), but in recent papers, evaluations, and slide decks I’m seeing spatial and temporal metrics plotted on a chart with (vqeg) siti-tools, or alternatively (athena) video complexity analyzer to attempt to give context on the media tested but I haven’t been able to build those tools successfully and play with them like I have with vmaf (thanks to helpful guides on ottverse, wink wink).

    I use (ffmpeg) ffprobe to spit out frame sizes, that make up a bitrate, into a csv which excel parses and then points out the section with the highest bitrate for clips I record (diy Bitrate Viewer alternative).

  2. Netizen – CRF23 is pretty stone-age stuff, but since I don’t program, it works for me. If you’re looking for challenging clips, Crowdrun (Google it) is about the hardest. I typically use a mixture of genre-specific clips covering entertainment (movies, concerts), animations, sports, business, and gaming to test codecs and encoders. Hope this helps.

Leave a Comment

Your email address will not be published. Required fields are marked *

Enjoying this article? Subscribe to OTTVerse and receive exclusive news and information from the OTT Industry.