Class VideoProcessingOptions
Represents options for configuring VideoProcessor's video file processing.
Implements
Namespace: FulcrumFS.Videos
Assembly: FulcrumFS.Videos.dll
Syntax
public sealed record VideoProcessingOptions : IEquatable<VideoProcessingOptions>
Properties
| Name | Description |
|---|---|
| AudioQuality | Gets or initializes the quality to use for audio encoding. Default is Medium. |
| AudioReencodeMode | Gets or initializes the behavior for re-encoding audio streams. |
| AudioSourceValidation | Gets or initializes the options for validating audio streams in the source video before processing. Default is None. |
| ForceProgressiveDownload | Gets or initializes a value indicating whether to ensure the 'moov atom' in an MP4 file is at the beginning of the file. The value comes from the preset that the options start from (StandardizedH264AACMP4, StandardizedHEVCAACMP4 or Preserve). |
| ForceProgressiveFrames | Gets or initializes a value indicating whether to force progressive frames in the output video streams, as opposed to interlaced frames. The value comes from the preset that the options start from (StandardizedH264AACMP4, StandardizedHEVCAACMP4 or Preserve). |
| ForceSquarePixels | Gets or initializes a value indicating whether to force square pixels in the output video streams. The value comes from the preset that the options start from (StandardizedH264AACMP4, StandardizedHEVCAACMP4 or Preserve). |
| ForceValidateAllStreams | Gets or initializes a value indicating whether to force validation of all streams, as opposed to assuming they're valid. Default is true. |
| FpsOptions | Gets or initializes the options for limiting the frames per second (FPS) of the video. If set to null, the video will not be resampled. The value comes from the preset that the options start from (StandardizedH264AACMP4, StandardizedHEVCAACMP4 or Preserve). |
| HardwareAccelerationKind | Gets or initializes the hardware acceleration mode to use for operations (such as decode or scaling). Default is None (no hardware acceleration). |
| MaxChannels | Gets or initializes the maximum number of audio channels to include in the output stream. The value comes from the preset that the options start from (StandardizedH264AACMP4, StandardizedHEVCAACMP4 or Preserve). |
| MaxSampleRate | Gets or initializes the maximum sample rate (in Hz) for the audio stream (any rates above this will be downsampled). The value comes from the preset that the options start from (StandardizedH264AACMP4, StandardizedHEVCAACMP4 or Preserve). |
| MaximumBitsPerChannel | Gets or initializes the maximum bits per channel to use for video encoding. |
| MaximumChromaSubsampling | Gets or initializes the maximum chroma subsampling to use for video encoding. |
| MetadataStrippingMode | Gets or initializes which metadata and thumbnails are stripped from the file. The value comes from the preset that the options start from (StandardizedH264AACMP4, StandardizedHEVCAACMP4 or Preserve). |
| Preserve | Gets a predefined instance of VideoProcessingOptions that always preserves the original streams and file when possible. |
| RemapHDRToSDR | Gets or initializes a value indicating whether to remap HDR to SDR for any HDR streams. The value comes from the preset that the options start from (StandardizedH264AACMP4, StandardizedHEVCAACMP4 or Preserve). |
| RemoveAudioStreams | Gets or initializes a value indicating whether to remove all audio streams from the output video. Default is false. |
| ResizeOptions | Gets or initializes the options for resizing the video. If set to null, the video will not be resized unless required. Default is null. |
| ResultAudioCodecs | Gets or initializes the allowable result audio codecs. |
| ResultFormats | Gets or initializes the result media container formats that the video processor can output. |
| ResultVideoCodecs | Gets or initializes the allowable result video codecs. |
| SourceAudioCodecs | Gets or initializes the source audio codecs for this mapping (it matches any of these). Default is AllSourceCodecs. |
| SourceFormats | Gets or initializes the source media container formats that the video processor can process. Default is AllSourceFormats. |
| SourceVideoCodecs | Gets or initializes the source video codecs for this mapping (it matches any of these, but all streams must match). Default is AllSourceCodecs. |
| StandardizedH264AACMP4 | Gets a predefined instance of VideoProcessingOptions that always re-encodes to standardized H.264 video stream/s (60fps max, 8 bits per channel, 4:2:0 chroma subsampling, SDR, square pixels, and progressive frames) and standardized AAC audio stream/s (48kHz max, stereo max) in an MP4 container, while attempting to preserve all metadata other than thumbnails by default. Does not preserve unrecognized streams. |
| StandardizedHEVCAACMP4 | Gets a predefined instance of VideoProcessingOptions that always re-encodes to standardized HEVC video stream/s (60fps max, 8 bits per channel, 4:2:0 chroma subsampling, SDR, square pixels, progressive frames, and hvc1 tag) and standardized AAC audio stream/s (48kHz max, stereo max) in an MP4 container, while attempting to preserve all metadata other than thumbnails by default. Does not preserve unrecognized streams. |
| TryPreserveUnrecognizedStreams | Gets or initializes a value indicating whether to try to preserve unrecognized streams in the output video. The value comes from the preset that the options start from (StandardizedH264AACMP4, StandardizedHEVCAACMP4 or Preserve). |
| VideoCompressionLevel | Gets or initializes the compression level to use for video encoding. Default is Medium. |
| VideoQuality | Gets or initializes the quality to use for video encoding. Default is Medium. |
| VideoReencodeMode | Gets or initializes the behavior for re-encoding video streams. |
| VideoSourceValidation | Gets or initializes the options for validating video streams in the source video before processing. Default is None. |