Class SRTOutput
- Namespace
- VisioForge.Core.Types.X.Output
- Assembly
- VisioForge.Core.dll
SRT output settings.
public class SRTOutput : IVideoCaptureXBaseOutput, IXBaseOutput, IOutputVideoProcessor, IOutputAudioProcessorInheritance
Implements
Inherited Members
Constructors
SRTOutput(string)
Initializes a new instance of the VisioForge.Core.Types.X.Output.SRTOutput class.
public SRTOutput(string url)Parameters
urlstring-
The URL.
Properties
Audio
Gets or sets the audio encoder settings. Supported encoders: AAC, MP3.
public IAudioEncoder Audio { get; set; }Property Value
CustomAudioProcessor
Gets or sets the custom audio processor block.
public MediaBlock CustomAudioProcessor { get; set; }Property Value
CustomVideoProcessor
Gets or sets the custom video processor block.
public MediaBlock CustomVideoProcessor { get; set; }Property Value
Sink
Gets or sets the sink settings.
public SRTSinkSettings Sink { get; set; }Property Value
Video
Gets or sets the video encoder settings. Supported encoders: All H264, HEVC, MPEG-2, AV1. AV1 needs GStreamer 1.26 or newer and is carried in MPEG-TS with GStreamer's own mapping, as no published specification exists yet: GStreamer-based receivers decode it, FFmpeg-based ones (VLC, OBS, ffplay) do not.
public IVideoEncoder Video { get; set; }Property Value
Remarks
On Windows the default is resolved on the first read: the GPU H.264 encoder that VisioForge.Core.MediaBlocks.VideoEncoders.H264EncoderBlock.GetDefaultSettings finds, or OpenH264 when that read comes before InitSDK.
Methods
GetAudioEncoders()
Gets the audio encoders.
public Tuple<string, Type>[] GetAudioEncoders()Returns
GetFilename()
Gets the filename.
public string GetFilename()Returns
- string
-
System.String.
GetVideoEncoders()
Gets the video encoders.
public Tuple<string, Type>[] GetVideoEncoders()Returns
SetFilename(string)
Sets the filename.
public void SetFilename(string filename)Parameters
filenamestring-
The filename.