当前位置:网站首页>How to build RTSP test URL in Intranet Environment

How to build RTSP test URL in Intranet Environment

2022-06-24 17:14:00 daniulive

Recently, I found that many developers are searching for available RTSP test URL, At present, the public network can actually be tested RTSP URL Very few , Even if it is available , The resolution and network are also very poor , Not suitable for long-term testing .

For this purpose , Our suggestion is to buy a camera of Hikvision or Dahua directly online , Generally speaking , Haikang Dahua's RTSP URL The format is as follows :

Haikang camera RTSP URL The rules

Main stream :rtsp://admin:[email protected]:554/h265/ch1/main/av_stream

Sub-stream :rtsp://admin:[email protected]:554/h264/ch1/sub/av_stream

rtsp://[username]:[password]@[ip]:[port]/[codectype]/[channel]/[subtype]/av_stream URL Description of composition : username: user name ; password: password ; ip: web camera IP Address ; port: Port number , Default 554; codectype: Yes h264/h265/mjpeg; channel: Channel number . subtype: Stream Type , Main stream :main, Sub-stream :sub.

Dahua camera RTSP URL The rules

Main stream :rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0

Sub-stream :rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=1

rtsp://[username]:[password]@[ip]:[port]/cam/realmonitor?/[channel]&/[subtype] URL Description of composition : username: user name ; password: password ; ip: web camera IP Address ; port: Port number , Default 554; codectype: Yes h264/h265/mjpeg; channel: Channel number . subtype: Stream Type , Main stream :0, Sub-stream :1.

How to generate a local RTSP test URL

If you want to collect PC Camera or screen , You can also use lightweight locally RTSP service , Locally generated RTSP test URL. Common ways , such as VLC Streaming , Or live from Daniel SDK(URL) Of Windows platform SmartPublisherDemo Can be generated .

This article is based on SmartPublisherDemo Lightweight RTSP The service collects local cameras as an example , Explain how to create a local test RTSP Address .

1. Select acquisition camera , And select the resolution to be tested 、 Frame rate , Click on “ Get the default value of video rate ”, Get the code rate recommended by the system ( Advanced users can also configure by themselves ), If it is necessary to collect audio, See whether the acquisition microphone or the loudspeaker , If both need to be collected , Select it at the same time ( Mix mode ).

2. Click on “ Configuration view Rtsp service ” Button , Click in the pop-up box “ Start the service ” that will do , One or more groups can be started , One for each service RTSP URL.

3. after , Click on “ Release RTSP flow ” button , After the release of , Can locally generate a RTSP URL, Take this machine as an example , Generated URL yes “rtsp://192.168.0.211:8554/stream1”.

4. Start the player , Input the generated RTSP URL, Test it .

5. Server load view : Click again on the “ Configuration view RTSP service ”, You can see the number of sessions connected to each service :

6. To stop service , Click the “ stop it RTSP flow ” that will do ;

Is it very convenient ?

Why do you want to be lightweight RTSP service ?

Lightweight RTSP The core pain point of service solution is to prevent users or developers from deploying alone RTSP perhaps RTMP service , Realize local audio and video data ( Such as camera 、 Microphone ), After the coding , Converge to built-in RTSP service , Provide external flow RTSP URL, Lightweight RTSP service , Applicable to Intranet environment , Yes Concurrency requirements are not high Scene , Support H.264/H.265, Support RTSP authentication 、 unicast 、 Multicast mode , Considering the carrying capacity of a single service , We support the creation of multiple RTSP service , And support to get the current RTSP Number of service session connections .

Design function :

  • [ Basic function ] Capture camera 、 The screen 、 Window or external customized audio and video data ;
  • [ Audio format ]AAC;
  • [ Video format ]H.264、H.265;
  • [ Protocol type ]RTSP;
  • [ transmission mode ] Support unicast and multicast modes ;
  • [ Port settings ] Support RTSP Port settings ;
  • [ Authentication settings ] Support RTSP Authentication user name 、 password ;
  • [ obtain session The number of connections ] Support getting current RTSP Number of service session connections ;
  • [ Multi service support ] Support the creation of multiple built-in RTSP service ;
  • [H.265 Support ]Windows built-in rtsp server Support Publishing H.265 video ;
  • [RTSP url Callback ] Support the setup of rtsp url adopt event Back to the top .

Interested developers , Try it on your own .

原网站

版权声明
本文为[daniulive]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/03/20210330150245112L.html