Table of Contents

Enum H264Profile

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

Specifies the H.264 encoding profile for FFMPEG operations.

public enum H264Profile

Fields

None = 0

No profile constraint - allows encoder to choose automatically.

When set to None, FFMPEG will select the most appropriate profile based on encoding parameters and target device capabilities. This provides maximum flexibility but less predictable compatibility.

Baseline = 1

Baseline profile - maximum compatibility with limited features.

Features: - I and P frames only (no B-frames) - Context-Adaptive Variable Length Coding (CAVLC) only - Basic error resilience features - 4:2:0 chroma sampling - 8-bit color depth

Use cases: - Mobile devices and low-power hardware - Video conferencing and real-time communication - Streaming to wide range of devices - WebRTC applications - Low-latency requirements

Limitations: - Lower compression efficiency than Main/High - No B-frames reduces quality at same bitrate - No CABAC entropy coding

FFMPEG: -profile:v baseline Compatibility: Nearly universal (iOS, Android, web browsers)

Main = 2

Main profile - balanced features for broadcast and streaming.

Features: - I, P, and B frames supported - CABAC entropy coding enabled - Interlaced video support - 4:2:0 chroma sampling - 8-bit color depth

Use cases: - Digital television broadcasting (DVB, ATSC) - Blu-ray discs (pre-High profile era) - Standard definition and high definition streaming - General-purpose video encoding

Advantages: - Better compression than Baseline (10-20% bitrate savings) - B-frames improve compression efficiency - CABAC provides better entropy coding - Wide device compatibility

FFMPEG: -profile:v main Compatibility: Most modern devices and players

High = 3

High profile - advanced features for high-quality content.

Features: - All Main profile features - 8x8 DCT transform - Custom quantization matrices - Lossless macroblock coding - Enhanced motion prediction - 4:2:0 chroma sampling - 8-bit color depth

Use cases: - Blu-ray disc authoring - HD/4K video streaming (Netflix, YouTube) - Professional video production - High-quality archival - OTT streaming services

Advantages: - Best compression efficiency for 8-bit content - 10-30% bitrate savings over Main profile - Standard for HD content distribution - Excellent quality-to-size ratio

FFMPEG: -profile:v high Compatibility: Modern devices (2010+), streaming platforms Note: Default for most high-quality encodings

High10 = 4

High 10 profile - 10-bit color depth for professional applications.

Features: - All High profile features - 10-bit color depth (1024 levels per channel) - Reduced banding in gradients - Better color accuracy - 4:2:0 chroma sampling

Use cases: - Professional video production and grading - HDR (High Dynamic Range) content - Animation and visual effects - Medical and scientific imaging - Preservation and archival

Advantages: - Smoother gradients, less color banding - Better for color grading workflows - More headroom for post-processing - Essential for HDR content

Requirements: - Decoder must support High 10 - ~20% larger file size than 8-bit High - More demanding on playback hardware

FFMPEG: -profile:v high10 Compatibility: Professional tools, modern media players

High422 = 5

High 422 profile - professional broadcast and production quality.

Features: - All High 10 profile features - 4:2:2 chroma sampling - 8-bit or 10-bit color depth - Enhanced color resolution - Professional color space support

Use cases: - Broadcast production and contribution feeds - Professional video editing and post-production - Chroma keying and compositing - High-end camera recording formats - Studio and production workflows

Advantages: - Superior chroma resolution - Better for chroma keying (green screen) - Professional broadcast standard - Maintains color quality through processing

Requirements: - Professional video equipment - Significantly larger file sizes - Not supported by consumer devices

FFMPEG: -profile:v high422 Compatibility: Professional broadcasting equipment only

High444 = 6

High 444 profile - maximum quality with full color resolution.

Features: - All High 422 profile features - 4:4:4 chroma sampling (no chroma subsampling) - Full color resolution - RGB and transparency support - 8-bit, 10-bit, or 12-bit depth - Lossless encoding capability

Use cases: - Screen capture and remote desktop - Visual effects and compositing - Computer graphics and animation - Medical imaging with overlays - Archival of RGB content - Graphics and text-heavy content

Advantages: - No chroma subsampling - perfect color - RGB and transparency channel support - Ideal for computer-generated content - Lossless mode available - Best for text and graphics

Requirements: - Very large file sizes - High encoding/decoding complexity - Limited hardware/software support - Overkill for natural video content

FFMPEG: -profile:v high444 Compatibility: Specialized applications and professional tools Note: Consider lossless codecs for some use cases

Remarks

H.264 profiles define the feature set and capabilities available during encoding. Each profile builds upon the previous one, adding more advanced features while reducing compatibility with older devices.

Profile selection affects: - Compression efficiency and quality - Encoding complexity and speed - Decoder requirements and compatibility - Feature availability (B-frames, CABAC, etc.)

FFMPEG usage: -profile:v [baseline|main|high|high10|high422|high444]