CN110740300B - Multimedia data transmission method, system, client and video monitoring equipment - Google Patents

Multimedia data transmission method, system, client and video monitoring equipment Download PDF

Info

Publication number
CN110740300B
CN110740300B CN201911063713.1A CN201911063713A CN110740300B CN 110740300 B CN110740300 B CN 110740300B CN 201911063713 A CN201911063713 A CN 201911063713A CN 110740300 B CN110740300 B CN 110740300B
Authority
CN
China
Prior art keywords
transmission link
client
request
video monitoring
creating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911063713.1A
Other languages
Chinese (zh)
Other versions
CN110740300A (en
Inventor
欧阳昌葵
吕祝雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201911063713.1A priority Critical patent/CN110740300B/en
Publication of CN110740300A publication Critical patent/CN110740300A/en
Application granted granted Critical
Publication of CN110740300B publication Critical patent/CN110740300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Abstract

The invention relates to the technical field of video monitoring, and discloses a multimedia data transmission method, a system, a client and a video monitoring device, wherein the client sends a RTSP session establishment request to the video monitoring device through a pre-established encryption transmission link, so that the video monitoring device establishes an RTSP session with the client through the encryption transmission link after receiving the RTSP session establishment request, the RTSP session uses the encryption transmission link, the client sends a multimedia data transmission request to the video monitoring device through the RTSP session, so that the video monitoring device transmits multimedia data to the client through the RTSP session after receiving the multimedia data transmission request, and the whole session data is transmitted based on the pre-established encryption transmission link, therefore, the security is higher.

Description

Multimedia data transmission method, system, client and video monitoring equipment
Technical Field
The present invention relates to the field of video monitoring technologies, and in particular, to a method, a system, a client, and a video monitoring device for transmitting multimedia data.
Background
In the prior art, in security and protection devices (video monitoring devices such as network cameras and network video recorders), RTSP and RTP protocols are the most common real-time streaming protocols and are respectively used for transmitting control signaling and multimedia code streams. In the process of implementing the present invention, the inventor finds that the existing multimedia data transmission method has the following disadvantages: at present, multimedia data (such as RTSP-RTP transmitted data) is not encrypted by default when being transmitted, so that the security risk of the multimedia data is high.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method, a system, a client and a video monitoring device for transmitting multimedia data, which transmit multimedia data through an RTSP session using a pre-created encryption transmission link, and have higher security.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a method for transmitting multimedia data, including:
the method comprises the steps that a client sends a request for creating an RTSP session to a video monitoring device through a pre-created encryption transmission link, so that the video monitoring device creates the RTSP session with the client through the encryption transmission link after receiving the request for creating the RTSP session; wherein the RTSP session uses the encrypted transmission link;
and the client sends a request for transmitting multimedia data to the video monitoring equipment through the RTSP session, so that the video monitoring equipment transmits the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data.
As a preferable scheme, before the client sends a request for creating an RTSP session to a video monitoring device through a pre-created encrypted transmission link, so that the video monitoring device creates an RTSP session with the client through the encrypted transmission link after receiving the request for creating an RTSP session, the method further includes:
the client sends a request for creating a transmission link to the video monitoring equipment, so that the video monitoring equipment creates a transmission link with the client after receiving the request for creating the transmission link;
the client sends a request for encrypting the transmission link to the video monitoring equipment, so that the video monitoring equipment encrypts the transmission link after receiving the request for encrypting the transmission link; wherein the encrypted transmission link is used as the pre-created encrypted transmission link.
As a preferred scheme, when the client and the video monitoring device are in the same local area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically including:
the client acquires the address of the video monitoring equipment;
and the client sends a request for creating a transmission link to the video monitoring equipment through a TCP (transmission control protocol) or UDP (user datagram protocol) protocol according to the address of the video monitoring equipment, so that the video monitoring equipment creates a transmission link with the client through the TCP or UDP protocol after receiving the request for creating the transmission link.
Preferably, when the client and the video monitoring device are in a wide area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically:
the client sends a request for establishing a transmission link to the video monitoring equipment through a relay server according to a TCP (transmission control protocol), so that the video monitoring equipment establishes the transmission link with the client through the relay server according to the TCP after receiving the request for establishing the transmission link.
Preferably, when the client and the video monitoring device are in a wide area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically:
the client sends a P2P hole request to the video monitoring equipment, so that the video monitoring equipment creates a transmission link with the client through a UDP protocol after responding to the P2P hole request.
In order to solve the same technical problem, an embodiment of the present invention further provides a client, including:
the session request module is used for sending a request for creating an RTSP session to the video monitoring equipment by the client through a pre-created encrypted transmission link, so that the video monitoring equipment creates the RTSP session with the client through the encrypted transmission link after receiving the request for creating the RTSP session; wherein the RTSP session uses the encrypted transmission link;
and the transmission request module is used for sending a request for transmitting multimedia data to the video monitoring equipment by the client through the RTSP session so that the video monitoring equipment transmits the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data.
In order to solve the same technical problem, an embodiment of the present invention further provides a method for transmitting multimedia data, including:
the video monitoring equipment establishes a transmission link with a client;
the video monitoring equipment encrypts the transmission link to obtain an encrypted transmission link;
the video monitoring equipment receives a RTSP session establishing request sent by the client through the encrypted transmission link, and establishes an RTSP session with the client through the encrypted transmission link after receiving the RTSP session establishing request; wherein the RTSP session uses the encrypted transmission link;
and the video monitoring equipment receives a request for transmitting multimedia data sent by the client through the RTSP session, and transmits the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data.
As a preferred scheme, the creating of the transmission link with the client by the video monitoring device specifically includes:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link with the client after receiving the request for establishing the transmission link.
As a preferred scheme, the video monitoring device encrypts the transmission link to obtain an encrypted transmission link, which specifically includes:
and the video monitoring equipment receives the request of encrypting the transmission link sent by the client, and encrypts the transmission link after receiving the request of encrypting the transmission link to obtain an encrypted transmission link.
As a preferred scheme, when the client and the video monitoring device are in the same local area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link with the client through a TCP (transmission control protocol) or UDP (user datagram protocol) after receiving the request for establishing the transmission link; wherein the request for creating the transmission link is sent by the client through a TCP protocol or a UDP protocol according to the address of the video monitoring equipment.
Preferably, when the client and the video monitoring device are in a wide area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link between the video monitoring equipment and the client through a relay server according to a TCP (transmission control protocol) after receiving the request for establishing the transmission link; wherein the request to create a transmission link is sent by the client via the relay server according to a TCP protocol.
Preferably, when the client and the video monitoring device are in a wide area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a P2P hole request sent by the client, and establishes a transmission link with the client through a UDP protocol after responding to the P2P hole request.
In order to solve the same technical problem, an embodiment of the present invention further provides a video monitoring apparatus, including:
the link creating module is used for creating a transmission link by the video monitoring equipment;
the link encryption module is used for encrypting the transmission link by the video monitoring equipment to obtain an encrypted transmission link;
the session creation module is used for receiving a request for creating an RTSP session sent by a client through the encrypted transmission link by the video monitoring equipment, and creating the RTSP session between the video monitoring equipment and the client through the encrypted transmission link after receiving the RTSP session request; wherein the RTSP session uses the encrypted transmission link;
and the transmission module is used for receiving the request for transmitting the multimedia data sent by the client through the RTSP session by the video monitoring equipment and transmitting the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data.
In order to solve the same technical problem, an embodiment of the present invention further provides a multimedia data transmission system, including the client and the video monitoring device.
The embodiment of the invention provides a transmission method, a system, a client and a video monitoring device of multimedia data, wherein the client sends a request for creating an RTSP session to the video monitoring device through a pre-created encryption transmission link, so that the video monitoring device creates the RTSP session with the client through the encryption transmission link after receiving the request for creating the RTSP session, the RTSP session uses the encryption transmission link, the client sends the request for transmitting the multimedia data to the video monitoring device through the RTSP session, so that the video monitoring device transmits the multimedia data to the client through the session after receiving the request for transmitting the multimedia data, and the whole RTSP data is transmitted based on the pre-created encryption transmission link, therefore, the security is higher.
Drawings
Fig. 1 is a flowchart illustrating an embodiment of a method for transmitting multimedia data according to the present invention;
FIG. 2 is a topology diagram of an embodiment of a client and a video surveillance device in the same LAN;
FIG. 3 is a topology diagram of one embodiment of a wide area network with a client and video surveillance device provided by the present invention;
FIG. 4 is a topology diagram of another embodiment of a wide area network with a client and video surveillance device provided by the present invention;
FIG. 5 is a schematic structural diagram of one embodiment of a client provided by the present invention;
fig. 6 is a flowchart illustrating a method for transmitting multimedia data according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of an embodiment of a video monitoring apparatus provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1, which is a flowchart illustrating a method for transmitting multimedia data according to an embodiment of the present invention.
A method for transmitting multimedia data according to a preferred embodiment of the present invention includes:
step S101, a client sends a request for creating an RTSP session to a video monitoring device through a pre-created encryption transmission link, so that the video monitoring device creates the RTSP session with the client through the encryption transmission link after receiving the request for creating the RTSP session; wherein the RTSP session uses the encrypted transmission link;
step S102, the client sends a request for transmitting multimedia data to the video monitoring device through the RTSP session, so that the video monitoring device transmits the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data.
In the embodiment of the invention, the client sends a request for creating the RTSP session to the video monitoring device through the pre-created encryption transmission link, so that the video monitoring device creates the RTSP session with the client through the encryption transmission link after receiving the request for creating the RTSP session, the RTSP session uses the encryption transmission link, the client sends a request for transmitting multimedia data to the video monitoring device through the RTSP session, so that the video monitoring device transmits the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data, and thus the whole session data is ensured to be transmitted based on the pre-created encryption transmission link, wherein the encryption transmission link is used for encrypting the whole transmission link (data header and data load), and the security is relatively high.
In the embodiment of the invention, the video monitoring equipment (marked as RTSP Server) can be a network camera (IPC), a Network Video Recorder (NVR) and the like; the Client (marked as RTSP Client) may be a PC application (Utility), a mobile Application (APP), a network video camera (NVR) cooperating with the IPC, and the like. It should be noted that when the code stream of the NVR is acquired by APP or PC Utility, the NVR serves as an RTSP Server, and when the NVR pulls the stream from IPC, the NVR serves as an RTSP Client.
In an optional implementation manner, before the step S101, the method further includes:
the client sends a request for creating a transmission link to the video monitoring equipment, so that the video monitoring equipment creates a transmission link with the client after receiving the request for creating the transmission link;
the client sends a request for encrypting the transmission link to the video monitoring equipment, so that the video monitoring equipment encrypts the transmission link after receiving the request for encrypting the transmission link; wherein the encrypted transmission link is used as the pre-created encrypted transmission link.
In the embodiment of the present invention, encrypting the transmission link may specifically be to deploy a TLS protocol or a DTLS protocol on the transmission link, that is, complete negotiation of the TLS protocol or the DTLS protocol on the transmission link, so as to provide security guarantee for the transmission link, wherein a mature encrypted transmission scheme of TLS/SSL is deployed on the transmission link, so that the whole transmission link is encrypted (a data header and a data payload), and the deployment is simple and low in cost. In addition, on a specific implementation (such as programming implementation), the steps of creating the transmission link and encrypting the transmission link can be separated or combined, for example, the QUIC protocol supports TLS1.3, so that the UDP reliable transmission link created based on the QUIC protocol already completes the security guarantee of the transmission link; in addition, the WebSocket encrypted by the SSL protocol can be realized, namely the WebSocket connection with the deployed TLS/SSL can be directly created.
In addition, in a specific application, generally, a user selects that the client and the video monitoring device are in the same local area network or wide area network, and a wide area network scenario in the embodiment of the present invention means that one or both of the video monitoring device and the client are behind the NAT. If the local area network is selected, the client can generally scan and discover other equipment through an equipment discovery related protocol (such as ONVIF), and then connection is carried out, otherwise, a user operating the client needs to log in an account number, bind the video monitoring equipment, and select the wide area network by default.
Local area network
Please refer to fig. 2, which is a topology diagram of an embodiment of the present invention in which the client and the video monitoring device are in the same lan.
In an alternative embodiment, when the client and the video monitoring device are in the same local area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically including:
the client acquires the address of the video monitoring equipment;
and the client sends a request for creating a transmission link to the video monitoring equipment through a TCP (transmission control protocol) or UDP (user datagram protocol) protocol according to the address of the video monitoring equipment, so that the video monitoring equipment creates a transmission link with the client through the TCP or UDP protocol after receiving the request for creating the transmission link.
In a specific implementation, the client may scan and discover other devices through a device discovery related protocol (e.g., ONVIF) to obtain an address of the video monitoring device, or may learn the address of the video monitoring device in advance, so that the client may initiate a TCP or UDP connection with the video monitoring device according to the address of the video monitoring device, so that the video monitoring device creates a transmission link with the client through a TCP protocol or a UDP protocol. Referring to fig. 2, it should be noted that when the code stream of the NVR is acquired by APP or PC Utility, the NVR is used as an RTSP Server, and when the NVR pulls the stream from IPC, the NVR is used as an RTSP Client.
(II) Wide area network
a) Relay server
Please refer to fig. 3, which is a topology diagram of an embodiment of the present invention in which the client and the video monitoring device are located in a wide area network.
In an alternative embodiment, when the client and the video surveillance device are in a wide area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically:
the client sends a request for establishing a transmission link to the video monitoring equipment through a relay server according to a TCP (transmission control protocol), so that the video monitoring equipment establishes the transmission link with the client through the relay server according to the TCP after receiving the request for establishing the transmission link.
In a specific implementation, when the client and the video monitoring device are in a wide area network, the creation of a transmission link between the video monitoring device and the client may be implemented by a Relay server (Relay server), where an address of the Relay server is public to other devices, so that the client and the video monitoring device may connect to the Relay server through a TCP-based protocol, such as HTTP or WebSocket, to implement the creation of the transmission link. In addition, it should be noted that nvr (rtsp client) in fig. 3 cooperates with ipc (rtsp server).
b) P2P holing
Please refer to fig. 4, which is a topology diagram of another embodiment of the present invention in which the client and the video monitoring device are located in a wide area network.
In an alternative embodiment, when the client and the video surveillance device are in a wide area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically:
the client sends a P2P hole request to the video monitoring equipment, so that the video monitoring equipment creates a transmission link with the client through a UDP protocol after responding to the P2P hole request.
In specific implementation, after the P2P hole punching is completed, a reliable transmission link based on UDP may be created through a Protocol such as UDT (UDP-based Data Transfer Protocol) or quic (quick UDP Internet connection), so as to ensure reliable transmission of the subsequent RTSP. Of course, when the client and the video monitoring device are in the wide area network, the manner of creating the transmission link is not limited to the Relay of the Relay server or the hole punching of P2P, and further details are not described here. In addition, it should be noted that nvr (rtsp client) in fig. 4 cooperates with ipc (rtsp server).
In addition, in the specific application of step S102, data transmission is performed based on the RTP Over RTSP mechanism, and the pre-created encryption transmission link is used for RTP data (i.e. multimedia data) transmission, so that it is ensured that the whole session data is transmitted based on the pre-created encryption transmission link, and the security is relatively high. In a specific application, the embodiment of the invention is based on the pre-created encryption transmission link, the RTSP does not need to care about the network topology where the two communication parties are located, nor does it need to care about whether the transport layer bearer protocol is TCP or reliable UDP, but only needs to use the created encryption transmission link to bear the RTSP/RTP message, so that the RTSP/RTP message is transmitted based on the pre-created encryption transmission link no matter whether the control signaling or the multimedia code stream is transmitted, and the security is high. In addition, the multimedia data is transmitted based on the RTSP-RTP protocol, so that the transmission protocol of the data is unified regardless of a local area network or a wide area network.
Correspondingly, the embodiment of the invention also provides a client, which can execute all the processes of the transmission method of the multimedia data provided by the embodiment.
Please refer to fig. 5, which is a schematic structural diagram of a client according to an embodiment of the present invention.
An embodiment of the present invention provides a client, including:
a session request module 11, configured to send, by a client, a request for creating an RTSP session to a video monitoring device through a pre-created encrypted transmission link, so that after receiving the request for creating an RTSP session, the video monitoring device creates an RTSP session with the client through the encrypted transmission link; wherein the RTSP session uses the encrypted transmission link;
a transmission request module 12, configured to send, by the client, a request for transmitting multimedia data to the video monitoring device through the RTSP session, so that the video monitoring device transmits, after receiving the request for transmitting multimedia data, multimedia data to the client through the RTSP session.
In an optional implementation, the client further includes:
the link creation request module is used for sending a request for creating a transmission link to the video monitoring equipment by the client, so that the video monitoring equipment creates the transmission link with the client after receiving the request for creating the transmission link;
the link encryption request module is used for sending a request for encrypting the transmission link to the video monitoring equipment by the client, so that the video monitoring equipment encrypts the transmission link after receiving the request for encrypting the transmission link; wherein the encrypted transmission link is used as the pre-created encrypted transmission link.
It can be understood that the functions of the functional modules of the client provided in the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Please refer to fig. 6, which is a flowchart illustrating a method for transmitting multimedia data according to another embodiment of the present invention.
The embodiment of the invention also provides a multimedia data transmission method, which comprises the following steps:
step S201, a video monitoring device creates a transmission link with a client;
step S202, the video monitoring equipment encrypts the transmission link to obtain an encrypted transmission link;
step S203, the video monitoring device receives a RTSP session establishment request sent by the client through the encrypted transmission link, and after receiving the RTSP session establishment request, establishes an RTSP session with the client through the encrypted transmission link; wherein the RTSP session uses the encrypted transmission link;
step S204, the video monitoring device receives the request for transmitting multimedia data sent by the client through the RTSP session, and transmits multimedia data to the client through the RTSP session after receiving the request for transmitting multimedia data.
Specifically, steps S201 to S204 may refer to steps S101 to S102 in the above embodiments, and are not described herein again.
In an optional implementation manner, the step S201 specifically includes:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link with the client after receiving the request for establishing the transmission link.
In an optional implementation manner, the step S202 specifically includes:
and the video monitoring equipment receives the request of encrypting the transmission link sent by the client, and encrypts the transmission link after receiving the request of encrypting the transmission link to obtain an encrypted transmission link.
In an alternative embodiment, when the client and the video monitoring device are in the same local area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link with the client through a TCP (transmission control protocol) or UDP (user datagram protocol) after receiving the request for establishing the transmission link; wherein the request for creating the transmission link is sent by the client through a TCP protocol or a UDP protocol according to the address of the video monitoring equipment.
In an alternative embodiment, when the client and the video surveillance device are in a wide area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link between the video monitoring equipment and the client through a relay server according to a TCP (transmission control protocol) after receiving the request for establishing the transmission link; wherein the request to create a transmission link is sent by the client via the relay server according to a TCP protocol.
In an alternative embodiment, when the client and the video surveillance device are in a wide area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a P2P hole request sent by the client, and establishes a transmission link with the client through a UDP protocol after responding to the P2P hole request.
Correspondingly, the embodiment of the invention also provides video monitoring equipment which can execute all the processes of the multimedia data transmission method provided by the embodiment.
Please refer to fig. 7, which is a schematic structural diagram of a video monitoring apparatus according to an embodiment of the present invention.
An embodiment of the present invention further provides a video monitoring apparatus, including:
a link creating module 21, configured to create a transmission link by the video monitoring device;
the link encryption module 22 is configured to encrypt the transmission link by the video monitoring device to obtain an encrypted transmission link;
a session creating module 23, configured to receive, by the video monitoring apparatus, a request for creating an RTSP session sent by a client through the encrypted transmission link, and create, after receiving the RTSP session request, an RTSP session with the client through the encrypted transmission link; wherein the RTSP session uses the encrypted transmission link;
a transmission module 24, configured to receive, by the video monitoring device, a request for transmitting multimedia data sent by the client through the RTSP session, and transmit, after receiving the request for transmitting multimedia data, multimedia data to the client through the RTSP session.
It can be understood that the functions of the functional modules of the video monitoring device in the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
In addition, in order to solve the same technical problem, an embodiment of the present invention further provides a multimedia data transmission system, including the client and the video monitoring device.
To sum up, the embodiments of the present invention provide a method, a system, a client and a video monitoring device for transmitting multimedia data, wherein the client sends a request for creating an RTSP session to the video monitoring device through a pre-created encryption transmission link, so that the video monitoring device creates the RTSP session with the client through the encryption transmission link after receiving the request for creating the RTSP session, and the RTSP session uses the encryption transmission link, the client sends a request for transmitting multimedia data to the video monitoring device through the RTSP session, so that the video monitoring device transmits the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data, thereby ensuring that the entire session data is transmitted based on the pre-created encryption transmission link, wherein the encryption transmission link encrypts the entire transmission link (data header and data payload), the safety is relatively high.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and substitutions can be made without departing from the technical principle of the present invention, and these modifications and substitutions should also be regarded as the protection scope of the present invention.
It will be understood by those skilled in the art that all or part of the processes for implementing the methods of the embodiments described herein may be implemented by associated hardware as instructed by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include processes according to the embodiments of the methods described herein. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (11)

