Verify-HEVCConversions

PowerShell HEVC Video Converter

📋 Table of Contents

Overview

Validates conversion integrity and quality

Synopsis

Validates HEVC video conversions and verifies file integrity.

Description

Performs comprehensive validation of HEVC video conversions to ensure quality and integrity.
This script performs multiple validation checks at different levels of depth based on the
verification mode selected.

Validation Checks:
- Basic codec verification (ensures proper HEVC encoding)
- Duration matching between source and converted files
- Frame count verification with tolerance
- Audio stream integrity validation
- Video stream quality assessment
- Basic playback validation
- Optional deep scanning with VMAF quality scoring

Verification Modes:
1. Basic: Quick validation of codec, duration, and basic playback
2. Full: Adds audio stream validation and more thorough checks
3. DeepScan: Comprehensive validation including VMAF scoring and video hash comparison

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.

-VerificationMode

Sets the depth and thoroughness of the validation process.
Options:
- Basic: Quick validation (default)
- Full: Thorough validation including audio
- DeepScan: Complete validation including quality metrics

-GenerateReport

Switch parameter to enable CSV report generation.
The report includes detailed validation results for each file.

-VmafThreshold

Sets the minimum acceptable VMAF score for quality validation.
- Range: 80-100
- Default: 90
- Recommended: 95+ for high-quality conversions

-FilePath

Full path to the media file to analyze.

-StreamType

Type of media stream to hash ("video" or "audio").
Default is "video".

-FilePath

Full path to the video file to analyze.

-SourcePath

Path to the original source video file.

-ConvertedPath

Path to the converted video file to compare.

-FilePath

Full path to the video file to test.

-Duration

Number of seconds to test (default: 10).

Examples

Example 1

Verify-HEVCConversions -SourcePath ".\Originals" -ConvertedPath ".\Converted"
Performs basic validation of converted files.

Example 2

Verify-HEVCConversions -SourcePath "D:\Videos" -ConvertedPath "D:\HEVC" -VerificationMode Full -GenerateReport
Performs thorough validation and generates a CSV report.

Example 3

Verify-HEVCConversions -SourcePath "E:\Source" -ConvertedPath "E:\Encoded" -VerificationMode DeepScan -VmafThreshold 95
Performs comprehensive validation with strict quality requirements.