Enum AVIInterleaving
- Namespace
- VisioForge.Core.Types.Output
- Assembly
- VisioForge.Core.dll
Defines the interleaving modes for AVI file creation, controlling how audio and video streams are multiplexed.
public enum AVIInterleavingFields
None = 0-
No interleaving is performed. Audio and video streams are written sequentially.
In this mode, all video frames are written first, followed by all audio data. This can result in poor playback performance as the player must seek between distant file locations to read synchronized audio and video data. Not recommended for general use, but may be useful for specific processing scenarios.
Capture = 1-
Optimized interleaving for real-time capture scenarios.
This mode uses interleaving settings optimized for capturing live sources. It balances file writing performance with playback compatibility, making it suitable for recording from cameras, capture cards, or screen capture. Provides good real-time performance while maintaining reasonable file structure.
Full = 2-
Full interleaving with optimal audio/video frame placement.
This mode provides the best interleaving for smooth playback across different players. Audio and video frames are carefully interleaved based on their timestamps to minimize seeking during playback. Recommended for final output files where playback quality is the primary concern. May have slightly higher overhead during file creation.
NoneBuffered = 3-
No interleaving with internal buffering for improved write performance.
Similar to None mode but uses internal buffering to improve file writing performance. Audio and video are still written sequentially, but buffering reduces the number of write operations. Useful when capturing to slower storage devices or when post-processing will reorganize the file structure anyway.
Remarks
Interleaving determines how audio and video data are arranged in the AVI file. Proper interleaving ensures smooth playback by placing audio and video frames in an order that minimizes seeking during playback. The choice of interleaving mode affects file creation performance, compatibility, and playback smoothness.