Analyze-Compression

PowerShell HEVC Video Converter

📋 Table of Contents

Overview

Analyzes compression efficiency and quality metrics

Synopsis

Analyzes compression efficiency and quality metrics for HEVC video conversions.

Description

Performs comprehensive analysis of HEVC video compression results by comparing source and converted files.
Generates detailed metrics and reports to evaluate compression efficiency and quality preservation.

Key Features:
- Compression ratio and space savings analysis
- Bitrate analysis and efficiency metrics
- Visual quality assessment (PSNR, SSIM, VMAF)
- Quality-per-bit efficiency scoring
- Multi-format reporting (Console, HTML, CSV)
- Visual data representation through charts
- Batch processing with detailed logging

Parameters

-SourcePath

Path to the directory containing original source video files.
The script will recursively search this directory for matching source files.

-ConvertedPath

Path to the directory containing HEVC converted video files.
Files should have '_x265' suffix in their names to be identified as conversions.

-OutputFormat

Specifies the format(s) for the analysis report output.
Valid options:
- Console: Displays results in the PowerShell console
- HTML: Generates a detailed HTML report with styling
- CSV: Exports raw data in CSV format
- All: Generates all available report formats
Default value: "Console"

-GenerateCharts

Switch parameter to enable generation of visual charts and graphs.
Requires Python with matplotlib installed.
Charts include:
- Compression efficiency vs quality scatter plot
- Bitrate vs quality analysis
- Quality score distribution
- Compression ratio distribution

-FilePath

Full path to the media file to analyze.

-SourcePath

Path to the original source video file.

-ConvertedPath

Path to the converted video file to compare against the source.

Examples

Example 1

Analyze-Compression -SourcePath ".\Originals" -ConvertedPath ".\Converted"
Performs basic analysis with console output only.

Example 2

Analyze-Compression -SourcePath "D:\Videos" -ConvertedPath "D:\HEVC" -OutputFormat HTML -GenerateCharts
Performs full analysis with HTML report and visual charts.

Example 3

Analyze-Compression -SourcePath "E:\Source" -ConvertedPath "E:\Encoded" -OutputFormat All
Generates comprehensive reports in all available formats.