MRAnalyze - Command Line Interface

verifycc icon

MRAnalyzer 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 toolsets.  This article contains the Linux/OS-X/Windows command line API for this tool.

MRAnalyze

MRAnalyzer 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

Net-X-Copy - Partial File Restore
Net-X-Copy - Partial File Restore Net-X-Copy is part of the Net-X-Convert, Net-X-Proxy, and Net-X-Code server software. It is designed to convert audio/video files from one type to another and... Tips, Tricks and Technical Information
Linux Requirements for Drastic software
Linux Requirements for Drastic software Most Drastic software is available on Linux x86_64 as well as Windows (32/64) and OS-X (32/64).  Linux testing is done on RedHat, Centos and Ubuntu (Debian... Tips, Tricks and Technical Information
RS-422 Device and Controller Hardware
RS-422 Device and Controller Hardware Drastic Technologies' VTR and DDR products include the necessary conversion hardware for RS-232 (your computer's serial port) to RS-422 (broadcast VTRs and... Tips, Tricks and Technical Information
Controlling 4KScope
Controlling 4KScope 4KScope supports both command line parameters and keyboard control.  This command line parameters can be used to allow 4KScope to open automatically on sta... Tips, Tricks and Technical Information
Multi Channel Audio In Drastic Software
Multi Channel Audio In Drastic Software Drastic software can support up to 16 channels of audio.  These can be 16 mono channels,  8 stereo pairs or all channels in one, depending on the setu... Tips, Tricks and Technical Information