VideoEncoderConfig Class
The configuration of a VideoEncoder (https://w3c.github.io/webcodecs/#dictdef-videoencoderconfig).
public sealed class VideoEncoderConfigConstructors
| Name | Description |
|---|---|
| VideoEncoderConfig() |
VideoEncoderConfig()
CodecConfigs.cs- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public VideoEncoderConfig()No documentation is available.
Properties
| Name | Description |
|---|---|
| Alpha | Gets whether the alpha channel of the frames is encoded. |
| Avc | Gets the options of the AVC encoder, or null. |
| Bitrate | Gets the target bitrate in bits per second, or null. |
| BitrateMode | Gets how the encoder controls its bitrate. |
| Codec | Gets the codec string (e.g. vp8, vp09.00.10.08, av01.0.04M.08, avc1.42001E). |
| ContentHint | Gets the hint of the type of content (e.g. motion, detail, text), or null. |
| DisplayHeight | Gets the display height of the decoded frames, or null. |
| DisplayWidth | Gets the display width of the decoded frames, or null. |
| Framerate | Gets the expected number of frames per second, or null. |
| HardwareAcceleration | Gets the preference for a hardware implementation. |
| Height | Gets the height of the encoded frames in pixels (the frames are scaled to it). |
| Hevc | Gets the options of the HEVC encoder, or null. |
| LatencyMode | Gets the latency preferred by the encoder. |
| ScalabilityMode | Gets the scalability mode (e.g. L1T2), or null. |
| Width | Gets the width of the encoded frames in pixels (the frames are scaled to it). |
Alpha
CodecConfigs.csGets whether the alpha channel of the frames is encoded.
public AlphaOption Alpha { get; init; }Gets the options of the AVC encoder, or null.
public AvcEncoderConfig? Avc { get; init; }Bitrate
CodecConfigs.csGets the target bitrate in bits per second, or null.
public ulong? Bitrate { get; init; }BitrateMode
CodecConfigs.csGets how the encoder controls its bitrate.
public VideoEncoderBitrateMode BitrateMode { get; init; }Codec
CodecConfigs.csGets the codec string (e.g. vp8, vp09.00.10.08, av01.0.04M.08, avc1.42001E).
public required string Codec { get; init; }ContentHint
CodecConfigs.csGets the hint of the type of content (e.g. motion, detail, text), or null.
public string? ContentHint { get; init; }DisplayHeight
CodecConfigs.csGets the display height of the decoded frames, or null.
public uint? DisplayHeight { get; init; }DisplayWidth
CodecConfigs.csGets the display width of the decoded frames, or null.
public uint? DisplayWidth { get; init; }Framerate
CodecConfigs.csGets the expected number of frames per second, or null.
public double? Framerate { get; init; }HardwareAcceleration
CodecConfigs.csGets the preference for a hardware implementation.
public HardwareAcceleration HardwareAcceleration { get; init; }Height
CodecConfigs.csGets the height of the encoded frames in pixels (the frames are scaled to it).
public required uint Height { get; init; }Hevc
CodecConfigs.csGets the options of the HEVC encoder, or null.
public HevcEncoderConfig? Hevc { get; init; }Property value
See also
LatencyMode
CodecConfigs.csGets the latency preferred by the encoder.
public LatencyMode LatencyMode { get; init; }Property value
See also
ScalabilityMode
CodecConfigs.csGets the scalability mode (e.g. L1T2), or null.
public string? ScalabilityMode { get; init; }Property value
See also
Width
CodecConfigs.csGets the width of the encoded frames in pixels (the frames are scaled to it).
public required uint Width { get; init; }