1. A method for transmitting multimedia data, comprising:
the method comprises the steps that a client sends a request for creating an RTSP session to a video monitoring device through a pre-created encryption transmission link, so that the video monitoring device creates the RTSP session with the client through the encryption transmission link after receiving the request for creating the RTSP session; wherein the RTSP session uses the encrypted transmission link;
the client sends a request for transmitting multimedia data to the video monitoring equipment through the RTSP session, so that the video monitoring equipment transmits the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data;
before the client sends a request for creating an RTSP session to a video monitoring device through a pre-created encrypted transmission link, so that the video monitoring device creates an RTSP session with the client through the encrypted transmission link after receiving the request for creating an RTSP session, the method further includes:
the client sends a request for creating a transmission link to the video monitoring equipment, so that the video monitoring equipment creates a transmission link with the client after receiving the request for creating the transmission link;
the client sends a request for encrypting the transmission link to the video monitoring equipment, so that the video monitoring equipment encrypts the transmission link after receiving the request for encrypting the transmission link; wherein the encrypted transmission link is used as the pre-created encrypted transmission link;
when the client and the video monitoring device are in a wide area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically:
the client sends a request for establishing a transmission link to the video monitoring equipment through a relay server according to a TCP (transmission control protocol), so that the video monitoring equipment establishes the transmission link with the client through the relay server according to the TCP after receiving the request for establishing the transmission link.
2. The method for transmitting multimedia data according to claim 1, wherein when the client and the video monitoring device are in the same local area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically including:
the client acquires the address of the video monitoring equipment;
and the client sends a request for creating a transmission link to the video monitoring equipment through a TCP (transmission control protocol) or UDP (user datagram protocol) protocol according to the address of the video monitoring equipment, so that the video monitoring equipment creates a transmission link with the client through the TCP or UDP protocol after receiving the request for creating the transmission link.
3. The method for transmitting multimedia data according to claim 1, wherein when the client and the video monitoring device are in a wide area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically:
the client sends a P2P hole request to the video monitoring equipment, so that the video monitoring equipment creates a transmission link with the client through a UDP protocol after responding to the P2P hole request.
4. A client, comprising:
the session request module is used for sending a request for creating an RTSP session to the video monitoring equipment by the client through a pre-created encrypted transmission link, so that the video monitoring equipment creates the RTSP session with the client through the encrypted transmission link after receiving the request for creating the RTSP session; wherein the RTSP session uses the encrypted transmission link;
a transmission request module, configured to send, by the client, a request for transmitting multimedia data to the video monitoring device through the RTSP session, so that the video monitoring device transmits, after receiving the request for transmitting multimedia data, multimedia data to the client through the RTSP session;
the client further comprises:
the link creation request module is used for sending a request for creating a transmission link to the video monitoring equipment by the client, so that the video monitoring equipment creates the transmission link with the client after receiving the request for creating the transmission link;
the link encryption request module is used for sending a request for encrypting the transmission link to the video monitoring equipment by the client, so that the video monitoring equipment encrypts the transmission link after receiving the request for encrypting the transmission link; wherein the encrypted transmission link is used as the pre-created encrypted transmission link;
wherein when the client and the video monitoring device are in a wide area network;
the client sends a request for creating a transmission link to the video monitoring device, so that the video monitoring device creates a transmission link with the client after receiving the request for creating the transmission link, specifically:
the client sends a request for establishing a transmission link to the video monitoring equipment through a relay server according to a TCP (transmission control protocol), so that the video monitoring equipment establishes the transmission link with the client through the relay server according to the TCP after receiving the request for establishing the transmission link.
5. A method for transmitting multimedia data, comprising:
the video monitoring equipment establishes a transmission link with a client;
the video monitoring equipment encrypts the transmission link to obtain an encrypted transmission link;
the video monitoring equipment receives a RTSP session establishing request sent by the client through the encrypted transmission link, and establishes an RTSP session with the client through the encrypted transmission link after receiving the RTSP session establishing request; wherein the RTSP session uses the encrypted transmission link;
the video monitoring equipment receives a request for transmitting multimedia data sent by the client through the RTSP session, and transmits the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data;
the video monitoring equipment creates a transmission link with a client, and specifically comprises the following steps:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link with the client after receiving the request for establishing the transmission link;
when the client and the video monitoring device are in a wide area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link between the video monitoring equipment and the client through a relay server according to a TCP (transmission control protocol) after receiving the request for establishing the transmission link; wherein the request to create a transmission link is sent by the client via the relay server according to a TCP protocol.
6. The method for transmitting multimedia data according to claim 5, wherein the video monitoring device encrypts the transmission link to obtain an encrypted transmission link, specifically:
and the video monitoring equipment receives the request of encrypting the transmission link sent by the client, and encrypts the transmission link after receiving the request of encrypting the transmission link to obtain an encrypted transmission link.
7. The method for transmitting multimedia data according to claim 5, wherein when the client and the video monitoring device are in the same local area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link with the client through a TCP (transmission control protocol) or UDP (user datagram protocol) after receiving the request for establishing the transmission link; wherein the request for creating the transmission link is sent by the client through a TCP protocol or a UDP protocol according to the address of the video monitoring equipment.
8. The method for transmitting multimedia data according to claim 5, wherein when the client and the video monitoring device are in a wide area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link between the video monitoring equipment and the client through a relay server according to a TCP (transmission control protocol) after receiving the request for establishing the transmission link; wherein the request to create a transmission link is sent by the client via the relay server according to a TCP protocol.
9. The method for transmitting multimedia data according to claim 5, wherein when the client and the video monitoring device are in a wide area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a P2P hole request sent by the client, and establishes a transmission link with the client through a UDP protocol after responding to the P2P hole request.
10. A video surveillance apparatus, comprising:
the link creating module is used for creating a transmission link between the video monitoring equipment and the client;
the link encryption module is used for encrypting the transmission link by the video monitoring equipment to obtain an encrypted transmission link;
the session creating module is used for receiving a RTSP session creating request sent by the client through the encrypted transmission link by the video monitoring equipment, and creating an RTSP session between the video monitoring equipment and the client through the encrypted transmission link after receiving the RTSP session creating request; wherein the RTSP session uses the encrypted transmission link;
the transmission module is used for receiving a request for transmitting multimedia data sent by the client through the RTSP session by the video monitoring equipment and transmitting the multimedia data to the client through the RTSP session after receiving the request for transmitting the multimedia data;
the link creating module is specifically configured to receive, by the video monitoring device, a request for creating a transmission link sent by the client, and create a transmission link with the client after receiving the request for creating the transmission link;
wherein when the client and the video monitoring device are in a wide area network;
the video monitoring device receives the request for creating the transmission link sent by the client, and creates the transmission link with the client after receiving the request for creating the transmission link, specifically:
the video monitoring equipment receives a request for establishing a transmission link sent by the client, and establishes a transmission link between the video monitoring equipment and the client through a relay server according to a TCP (transmission control protocol) after receiving the request for establishing the transmission link; wherein the request to create a transmission link is sent by the client via the relay server according to a TCP protocol.
11. A transmission system of multimedia data, comprising a client according to claim 4 and a video surveillance device according to claim 10.
CN201911063713.1A 2019-11-01 2019-11-01 Multimedia data transmission method, system, client and video monitoring equipment Active CN110740300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911063713.1A CN110740300B (en) 2019-11-01 2019-11-01 Multimedia data transmission method, system, client and video monitoring equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911063713.1A CN110740300B (en) 2019-11-01 2019-11-01 Multimedia data transmission method, system, client and video monitoring equipment

