Technical

Tips, Tricks and Technical Information

MRAnalyze - Command Line Interface

verifycc icon

MRAnalyze is a command line tool that compares an original media file with a compressed version of that file to determine the quality of the compression and note any major compression errors.  It supports the traditional PSNR as well as the more accurate SSIM and MS-SSIM.  It is part of the videoQC and Net-X-Code Server toolsets.  This article contains the Linux/macOS/Windows command line API for this tool.

MRAnalyze

MRAnalyze requires two files: the original, or reference file, and the target, or compressed, file.  It supports PSNR, SSIM and MS-SSIM analysis.  It outputs CSV or SQLite results, along with a DT3D file to allow visual comparison in videoQC.  There is more information on MRAnalyze in general available here:

https://www.drastic.tv/support-59/supporttipstechnical/93-simple-quality-measurement-mranalyze

Basic PSNR Analysis

mranalyze -a <source_ref_file> -b <compressed_file> -p 0

Analyze Part of a Capture

mranalyze -a <source_ref_file> -b <compressed_file> -p 0 -f 1020 -l 1320 -b 15202

Create a CSV Gaussian SSIM Output

mranalyze -a <source_ref_file> -b <compressed_file> -s 1 -o <outputpathfile>.csv

Check Just The I-Frames

 mranalyze -a <source_ref_file> -b <compressed_file> -m 0 -n 30

Command Line Parameters

mranalyze - Video/Audio analysis tool (www.drastic.tv)

Usage:  mranalyze -a <source a> -b <source b> -q -p # -s # -m # -g # -f # -l # -x # -n # [-o <targetfile>]

  • -a <source a>  Original file.
  • -b <source b>  Compressed file.
  • -q  Quiet (no output) must be first argument.
  • -p #  PSNR type
  • -s #  SSIM type (0-Square, 1=Guassian)
  • -m #  MS-SSIM type
  • -g #  Global checks (0-none, 1-basic, 2-advanced)
  • -f #  First frame to check
  • -l #  Last frame to check
  • -x #  B source first frame to check
  • -n #  Next frame distance (def 1 = every frame)
  • -o [targetfile]  Optional, csv output name (or '-o i' to generate the file name)

Optional GUI

mranalyzeui

The MRAnalyze GUI can be used to create the command line, run the analysis and then display the results.

More great products from Drastic

ProRes Color Shifts In Post Production
ProRes Color Shifts In Post Production ProRes itself is very well defined, and should be completely gamma/color shift free in the YCbCr domain at 10 bits per component.  The transform to YCbCr f... Tips, Tricks and Technical Information
SMPTE 2110, 2202 & RTP Multicast Setup
SMPTE 2110, 2202 & RTP Multicast Setup Most operating systems are not set up out of the box to handle heavy multicast loads. With some, multicast reception is actually disabled.  This article co... Tips, Tricks and Technical Information
4KScope AJA Shared Mode
4KScope AJA Shared Mode 4KScope (and HDRScope/2110Scope) can be set up to share an AJA board with products like Adobe Premiere, Avid Media Composer, Assimilate SCRATCH, Autodesk F... Tips, Tricks and Technical Information
Supported Raw Camera Formats
Supported Raw Camera Formats Drastic software and hardware products support a wide variety of camera raw devices, from standard files like DNG/cDNG, through esoteric files like fhgDI, to ne... Tips, Tricks and Technical Information
MediaReactor Usage Tips
MediaReactor Usage Tips MediaReactor and MediaReactor Workstation integrate tightly with installed operating systems and applications.  This section has tips and tricks on getting... Tips, Tricks and Technical Information
Image

For more than two decades, Drasticâ„¢ has been developing cutting edge solutions for television, post production and sports broadcasting, from real time web delivery to 8K broadcast.

We offer standalone software for the end user or enterprise, integrated solutions for automated workflows, and OEM tools for custom applications or branded devices.

Contact Us

Address:
523 The Queensway, Suite 201
Toronto, ON
M8Y 1J7, Canada

Phone: +1 (416) 255 5636

Email: info@drastictech.com

Fax: + 1 (416) 255 8780