RTSP streaming
Products: Video Capture SDK .Net
The SDK offers the capability to stream video and audio using the Real-Time Streaming Protocol (RTSP). It supports H264, a widely-used video compression standard, ensuring high-quality video streaming. Alongside, it also supports the Advanced Audio Coding (AAC) codec, known for its efficiency in delivering high-quality audio. This combination of RTSP with H264 and AAC codecs makes the SDK highly effective for applications requiring reliable and high-definition audiovisual streaming. It's particularly suited for surveillance, live broadcasting, and video conferencing solutions, where both clarity of video and audio are paramount.
Sample code
Set the Network_Streaming_Enabled
property to true to enable network streaming.
VideoCapture1.Network_Streaming_Enabled = true;
Enable audio streaming.
VideoCapture1.Network_Streaming_Audio_Enabled = true;
Set RTSP streaming format.
VideoCapture1.Network_Streaming_Format = NetworkStreamingFormat.RTSP_H264_AAC_SW;
Create MP4 output settings that contain H264 and AAC settings. MP4 file will not be created; we are using this class only to get H264 and AAC settings.
var mp4Output = new MP4Output();
Set H264 and AAC settings.
// ...
Set the output.
VideoCapture1.Network_Streaming_Output = mp4Output;
Set the URL.
VideoCapture1.Network_Streaming_URL = "rtsp://localhost:5554/vfstream";
Visit our GitHub page to get more code samples.