Publications (2)

Publication Number Publication Date
CN110740300A CN110740300A (en) 2020-01-31
CN110740300B true CN110740300B (en) 2021-10-15

Family

ID=69272129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911063713.1A Active CN110740300B (en) 2019-11-01 2019-11-01 Multimedia data transmission method, system, client and video monitoring equipment

Country Status (1)

Country Link
CN (1) CN110740300B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928616A (en) * 2021-02-03 2022-08-19 上海哔哩哔哩科技有限公司 Transmission method and system of peer-to-peer network
WO2023272702A1 (en) * 2021-07-01 2023-01-05 Oppo广东移动通信有限公司 Data transmission method and apparatus for miracast, device, and storage medium
CN114245164A (en) * 2021-12-17 2022-03-25 杭州视洞科技有限公司 IPC live broadcast dynamic distribution stream-saving method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010045834A1 (en) * 2008-10-21 2010-04-29 中兴通讯股份有限公司 Method and system for video monitoring system to implement media traversing network address translation
CN107948676A (en) * 2017-12-08 2018-04-20 苏州科达科技股份有限公司 Method of transmitting video data and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9021134B1 (en) * 2006-03-03 2015-04-28 Juniper Networks, Inc. Media stream transport conversion within an intermediate network device
CN109274634B (en) * 2017-07-18 2021-06-11 腾讯科技(深圳)有限公司 Multimedia communication method and device, and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010045834A1 (en) * 2008-10-21 2010-04-29 中兴通讯股份有限公司 Method and system for video monitoring system to implement media traversing network address translation
CN107948676A (en) * 2017-12-08 2018-04-20 苏州科达科技股份有限公司 Method of transmitting video data and device

