Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2021-08-03
创新奇智(上海)科技有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003]At present, the detection and transmission of real-time video streams based on RTSP are mainly pushed to the client through WEBSOCKET, but the method of WEBSOCKET push requires the client to have relatively powerful computing power. Otherwise, frame skipping or resource exhaustion are likely to occur, and the user end needs to do extra work to render the frame data instead of playing the video directly, which adds tedious processing work to the user end

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Real-time video stream transmission method and device based on RTSP
  • Real-time video stream transmission method and device based on RTSP
  • Real-time video stream transmission method and device based on RTSP

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a real-time video stream transmission method and device based on an RTSP, and the method comprises the steps: creating a WEBRTC P2P channel; acquiring frame data conforming to a predetermined video coding and decoding standard from the RTSP video stream; performing target detection on the frame data and processing recombined frame data to obtain a data stream in a predetermined video format; and transmitting the data stream to the WEBRTC P2P channel so that a user side can play and / or control a video stream through a WEBRTC API of a browser. According to the real-time video stream transmission method and device based on the RTSP, the requirement for the computing power of the user side can be lowered, the situation of frame skipping or resource exhaustion can be reduced, the complexity of the user side on the corresponding service level can be lowered, and the user side can directly play or control the video.

Description

technical field [0001] The present application relates to the technical field of video transmission, in particular, to an RTSP-based real-time video stream transmission method and device. Background technique [0002] RTSP, Real-time Streaming Protocol, which defines how one-to-many applications can effectively transmit multimedia data through IP networks, is the video transmission protocol used by mainstream IP cameras on the market. [0003] At present, the detection and transmission of real-time video streams based on RTSP are mainly pushed to the client through WEBSOCKET, but the push method of WEBSOCKET requires the client to have relatively powerful computing power, otherwise frame skipping or resource exhaustion will easily occur, and the client Additional work is required to render the frame data instead of playing the video directly, which adds additional tedious processing work on the user end. Contents of the invention [0004] The purpose of the embodiment of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L29/06
CPCH04L67/02H04L67/141H04L65/65
Inventor 张发恩周创
Owner 创新奇智(上海)科技有限公司