CN111629277A - Video data transmission method, device and computer readable storage medium - Google Patents

Video data transmission method, device and computer readable storage medium Download PDF

Info

Publication number
CN111629277A
CN111629277A CN202010296934.XA CN202010296934A CN111629277A CN 111629277 A CN111629277 A CN 111629277A CN 202010296934 A CN202010296934 A CN 202010296934A CN 111629277 A CN111629277 A CN 111629277A
Authority
CN
China
Prior art keywords
video
video data
rtmp
streaming media
module
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.)
Pending
Application number
CN202010296934.XA
Other languages
Chinese (zh)
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN202010296934.XA priority Critical patent/CN111629277A/en
Publication of CN111629277A publication Critical patent/CN111629277A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04N21/6437Real-time Transport Protocol [RTP]
    • 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
    • H04N21/64322IP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems

Abstract

The embodiment of the invention provides a video data transmission method, a video data transmission device and a computer readable storage medium, wherein the method comprises the steps of receiving a video display request aiming at a target acquisition terminal sent by an internet terminal, acquiring target video networking video data from a video networking server according to the video display request, converting the target video networking video data into RTMP video data, and sending the RTMP video data to the internet terminal so as to enable the internet terminal to display the RTMP video data.

Description

Video data transmission method, device and computer readable storage medium
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a video data transmission method, an apparatus, and a computer-readable storage medium.
Background
The video networking is an important milestone for network development, is a higher-level form of the Internet, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the existing Internet, and pushes a plurality of Internet applications to high-definition video, and high definition faces each other. Finally, world no-distance is realized, and the distance between people in the world is only the distance of one screen.
In the present internet of vision, the video data of the video that the video network collection terminal gathered is gathered to the demonstration video network that can real-time high definition through the video network terminal that inserts the video network, however, because environmental factor, not all users can all use the video network terminal to show the video data of the video network, these users can only show through the outer ordinary internet terminal of video network, but the current mode that shows the video data of the video network collection terminal gathering at internet terminal is inefficient, the real-time is poor.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a video data transmission method, apparatus and computer-readable storage medium that overcome or at least partially solve the above problems.
In order to solve the above problems, an embodiment of the present invention discloses a video data transmission method, which is applied to a streaming media module in a video data transmission system, wherein the video data transmission system further includes a video networking server and an internet terminal, the video networking server is connected with the streaming media module through a video networking, and the streaming media module is connected with the internet terminal through an internet, the method includes:
receiving a video display request sent by the Internet terminal;
acquiring target video networking video data from the video networking server according to the video display request;
converting the target video networking video data into RTMP video data;
and sending the RTMP video data to the Internet terminal so that the Internet terminal displays the RTMP video data.
Optionally, converting the target video networking video data into RTMP video data includes:
analyzing the target video networking video data to obtain an Ethernet header, a user protocol data header and pure video data, wherein the user protocol header at least comprises: frame rate, code rate, resolution and timestamp information;
packaging the user protocol data header according to an RTMP protocol to obtain an RTMP protocol header;
and determining the RTMP video data according to the Ethernet header, the IP protocol header, the TCP protocol header, the RTMP protocol header and the pure video data.
Optionally, the installing the streaming media module in the video networking server or the installing the streaming media module in the internet terminal, and determining the RTMP video data according to the ethernet header, the IP protocol header, the TCP protocol header, the RTMP protocol header, and the pure video data includes:
when the streaming media module is installed in a video networking server, calling a network protocol stack of the video networking server, and adding the Ethernet header, the IP protocol header, the TCP protocol header and the RTMP protocol header to the pure video data to obtain the RTMP video data;
when the streaming media module is installed in an internet terminal, a network protocol stack of the internet terminal is called, and the ethernet header, the IP protocol header, the TCP protocol header and the RTMP protocol header are added to the pure video data to obtain the RTMP video data.
The embodiment of the invention also discloses a video data transmission method which is applied to an internet terminal in a video data transmission system, the video data transmission system also comprises a streaming media module and a video networking server, the video networking server is connected with the streaming media module through the video networking, the streaming media module is connected with the internet terminal through the internet, and the method comprises the following steps:
under the condition that a video display request aiming at a target acquisition terminal triggered by a user is detected, sending the video display request to the streaming media module;
receiving RTMP video data returned by the streaming media module, wherein the RTMP video data is obtained by converting target video networking video data after the streaming media module acquires the target video networking video data from the video networking server according to the video display request;
and calling a playing plug-in to display the RTMP video data.
The embodiment of the invention also discloses a video data transmission device, which is applied to a streaming media module in a video data transmission system, the video data transmission system also comprises a video networking server and an internet terminal, the video networking server is connected with the streaming media module through a video networking, the streaming media module is connected with the internet terminal through an internet, and the device comprises:
the first receiving module is used for receiving a video display request sent by the Internet terminal;
the acquisition module is used for acquiring target video networking video data from the video networking server according to the video display request;
the conversion module is used for converting the target video networking video data into RTMP video data;
and the first sending module is used for sending the RTMP video data to the Internet terminal so that the Internet terminal displays the RTMP video data.
Optionally, the conversion module comprises:
the analysis submodule is used for analyzing the target video networking video data to obtain an Ethernet header, a user protocol data header and pure video data, wherein the user protocol header at least comprises: frame rate, code rate, resolution and timestamp information;
the encapsulation submodule is used for encapsulating the user protocol data head according to an RTMP protocol to obtain an RTMP protocol head;
and the determining submodule is used for determining the RTMP video data according to the Ethernet header, the IP protocol header, the TCP protocol header, the RTMP protocol header and the pure video data.
Optionally, the streaming media module is installed in the video networking server or the streaming media module is installed in the internet terminal, and the determining sub-module includes:
the first obtaining subunit is configured to, when the streaming media module is installed in a video networking server, call a network protocol stack of the video networking server, add the ethernet header, the IP protocol header, the TCP protocol header, and the RTMP protocol header to the pure video data, and obtain the RTMP video data;
and the second obtaining subunit is configured to, when the streaming media module is installed in an internet terminal, call a network protocol stack of the internet terminal, add the ethernet header, the IP protocol header, the TCP protocol header, and the RTMP protocol header to the pure video data, and obtain the RTMP video data.
The embodiment of the invention also discloses a video data transmission device, which is applied to an internet terminal in a video data transmission system, the video data transmission system also comprises a streaming media module and a video networking server, the video networking server is connected with the streaming media module through the video networking, the streaming media module is connected with the internet terminal through the internet, and the device comprises:
the second sending module is used for sending the video display request to the streaming media module under the condition that the video display request aiming at the target acquisition terminal triggered by a user is detected;
the second receiving module is used for receiving RTMP video data returned by the streaming media module, wherein the RTMP video data are obtained by converting target video networking video data after the streaming media module acquires the target video networking video data from the video networking server according to the video display request;
and the display module is used for calling the playing plug-in and displaying the RTMP video data.
The embodiment of the invention also discloses a video data transmission device, which comprises:
one or more processors; and
one or more computer-readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform a video data transmission method according to any one of the embodiments of the invention.
The embodiment of the invention also discloses a computer readable storage medium, which stores a computer program for enabling a processor to execute the video data transmission method according to the embodiment of the invention.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, after receiving a video display request aiming at a target acquisition terminal sent by an internet terminal, a streaming media module acquires target video data from a video networking server according to the video display request, converts the target video data into RTMP video data and sends the RTMP video data to the internet terminal so that the internet terminal displays the RTMP video data.
By the method, video data of the video network is converted into RTMP video data and sent to the Internet terminal for display, so that the video data of the video network is sent to the Internet terminal for display, and the video data of the video network can be displayed by the Internet terminal outside the video network in real time in a high-definition mode. In addition, this embodiment can avoid deploying the streaming media server alone through with streaming media module direct mount on video networking server or internet terminal, resources are saved, simultaneously, also can avoid video networking video data to forward between a plurality of servers, has improved data transmission efficiency, further guarantees video data's real-time.
Drawings
Fig. 1 is a schematic diagram of an implementation environment of a video data transmission system according to an embodiment of the present invention;
fig. 2 is a flowchart of a video data transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating handshaking between a streaming media module and an internet terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an implementation environment of another video data transmission system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an implementation environment of another video data transmission system according to an embodiment of the present invention;
fig. 6 is a block diagram of a video data transmission apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram of another video data transmission apparatus according to an embodiment of the present invention;
FIG. 8 is a networking schematic of a video network of the present invention;
FIG. 9 is a diagram of a hardware architecture of a node server according to the present invention;
fig. 10 is a schematic diagram of a hardware structure of an access switch of the present invention;
fig. 11 is a schematic diagram of a hardware structure of an ethernet protocol conversion gateway according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an implementation environment of a video data transmission system according to an embodiment of the invention. As shown in fig. 1, the implementation environment includes: the system comprises a collection terminal, a video networking server, a streaming media module and an Internet terminal. The acquisition terminal is connected with the video network server, the video network server is connected with the streaming media module through the video network, and the streaming media module is connected with the internet terminal through the internet.
The acquisition terminal is used for acquiring video data (including audio data and video data) and sending the video data to the video networking server through a video networking protocol, so that the video data in the video networking server are all video networking video data.
In one embodiment, the acquisition terminal may be a video network acquisition terminal, and after the video network acquisition terminal acquires video data, the video network acquisition terminal directly transmits the video data to a video network server through a video network protocol.
In addition, because the video network can realize the real-time transmission of the full-network high-definition video which can not be realized by the internet at present, therefore, the video data collected by the internet collection terminal can be converted into video data of the video network, so that the real-time transmission of high-definition video is realized through the video network, therefore, in one embodiment, the collection terminal may also be an internet collection terminal, such as an internet IPC camera, the internet collection terminal is connected to the transfer server through the internet, the transfer server is connected to the video server through the video network, after the internet collection terminal collects the video data, the video data can be sent to the protocol conversion server, after the protocol conversion server converts the internet protocol video data into the video data of the video internet protocol, and then sending the video data to the video network server, so that the video network server receives the video data.
In an actual scene, one video conference comprises a main conference place and a plurality of branch conference places, each branch conference place is provided with a collection terminal, the purpose is that video streams of each branch conference place can be pushed to the main conference place to be displayed when needed, the display terminal of the main conference place is an internet terminal, the collection terminals of some branch conference places are video networking collection terminals, the collection terminals of some branch conference places are internet collection terminals, and based on the arrangement of the existing equipment, a video data transmission method is needed in order to enable the internet terminal to display the video streams of each branch conference place in high-definition real time.
Referring to fig. 2, fig. 2 is a flowchart of a video data transmission method according to an embodiment of the present invention, as shown in fig. 2, the method may be applied to a streaming media module in a video data transmission system, where the video data transmission system further includes a video networking server and an internet terminal, the video networking server is connected to the streaming media module through a video networking, and the streaming media module is connected to the internet terminal through an internet, and the method specifically includes the following steps:
and step S21, receiving a video display request sent by the Internet terminal.
In this embodiment, the video display request may include a video play request and a video preview request.
The internet terminal can be a computer, a pad or a mobile phone and other intelligent equipment, a user operation interface is provided on the internet terminal, the operation interface can be a web interface or a specially developed client interface, video stream display areas of video data of various video networks are displayed on the operation interface, and a user can select one of the video stream display areas, so that the internet terminal can detect a video display request triggered by the user. Specifically, the selection operation may be a single click, a double click, or a hover operation.
In this embodiment, the video data of the video network may be video data of the video network stored in a video network server, or may also be real-time video data acquired by an acquisition terminal, where the real-time video data and the video data of the video network may be video data in an H264 format.
For example, in a video conference scene, when it is time to speak in a branch conference room, it is usually necessary to push a video stream of the branch conference room onto a large screen of a main conference room, but before pushing the video stream onto the large screen of the main conference room, it is determined that a video of the branch conference room is unproblematic, that is, it is determined that a capture terminal of the branch conference room can capture video data normally, so that the video stream captured by the capture terminal of the branch conference room needs to be previewed first to see whether there is a problem, at this time, a user of an internet terminal may move a mouse to a video stream display area corresponding to the branch conference room on an operation interface, hover the mouse for a preset time, for example, for 2 seconds, at this time, the internet terminal may detect a video preview request, which is triggered by the user and is directed to the capture terminal of the branch conference room, that is, and send the video preview request to a streaming media module, so that the streaming media module may receive a video display request, which is sent by the internet terminal and is directed .
For another example, after it is determined that the collection terminal of the branch meeting place can normally collect video data through previewing, it is determined that the video stream of the branch meeting place is pushed to the large screen of the main meeting place, at this time, a user of the internet terminal can move a mouse to a video stream display area corresponding to the branch meeting place on an operation interface and click the video stream display area, at this time, the internet terminal can also detect a video playing request, which is triggered by the user and is directed to the collection terminal of the branch meeting place, that is, a target collection terminal, and send the video playing request to the streaming media module, so that the streaming media module can receive the video display request, which is sent by the internet terminal and is directed to the target collection terminal.
And step S22, acquiring target video data from the video network server according to the video display request.
In this embodiment, for real-time video data, the streaming media module sends a video stream acquisition request for the target acquisition terminal to the video networking server before the video networking server acquires the target video networking video data, and the video networking server receives the video stream acquisition request and then acquires the real-time video data from the corresponding target acquisition terminal.
Therefore, in this embodiment, the streaming media module obtains the target video data from the video networking server according to the video display request, and actually, the streaming media module sends the video stream obtaining request for the target acquisition terminal to the video networking server, and the video networking server forwards the real-time video data or the video networking video data uploaded by the target acquisition terminal to the streaming media module.
And step S23, converting the target video network video data into RTMP video data.
Because the internet protocol is different from the video networking protocol, the internet terminal cannot process the video networking video data, and therefore, in this embodiment, the target video networking video data is first converted into the RTMP video data based on the TCP protocol by the streaming media module, and then can be processed by the internet terminal.
The RTMP (Real Time Messaging Protocol) is based on TCP, and is a Protocol family, which includes various variants such as RTMP basic Protocol and RTMPT/RTMPs/RTMPE. RTMP is a network protocol designed for real-time data communication, and is mainly used for audio-video and data communication between a Flash/AIR platform and a streaming media/interaction server supporting the RTMP protocol. Software supporting the protocol includes Adobe Media Server/ultraportable Media Server/red5, etc. RTMP is the same as HTTP, and belongs to the application layer of TCP/IP four-layer model.
The video networking video data includes an ethernet header (14 bytes), a video networking switching protocol header (22 bytes), a common header (4 bytes), a user protocol data header (28 bytes), and pure video data.
The RTMP video data includes an ethernet header (14 bytes), an IP protocol header (20 bytes), a TCP protocol header (20 bytes), an RTMP protocol header (variable length), and pure video data.
In an embodiment, the step S23 may specifically include the following steps:
step S231, parsing the target video network video data to obtain an ethernet header, a user protocol data header, and pure video data.
Wherein the user protocol header comprises at least: frame rate, code rate, resolution, and timestamp information.
Step S232, the user protocol data header is encapsulated according to the RTMP protocol, and an RTMP protocol header is obtained.
Step S233, determining the RTMP video data according to the ethernet header, the IP protocol header, the TCP protocol header, the RTMP protocol header, and the pure video data.
In this embodiment, the streaming media module firstly analyzes and processes the video data of the target video network, and obtaining the video data of the target video network includes obtaining the video data of the target video network
In this embodiment, the video data of the video network is transmitted in the video network in the form of a data packet, so that the video data of the video network received by the streaming media module is actually a video data packet of the video network, and the same RTMP video data is also transmitted in the form of a data packet in the video network, so that the RTMP video data converted by the streaming media module is actually an RTMP video data packet, and after the streaming media module receives the video data packet of the video network, the video data packet of the video network is sequentially unpacked and packaged, thereby completing the conversion from the video data packet of the video network to the RTMP video data packet. Wherein, the unpacking process is as follows:
the streaming media module firstly removes an Ethernet header and a video networking exchange protocol header of a video networking video data packet, and the video networking video data packet at the moment becomes: a common header (4 bytes), a user protocol data header (28 bytes), and pure video data;
the streaming media module continues to parse the video networking video data packet, and the common header is removed, at this moment, the video networking packet becomes: a user protocol data header (28 bytes) and pure video data, wherein the user protocol header mainly contains the frame rate, code rate, resolution, time stamp and the like of the video data. At this point the information contained in the user protocol header is saved for later encapsulation of the RTMP data packet.
The streaming media module continues to analyze the video networking video data packet, and the user protocol header is removed, so that the video networking video data packet is left: pure video data, which is true video data.
And after the unpacking process, performing a packaging process, wherein the packaging process comprises the following steps:
the streaming media module encapsulates the video data into RTMP header information according to the frame rate, code rate, resolution, timestamp and the like of the video data contained in the user protocol header acquired by unpacking and according to the RTMP protocol format, and the data format is obtained before the RTMP header information is added to the pure video data acquired in the unpacking process: an RTMP protocol header (variable length) and pure video data;
finally, the streaming media module adds an ethernet data header, a TCP packet header and an IP packet header on the basis of an RTMP protocol header (variable length) and pure video data, and the final format of the RTMP data packet is: ethernet header (14 bytes), IP protocol header (20 bytes), TCP protocol header (20 bytes), RTMP protocol header (variable length), and pure video data.
In an embodiment, the streaming media module may be written in C + + language to improve compatibility of the streaming media module and facilitate the migration of the streaming media module, so that the streaming media module may be installed in a video networking server or the streaming media module may be installed in an internet terminal, where the step S233 may specifically include the following steps:
step S2331, call a network protocol stack of the video networking server, add the ethernet header, the IP protocol header, the TCP protocol header, and the RTMP protocol header to the pure video data, and obtain the RTMP video data.
Step S2332, call a network protocol stack of the internet terminal, add the ethernet header, the IP protocol header, the TCP protocol header, and the RTMP protocol header to the pure video data, and obtain the RTMP video data.
In this embodiment, the streaming media module is used as a program in the video networking server or the internet terminal, and the program can directly call a network protocol stack carried by the video networking server or the internet terminal, for example, when the video networking server or the internet terminal is a server of a Linux system, the streaming media module can call the Linux network protocol stack, and add an ethernet header, an IP protocol header, a TCP protocol header, and an RTMP protocol header to pure video data, thereby obtaining RTMP video data. It should be noted that step S2331 and step S2332 should not be construed as limited to the order of execution.
The video network server or the internet terminal can be provided with double network cards, one network card is connected with the video network, and the other network card is connected with the internet, so that double-network communication of the video network server or the internet terminal can be realized.
In this embodiment, through with streaming media module direct mount on video networking server or internet terminal, can avoid deploying streaming media server alone, resources are saved, simultaneously, also can avoid video networking video data to retransmit between a plurality of servers, improved data transmission efficiency, guarantee video data's real-time.
Step S24, sending the RTMP video data to the internet terminal, so that the internet terminal displays the RTMP video data.
In this embodiment, after the streaming media module converts the target video data into the RTMP video data, the RTMP video data may be returned to the internet terminal, so that the internet terminal can receive the RTMP video data returned by the streaming media module and display the RTMP video data on the interface of the internet terminal.
Specifically, after receiving the RTMP video data, the internet terminal first calls a play plug-in installed in the internet terminal to decode the RTMP video data, and then displays the decoded RTMP video data.
In this embodiment, it is considered that the internet terminal receives data in other data formats because the internet terminal needs the nginx or tomcat service, and at this time, the internet terminal decodes all the received data, thereby distinguishing a data packet of the RTMP protocol, and calls a corresponding plug-in to decode and display a video.
In this embodiment, after receiving a video display request, sent by an internet terminal, for a target acquisition terminal, a streaming media module obtains target video data from the video networking server according to the video display request, converts the target video data into RTMP video data, and sends the target video data to the internet terminal, so that the internet terminal displays the RTMP video data.
In addition, this embodiment can avoid deploying the streaming media server alone through with streaming media module direct mount on video networking server or internet terminal, resources are saved, simultaneously, also can avoid video networking video data to forward between a plurality of servers, has improved data transmission efficiency, further guarantees video data's real-time.
In addition, before the internet terminal displays the video of the target acquisition terminal, that is, before the streaming media module sends the RTMP video data to the internet terminal, the internet terminal needs to perform handshaking, connection establishment, streaming establishment, and playing processes with the streaming media module in sequence.
Referring to fig. 3, fig. 3 is a flow chart of handshaking between a streaming media module and an internet terminal according to an embodiment of the present invention, as shown in fig. 3, C0, C1, and C2 are three fixed-size data blocks, and S0, S1, and S2 are three fixed-size data blocks, and the handshaking procedure is as follows:
the handshake starts when the internet terminal sends C0 and C1, and the server sends S0 and S1 after receiving C0 or C1; when the internet terminal collects S0 and S1, C2 is sent, and when the server collects C0 and C1, S2 is sent; after the client and the server receive S2 and C2, respectively, the handshake is completed.
The connection establishment procedure is as follows:
1. the internet terminal sends a "connect" in a command message to the streaming media module requesting a connection to be established with a service application instance.
2. After receiving the connection command message, the streaming media module sends a confirmation window Size (WindowAcknowledgement Size) protocol message to the internet terminal, and simultaneously connects to the application program mentioned in the connection command.
3. The streaming media module sends a set bandwidth () protocol message to the client.
4. After the internet terminal processes the set bandwidth protocol message, it sends a confirmation window Size (WindowAcknowledgement Size) protocol message to the streaming media module.
5. The streaming media module transmits a "Stream start" (Stream Begin) message in the user control message to the internet terminal, and the streaming media module transmits a "result" (_ result) in the command message to inform the internet terminal of the connection status.
The process of establishing the flow is as follows:
1. the internet terminal transmits a "create stream" (createStream) command in the command message to the streaming media module.
2. After receiving the command of 'creating stream', the streaming media module sends 'result' in the command message to inform the internet terminal of the stream state.
The playing process is as follows:
1. the internet terminal sends a play command in the command message to the streaming media module.
2. After receiving the play command, the streaming media module sends a set block size (ChunkSize) protocol message.
3. And the streaming media module sends 'streamlogic' in the user control message to inform the Internet terminal of the stream ID.
4. If the play command is successful, the streaming media module sends a response status of "netstream.play.start & netstream.play.reset" in the command message, and informs the internet terminal that the execution of the "play" command is successful.
After finishing the above-mentioned 4 steps of handshaking, establishing connection, establishing stream and playing, the streaming media module sends the RTMP video data to be played by the Internet terminal.
Referring to fig. 4, fig. 4 is a flowchart illustrating another video data transmission method according to an embodiment of the present invention, where the method is applied to an internet terminal in a video data transmission system, where the video data transmission system further includes a streaming media module and a video networking server, the video networking server is connected to the streaming media module through a video networking, and the streaming media module is connected to the internet terminal through an internet, where the method specifically includes the following steps:
step S41, sending the video display request to the streaming media module when detecting a video display request for the target collection terminal triggered by the user.
Step S42, receiving the RTMP video data returned by the streaming media module, where the RTMP video data is obtained by the streaming media module, after acquiring the target video data from the video networking server according to the video display request, converting the target video data.
And step S43, calling a playing plug-in to display the RTMP video data.
For the details of this embodiment, reference may be made to the contents of the above steps S21-S24, which are not described herein again.
Referring to fig. 5, fig. 5 is a schematic diagram of another implementation environment of a video data transmission system according to an embodiment of the present invention, as shown in fig. 5, the implementation environment includes: the system comprises an internet of vision terminal, an internet of vision server, a streaming media module and an internet web terminal (namely a web computer in figure 5).
Specifically, the video network terminal comprises a terminal data module, a terminal scheduling module and a terminal protocol module, wherein the terminal data module is used for processing video network video data; for example: sending the coded video data to a video network, or receiving audio and video data in the video network to decode, display and play; the terminal scheduling module is used for sending the processed video data of the video network to the video network server, and the terminal protocol module is used for processing a video network signaling protocol (client).
The video network server can comprise a video network server data module, a video network server scheduling module and a video network server protocol module, wherein the video network server data module is used for forwarding video network audio and video data (a server), the video network server scheduling module is used for sending the received video data to the streaming media module through the video network, and the video network server protocol module is used for processing a video network signaling protocol (the server).
The streaming media module can comprise a streaming media module data module, a streaming media module scheduling module and a streaming media module protocol processing module, wherein the streaming media module scheduling module is used for sending the received RTMP video data to the streaming media module data module; the streaming media module data module is used for unpacking video data of the video network to obtain pure video data and then sending the pure video data to the streaming media module protocol processing module; the streaming media module protocol processing module is used for adding an RTMP protocol packet header in front of pure video data and sending the RTMP protocol packet header to the web computer through the streaming media module scheduling module.
The web computer can comprise a web computer data processing module, a web computer scheduling module and a web computer playing plug-in module, wherein the web computer scheduling module is used for receiving data sent by the streaming media module; the web computer data processing module is used for processing the received data, namely distinguishing which of the data received by the web computer scheduling module is RTMP data and which is not RTMP data. If the RTMP protocol is analyzed, the RTMP protocol is forwarded to a web-end computer playing plug-in module through a web-end computer scheduling module; the web-end computer playing plug-in module is used for carrying out video decoding playing on the RTMP video data.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Based on the same technical concept, please refer to fig. 6, fig. 6 shows a block diagram of a video data transmission apparatus 60 according to an embodiment of the present invention, which is applied to a streaming media module in a video data transmission system, the video data transmission system further includes a video network server and an internet terminal, the video network server is connected to the streaming media module through a video network, and the streaming media module is connected to the internet terminal through an internet; the device may specifically include the following modules:
a first receiving module 61, configured to receive a video display request sent by the internet terminal;
an obtaining module 62, configured to obtain target video data from the video networking server according to the video display request;
a conversion module 63, configured to convert the target video networking video data into RTMP video data;
a first sending module 64, configured to send the RTMP video data to the internet terminal, so that the internet terminal displays the RTMP video data.
Optionally, the conversion module comprises:
the analysis submodule is used for analyzing the target video networking video data to obtain an Ethernet header, a user protocol data header and pure video data, wherein the user protocol header at least comprises: frame rate, code rate, resolution and timestamp information;
the encapsulation submodule is used for encapsulating the user protocol data head according to an RTMP protocol to obtain an RTMP protocol head;
and the determining submodule is used for determining the RTMP video data according to the Ethernet header, the IP protocol header, the TCP protocol header, the RTMP protocol header and the pure video data.
Optionally, the streaming media module is installed in the video networking server or the streaming media module is installed in the internet terminal, and the determining sub-module includes:
the first obtaining subunit is configured to, when the streaming media module is installed in a video networking server, call a network protocol stack of the video networking server, add the ethernet header, the IP protocol header, the TCP protocol header, and the RTMP protocol header to the pure video data, and obtain the RTMP video data;
and the second obtaining subunit is configured to, when the streaming media module is installed in an internet terminal, call a network protocol stack of the internet terminal, add the ethernet header, the IP protocol header, the TCP protocol header, and the RTMP protocol header to the pure video data, and obtain the RTMP video data.
Referring to fig. 7, fig. 7 is a block diagram of a video data transmission apparatus 70 according to an embodiment of the present invention, which is applied to an internet terminal in a video data transmission system, where the video data transmission system further includes a streaming media module and a video network server, the video network server is connected to the streaming media module through a video network, and the streaming media module is connected to the internet terminal through the internet; the device may specifically include the following modules:
a second sending module 71, configured to send a video display request to a streaming media module when the video display request for a target acquisition terminal triggered by a user is detected;
a second receiving module 72, configured to receive the RTMP video data returned by the streaming media module, where the RTMP video data is obtained by the streaming media module, after acquiring target video data from the video networking server according to the video display request, converting the target video data;
and the display module 73 is used for calling a playing plug-in to display the RTMP video data.
An embodiment of the present invention further provides a video data transmission device, including:
one or more processors; and
one or more computer-readable instructions stored thereon which, when executed by the one or more processors, cause the apparatus to perform a video data transmission method according to any one of the embodiments of the present invention.
Embodiments of the present invention further provide a computer-readable storage medium storing a computer program for causing a processor to execute the video data transmission method according to the embodiments of the present invention.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, Personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the technologies applied in the video networking are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network circuit Switching (circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet switching of the Ethernet, eliminates the defects of the Ethernet on the premise of full compatibility, has end-to-end seamless connection of the whole network, is directly communicated with a user terminal, and directly bears an IP data packet. The user data does not require any format conversion across the entire network. The video networking is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the real-time transmission of the whole-network large-scale high-definition video which cannot be realized by the existing Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by more than one hundred times compared with that of a traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
the video network is a centralized control network structure, and the network can be a tree network, a star network, a ring network and the like, but on the basis of the centralized control node, the whole network is controlled by the centralized control node in the network.
As shown in fig. 8, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure with layered centralized control, and the network controlled by the node server and the metropolitan area server can be in various structures such as tree, star and ring.
The access network part can form a unified video platform (the part in the dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
Video networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: servers, switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node servers, access switches (including ethernet gateways), terminals (including various set-top boxes, code boards, memories, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 9, the system mainly includes a network interface module 901, a switching engine module 902, a CPU module 903, and a disk array module 904;
the network interface module 901, the CPU module 903, and the disk array module 904 all enter the switching engine module 902; the switching engine module 902 performs an operation of looking up the address table 905 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a corresponding queue of the packet buffer 906 based on the packet's steering information; if the queue of the packet buffer 906 is nearly full, discard; the switching engine module 902 polls all packet buffer queues for forwarding if the following conditions are met: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero. The disk array module 904 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU 903 is mainly responsible for protocol processing with an access switch and a terminal (not shown), configuring an address table 905 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 904.
The access switch:
as shown in fig. 10, the network interface module (downstream network interface module 1001, upstream network interface module 1002), switching engine module 1003, and CPU module 1004 are mainly included;
wherein, the packet (uplink data) coming from the downlink network interface module 1001 enters the packet detection module 1005; the packet detection module 1005 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id) and enters the switching engine module 1003, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 1002 enters the switching engine module 1003; the incoming data packet of the CPU module 1004 enters the switching engine module 1003; the switching engine module 1003 performs an operation of looking up the address table 1006 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 1003 goes from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 1007 in combination with the stream-id; if the queue of the packet buffer 1007 is nearly full, it is discarded; if the packet entering the switching engine module 1003 does not go from the downlink network interface to the uplink network interface, the data packet is stored into the queue of the corresponding packet buffer 1007 according to the guiding information of the packet; if the queue of the packet buffer 1007 is nearly full, it is discarded.
The switching engine module 1003 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queued packet counter is greater than zero; 3) obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) the port send buffer is not full; 2) the queue packet counter is greater than zero.
The rate control module 1008 is configured by the CPU module 1004 to generate tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 1004 is mainly responsible for protocol processing with the node server, configuration of the address table 1006, and configuration of the code rate control module 1008.
Ethernet protocol gateway:
as shown in fig. 11, the system mainly includes a network interface module (a downlink network interface module 1101 and an uplink network interface module 1102), a switching engine module 1103, a CPU module 1104, a packet detection module 1105, a rate control module 1108, an address table 1106, a packet buffer 1107, a MAC adding module 1109, and a MAC deleting module 1110.
Wherein, the data packet coming from the downlink network interface module 1101 enters the packet detection module 1105; the packet detection module 1105 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC deleting module 1110 subtracts MAC DA, MAC SA, length orframe type (2byte) and enters the corresponding receiving buffer, otherwise, discards the MAC;
the downlink network interface module 1101 detects the sending buffer of the port, and if there is a packet, acquires the ethernet MAC DA of the corresponding terminal according to the video network destination address DA of the packet, adds the ethernet MAC DA of the terminal, the MACSA of the ethernet coordination gateway, and the ethernet length or frame type, and sends the packet.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Video networking packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), Source Address (SA), reserved bytes, payload (pdu), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
Figure BDA0002452540270000211
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
the reserved byte consists of 2 bytes;
the payload part has different lengths according to different types of datagrams, and is 64 bytes if the datagram is various types of protocol packets, and is 32+1024 or 1056 bytes if the datagram is a unicast packet, of course, the length is not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x 0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are both passively executed, which is different from label allocation of MPLS, and label allocation of MPLS is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
Figure BDA0002452540270000221
namely Destination Address (DA), Source Address (SA), Reserved byte (Reserved), tag, payload (pdu), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, and its position is between the reserved bytes and payload of the packet.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The video data transmission method, the video data transmission apparatus, and the computer-readable storage medium according to the present invention are described in detail, and specific examples are applied herein to illustrate the principles and embodiments of the present invention, and the descriptions of the above embodiments are only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A video data transmission method is applied to a streaming media module in a video data transmission system, the video data transmission system further comprises a video network server and an Internet terminal, the video network server is connected with the streaming media module through a video network, the streaming media module is connected with the Internet terminal through an Internet, and the method comprises the following steps:
receiving a video display request sent by the Internet terminal;
acquiring target video networking video data from the video networking server according to the video display request;
converting the target video networking video data into RTMP video data;
and sending the RTMP video data to the Internet terminal so that the Internet terminal displays the RTMP video data.
2. The method of claim 1, wherein converting the target video networking video data to RTMP video data comprises:
analyzing the target video networking video data to obtain an Ethernet header, a user protocol data header and pure video data, wherein the user protocol header at least comprises: frame rate, code rate, resolution and timestamp information;
packaging the user protocol data header according to an RTMP protocol to obtain an RTMP protocol header;
and determining the RTMP video data according to the Ethernet header, the IP protocol header, the TCP protocol header, the RTMP protocol header and the pure video data.
3. The method of claim 2, wherein the streaming media module is installed in the video networking server, and determining the RTMP video data according to the Ethernet header, the IP protocol header, the TCP protocol header, the RTMP protocol header, and the pure video data comprises:
and calling a network protocol stack of the video networking server, and adding the Ethernet header, the IP protocol header, the TCP protocol header and the RTMP protocol header to the pure video data to generate the RTMP video data.
4. The method of claim 2, wherein the streaming media module is installed in the internet terminal, and determining the RTMP video data according to the ethernet header, the IP protocol header, the TCP protocol header, the RTMP protocol header and the pure video data comprises:
and calling a network protocol stack carried by the internet terminal, and adding the Ethernet header, the IP protocol header, the TCP protocol header and the RTMP protocol header to the pure video data to obtain the RTMP video data.
5. A video data transmission method is applied to an Internet terminal in a video data transmission system, the video data transmission system further comprises a streaming media module and a video networking server, the video networking server is connected with the streaming media module through a video networking, the streaming media module is connected with the Internet terminal through the Internet, and the method comprises the following steps:
under the condition that a video display request triggered by a user is detected, sending the video display request to the streaming media module;
receiving RTMP video data returned by the streaming media module, wherein the RTMP video data is obtained by converting target video networking video data after the streaming media module acquires the target video networking video data from the video networking server according to the video display request;
and calling a playing plug-in to display the RTMP video data.
6. A video data transmission device is applied to a streaming media module in a video data transmission system, the video data transmission system further comprises a video network server and an internet terminal, the video network server is connected with the streaming media module through a video network, the streaming media module is connected with the internet terminal through an internet, the device comprises:
the first receiving module is used for receiving a video display request sent by the Internet terminal;
the acquisition module is used for acquiring target video networking video data from the video networking server according to the video display request;
the conversion module is used for converting the target video networking video data into RTMP video data;
and the first sending module is used for sending the RTMP video data to the Internet terminal so that the Internet terminal displays the RTMP video data.
7. The apparatus of claim 6, wherein the conversion module comprises:
the analysis submodule is used for analyzing the target video networking video data to obtain an Ethernet header, a user protocol data header and pure video data, wherein the user protocol header at least comprises: frame rate, code rate, resolution and timestamp information;
the encapsulation submodule is used for encapsulating the user protocol data head according to an RTMP protocol to obtain an RTMP protocol head;
and the determining submodule is used for determining the RTMP video data according to the Ethernet header, the IP protocol header, the TCP protocol header, the RTMP protocol header and the pure video data.
8. A video data transmission device is applied to an internet terminal in a video data transmission system, the video data transmission system further comprises a streaming media module and a video network server, the video network server is connected with the streaming media module through a video network, the streaming media module is connected with the internet terminal through the internet, and the device comprises:
the second sending module is used for sending the video display request to the streaming media module under the condition that the video display request aiming at the target acquisition terminal triggered by a user is detected;
the second receiving module is used for receiving RTMP video data returned by the streaming media module, wherein the RTMP video data are obtained by converting target video networking video data after the streaming media module acquires the target video networking video data from the video networking server according to the video display request;
and the display module is used for calling the playing plug-in and displaying the RTMP video data.
9. A video data transmission apparatus, comprising:
one or more processors; and
one or more computer-readable storage media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the video data transmission method of any of claims 1-4 or the video data transmission method of claim 5.
10. A computer-readable storage medium storing a computer program for causing a processor to execute the video data transmission method according to any one of claims 1 to 4 or the video data transmission method according to claim 5.
CN202010296934.XA 2020-04-15 2020-04-15 Video data transmission method, device and computer readable storage medium Pending CN111629277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010296934.XA CN111629277A (en) 2020-04-15 2020-04-15 Video data transmission method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010296934.XA CN111629277A (en) 2020-04-15 2020-04-15 Video data transmission method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111629277A true CN111629277A (en) 2020-09-04

Family

ID=72273173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010296934.XA Pending CN111629277A (en) 2020-04-15 2020-04-15 Video data transmission method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111629277A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019563A (en) * 2020-09-11 2020-12-01 成都运达科技股份有限公司 Video data forwarding and transmitting system and method
CN115442348A (en) * 2022-11-09 2022-12-06 成都华栖云科技有限公司 Multi-protocol multi-terminal interaction-based real-time teaching interaction method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131084A (en) * 2010-01-19 2011-07-20 深圳市在线通网络科技开发有限公司 RTMP (Real Time Messaging Protocol) pushing device and method for audio/video streaming media
CN105898620A (en) * 2015-11-26 2016-08-24 乐视移动智能信息技术(北京)有限公司 Multimedia real-time live broadcast method and device
CN106550282A (en) * 2015-09-17 2017-03-29 北京视联动力国际信息技术有限公司 A kind of player method and system of video data
CN107454416A (en) * 2017-09-12 2017-12-08 广州酷狗计算机科技有限公司 Video flow sending method and device
CN108063741A (en) * 2016-11-07 2018-05-22 北京视联动力国际信息技术有限公司 A kind of transport protocol conversion method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102131084A (en) * 2010-01-19 2011-07-20 深圳市在线通网络科技开发有限公司 RTMP (Real Time Messaging Protocol) pushing device and method for audio/video streaming media
CN106550282A (en) * 2015-09-17 2017-03-29 北京视联动力国际信息技术有限公司 A kind of player method and system of video data
CN105898620A (en) * 2015-11-26 2016-08-24 乐视移动智能信息技术(北京)有限公司 Multimedia real-time live broadcast method and device
CN108063741A (en) * 2016-11-07 2018-05-22 北京视联动力国际信息技术有限公司 A kind of transport protocol conversion method and apparatus
CN107454416A (en) * 2017-09-12 2017-12-08 广州酷狗计算机科技有限公司 Video flow sending method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019563A (en) * 2020-09-11 2020-12-01 成都运达科技股份有限公司 Video data forwarding and transmitting system and method
CN115442348A (en) * 2022-11-09 2022-12-06 成都华栖云科技有限公司 Multi-protocol multi-terminal interaction-based real-time teaching interaction method and system
CN115442348B (en) * 2022-11-09 2023-01-24 成都华栖云科技有限公司 Multi-protocol multi-terminal interaction-based real-time teaching interaction method and system

Similar Documents

Publication Publication Date Title
CN108632525B (en) Method and system for processing service
CN108737768B (en) Monitoring method and monitoring device based on monitoring system
CN109167960B (en) Method and system for processing video stream data
CN108881815B (en) Video data transmission method and device
CN109194982B (en) Method and device for transmitting large file stream
CN110769310B (en) Video processing method and device based on video network
CN109547163B (en) Method and device for controlling data transmission rate
CN108881948B (en) Method and system for video inspection network polling monitoring video
CN110166433B (en) Method and system for acquiring video data
CN110475131B (en) Terminal connection method, server and terminal
CN108574816B (en) Video networking terminal and communication method and device based on video networking terminal
CN110139124B (en) Processing method and device for monitoring recording
CN110113564B (en) Data acquisition method and video networking system
CN109743284B (en) Video processing method and system based on video network
CN110769179B (en) Audio and video data stream processing method and system
CN110581846A (en) Monitoring video processing and system
CN111629277A (en) Video data transmission method, device and computer readable storage medium
CN110769297A (en) Audio and video data processing method and system
CN111212255B (en) Monitoring resource obtaining method and device and computer readable storage medium
CN110086773B (en) Audio and video data processing method and system
CN109769012B (en) Web server access method and device
CN111447396A (en) Audio and video transmission method and device, electronic equipment and storage medium
CN110324578B (en) Monitoring video processing method, device and storage medium
CN110620796B (en) Fingerprint information access method and device
CN110536148B (en) Live broadcasting method and equipment based on video networking

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