Struct InputFormat
Represents an AV input format, wrapping around an FFmpeg.AutoGen._AVInputFormat pointer.
Inherited Members
Namespace: FFmpeg.Formats
Assembly: FFmpeg.dll
Syntax
public readonly struct InputFormat
Remarks
This struct provides access to the properties and methods associated with an AV input format.
Properties
View SourceAAC
Gets the AAC input format.
Declaration
public static InputFormat? AAC { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
AAX
Gets the CRI AAX input format.
Declaration
public static InputFormat? AAX { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
AC3
Gets the raw AC-3 input format.
Declaration
public static InputFormat? AC3 { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
ASF
Gets the ASF input format.
Declaration
public static InputFormat? ASF { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
ASS
Gets the SSA/ASS subtitle input format.
Declaration
public static InputFormat? ASS { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
AVI
Gets the AVI input format.
Declaration
public static InputFormat? AVI { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
BMP_PIPE
Gets the piped BMP sequence input format.
Declaration
public static InputFormat? BMP_PIPE { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
DASH
Gets the DASH input format.
Declaration
public static InputFormat? DASH { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
DirectShow
Gets the direct show input device.
Declaration
public static InputFormat? DirectShow { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
Extensions
Gets the file extensions associated with the input format.
Declaration
public IReadOnlyList<string> Extensions { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Remarks
File extensions are used to identify files of this format. This property retrieves and splits the extensions from a comma-separated string. Returns an empty list if no extensions are available.
FLAC
Gets the FLAC input format.
Declaration
public static InputFormat? FLAC { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
FLV
Gets the Flash Video input format.
Declaration
public static InputFormat? FLV { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
Flags
Gets the flags associated with the input format.
Declaration
public FormatFlags Flags { get; }
Property Value
| Type | Description |
|---|---|
| FormatFlags |
Remarks
Flags represent various properties and capabilities of the format, such as whether it supports seeking or demuxing.
GDIScreenGrabber
Gets the dgigrap input device.
Use "desktop", title=window_title or hwnd=window_hwnd to specify what to grap.
Declaration
public static InputFormat? GDIScreenGrabber { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
HLS
Gets the HTTP Live Streaming input format.
Declaration
public static InputFormat? HLS { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
JPEGXL_PIPE
Gets the piped JPEG XL sequence input format.
Declaration
public static InputFormat? JPEGXL_PIPE { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
JPEG_PIPE
Gets the piped JPEG sequence input format.
Declaration
public static InputFormat? JPEG_PIPE { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
LongName
Gets the long name of the input format.
Declaration
public string LongName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
The long name provides a more descriptive name for the format compared to the short names.
M4A
Gets the M4A input format (alias for MP4/MOV).
Declaration
public static InputFormat? M4A { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
MATROSKA
Gets the Matroska/WebM input format (alias for MKV/WebM).
Declaration
public static InputFormat? MATROSKA { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
MKV
Gets the Matroska/WebM input format.
Declaration
public static InputFormat? MKV { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
MOV
Gets the MOV input format (alias for MP4).
Declaration
public static InputFormat? MOV { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
MP3
Gets the MP3 input format (MP2/MP3).
Declaration
public static InputFormat? MP3 { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
MP4
Gets the MP4 input format (QuickTime / MOV / MP4 / 3GP / M4A / 3G2 / MJ2).
Declaration
public static InputFormat? MP4 { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
MPEG
Gets the MPEG-PS input format.
Declaration
public static InputFormat? MPEG { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
MPEGTS
Gets the MPEG-TS input format.
Declaration
public static InputFormat? MPEGTS { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
MimeTypes
Gets the MIME types associated with the input format.
Declaration
public IReadOnlyList<string> MimeTypes { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Remarks
MIME types are used to indicate the media type of the format. This property retrieves and splits the MIME types from a comma-separated string. Returns an empty list if no MIME types are available.
OGA
Gets the Ogg input format (alias for Ogg).
Declaration
public static InputFormat? OGA { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
OGG
Gets the Ogg input format.
Declaration
public static InputFormat? OGG { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
OGV
Gets the Ogg input format (alias for Ogg).
Declaration
public static InputFormat? OGV { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
PNG_PIPE
Gets the piped PNG sequence input format.
Declaration
public static InputFormat? PNG_PIPE { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
RAWVIDEO
Gets the raw video input format.
Declaration
public static InputFormat? RAWVIDEO { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
RTP
Gets the RTP input format.
Declaration
public static InputFormat? RTP { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
RTSP
Gets the RTSP input format.
Declaration
public static InputFormat? RTSP { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
SRT
Gets the SubRip subtitle input format.
Declaration
public static InputFormat? SRT { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
SSA
Gets the SSA subtitle input format (alias for ASS).
Declaration
public static InputFormat? SSA { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
ShortNames
Gets the short names associated with the input format.
Declaration
public IEnumerable<string> ShortNames { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
Remarks
Short names are often used as identifiers or abbreviations for the format. This property retrieves and splits the short names from a comma-separated string.
SupportedCodecs
Gets the list of supported codecs for this input format.
Declaration
public IReadOnlyList<CodecTag> SupportedCodecs { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<CodecTag> |
Remarks
This property iterates through the codec tags associated with the format to collect the supported codec IDs.
TIFF_PIPE
Gets the piped TIFF sequence input format.
Declaration
public static InputFormat? TIFF_PIPE { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
WAV
Gets the WAV input format.
Declaration
public static InputFormat? WAV { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
WEBM
Gets the WebM input format (alias for Matroska).
Declaration
public static InputFormat? WEBM { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
WEBP_PIPE
Gets the piped WEBP sequence input format.
Declaration
public static InputFormat? WEBP_PIPE { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
WMA
Gets the WMA input format (inside ASF).
Declaration
public static InputFormat? WMA { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
YUV4MPEGPIPE
Gets the YUV4MPEG input format.
Declaration
public static InputFormat? YUV4MPEGPIPE { get; }
Property Value
| Type | Description |
|---|---|
| InputFormat? |
Methods
View SourceFindFormat(string)
Finds an InputFormat by its short name.
Declaration
public static InputFormat? FindFormat(string short_name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | short_name | The short name of the input format to find. |
Returns
| Type | Description |
|---|---|
| InputFormat? | An instance of InputFormat if found; otherwise, null. |
GetInputFormats()
Retrieves a collection of all available AV input formats.
Declaration
public static IReadOnlyList<InputFormat> GetInputFormats()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<InputFormat> | An IReadOnlyList<T> containing all available input formats. |
Remarks
This method uses the FFmpeg library to iterate through all available demuxers and collects them into a list of InputFormat objects.
ToString()
Returns a string representation of the input format.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The LongName of the input format. |