Class MediaContainerFormat
Represents a base class for media container file formats used in video processing.
Namespace: FulcrumFS.Videos
Assembly: FulcrumFS.Videos.dll
Syntax
public abstract class MediaContainerFormat
Remarks
Each MediaContainerFormat represents one specific container file format with a unique primary extension. While ffmpeg groups some formats together under the same demuxer (e.g., mov/mp4/m4a/3gp/3g2/mj2 share a single demuxer, and matroska/webm share another), this type distinguishes them strictly: content is verified against the expected file extension and a mismatch is treated as an error rather than silently reconciled.
Properties
| Name | Description |
|---|---|
| AllResultFormats | Gets a list of all supported media container formats that have writing support (SupportsWriting). |
| AllSourceFormats | Gets a list of all supported media container formats for source files (with writable ones first). |
| Avi | Gets the AVI media container format. Extension: |
| Extensions | Gets the file extensions associated with this media container format (including the leading '.'). Most formats have a single extension; some have aliases (e.g., .mpeg and .mpg) that all refer to the same underlying format. |
| FileFormat | Gets the corresponding FileFormat used for content validation. |
| M2ts | Gets the MPEG-TS (192-byte packet, Blu-ray style) media container format. Extensions: |
| M4A | Gets the MPEG-4 audio (M4A) media container format. Extension: |
| MP4 | Gets the MP4 media container format. Extension: |
| Mj2 | Gets the Motion JPEG 2000 (MJ2) media container format. Extension: |
| Mkv | Gets the Matroska (MKV) media container format. Extension: |
| Mov | Gets the QuickTime/MOV media container format. Extension: |
| Mpeg | Gets the MPEG-PS media container format. Extensions: |
| Name | Gets the name of the container format as used in ffprobe output (format_name). Multiple MediaContainerFormat instances may share the same demuxer name when ffmpeg groups them under a single demuxer (e.g., all ISO BMFF formats share "mov,mp4,m4a,3gp,3g2,mj2"). |
| PrimaryExtension | Gets the primary file extension associated with this media container format (including the leading '.'). |
| SupportsWriting | Gets a value indicating whether this container format supports being written to, i.e., whether we support muxing for it. |
| TS | Gets the MPEG-TS (188-byte packet) media container format. Extension: |
| Tg2 | Gets the 3GPP2 (3G2) media container format. Extension: |
| Tgp | Gets the 3GPP (3GP) media container format. Extension: |
| WebM | Gets the WebM media container format. Extension: |
Methods
| Name | Description |
|---|---|
| NameMatches(string) | Determines whether the specified format name (from ffprobe) matches this media container format. |