Class MPEG2Settings
- Namespace
- VisioForge.Core.Types.FFMPEGEXE
- Assembly
- VisioForge.Core.dll
MPEG-2 settings.
public class MPEG2Settings : BasicVideoSettingsInheritance
Inherited Members
Remarks
Configures MPEG-2 video encoding parameters. MPEG-2 is widely used for DVD video, digital television broadcasting (DVB, ATSC), and video distribution.
MPEG-2 uses a combination of I-frames (intra-coded), P-frames (predictive), and B-frames (bidirectional) to achieve compression. The GOP (Group of Pictures) structure determines the pattern and frequency of these frame types.
Typical MPEG-2 applications: - DVD-Video (up to 9.8 Mbps) - Digital TV broadcasting (15-20 Mbps for HD) - Video archival and distribution - Professional video production workflows
Properties
BFrames
Gets or sets B-frames count.
public int BFrames { get; set; }Property Value
Remarks
Specifies the maximum number of consecutive B-frames between reference frames (I-frames or P-frames). B-frames provide the highest compression but require frames from both past and future for decoding.
B-frame considerations: - 0: No B-frames (lowest latency, compatible with all decoders) - 1-2: Standard for DVD and broadcast (good quality/compression balance) - 3-5: Higher compression for file-based applications - Higher values may not be supported by all MPEG-2 decoders
More B-frames increase compression efficiency but also increase encoding complexity, decoding latency, and memory requirements. DVD standard typically uses 2 B-frames.
GOPSize
Gets or sets GOP size.
public int GOPSize { get; set; }Property Value
Remarks
Specifies the number of frames in a Group of Pictures (GOP). A GOP starts with an I-frame and contains all frames until the next I-frame. Larger GOP sizes improve compression efficiency but reduce seek performance and error recovery.
Common GOP sizes: - 12-15: Standard for broadcast and DVD (NTSC) - 12-25: Standard for broadcast and DVD (PAL) - 30-60: Streaming and file-based applications - 120-300: Long-GOP for maximum compression
Default: 12 (for compatibility with DVD standards).