CN110022295A - A kind of method and view networked system of data transmission - Google Patents
A kind of method and view networked system of data transmission Download PDFInfo
- Publication number
- CN110022295A CN110022295A CN201910153491.6A CN201910153491A CN110022295A CN 110022295 A CN110022295 A CN 110022295A CN 201910153491 A CN201910153491 A CN 201910153491A CN 110022295 A CN110022295 A CN 110022295A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- data
- acquisition instruction
- module
- index file
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/65—Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
Abstract
The embodiment of the invention provides a kind of methods of data transmission and view networked system, which comprises receiving terminal apparatus sends the first acquisition instruction based on HLS protocol, and the first acquisition instruction includes the IP and port numbers, Data Identification of terminal device;The address mark based on RTMP agreement is generated according to the first acquisition instruction based on HLS protocol;Virtual terminal is controlled to be identified according to address from view networked server acquisition first object data;According to HLS protocol by first object data conversion at the second target data and corresponding index file;Index file is sent to terminal device.The embodiment of the present invention passes through virtual terminal of the setting based on RTMP and being attached depending on networked server based on RTMP agreement in streaming media server, and the data of RTMP agreement are converted to and can be obtained by the data that HLS protocol equipment identifies for the terminal device of use HLS protocol, the bridge joint for realizing HLS protocol and RTMP agreement in view networking improves the flexibility of view networking audio data transmission.
Description
Technical field
The present invention relates to view networking technology fields, method and view networked system more particularly to a kind of transmission of data.
Background technique
It is the important milestone of network Development depending on networking, is the more advanced form of internet, is a real-time network, it can
It realizes the whole network HD video real-time Transmission that current internet cannot achieve, pushes numerous Internet applications to HD video.
Equipment output of the tradition based on RTMP agreement can only be for meeting the terminal device of RTMP agreement, can not be to being based on
The terminal of HLS protocol carries out audio output, but HLS protocol is also to be widely used the transmission of audio data, therefore how real
The problem of bridge joint conversion real-time streams output of existing RTMP agreement and HLS protocol is industry urgent need to resolve.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
The method and view networked system of a kind of data transmission to solve the above problems.
To solve the above-mentioned problems, first aspect of the embodiment of the present invention discloses a kind of method of data transmission, the side
Method is applied to the streaming media server in view networking, the streaming media server and terminal device, view networked server communication link
It connects, which comprises
The first acquisition instruction based on HLS protocol that the terminal device is sent is received, first acquisition instruction includes
IP and port numbers, the Data Identification of the terminal device;
The address mark based on RTMP agreement is generated according to first acquisition instruction based on HLS protocol;
It controls the virtual terminal and first object data is obtained from the view networked server according to address mark;
According to HLS protocol by the first object data conversion at the second target data and corresponding index file;
The index file is sent to the terminal device.
Preferably, after the described the step of index file is sent to the terminal device, further includes:
Receive the second acquisition instruction that the terminal device is sent according to the index file;
Second target data is returned to the terminal device according to second acquisition instruction.
Preferably, it is described according to HLS protocol by the first object data conversion at the second target data and corresponding
Index file, comprising:
According to HLS protocol by the first object data conversion at the slicing files and corresponding M3U8 index of TS format
File.
Preferably, second acquisition instruction includes
M3U index subfile in the M3U8 index file;
It is described that second target data is returned to the terminal device according to second acquisition instruction, comprising:
The corresponding slicing files are returned according to the M3U index subfile in second acquisition instruction.
Preferably, before described the step of receiving the first acquisition instruction based on HLS protocol that the terminal device is sent,
Further include:
Construct the virtual terminal based on RTMP agreement;
Establish the communication connection between the virtual terminal and the view networked server.
Second aspect of the embodiment of the present invention discloses a kind of view networked system of data transmission, the view networked system packet
It includes: streaming media server and the terminal device and view networked server of streaming media server communication connection, the view connection
Net system includes:
First command reception module, the first acquisition instruction based on HLS protocol sent for receiving the terminal device,
First acquisition instruction includes the IP and port numbers, Data Identification of the terminal device;
Address acquisition module, for being generated according to first acquisition instruction based on HLS protocol based on RTMP agreement
Address mark;
Data acquisition module is obtained from described depending on networked server for controlling the virtual terminal according to address mark
Take first object data;
Protocol conversion module is used for the first object data conversion according to HLS protocol into the second target data and phase
Corresponding index file;
Sending module is indexed, for the index file to be sent to the terminal device.
Preferably, after the index sending module, further includes:
Second instruction acquisition module refers to for receiving the terminal device and being obtained according to second that the index file is sent
It enables;
Data transmission blocks, for returning to second number of targets to the terminal device according to second acquisition instruction
According to.
Preferably, the protocol conversion module, comprising:
Protocol conversion submodule, for according to HLS protocol that the first object data conversion is literary at the fragment of TS format
Part and corresponding M3U8 index file.
Preferably, second acquisition instruction includes
M3U index subfile in the M3U8 index file;The data transmission blocks, comprising:
Data sending submodule, it is corresponding for being returned according to the M3U index subfile in second acquisition instruction
The slicing files.
Preferably, before first command reception module, further includes:
Module is constructed, for constructing the virtual terminal based on RTMP agreement;
Link block, the communication connection for establishing between the virtual terminal and the view networked server.The present invention is real
Apply a second aspect and disclose a kind of view networked system of data transmission, it is described depending on networked system include: streaming media server, with
And the terminal device and view networked server of the streaming media server communication connection, it is described to include: depending on networked system
First command reception module, the first acquisition instruction based on HLS protocol sent for receiving the terminal device,
First acquisition instruction includes the IP and port numbers, Data Identification of the terminal device;
Address acquisition module, for being generated according to first acquisition instruction based on HLS protocol based on RTMP agreement
Address mark;
Data acquisition module is obtained from described depending on networked server for controlling the virtual terminal according to address mark
Take first object data;
Protocol conversion module is used for the first object data conversion according to HLS protocol into the second target data and phase
Corresponding index file;
Sending module is indexed, for the index file to be sent to the terminal device.
Preferably, after the index sending module, further includes:
Second instruction acquisition module refers to for receiving the terminal device and being obtained according to second that the index file is sent
It enables;
Data transmission blocks, for returning to second number of targets to the terminal device according to second acquisition instruction
According to.
Preferably, the protocol conversion module, comprising:
Protocol conversion submodule, for according to HLS protocol that the first object data conversion is literary at the fragment of TS format
Part and corresponding M3U8 index file.
Preferably, second acquisition instruction includes
M3U index subfile in the M3U8 index file;The data transmission blocks, comprising:
Data sending submodule, it is corresponding for being returned according to the M3U index subfile in second acquisition instruction
The slicing files.
Preferably, before first command reception module, further includes:
Module is constructed, for constructing the virtual terminal based on RTMP agreement;
Link block, the communication connection for establishing between the virtual terminal and the view networked server.
The embodiment of the present invention includes following advantages:
The embodiment of the invention provides a kind of methods of data transmission and view networked system, which comprises receives eventually
End equipment sends the first acquisition instruction based on HLS protocol, and the first acquisition instruction includes the IP and port numbers, data of terminal device
Mark;The address mark based on RTMP agreement is generated according to the first acquisition instruction based on HLS protocol;Control virtual terminal according to
Address mark obtains first object data from view networked server;According to HLS protocol by first object data conversion at the second mesh
Mark data and corresponding index file;Index file is sent to terminal device.The embodiment of the present invention passes through streaming media service
Virtual terminal of the setting based on RTMP and being attached depending on networked server based on RTMP agreement in device, and by RTMP agreement
Data, which are converted to, to be obtained by the data that HLS protocol equipment identifies for the terminal device of use HLS protocol, realize in view networking
The bridge joint of HLS protocol and RTMP agreement improves the flexibility of view networking audio data transmission.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 be a kind of data transmission of the invention when, the schematic diagram of data transmission procedure;
Fig. 6 is a kind of step flow chart of the method for data transmission of the invention;
Fig. 7 is a kind of structural block diagram of the view networked system of data transmission of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission,
Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or
Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy
Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but
The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black
The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type "
Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or
National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions
It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown)
Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine
Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet;
If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1)
It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410
(2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server.
Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA | SA | Reserved | Payload | CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet
Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages
64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just
There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into
0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA | SA | Reserved | Label | Payload | CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, one of the core concepts of the embodiments of the present invention is proposed, it then follows regard the association of networking
View obtains data from view networked server by the virtual terminal in streaming media server;By streaming media server by RTMP agreement
Data carry out differential conversion after be sent to terminal device,
In embodiments of the present invention, include streaming media server depending on networked system, and with streaming media server phase intercommunication
The terminal device and view networked server of letter.
Referring to Fig. 5, in embodiments of the present invention, streaming media server 502 and terminal device 503, streaming media server 502
Interior virtual terminal 504 is by being transmitted depending on networking with the communication depending on networked server 501.
Embodiment one
Referring to Fig. 6, a kind of step flow chart of the embodiment of the method for data transmission of the invention is shown, the method is answered
For streaming media server, the streaming media server and terminal device, view networked server communication connection, the method packet
It includes:
Step 601, the first acquisition instruction based on HLS protocol that the terminal device is sent is received, described first obtains
Instruction includes the IP and port numbers, Data Identification of the terminal device.
Wherein, (Http Live Streaming is a kind of stream media network transport protocol based on http, mainly to HLS
Audio-video service for PC and Apple terminal.Index file including a M3U (8), TS media slicing file and key add
Close string file),
In embodiments of the present invention, the terminal device carries out audio data transmission using HLS protocol.The terminal
Equipment is needing to obtain the clothes using RTMP (Real Time Messaging Protocol real-time messages transport protocol) agreement
When the audio data stored in business device, to the streaming media server being deployed in view networking, the streaming media service will be passed through
Audio data is obtained to the view networked server across agreement.
Preferably, further include step A1 to A2 before the step 601:
Step A1 constructs the virtual terminal based on RTMP agreement.
In embodiments of the present invention, according to the outgoing traffic demand of the streaming media server, in the streaming media service
Virtual terminal number corresponding with the streaming media server is distributed in the virtual terminal pond of device, and the virtual terminal number is right
The virtual terminal answered is configured according to RTMP agreement, so that the virtual terminal can be with the Streaming Media using RTMP agreement
Server is attached communication.
Step A2 establishes the communication connection between the virtual terminal and the view networked server.
Wherein, the mode of communication connection includes: mobile data network, Wireless LAN, bluetooth etc., the embodiment of the present invention
It is without restriction to the mode of communication connection.
In embodiments of the present invention, by being based on virtual terminal described in RTMP protocol construction in the streaming media server
It realizes connection communication between streaming media server and the terminal device of RTMP agreement, has reached not using RTMP agreement
The effect of streaming media server and the connection communication of the equipment room using RTMP agreement.
Step 602, the first acquisition instruction according to described based on HLS protocol generates the address mark based on RTMP agreement.
In embodiments of the present invention, the streaming media server obtains institute by carrying out parsing to first acquisition instruction
IP, port numbers, the Data Identification of terminal device are stated, energy is then generated according to the IP of the terminal device, port numbers, Data Identification
Enough it is used address mark URL (the Uniform Resource Locator of the view networked server identification of RTMP agreement
Uniform resource locator, the succinct expression of one kind of position and access method to the resource that can be obtained from internet are
The address of standard resource on internet).
Step 603, it controls the virtual terminal and the first mesh is obtained from the view networked server according to address mark
Mark data.
In embodiments of the present invention, the virtual terminal is deployed in inside the streaming media server, for realizing stream
The institute of connection communication is functional between media server and the view networked server based on RTMP agreement.
The first object data are the packets of audio data based on RTMP agreement.
The streaming media server is by being transmitted to the virtual terminal for address mark URL, by described virtual
Address mark URL is sent to the view networked server using RTMP agreement by terminal.The view networked server root
Corresponding first object data are returned according to the virtual terminal of the address mark URL into the streaming media server.
Step 604, according to HLS protocol by the first object data conversion at the second target data and corresponding index
File.
In embodiments of the present invention, second target data is the media slicing for meeting multiple TS formats of HLS protocol
File.
The index file is M3U8 (the M3U file that M3U8 file the refers to UTF-8 coded format) lattice for meeting HLS protocol
The index file of formula, including the corresponding mark of slicing files in second target data.
The streaming media server obtains the received first object data of virtual terminal, by the first object
Data are converted, and the second target data for meeting HLS audio transmission protocol and index file are obtained.
Step 605, the index file is sent to the terminal device.
In embodiments of the present invention, since the audio data transmission using HLS protocol is that data recipient is based on index text
Part provides end from data and independently obtains corresponding slicing files, and the slicing files can be played out independently.Therefore will
The index file is back to the terminal device, and the terminal device can be according to the index file to the streaming media service
Device obtains the required corresponding slicing files of audio data.
Preferably, after the step 605, further includes: receive what the terminal device was sent according to the index file
Second acquisition instruction;Second target data is returned to the terminal device according to second acquisition instruction.It is assisted according to HLS
View is by the first object data conversion at the slicing files and corresponding M3U8 index file of TS format.Described second obtains
Instruction includes the M3U index subfile in the M3U8 index file;According to the M3U index Ziwen in second acquisition instruction
Part returns to the corresponding slicing files.
It in embodiments of the present invention, include the index subfile of M3U format in the M3U8.The terminal device according to
Self-demand is obtained from M3U8 index file inquiry to corresponding M3U index subfile, and according to the M3U index Ziwen
Part generates second acquisition instruction, then by sending second acquisition instruction to the terminal device to obtain HLS lattice
The slicing files corresponding with the M3U of formula.
In embodiments of the present invention, HLS association is taken as depending on networked terminals by the way that streaming media server substitution is described
The audio data of the terminal device of view provides end, realizes the bridge joint of HLS protocol Yu RTMP agreement, improves audio data
The flexibility of transmission.
Second acquisition instruction includes the M3U index subfile in the M3U8 index file;It is obtained according to described second
M3U index subfile in instruction fetch returns to the corresponding slicing files.
The embodiment of the invention provides a kind of methods of data transmission, which comprises receiving terminal apparatus sends base
In the first acquisition instruction of HLS protocol, the first acquisition instruction includes the IP and port numbers, Data Identification of terminal device;According to base
The address based on RTMP agreement is generated in the first acquisition instruction of HLS protocol to identify;Control virtual terminal according to address identify from
First object data are obtained depending on networked server;According to HLS protocol by first object data conversion at the second target data and phase
Corresponding index file;Index file is sent to terminal device.The embodiment of the present invention is by being arranged base in streaming media server
In the virtual terminal of RTMP and being attached depending on networked server based on RTMP agreement, and the data of RTMP agreement are converted to
Can by data that HLS protocol equipment identifies for being obtained using the terminal device of HLS protocol, realize in view networking HLS protocol with
The bridge joint of RTMP agreement improves the flexibility of view networking audio data transmission.
Embodiment two
Referring to Fig. 7, a kind of structural block diagram of view 700 embodiment of networked system of data transmission of the invention, institute are shown
Stating depending on networked system includes: that the terminal device of streaming media server and streaming media server communication connection and view are networked
Server, it is described to include: depending on networked system
First command reception module 701 refers to for receiving first based on HLS protocol that the terminal device is sent and obtaining
It enables, first acquisition instruction includes the IP and port numbers, Data Identification of the terminal device.
Preferably, before first command reception module 701, further includes: building module is assisted for constructing based on RTMP
The virtual terminal of view;Link block, the communication connection for establishing between the virtual terminal and the view networked server.
Address acquisition module 702 is based on RTMP agreement for generating according to first acquisition instruction based on HLS protocol
Address mark.
Data acquisition module 703 is identified according to the address from the view the Internet services for controlling the virtual terminal
Device obtains first object data.
Protocol conversion module 704, for according to HLS protocol by the first object data conversion at the second target data and
Corresponding index file.
Preferably, the protocol conversion module, comprising: protocol conversion submodule, for according to HLS protocol by described first
Target data is converted into the slicing files and corresponding M3U8 index file of TS format.
Sending module 705 is indexed, for the index file to be sent to the terminal device.
Preferably, after the index sending module 705, further includes: the second instruction acquisition module, for receiving the end
The second acquisition instruction that end equipment is sent according to the index file;Data transmission blocks refer to for obtaining according to described second
It enables to the terminal device and returns to second target data.Second acquisition instruction includes: in the M3U8 index file
M3U index subfile;The data transmission blocks, comprising: data sending submodule, for according to second acquisition instruction
In M3U index subfile return to corresponding slicing files.
The embodiment of the invention provides a kind of data transmission method and networked system, it is described view networked system include: flow
Media server and the terminal device and view networked server of streaming media server communication connection, view networking system
System includes: the first command reception module, the first acquisition instruction based on HLS protocol sent for receiving the terminal device,
First acquisition instruction includes the IP and port numbers, Data Identification of the terminal device;Address acquisition module, for according to institute
It states the first acquisition instruction based on HLS protocol and generates the address mark based on RTMP agreement;Data acquisition module, for controlling
It states virtual terminal and first object data is obtained from the view networked server according to address mark;Protocol conversion module is used
Mould is sent in indexing the first object data conversion at the second target data and corresponding index file according to HLS protocol
Block, for the index file to be sent to the terminal device.The embodiment of the present invention is by being arranged base in streaming media server
In the virtual terminal of RTMP and being attached depending on networked server based on RTMP agreement, and the data of RTMP agreement are converted to
Can by data that HLS protocol equipment identifies for being obtained using the terminal device of HLS protocol, realize in view networking HLS protocol with
The bridge joint of RTMP agreement improves the flexibility of view networking audio data transmission.
For regarding networked system embodiment, since it is basically similar to the method embodiment, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide for method, view networked system,
Or computer program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine
The form of embodiment in terms of software and hardware.Moreover, it wherein includes meter that the embodiment of the present invention, which can be used in one or more,
Computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, the optical memory of calculation machine usable program code
Deng) on the form of computer program product implemented.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The view networked system of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
Include the manufacture of instruction view networked system, the instruction regard networked system realize in one or more flows of the flowchart and/or
The function of being specified in one or more blocks of the block diagram.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of method and view networked system of data transmission provided by the present invention, it is described in detail, this
Apply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended to
It facilitates the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present invention
Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair
Limitation of the invention.
Claims (10)
1. a kind of method of data transmission, which is characterized in that the method is applied to the streaming media server in view networking, described
Streaming media server and terminal device, view networked server communication connection, which comprises
The first acquisition instruction based on HLS protocol that the terminal device is sent is received, first acquisition instruction includes described
IP and port numbers, the Data Identification of terminal device;
The address mark based on RTMP agreement is generated according to first acquisition instruction based on HLS protocol;
It controls the virtual terminal and first object data is obtained from the view networked server according to address mark;
According to HLS protocol by the first object data conversion at the second target data and corresponding index file;
The index file is sent to the terminal device.
2. the method according to claim 1, wherein described be sent to the terminal device for the index file
The step of after, further includes:
Receive the second acquisition instruction that the terminal device is sent according to the index file;
Second target data is returned to the terminal device according to second acquisition instruction.
3. according to the method described in claim 2, it is characterized in that, described turn the first object data according to HLS protocol
Change the second target data and corresponding index file into, comprising:
According to HLS protocol by the first object data conversion at the slicing files of TS format and corresponding M3U8 index text
Part.
4. according to the method described in claim 3, it is characterized in that, second acquisition instruction includes the M3U8 index file
In M3U index subfile;
It is described that second target data is returned to the terminal device according to second acquisition instruction, comprising:
The corresponding slicing files are returned according to the M3U index subfile in second acquisition instruction.
5. the method according to claim 1, wherein described receive assisting based on HLS for the terminal device transmission
Before the step of first acquisition instruction of view, further includes:
Construct the virtual terminal based on RTMP agreement;
Establish the communication connection between the virtual terminal and the view networked server.
6. a kind of view networked system of data transmission, which is characterized in that it is described depending on networked system include: streaming media server, with
And the terminal device and view networked server of the streaming media server communication connection, it is described to include: depending on networked system
First command reception module, the first acquisition instruction based on HLS protocol sent for receiving the terminal device are described
First acquisition instruction includes the IP and port numbers, Data Identification of the terminal device;
Address acquisition module, for generating the address based on RTMP agreement according to first acquisition instruction based on HLS protocol
Mark;
Data acquisition module, for controlling the virtual terminal according to address mark from view networked server acquisition the
One target data;
Protocol conversion module, for according to HLS protocol by the first object data conversion at the second target data and corresponding
Index file;
Sending module is indexed, for the index file to be sent to the terminal device.
7. according to the method described in claim 6, it is characterized in that, after the index sending module, further includes:
Second instruction acquisition module, the second acquisition instruction sent for receiving the terminal device according to the index file;
Data transmission blocks, for returning to second target data to the terminal device according to second acquisition instruction.
8. the method according to the description of claim 7 is characterized in that the protocol conversion module, comprising:
Protocol conversion submodule, for according to HLS protocol by the first object data conversion at TS format slicing files and
Corresponding M3U8 index file.
9. according to the method described in claim 8, it is characterized in that, second acquisition instruction includes the M3U8 index file
In M3U index subfile;The data transmission blocks, comprising:
Data sending submodule, it is corresponding described for being returned according to the M3U index subfile in second acquisition instruction
Slicing files.
10. according to the method described in claim 6, it is characterized in that, before first command reception module, further includes:
Module is constructed, for constructing the virtual terminal based on RTMP agreement;
Link block, the communication connection for establishing between the virtual terminal and the view networked server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910153491.6A CN110022295B (en) | 2019-02-28 | 2019-02-28 | Data transmission method and video networking system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910153491.6A CN110022295B (en) | 2019-02-28 | 2019-02-28 | Data transmission method and video networking system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110022295A true CN110022295A (en) | 2019-07-16 |
CN110022295B CN110022295B (en) | 2021-09-28 |
Family
ID=67189159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910153491.6A Active CN110022295B (en) | 2019-02-28 | 2019-02-28 | Data transmission method and video networking system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110022295B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110474992A (en) * | 2019-09-25 | 2019-11-19 | 苏州浪潮智能科技有限公司 | A kind of document transmission method, device, equipment and storage medium |
CN110650147A (en) * | 2019-09-27 | 2020-01-03 | 视联动力信息技术股份有限公司 | Data acquisition method and system |
CN111125426A (en) * | 2019-12-20 | 2020-05-08 | 视联动力信息技术股份有限公司 | Data storage and query method and device |
CN111669364A (en) * | 2020-04-26 | 2020-09-15 | 视联动力信息技术股份有限公司 | Data transmission method, device, electronic equipment and medium |
CN113438282A (en) * | 2021-06-04 | 2021-09-24 | 北京旷视科技有限公司 | Data transmission method and device based on FTP (file transfer protocol) and data transmission server |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107222484A (en) * | 2017-06-12 | 2017-09-29 | 北京经纬中天信息技术有限公司 | Support the stream media server system of multi-protocols input and output |
WO2018027237A1 (en) * | 2016-08-05 | 2018-02-08 | Sportscastr.Live Llc | Systems, apparatus, and methods for scalable low-latency viewing of broadcast digital content streams of live events |
CN107707937A (en) * | 2017-09-22 | 2018-02-16 | 烽火通信科技股份有限公司 | Time shift optimization method and system based on HLS protocol |
CN107979563A (en) * | 2016-10-21 | 2018-05-01 | 北京视联动力国际信息技术有限公司 | A kind of information processing method and device based on regarding networking |
CN108243173A (en) * | 2016-12-27 | 2018-07-03 | 北京视联动力国际信息技术有限公司 | A kind of RTMP video pushing methods and device based on regarding networking |
CN108632398A (en) * | 2017-07-27 | 2018-10-09 | 北京视联动力国际信息技术有限公司 | A kind of conference access method and system, association turn server and conference management terminal |
-
2019
- 2019-02-28 CN CN201910153491.6A patent/CN110022295B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018027237A1 (en) * | 2016-08-05 | 2018-02-08 | Sportscastr.Live Llc | Systems, apparatus, and methods for scalable low-latency viewing of broadcast digital content streams of live events |
CN107979563A (en) * | 2016-10-21 | 2018-05-01 | 北京视联动力国际信息技术有限公司 | A kind of information processing method and device based on regarding networking |
CN108243173A (en) * | 2016-12-27 | 2018-07-03 | 北京视联动力国际信息技术有限公司 | A kind of RTMP video pushing methods and device based on regarding networking |
CN107222484A (en) * | 2017-06-12 | 2017-09-29 | 北京经纬中天信息技术有限公司 | Support the stream media server system of multi-protocols input and output |
CN108632398A (en) * | 2017-07-27 | 2018-10-09 | 北京视联动力国际信息技术有限公司 | A kind of conference access method and system, association turn server and conference management terminal |
CN107707937A (en) * | 2017-09-22 | 2018-02-16 | 烽火通信科技股份有限公司 | Time shift optimization method and system based on HLS protocol |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110474992A (en) * | 2019-09-25 | 2019-11-19 | 苏州浪潮智能科技有限公司 | A kind of document transmission method, device, equipment and storage medium |
CN110474992B (en) * | 2019-09-25 | 2022-07-22 | 苏州浪潮智能科技有限公司 | File transmission method, device, equipment and storage medium |
CN110650147A (en) * | 2019-09-27 | 2020-01-03 | 视联动力信息技术股份有限公司 | Data acquisition method and system |
CN111125426A (en) * | 2019-12-20 | 2020-05-08 | 视联动力信息技术股份有限公司 | Data storage and query method and device |
CN111669364A (en) * | 2020-04-26 | 2020-09-15 | 视联动力信息技术股份有限公司 | Data transmission method, device, electronic equipment and medium |
CN111669364B (en) * | 2020-04-26 | 2023-09-12 | 视联动力信息技术股份有限公司 | Data transmission method, device, electronic equipment and medium |
CN113438282A (en) * | 2021-06-04 | 2021-09-24 | 北京旷视科技有限公司 | Data transmission method and device based on FTP (file transfer protocol) and data transmission server |
CN113438282B (en) * | 2021-06-04 | 2022-09-27 | 北京旷视科技有限公司 | Data transmission method and device based on FTP (file transfer protocol) and data transmission server |
Also Published As
Publication number | Publication date |
---|---|
CN110022295B (en) | 2021-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108243173B (en) | A kind of RTMP video pushing method and device based on view networking | |
CN108012106B (en) | A kind of method and system regarding networking monitoring source synchronous | |
CN110022295A (en) | A kind of method and view networked system of data transmission | |
CN107888401B (en) | A kind of method and system of real time monitoring view networked terminals cpu busy percentage | |
CN108965224A (en) | A kind of method and apparatus of video on demand | |
CN108965040A (en) | A kind of business monitoring method and device of view networking | |
CN109996086A (en) | A kind of view networking service method for inquiring status and device | |
CN108307212B (en) | A kind of file order method and device | |
CN108243343B (en) | A kind of point distribution statistical method and its server based on view networking | |
CN109889779A (en) | A kind for the treatment of method and apparatus of packet out-ordering | |
CN109743536A (en) | A kind of method and apparatus of video data access | |
CN110505204A (en) | A kind of immediate voice communication method, device, electronic equipment and readable storage medium storing program for executing | |
CN109151610A (en) | A kind for the treatment of method and apparatus receiving web camera picture | |
CN109743526A (en) | A kind of communication connection method for building up and system based on view networking | |
CN108809921A (en) | A kind of audio-frequency processing method regards networked server and regards networked terminals | |
CN110048903A (en) | A kind of association turns gateway status monitoring method and device | |
CN109491783A (en) | A kind of acquisition methods and system of memory usage | |
CN110266577A (en) | A kind of tunnel establishing method and view networked system | |
CN110351573A (en) | Virtual present presentation method, system and device | |
CN110138729A (en) | A kind of data capture method and view networked system | |
CN110430168A (en) | A kind of method and apparatus of data compression | |
CN110149497A (en) | A kind of view networked data transmission method, apparatus, system and readable storage medium storing program for executing | |
CN110121075A (en) | A kind of direct seeding operation method and apparatus | |
CN109889516A (en) | A kind of method for building up and device of session channel | |
CN109525635A (en) | A kind of acquisition methods and system of memory usage |
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 |