Also Published As

Publication number Publication date
CN110740300A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
US11108570B2 (en) Method and apparatus for multimedia communication, and storage medium
CN110740300B (en) Multimedia data transmission method, system, client and video monitoring equipment
US10354618B2 (en) Wireless communication system for offline participation in a display session
RU2660620C1 (en) Communication device and method of bypassing gateway firewall of application layer in setting rts communication connection between rts-client and rts-server
US9319439B2 (en) Secured wireless session initiate framework
US10194180B2 (en) Systems and methods for transmitting video data over a network
WO2018098633A1 (en) Data transmission method, data transmission apparatus, electronic device and computer program product
CN112422583A (en) Method and system for fusion and intercommunication of multi-protocol video application
JP2008078878A (en) Session control system, session proxy device, communication method, and program
CN113301106A (en) Operation and maintenance processing system, method and device
CN110798651A (en) Video conference method, device, equipment and storage medium
US20150043421A1 (en) Wireless relay apparatus, communication system, and communication method
WO2019129125A1 (en) Method and system for interaction between smart glasses and smart device, and storage medium
CN113259626A (en) Camera video stream acquisition system and method
JP6393475B2 (en) Communication adapter device, communication system, tunnel communication method, and program
CN102378064A (en) Method and device for realizing traversal of network address translators (NAT) in internet protocol television (IPTV) network
CN114710568A (en) Audio and video data communication method, equipment and storage medium
US10334086B2 (en) Header redundancy removal for tunneled media traffic
JP2011160286A (en) Call control server, relay server, vpn device, vpn communication system, vpn networking method, program, and storage medium
TWI648984B (en) System and method for streaming media
KR102648720B1 (en) Traffic transmission system based on dynamic tunneling communication, and signaling method of the same
WO2018010561A1 (en) Control method and apparatus for accessing core network
JP2007189383A (en) Tcp/ip communication relaying method and tcp/ip communication repeater
KR102272335B1 (en) Method and server for providing contents through udp based multicast and user device
CN110858885A (en) Cross-network real-time transmission method for mobile phone video

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant