anyRTC RTSP to WebRTC solution

  • Want to watch surveillance videos in real time without plug-ins on the web
  • There are requirements for real-time performance, 1080P delay is within 400m

1. Why switch to WebRTC

The effect of RTSP public network is not good.
RTSP uses udp to transmit, so it is usually transmitted through tcp, but tcp is affected by the bandwidth and the characteristics of tcp itself, which can easily cause delay.

You must use plug-ins to watch videos on the web

RTSP is very picky about browsers, which is an important reason why RTSP has not been widely promoted. The rise of the live broadcast industry has cultivated the habit of users to watch live broadcasts on WeChat and Web. The plug-in method has not been accepted by people.

Super difficult to interact

Because the public network transmission effect of this protocol is not good, it is even more unbearable when interacting. The interaction delay is large, the screen is blurred, the sound is lost, and it is easily stuck.

Two, anyRTC program introduction

ArRtspTool is an open source tool of anyRTC to convert rtsp stream to rtc, so that rtsp stream does not need external network service or IP address, you can view the video stream in various ways such as webpage/H5 without plug-in, applet, APP, etc. .

Support common Linux, Windows, Raspberry Pi, Nvidia TX series, etc.

Support Rtsp stream, support USB camera, support window push stream and so on.

Applicable scenarios:

1. The intranet camera penetrates the public network: use webpage, App or applet to watch, ultra-low 400ms internal delay

2. Long-distance driving: ultra-low delay, remote control, the process is not stuck

3. UAV: ​​ultra-low latency, precise control, AI recognition feedback

4. Community access control: real-time monitoring, two-way intercom, remote control

Three, compile

Download the code locally: git clone https://github.com/anyRTC-UseCase/ArRtspTool.git

The platform corresponding to the compiled script (verified, other platforms or system versions can contact our company for confirmation):

Makefile.linux  - Centos7.0及以上
Makefile.pi		- 树莓派4
Makefile.tx		- Nvidia TX2

Take Raspberry Pi as an example (the following commands are all run as root, non-root may report permission errors):

***# cd ArRtspTool
***# cp Makefile.pi Makefile
***# make && make install

Start the program, remember to configure the relevant parameters before running

***# chmod +x run.sh
***# ./run.sh start ArRtspTool rtsp.conf 

Stop program

***# ./run.sh stop ArRtspTool

Four, how to configure

[rtsp]
url=你的Rtsp流的Url

[nv]
dev_id=设备ID(/dev/video0)

[rtc]
app_id=rtc的AppId,
chan_id=频道ID,可设置任意值,web或App通过此ID可以观看rtsp的流

AppId can be obtained by logging in to anyRTC official website

Note: Choose one of the Rtsp address and the device ID, the Rtsp address is preferred. If you push the local camera, you do not need to configure the Rtsp address

Five, common problems

See FAQ for details .

anyRTC Entrepreneurship Support Plan

  • 300,000 free minutes help start-ups to develop rapidly.

AnyRTC start-up support plan, as long as you pass the enterprise review and contact customer service to join the anyRTC start-up support plan, you can enjoy 300,000 free minutes. The number of minutes obtained can reduce the cost of real-time audio and video technical services, and start the project quickly at zero cost.

  • Exclusive technical guidance support

anyRTC provides one-to-one exclusive customer service for start-ups, provides professional and serious services to customers, and answers your questions in time. And provide customers with exclusive technical guidance, get started faster, and go online easily!

Six, contact us

Contact number: 021-65650071

QQ Consulting Group: 580477436

ArCall Technical Exchange Group: 597181019

Consulting email: [email protected]

Technical issues: Developer Forum

For more help, go to: www.anyrtc.io http://www.anyrtc.io/)

Guess you like

Origin blog.csdn.net/anyRTC/article/details/108606037