A kind of method and apparatus in the broadcasting TV programme in networking
Technical field
The present invention relates to regarding networking technology field, more particularly to it is a kind of played in networking the method for TV programme and
Device.
Background technology
It is a real-time exchange platform depending on networking, is the more advanced form of internet, it is potentially huge on network to regard
Frequency flow uses two advantages of asynchronous and packet switch of Ethernet depending on networking, and eliminating Ethernet under the premise of full compatibility lacks
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal directly carries IP data packets, also, user data is in the whole network model
Format conversion is not required in enclosing, can realize the whole network HD video real-time Transmission that current internet can not be realized.
Therefore, push numerous the Internet, applications to HD video depending on networking, unitize, high definition is face-to-face, most real at last
This life circle, the distance for realizing person to person in global range was the distance of a plane without distance.
At present, it is directed in the TV programme in internet and sound is mainly regarded depending on what is stored in networked server by program request
Frequency file, this mode need in advance to be put into regarding networked server video and audio file in the way of requiring depending on networked server
Memory in, then could broadcast.The process CIMS is cumbersome and real-time is not high.
Invention content
In view of the above problems, it is proposed that the embodiment of the present invention overcomes the above problem or at least partly in order to provide one kind
A kind of method that TV programme are played in depending on networking and corresponding one kind to solve the above problems plays TV in depending on networking
Save destination device.
To solve the above-mentioned problems, the embodiment of the invention discloses it is a kind of in networking play TV programme method,
The method is applied to regard in networking, including:
It stores gateway and receives the audiovisual compression data based on udp agreements;The audiovisual compression data are to pass through live streaming
The video/audio that stream transformer is parsed from the TV programme live TV stream that internet obtains;
Audiovisual compression data addition is met and regards networking packet header regarding networking protocol, obtains regarding networking number accordingly
According to packet;The networking packet header that regards is including corresponding regarding networking destination address information regarding networking data packet;
It is described regarding networking data packet to being sent regarding networked server, it is played for regarding networked terminals.
Preferably, it is described by the audio and video pressure according to the method in the method that TV programme are played in networking
The addition of contracting data meets regards networking packet header regarding networking protocol, the step of obtaining regarding networking data packet accordingly, including:
The audio data and video data are distinguished according to the packet header of the audiovisual compression data;
To the packet header of the audio compression data addition audio data regarding networking protocol;
To the packet header of the video compression data addition video data regarding networking protocol.
Preferably, it according to the method in the method that TV programme are played in networking, further includes:It is described to regard networking eventually
The viewing mode regarding networking data packet in end includes direct-seeding and watches and put broadcast mode viewing.
To solve the above-mentioned problems, the embodiment of the invention discloses one kind to play TV Festival destination device in networking,
Described device is applied to regard in networking, and the storage gateway includes:
Receive audio, video data module:For receiving the audiovisual compression data based on udp agreements;The audiovisual compression
Data are the video/audios parsed from the TV programme live TV stream that internet obtains by the way that stream transformer is broadcast live;
Translation-protocol module:Networking packet header is regarded regarding networking protocol for meeting audiovisual compression data addition,
It obtains regarding networking data packet accordingly;
Sending module:For described regarding networking data packet to being sent regarding networked server, for regarding networked terminals broadcasting.
Preferably, according to the device in the method that TV programme are played in networking, the translation-protocol module packet
It includes:
Judging submodule:For distinguishing the audio data and video counts according to the packet header of the audiovisual compression data
According to;
Audio transform subblock:For the packet to the audio compression data addition audio data regarding networking protocol
Head;
Video Quality Metric submodule:For the packet to the video compression data addition video data regarding networking protocol
Head.
Preferably, it according to the device in the method that TV programme are played in networking, further includes:It is described to regard networking eventually
It holds and watches and put broadcast mode viewing including direct-seeding for watching the mode regarding networking data packet.
The embodiment of the present invention includes advantages below:
By the TV programme in internet directly by the way that stream transformer is broadcast live with after storage gateway, become to regard under networking protocol
TV programme live streaming be streamed to regarding networked server, be sent to depending on networked server by broadcast mode regarding networked terminals,
It is simple to realize flow, and since intermediate time delay is small, improve the real-time of TV programme broadcasting.
Description of the drawings
Fig. 1 is a kind of networking schematic diagram for regarding networking of the present invention;
Fig. 2 is a kind of hardware architecture diagram of node server of the present invention;
Fig. 3 is a kind of hardware architecture diagram of access switch of the present invention;
Fig. 4 is that a kind of Ethernet association of the present invention turns the hardware architecture diagram of gateway;
Fig. 5 a are the result schematic diagrams that the TV programme in a kind of internet of the present invention are converted into depending on networking;
Fig. 5 is a kind of step flow chart in the embodiment of the method that TV programme are played in networking of the present invention;
Fig. 6 is a kind of step flow chart in the embodiment of the method that TV programme are played in networking of the present invention;
Fig. 7 is a kind of structure diagram in the device embodiment that TV programme are played in networking of the present invention;
Fig. 8 is a kind of structure diagram in the device embodiment that TV programme are played in networking of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings 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 realize HD video real-time Transmission,
Push numerous the Internet, applications to HD video, high definition is face-to-face.
It, can be such as high in a network platform by required service depending on networking using real-time high-definition video switching technology
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 requests, TV Mail, individual character recording (PVR), Intranet (manage) channel, intelligent video Broadcast Control, information publication by oneself
The services such as etc. tens of kinds videos, voice, picture, word, communication, data are all incorporated into a system platform, by TV or
Computer realizes that high-definition quality video plays.
For those skilled in the art is made to more fully understand the embodiment of the present invention, below to being introduced depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Network technology innovation depending on networking improves traditional ethernet (Ethernet), potential huge on network to face
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demands are met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price exchanged, is provided simultaneously with quality and the safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
Road and the seamless connection of data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch of Ethernet are used depending on networking, eliminating Ethernet under the premise of full compatibility lacks
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal directly carries IP data packets.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 realizes at present mutually
The whole network large-scale high-definition realtime video transmission that networking can not be realized pushes numerous Internet 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, and single network layer is with regard to energy
Enough include signaling and data transmission.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
State-of-the-art real time operating system is employed, 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 for typical time to be 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 ad eundem IP internets, but
The concurrent flow more than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Structural design depending on networking by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem of puzzlement internet has thoroughly been eradicated from structure, antivirus applet, fire wall has not been needed to generally, has prevented black
Visitor and the attack of virus, provide structural carefree secure network to the user.
Service innovative technology (Service Innovation Technology)
Business and transmission are merged 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 program, and can use considerably less code that complicated application can be realized, and 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, it is 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 is (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 Ethernet can be connected.
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 (empty thiol point), and multiple unified videos are put down
Platform can be formed regarding 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 depending on the equipment in networking:Server, interchanger is (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.
The equipment of 1.2 wherein access mesh portions can be mainly divided into 3 classes:Node server, access switch is (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The particular hardware structure of each access network equipment is:
Node server:
As shown in Fig. 2, mainly include 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 to the packet come in look into the operation of address table 205, so as 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 approaches
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded if meeting the following conditions:1) port
It is less than to send caching;2) the queue package counting facility is more than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operations 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 include 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 is into 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,
Corresponding flow identifier (stream-id) is then distributed, and enters switching engine module 303, is otherwise abandoned;Uplink network interface mould
The packet (downlink data) that block 302 is come in is into switching engine module 303;The data packet that CPU module 204 is come in enters switching engine
Module 303;Switching engine module 303 to the packet come in look into the operation of address table 306, so as to obtain the navigation information of packet;
It is gone if the packet into switching engine module 303 is downstream network interface toward uplink network interface, with reference to 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:
It is gone if the queue is downstream network interface 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 more than zero;3) token that rate control module generates is obtained;
It is gone if the queue is not downstream network interface toward uplink network interface, meets the following conditions and be forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is more than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
The pack buffer queue that interface is gone toward uplink network interface generates token, to control the code check of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, configuration to address table 306 and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly include 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 add modules 409, MAC removing modules 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
The ethernet mac DA of measured data packet, ethernet mac SA, Ethernet length or frame type, regarding networking mesh way address
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 modules 410
(2byte), and enter corresponding order caching, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze regarding with networking mesh according to packet
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:
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 formed.
2nd, regarding networking data package definition
2.1 access network data package definitions
The data packet for accessing net mainly includes 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 represents 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 with destination address (DA);
Reserve bytes are made of 2 bytes;
Payload parts have different length according to the type of different datagrams, if being if various protocol packages
64 bytes, if single group unicast packets words be 32+1024=1056 byte, be not restricted to certainly more than 2 kinds;
CRC is made of 4 bytes, and computational methods follow 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
2 kinds can be all can exceed that 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 unique, is closed to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention:Label uniquely describes 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 device A and equipment B there are two connect, then data packet slave device A to equipment B just
There are 2 labels, data packet slave device B to device A also there are 2 labels.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of device A is 0x0000, and the label (outgoing label) when this data packet leaves device A may reform into
0x0001.The networking flow 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 is all dominated by metropolitan area server, and node switch, node server are all passive execution, 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 form of label, which can refer to, to be defined as below:Label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Put is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic regarding networking, it is proposed that one of the core concepts of the embodiments of the present invention, it then follows regarding the association of networking
View, by regarding networked server with carrying out video interactive regarding networked terminals, wherein, the protocol conversion of internet is regarded into networking to be above-mentioned
The process of agreement such as Fig. 5 a.
Embodiment one
With reference to Fig. 5, show that a kind of of the present invention flows in the step of embodiment of the method that TV programme are played in depending on networking
Cheng Tu, this method can be applied to regard in networking, specifically may include steps of:
Step 501, storage gateway receives the audiovisual compression data based on udp agreements;The audiovisual compression data are
The video/audio parsed from the TV programme live TV stream that internet obtains by the way that stream transformer is broadcast live;
The live streaming stream transformer obtains live telecast stream from Internet Server, such as the live streaming fluxion of rtmp forms
According to.
Live telecast stream is parsed to obtain video and audio compress data;Rtmp data are such as resolved into pure tone video data;Its
In, in pure tone video data, video compression data is H.264 form, and audio compression data is AAC forms.
Above-mentioned pure tone video compression data is sent to the storage gateway by live streaming stream transformer based on udp agreements.It is based on
The advantages of resource consumption of udp agreements is small, and processing speed is fast.The audiovisual compression data are transmitted using udp agreements.
Wherein, rtmp data refer to the lead-in of Real Time Messaging Protocol (real-time messages transport protocol)
Mother's abbreviation.The agreement is based on TCP, is a protocol suite, including a variety of changes such as RTMP basic agreements and RTMPT/RTMPS/RTMPE
Kind.RTMP is a kind of procotol for being designed to carry out real-time data communication, is mainly used in Flash/AIR platforms and support
Audio and video and data communication are carried out between Streaming Media/interactive server of RTMP agreements.The software of the agreement is supported to include Adobe
Media Server/Ultrant Media Server/red5 etc..
H.264 form is MPEG-4 Part X, is by ITU-T Video Coding Experts Groups (VCEG) and ISO/IEC dynamics
The high compression number that the joint video team (JVT, Joint Video Team) that motion picture expert group version (MPEG) constitutes jointly proposes
Video Codec standard.This standard commonly referred to as H.264/AVC (either AVC/H.264 or H.264/MPEG-4
AVC or MPEG-4/H.264 AVC) and its explicitly stated both sides developer.
AAC forms are Advanced Audio Codings, are come across 1997, the audio decoding techniques based on MPEG-2.By
The companies such as Fraunhofer IIS, Dolby Labs, AT&T, Sony joint development, it is therefore an objective to replace MP3 format.2000,
After MPEG-4 standards occur, AAC is integrated with its characteristic again, adds SBR technologies and PS technologies, traditional in order to be different from
MPEG-2 AAC are also known as MPEG-4 AAC.
Upd agreements refer to the abbreviation of User Datagram Protocol, and Chinese name is User Datagram Protocol, is OSI
A kind of connectionless transport layer protocol in (Open System Interconnection, open system interconnection) reference model,
The simple unreliable information transmission service towards affairs is provided, IETF RFC 768 are the formal specifications of UDP.UDP is in IP packet
Protocol number be 17.
In the embodiment of the present invention, to the Format Type of live telecast stream without limiting;To pure tone video compression format not
It is defined.
Step 502, audiovisual compression data addition is met and regards networking packet header regarding networking protocol, obtained corresponding
Depending on networking data packet;The networking packet header that regards is including corresponding regarding networking destination address information regarding networking data packet;
Storage gateway judges the audiovisual compression data sent based on udp, if audio data, then to the sound
Frequency can be transmitted according to the addition packet header for regarding networking in depending on intranet network;
If yes data, then, can be regarding intranet network to the video data addition packet header for regarding networking
In be transmitted.
Step S503, it is described regarding networking data packet to being sent regarding networked server, it is played for regarding networked terminals.
The storage gateway sends audio data and video data regarding networking to described regarding networked server, for regarding connection
Network termination plays.
By the TV programme in internet directly by the way that stream transformer is broadcast live with after storage gateway, become to regard under networking protocol
TV programme live streaming be streamed to regarding networked server, be sent to depending on networked server by broadcast mode regarding networked terminals,
It is simple to realize flow, and since intermediate time delay is small, improve the real-time of TV programme broadcasting.
Embodiment two
Step 601, storage gateway receives the audiovisual compression data based on udp agreements;The audiovisual compression data are
The video/audio parsed from the TV programme live TV stream that internet obtains by the way that stream transformer is broadcast live;
The live streaming stream transformer obtains live telecast stream from Internet Server, such as the live streaming fluxion of rtmp forms
According to.
Live telecast stream is parsed to obtain video and audio compress data;Rtmp data are such as resolved into pure tone video data;Its
In, in pure tone video data, video compression data is H.264 form, and audio compression data is AAC forms.
Above-mentioned pure tone video compression data is sent to the storage gateway by live streaming stream transformer based on udp agreements.It is based on
The advantages of resource consumption of udp agreements is small, and processing speed is fast.Audio, video data is transmitted using udp agreements.
In the embodiment of the present invention, to the Format Type of live telecast stream without limiting;To pure tone video compression format not
It is defined.
Step 602, audiovisual compression data addition is met and regards networking packet header regarding networking protocol, obtained corresponding
Depending on networking data packet;The networking packet header that regards is including corresponding regarding networking destination address information regarding networking data packet;
Storage gateway judges the audiovisual compression data sent based on udp agreements, if audio compression data, then
To the audio compression data addition packet header for regarding networking, can be transmitted in depending on intranet network.
If the above-mentioned audio compression data sent based on udp is AAC forms;Video compression data is H.264 form;Storage
Gateway judges the compressed data, if the packet header of the compressed data is the audio compression data of ACC forms, to institute
It states audio compression data addition to meet regarding the packet header of networking protocol 2001, the audio data is enable to be transmitted in depending on networking and is broadcast
It puts.
Such as, it is according to agreement 2001 by ACC audio datas AAC audio datas to be switched to depending on the method for networking protocol 2001
Form is converted, and ACC audio datas is placed in byte 15-46 of 2001 agreements, as shown in table 1.
Table 1
Storage gateway judges the audiovisual compression data sent based on udp agreements, if video data, then to institute
The video data addition packet header for regarding networking is stated, can be transmitted in depending on intranet network.
If the above-mentioned video compression data based on udp transmissions is H.264 form;Gateway is stored to carry out the compressed data
Judge, if video compression data of the packet header of the compressed data for H.264 form, adds the video compression data and accord with
It closes regarding the packet header of networking protocol 2002, the video data is enable to transmit broadcasting in networking.
H.264 it is that H.264 video data is stored in agreement that video data, which is switched to depending on the method for networking protocol 2002,
In 2002 byte 15-526, as shown in table 2.
Table 2
Step S603, it is described regarding networking data packet to being sent regarding networked server, it is played for regarding networked terminals.
The storage gateway sends audio data and video data regarding networking to described regarding networked server, for regarding connection
Network termination plays.
Step S604 plays the video for regarding networking data packet depending on networked terminals.
It is described to be divided into direct-seeding viewing and point broadcast mode sight depending on the networked terminals broadcasting video depending on networking data packet
It sees.
Direct-seeding viewing be by being sent in a broadcast manner depending on networked server, will be depending on networked server with regarding
Networked terminals are connected by set-top box with interchanger, carry out data interaction.
It is to regard networked server to store the networking data packet that regards in memory according to program number that point broadcast mode, which is watched,
And the correspondence of program number and memory is recorded in the internal information table regarding networked server.
Wherein, direct-seeding watching process is:It is described to be watched depending on networked terminals to coupled the first set-top box transmission
The service request agreement report of live streaming, first set-top box receive live data based on the current communication link for watching live streaming
Process is:
Wherein, the multicast packet regards networking data packet to be described.
1) the second top box is described regarding networking data packet from being obtained regarding networked server, and sends out described regarding networking data packet;
2) the networking data packet that regards enters the first interchanger of access, the switching engine module of the first interchanger of access according to
The table inquiry of combination of address domain, obtains the downlink port and uplink port for regarding networking data packet;For example, downlink port is No. 0
Port, uplink port are No. 9 ports;It is then described that the second set-top box is entered by No. 0 port depending on networking data packet;By this
No. 9 ports enter node server;
3) node server receives described after networking data packet, this is sent to the second exchange depending on networking data packet
Machine;
4) second switch will be current described in depending on networking data packet be sent to the first set-top box;
5) current multicast data packet is sent to regarding networked terminals by the first set-top box, to be watched depending on networked terminals.
Putting broadcast mode watching process is:It is described to be sent out depending on networked terminals by coupled set-top box to depending on networked server
The application order of program request is sent, the program number of program request is provided in order;After the application order that set-top box is received depending on networked server
Program request will be seen depending on networked terminals by knowing, and know described which program seen depending on networked terminals.
Which this program can be found in the internal information table depending on networked server to be placed on above memory;Depending on connection
Network server sends disk-read order to memory (having program number and unicast data address in order) is given, and order memory sends single
Multicast data.Memory is found the program really on this memory, begin to send program, while send out disk-read command response to institute
It states regarding networked server, represents that memory has begun to send program.
After the response that memory is received depending on networked server, to find between the memory and the set-top box
The access for this road unicast data of all interchangers between the memory and the set-top box is opened in path,
Decoding order is sent by set-top box simultaneously and regards networked terminals to described.It is described to watch program request depending on networked terminals.
By the TV programme in internet directly by the way that stream transformer is broadcast live with after storage gateway, become to regard under networking protocol
TV programme live streaming be streamed to regarding networked server, be sent to depending on networked server by broadcast mode regarding networked terminals,
It is simple to realize flow, and since intermediate time delay is small, improve the real-time of TV programme broadcasting, also, the TV programme
It is broadcast live and program request, is realized based on regarding networking in depending on networking
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
It closes, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
Embodiment three
With reference to Fig. 7, a kind of structural frames in the device embodiment that TV programme are played in networking of the present invention are shown
Figure, the device can be applied to regard in networking, can specifically include following module:
Be broadcast live stream transformer 700, storage gateway 710, regarding networked server 720, regarding networked terminals 730;
Wherein, the storage gateway 710 includes:
Audio, video data receiving module 711:For receiving the audiovisual compression data based on udp agreements;The audio and video
Compressed data is the video/audio parsed from the TV programme live TV stream that internet obtains by the way that stream transformer is broadcast live;
Translation-protocol module 712:For meeting the audiovisual compression data addition networking packet is regarded regarding networking protocol
Head obtains regarding networking data packet accordingly;
Transmission module 713:For described regarding networking data packet to being sent regarding networked server, for regarding networked terminals broadcasting.
It, will be from the TV programme live TV stream after live streaming stream transformer 700 obtains TV programme live TV stream from internet
In parse audiovisual compression data, based on udp agreements be sent to storage gateway 710 audio, video data receiving module 711;Sound
Video data receiving module 711 is by the audiovisual compression data forwarding to translation-protocol module 712;The translation-protocol module
712 meet audiovisual compression data addition regarding networking protocol regarding networking packet header, obtain regarding networking data packet accordingly;
The translation-protocol module 712 is sent to transmission module 713 by described depending on networking data packet;Transmission module 713 is used for regarding connection
Network server 720 sends described regarding networking data packet;Depending on networked server 720 described regard is sent to depending on networking data packet by described
Networked terminals 730 make this regard the video content that networked terminals 730 obtain the TV programme live TV stream.
By the TV programme in internet directly by the way that stream transformer is broadcast live with after storage gateway, become to regard under networking protocol
TV programme live streaming be streamed to regarding networked server, be sent to depending on networked server by broadcast mode regarding networked terminals,
It is simple to realize flow, and since intermediate time delay is small, improve the real-time of TV programme broadcasting.
Example IV
With reference to Fig. 8, a kind of structural frames in the device embodiment that TV programme are played in networking of the present invention are shown
Figure, the device can be applied to regard in networking, can specifically include following module:
Be broadcast live stream transformer 800, storage gateway 810, regarding networked server 820, regarding networked terminals 830;
Wherein, the storage gateway 810 includes:
Audio, video data receiving module 811:For receiving the audiovisual compression data based on udp agreements;The audio and video
Compressed data is the video/audio parsed from the TV programme live TV stream that internet obtains by the way that stream transformer is broadcast live;
Translation-protocol module 812:For meeting the audiovisual compression data addition networking packet is regarded regarding networking protocol
Head obtains regarding networking data packet accordingly;
Transmission module 813:For described regarding networking data packet to being sent regarding networked server, for regarding networked terminals broadcasting.
It, will be from the TV programme live TV stream after live streaming stream transformer 800 obtains TV programme live TV stream from internet
In parse audiovisual compression data, based on udp agreements be sent to storage gateway 810 audio, video data receiving module 811;Sound
Video data receiving module 811 is by the audiovisual compression data forwarding to translation-protocol module 812;The translation-protocol module
812 meet audiovisual compression data addition regarding networking protocol regarding networking packet header, obtain regarding networking data packet accordingly;
The translation-protocol module 812 is sent to transmission module 813 by described depending on networking data packet;Transmission module 813 is used for regarding connection
Network server 820 sends described regarding networking data packet;Depending on networked server 820 described regard is sent to depending on networking data packet by described
Networked terminals 830 make this regard the video content that networked terminals 830 obtain the TV programme live TV stream.
Preferably, the translation-protocol module 812 includes:
Judging submodule 8121:For distinguishing the audio data and video according to the packet header of the audiovisual compression data
Data;
Audio transform subblock 8122:For to the audio compression data addition audio data for regarding networking protocol
Packet header;
Video Quality Metric submodule 8123:For to the video compression data addition video data for regarding networking protocol
Packet header.
It, will be from the TV programme live TV stream after live streaming stream transformer 800 obtains TV programme live TV stream from internet
In parse audiovisual compression data, based on udp agreements be sent to storage gateway 810 audio, video data receiving module 811;Sound
Video data receiving module 811 is by the audiovisual compression data forwarding to the judging submodule in translation-protocol module 812
8121;Judging submodule 8121 is distinguished distinguishes audio data and video data according to the packet header of the compressed data, if the pressure
Contracting data are audio compression data, then the compressed data are sent to audio transform subblock 8122;Audio transform subblock
8122 is described regarding the packet header of networking protocol 2001 by audio compression data addition;If the compressed data is video compress number
According to the compressed data then is sent to Video Quality Metric submodule 8123;Video Quality Metric submodule 8123 is by the video compress
The data addition packet header for regarding networking protocol 2002, obtains regarding networking data packet;The translation-protocol module 812 is regarded by described in
Networking data packet is sent to transmission module 813;Transmission module 813 is used for described regarding networking number to being sent depending on networked server 820
According to packet;Depending on networked server 820 by it is described depending on networking data packet be sent to it is described regard networked terminals 830, making should be regarding networked terminals
830 obtain the video content of the TV programme live TV stream.
Preferably, it is described that TV Festival destination device is being played in networking, it further includes:It is described to be used for depending on networked terminals 830
The viewing mode regarding networking data packet includes direct-seeding and watches and put broadcast mode viewing.
It is described to receive the broadcast singal sent regarding networked server 820 depending on networked terminals 830, realize that direct-seeding is seen
It sees;Or it is described receive the programme information obtained from the memory depending on networked server 820 depending on networked terminals 830, it is real
Now point broadcast mode viewing.
By the TV programme in internet directly by the way that stream transformer is broadcast live with after storage gateway, become to regard under networking protocol
TV programme live streaming be streamed to regarding networked server, be sent to depending on networked server by broadcast mode regarding networked terminals,
It is simple to realize flow, and since intermediate time delay is small, improve the real-time of TV programme broadcasting, also, the TV programme
It is broadcast live and program request, is realized based on regarding networking in depending on networking
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, the highlights of each of the examples are with
The difference of other embodiment, just to refer each other for identical similar part between each embodiment.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference 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 flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generation is used to implement in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps are performed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction offer performed on computer or other programmable terminal equipments is used to implement in one flow of flow chart or multiple flows
And/or specified in one box of block diagram or multiple boxes function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, those skilled in the art once know base
This creative concept can then make these embodiments other change and modification.So appended claims are intended to be construed to
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, term " comprising ", "comprising" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped
Those elements are included, but also including other elements that are not explicitly listed or are further included as this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, it is wanted by what sentence "including a ..." limited
Element, it is not excluded that also there are other identical elements in the process including the element, method, article or terminal device.
It is played above to a kind of method that TV programme are played in depending on networking provided by the present invention and in depending on networking
TV Festival destination device, is described in detail, specific case used herein to the principle of the present invention and embodiment into
Elaboration is gone, the explanation of above example is only intended to facilitate the understanding of the method and its core concept of the invention;Meanwhile for this
The those skilled in the art in field, thought according to the present invention, there will be changes in specific embodiments and applications,
In conclusion the content of the present specification should not be construed as limiting the invention.