In order to meet the ultra-low latency requirements of the Intranet, such as paperless Intranet/e-classroom, and avoid allowing users to configure a separate server, Danniu Live SDK released the lightweight RTSP service SDK on the push side:

In short, the functions supported by the previous push SDK will continue to be supported after the built-in lightweight RTSP service SDK.

First, support functions

If not specified separately, it is supported by Windows, Android and iOS platforms.

  • [Basic functions] Support Windows/Android/iOS platform RTMP live SDK except push RTMP all conventional functions;
  • AAC;
  • H.264, H.265;
  • [Protocol type]RTSP;
  • [Transmission mode] Supports unicast and multicast modes.
  • [Port Settings] Supports RTSP port Settings.
  • [Authentication Settings] The user name and password for RTSP authentication are supported.
  • [Obtaining number of Session connections] The current number of RTSP service session connections can be obtained.
  • [Multi-service support] Supports the simultaneous creation of multiple built-in RTSP services;
  • [H.265 support]Windows Built-in RTSP Server supports h.265 video distribution (64-bit library);
  • [RTSP URL Callback] The configured RTSP URL can be called back to the upper layer through the event.

Corresponding to the Demo:

  • Windows test program: SmartPublisherDemo.exe;
  • Windows C++ project: win-publishersdk-cpp-demo;
  • Windows C# project: win-publishersdk-csharp-demo;
  • Android Project: SmartPublisherV2;
  • IOS project: SmartiOSPublisherV2.

Data sources:

1. Video source related:

[Screen/camera] Supports frame rate, key frame interval, bit rate, encoding profile, encoding speed and other Settings;

[Screen] Supports screen clipping and automatically recommends code stream according to frame rate and push resolution;

[Camera] Supports camera selection, resolution Settings, frame rate Settings.

2. The audio source is relevant

[Audio] Acquisition microphone;

[Audio] Collection speaker.

3. Camera and screen composite data

[Real-time switching between camera and screen] In the process of push, the camera and screen can switch with each other and display the camera or screen in a single screen.

[Camera overlay to screen] Supports camera overlay to the specified position on the screen according to the set coordinates, and supports real-time closing of the overlay layer;

[Screen overlay to Camera] The screen can be superimposed to the specified position of the camera according to the set coordinates, and the overlay layer can be closed in real time.

Audio and video processing:

1. Supported types

H.264;

AAC;

2. Watermark and transparency occlusion

[Real-time watermarking] Support dynamic watermarking Settings, perfect support text watermarking, real-time time watermarking and picture watermarking;

[Transparency] You can set transparency handling (set masking).

3. Audio synthesis

[Audio] Support speaker and microphone audio mix output (select “capture speaker” and “capture Microphone” at the same time).

4. Audio processing

[Audio] support audio “endpoint detection (VAD)”, adaptive code stream, audio code stream more saving;

[Audio] Support noise suppression function;

[Audio] Supports automatic gain control.

Mute, snapshot, video, etc. :

[Audio and video] Support pure audio, pure video, audio and video;

[Audio] Real-time mute/unmute;

[Docking server] In addition to the built-in RTSP service, it perfectly supports the synchronous push of RTMP stream to the self-built RTMP server or CDN;

[Video] Video and built-in RTSP service completely separated, perfect support “push while recording”, “push first, video later”, “video first, push later;

[Video] Support setting video file prefix, video file size, video file add date, time;

[Snapshot] Instant snapshot is supported.

How to operate the built-in RTSP service

 

1. After selecting the audio and video data type to be pushed out and adjusting the bit rate, click “Configure to view RTSP Service” :

2. You can enable one or multiple services and configure the user name and password for each service as required. After starting the service, click “OK” to exit the setting page.

3. Configure the stream name (customizable), default is Stream1;

4. Publish RTSP streams:

5. After the release, the url of the current release will be displayed in the play address list. Copy one or more of them, use Danniu Live broadcast player SDK, and play them separately.

6. View server load: Click “View RTSP service Configuration” again to see the number of sessions connected to each service:

7. To stop the service, click “Stop RTSP stream” on the page;

8. If the RTSP service needs to be started and the data needs to be pushed to other RTMP services, enter the RTMP URL of push and click “push”.

Overall effect display, take the upper left corner of the acquisition desktop 640×480 area as an example, play 9 channels at the same time, and connect to different services respectively:

Video presentation:

Click me to see the video presentation

After testing, the overall delay is in the range of 200-300 milliseconds.