Table of Contents

Enum FFMPEGSourceMediaType

Namespace
VisioForge.Core.Types.Events
Assembly
VisioForge.Core.dll

Defines the types of media streams that can be found in an FFmpeg source. This enumeration helps categorize different tracks within a multimedia file or stream.

public enum FFMPEGSourceMediaType

Fields

Unknown = -1

The media stream type is unknown or not specified.

Video = 0

The stream contains video data.

Audio = 1

The stream contains audio data.

Data = 2

The stream contains generic data, often used for private data or custom formats.

Subtitle = 3

The stream contains subtitle data.

Attachment = 4

The stream contains attachment data, such as fonts or images embedded in the media file.

NB = 5

Represents the number of media types. Not a valid media type itself.

Remarks

These media types are commonly encountered when parsing or processing multimedia containers using FFmpeg-based components. FFmpeg supports a wide variety of container formats (MP4, MKV, AVI, MOV, etc.) which can contain multiple stream types. Video streams contain compressed or raw video frames. Audio streams contain compressed or raw audio samples. Subtitle streams provide text overlays, closed captions, or SDH (Subtitles for Deaf and Hard of hearing). Data streams carry arbitrary data like timecode, metadata, or custom application data. Attachment streams contain embedded files like fonts (used by styled subtitles), cover art, or other resources. NB (Number of types) is used internally for array sizing and iteration, not as an actual media type. Unknown type indicates unrecognized or unsupported stream types that may require special handling. Stream type identification is essential for proper demuxing, decoding, and routing of media data. Applications typically filter streams by type to process only relevant data (e.g., video+audio for playback, subtitles for rendering). Understanding stream types enables multi-track selection, language selection, and advanced media processing workflows.