Real-time video stream transmission method and device based on RTSP
A real-time video and stream transmission technology, applied in the field of video transmission, can solve the problems of cumbersome processing work and resource exhaustion at the user end, and achieve the effect of reducing frame skipping or resource exhaustion, reducing complexity, and reducing computing power
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] see figure 1 , figure 1 It is a schematic flowchart of the RTSP-based real-time video stream transmission method provided by the embodiment of the present application. The following RTSP-based real-time video stream transmission method in the embodiment of the present application can be applied to the server.
[0049] The RTSP-based real-time video stream transmission method of the embodiment of the present application comprises the following steps:
[0050] Step S110, creating a WEBRTC P2P channel.
[0051] In this embodiment, WEBRTC (Web Real-Time Communication), originating from web instant messaging, is an API that supports web browsers to conduct real-time voice or video conversations.
[0052] Understandably, the created WEBRTC P2P channel can be used for data flow transmission.
[0053]Step S120, acquiring frame data conforming to a predetermined video codec standard from the RTSP video stream.
[0054] In this embodiment, the RTSP video stream can be obtain...
Embodiment 2
[0083] In order to implement the method corresponding to the first embodiment above to achieve corresponding functions and technical effects, an RTSP-based real-time video stream transmission device is provided below.
[0084] see image 3 , image 3 The structural block diagram of the RTSP-based real-time video stream transmission device provided by the embodiment of the present application.
[0085] The RTSP-based real-time video streaming device of the embodiment of the present application includes:
[0086] Create a module 210 for creating a WEBRTC P2P channel;
[0087] Obtaining module 220, is used for obtaining the frame data that conforms to predetermined video codec standard from RTSP video stream;
[0088] The processing module 230 is used to perform object detection and recombination processing on the frame data to obtain a data stream in a predetermined video format;
[0089] The transmission module 240 is configured to transmit the data stream to the WEBRTC P2P...
Embodiment 3
[0099] An embodiment of the present application provides an electronic device, including a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the above-mentioned RTSP-based real-time video stream transmission method.
[0100] Optionally, the above-mentioned electronic device may be a server.
[0101] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the above-mentioned RTSP-based real-time video stream transmission method.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


