Table of Contents

Class HEVCMFSettings

Namespace
VisioForge.Core.Types.FFMPEGEXE
Assembly
VisioForge.Core.dll

H.265/HEVC Microsoft Media Foundation encoder settings for Windows hardware-accelerated encoding.

public class HEVCMFSettings : CommonMFSettings

Inheritance

Inherited Members

Remarks

The HEVC Media Foundation encoder provides hardware-accelerated H.265/HEVC encoding using Windows Media Foundation API and available hardware encoders (Intel QSV, NVIDIA NVENC, AMD VCE). This encoder integrates with Windows platform for seamless hardware acceleration discovery and utilization.

Hardware support: - Intel: 6th gen Core processors (Skylake) or newer with Intel HD Graphics - NVIDIA: GTX 950 or newer (Maxwell 2nd gen+) with compatible drivers - AMD: Radeon RX 460 or newer (Polaris+) with compatible drivers - Windows 10 or newer with latest graphics drivers

Media Foundation advantages: - Automatic hardware encoder selection - Native Windows integration - Lower overhead than standalone GPU APIs - Consistent API across different hardware vendors - DirectX integration for minimal memory copies - Windows Store app compatibility

HEVC benefits over H.264: - 25-50% better compression efficiency - Improved quality at lower bitrates - Better support for 4K/8K content - 10-bit color depth for HDR - Future-proof codec for modern content

FFMPEG usage: ffmpeg -i input.mp4 -c:v hevc_mf -quality 50 output.mp4

Note: This class inherits from CommonMFSettings which provides shared Media Foundation encoder configuration including rate control, quality settings, GOP structure, and other common parameters.

Constructors

HEVCMFSettings()

Initializes a new instance of the VisioForge.Core.Types.FFMPEGEXE.HEVCMFSettings class with recommended defaults.

public HEVCMFSettings()

Remarks

Default configuration optimized for HEVC Media Foundation encoding: - Encoder: H264_MF (NOTE: Should be HEVC_MF, possible configuration issue) - Aspect Ratio: Auto (0:0) - Resolution: Auto (0x0, will use source resolution) - Rate Control: Quality-based (default) - Quality: 25 (scale typically 0-100, higher is better)

Post-initialization adjustments for common scenarios:

For 4K streaming: - Verify encoder is set to HEVC_MF (not H264_MF) - Set appropriate bitrate (15-40 Mbps for 4K) - Consider Quality = 40-60 for good balance - Enable hardware-specific optimizations if available

For HDR content: - Ensure 10-bit color depth is configured - Use appropriate color space settings - Set Quality higher (50-70) for HDR preservation - Verify hardware supports HEVC Main10 profile

For live streaming: - Use CBR rate control for consistent bandwidth - Enable low-latency mode if available - Balance quality and encoding speed - Monitor hardware encoder performance

For maximum quality archival: - Set Quality to 70-90 - Use VBR rate control - Enable all quality-enhancing features - Verify adequate hardware resources

Hardware-specific notes: - Intel QSV: Excellent quality-performance balance - NVIDIA NVENC: Fast encoding, newer GPUs have better quality - AMD VCE: Good performance, quality improving with newer generations

IMPORTANT: The actual hardware encoder used depends on available hardware and drivers. Media Foundation will automatically select the best available hardware encoder. Use Intel, NVIDIA, or AMD-specific settings classes (HEVCQSVSettings, HEVCNVENCSettings, HEVCAMFSettings) for more control over specific hardware encoders.