CN104661043A - Method, device and system for transmitting transport stream - Google Patents

Method, device and system for transmitting transport stream Download PDF

Info

Publication number
CN104661043A
CN104661043A CN201310603821.XA CN201310603821A CN104661043A CN 104661043 A CN104661043 A CN 104661043A CN 201310603821 A CN201310603821 A CN 201310603821A CN 104661043 A CN104661043 A CN 104661043A
Authority
CN
China
Prior art keywords
block
sub
terminal
check value
description document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310603821.XA
Other languages
Chinese (zh)
Inventor
李茗
张海
赵瑞前
马宙
李卓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310603821.XA priority Critical patent/CN104661043A/en
Publication of CN104661043A publication Critical patent/CN104661043A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2389Multiplex stream processing, e.g. multiplex stream encrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • H04N21/2353Processing of additional data, e.g. scrambling of additional data or processing content descriptors specifically adapted to content descriptors, e.g. coding, compressing or processing of metadata
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/633Control signals issued by server directed to the network components or client
    • H04N21/6332Control signals issued by server directed to the network components or client directed to client
    • H04N21/6334Control signals issued by server directed to the network components or client directed to client for authorisation, e.g. by transmitting a key

Abstract

The invention provides a method, a device and a system for transmitting a transport stream, is used for segmenting and verifying transport stream data blocks in the transport stream, and solves the problems that in the prior art, the data transmission is slow and the security is low as the transport stream data block is excessively large when the media transport stream is acquired by a P2P manner. The method comprises the following steps: a server determines the TS (Transport Stream) and a description file of the TS, which are required to be transmitted to a first terminal, according to a request of the first terminal, wherein each of the TS data blocks in the TS comprises a plurality of TS sub-data blocks, and the description file of the TS comprises the description information of each TS sub-data block of each TS data block; the server sends the required TS and the description file of the TS to the first terminal; the server sends standard proof test values of the TS sub-data blocks of the TS to a second terminal according to a request of the second terminal.

Description

A kind of transmission method of transport stream, device and system
Technical field
The present invention relates to media streaming techniques field, particularly relate to a kind of transmission method of transport stream, device and system.
Background technology
Media Stream refers to that the data such as video, sound take RTP as carrying, and transmits to destination from source with the form of Continuous Flow, just can carry out the multimedia application of playing at destination after receiving the data of certain buffer memory.At the traditional play-back technology carrying out playing after relative client downloads complete file from server, stream media technology have employed streaming manner, whole multimedia file compression is resolved to multiple compressed package, to the section of portraying order transmission in real time, for the compressed package sent can be play above by decompress(ion) on one side, while download follow-up compressed package, thus save the time.Along with the development of computer, Streaming Media Flow Technique is more and more widely used in video request program; Video request program is that the video frequency program recorded is changed into the digital video file of play-overing by computer by a series of processes such as seizure, compressions, and for visitor's program request on the server being stored in website, the Audio and Video program that user is provided by terminal equipment watching video service provider, and carry out when can watch program again advancing, fall back, the operation such as time-out.The advantages such as video request program has fast, facilitate, interactivity is good, along with the continuous increase of network broadband, VOD service will have development prospect widely.
Along with the extensive use of video request program, traditional media stream transportation system exposes a lot of problems, and the impact of program request to server of user is excessive, and easily induce one Single Point of Faliure, so just introduce point-to-point (Peerto Peer, P2P) transmission technology; So-called P2P technology just refers to directly transmits data between the network user, and each node carrying out transfer of data is reciprocity.Widely, wherein instant messaging is exactly the Typical Representative of P2P technology in the application of current P2P technology, and by P2P technology, the both sides of instant messaging directly can carry out the transfer of data of word, voice or video.
Media stream file is with transport stream (Transport Stream, TS) form sends, described transport stream comprises multiple TS data block, when carrying out point-to-point transfer of data by network channel, because the TS data block in each passage is larger, the bandwidth taken is more, therefore causes transfer of data slower.
Meanwhile, because user side is when obtaining transfer stream file by P2P mode, may the data in transport stream be distorted, but the user side obtaining this transfer stream file cannot judge whether the transfer stream file of described acquisition was once tampered; Once the transfer stream file that user side obtains is tampered, such as in transfer stream file, maliciously implanted trojan horse, worm-type virus etc., just likely cause the problems such as poisoning, network paralysis to obtaining the user side of this transfer stream file, can be even that the account number cipher etc. of user is stolen, serious economic loss is caused to user.In a word, there is the problem that fail safe is lower when user side obtains transport stream by P2P mode in prior art.
Summary of the invention
Embodiments provide a kind of transmission method of transport stream, device and system, for realizing, the transmit flow data block in transport stream split and verified, solving in prior art the slower problem of the transfer of data excessive caused because of transmit flow data block that exist when obtaining media transport stream by P2P mode and the lower problem of fail safe.
Embodiments provide a kind of transmission method of transport stream TS, the method comprises:
Server is according to the request of first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each the TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block;
Need the to send to TS of this first terminal and the description document thereof determined are sent to this first terminal by server;
The criteria check value of each TS sub-block in this TS, according to the request of the second terminal, is sent to the second terminal by server, and wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block.
In the transmission method of above-mentioned transport stream TS, by each the TS data block in TS being divided into multiple TS sub-block at server side, and generate the description document comprising the descriptor of each TS sub-block of each TS data block, make the terminal obtaining this transport stream according to the descriptor of each the TS sub-block in description document, corresponding sub-block can be read from the multiple TS sub-blocks obtained.Because each TS sub-block is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is also less, thus improves the speed of transfer of data.Simultaneously, the second terminal obtaining this transport stream and description document thereof from other terminal can be verified each the TS sub-block obtained according to obtaining from server criteria check value, detect each TS sub-block described whether to be tampered in end side, improve the fail safe transmitted by P2P mode.
Preferably, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make the terminal obtaining this transport stream can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Preferably, the memory space that takies of each TS sub-block described is equal; When the memory space that TS sub-block takies is equal, is conducive to the utilance improving bandwidth, improves data transmission bauds.
Preferably, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block according to the positional information of each TS sub-block.
Embodiments provide a kind of transmission method of transport stream TS, the method comprises:
Each TS sub-block in the TS that second terminal reception first terminal sends and the description document of this TS, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS;
The descriptor of each TS sub-block of each TS data block of this TS that the second terminal comprises according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received;
Second terminal obtains the criteria check value of each TS sub-block this TS from server side, and wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block; And each the TS sub-block in this TS received is calculated, obtain local check value;
Second terminal pins, to each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.
In the transmission method of above-mentioned transport stream TS, second terminal obtains the description document of each TS sub-block TS and this TS from first terminal by P2P technology, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; The descriptor of each TS sub-block of each TS data block of this TS that the second terminal comprises according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; Because each the TS sub-block in TS is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is also less, thus improves the speed of the transfer of data between first terminal and the second terminal; And, second terminal obtains the criteria check value of each TS sub-block this TS from server side, and each the TS sub-block in this TS received is calculated, obtain local check value, second terminal pins is to each the TS sub-block received from first terminal, utilize the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block, detect each TS sub-block described and whether be once tampered, improve the fail safe transmitted by P2P mode.
Preferably, the second terminal pins, to each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block, comprising:
Second terminal pins is to each the TS sub-block received from first terminal, judge that whether the criteria check value of this TS sub-block is identical with local check value, if identical, then confirm that this TS sub-block is true, this TS sub-block is retained in TS file, otherwise, from TS file, abandon this TS sub-block; Guarantee that each TS sub-block that the second terminal receives is identical with each the TS sub-block of this TS in server.
Preferably, the memory space that takies of each TS sub-block is equal; When the memory space that TS sub-block takies is equal, is conducive to the utilance improving bandwidth, improves data transmission bauds.
Preferably, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make the terminal obtaining this transport stream can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Preferably, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block from the positional information of each TS sub-block.
Preferably, described method also comprises:
Each TS sub-block in the TS that second terminal reception other terminal except first terminal sends and the description document of this TS, the source of the transport stream of described second terminal is increased, and the probability successfully obtaining transport stream increases.
Embodiments provide a kind of transmitting device of transport stream TS, this device comprises:
First processing module, for the request according to first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; And for the request according to the second terminal, determine to need to send to the criteria check value of each TS sub-block in the described TS of this second terminal, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
First sending module, for sending to this first terminal by need the to send to TS of this first terminal and the description document thereof determined; And, the criteria check value of described each the TS sub-block determined is sent to described second terminal.
In above-mentioned transmitting device, at server side, each the TS data block in TS is divided into multiple TS sub-block by the first processing module, and generate the description document and the criteria check value that comprise the descriptor of each TS sub-block of each TS data block, make the terminal obtaining this transport stream according to the descriptor of each the TS sub-block in description document, corresponding sub-block can be read from the multiple TS sub-blocks obtained.Because each TS sub-block is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is also less, thus improves the speed of transfer of data.Whether meanwhile, described second terminal is verified according to obtaining criteria check value each TS sub-block to this TS obtained from end side from server, detect each TS sub-block described and be once tampered, improve the fail safe transmitted by P2P mode.
Preferably, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make the terminal obtaining this transport stream can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Preferably, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block from the positional information of each TS sub-block.
Embodiments provide a kind of transmitting device of transport stream TS, this device comprises:
Receiver module, for receiving each TS sub-block in TS that first terminal sends and the description document of this TS in the second end side, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; And the criteria check value of each TS sub-block in the TS to send at the second end side reception server, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
Second processing module, for the descriptor of each TS sub-block of each TS data block of this TS comprised according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; And each the TS sub-block in this TS received is calculated, obtain local check value;
Authentication module, for for each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.
In the transmitting device of above-mentioned transport stream TS, obtained the description document of each TS sub-block TS and this TS from first terminal by receiver module in the second end side, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; Because each the TS sub-block in TS is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is also less, thus improves the speed of the transfer of data between node; And, receiver module obtains the criteria check value of each TS sub-block this TS from server side, by the second processing module, each the TS sub-block in this TS received is calculated, obtain local check value, and by authentication module for each the TS sub-block received from first terminal, the criteria check value of this TS sub-block and local check value is utilized to carry out checking treatment to this TS sub-block, detect each TS sub-block described whether to be once tampered in first terminal side, improve the fail safe of the data transmitted by P2P mode.
Preferably, described authentication module specifically for:
For each the TS sub-block received from first terminal, judge that whether the criteria check value of this TS sub-block is identical with local check value, if identical, then confirm that this TS sub-block is true, this TS sub-block is retained in TS file, otherwise, from TS file, abandon this TS sub-block.
Preferably, the memory space that takies of each TS sub-block is equal; When the memory space that TS sub-block takies is equal, is conducive to the utilance improving bandwidth, improves data transmission bauds.
Preferably, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make the second processing module obtaining this transport stream can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Preferably, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block from the positional information of each TS sub-block.
Preferably, described receiver module is also for receiving each TS sub-block in the TS of other terminal transmission except first terminal except and the description document of this TS in the second end side, the source of the transport stream of described second terminal is increased, and the probability successfully obtaining transport stream increases.
Embodiments provide a kind of transmission system of transport stream TS, this transmission system comprises:
Server, for the request according to first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; Need the to send to TS of this first terminal and the description document thereof determined are sent to this first terminal; And according to the request of the second terminal, the criteria check value of each TS sub-block in this TS is sent to the second terminal;
First terminal, for obtaining TS and description document thereof from server side, wherein, each the TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; And according to the request of the second terminal, determine the TS that needs to send to the second terminal and description document thereof, and the description document of each TS sub-block and this TS in the described TS determined is sent to the second terminal;
Second terminal, for receiving each TS sub-block in TS that first terminal sends and the description document of this TS, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; The descriptor of each TS sub-block of each TS data block of this TS comprised according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; Obtain the criteria check value of each TS sub-block this TS from server side, and each the TS sub-block in this TS received is calculated, obtain local check value; And for each the TS sub-block received from first terminal, utilize the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.
In above-mentioned transmission system, at server side, each the TS data block in TS is divided into multiple TS sub-block, and generate and comprise the description document of the descriptor of each TS sub-block of each TS data block and the criteria check value of each TS sub-block, make the terminal obtaining this transport stream according to the descriptor of each the TS sub-block in description document, corresponding sub-block can be read from the multiple TS sub-blocks obtained; Described TS and description document thereof, in response to the request of first terminal, are sent to first terminal by server; After obtaining described TS and description document thereof, described TS and description document thereof, in response to the request of the second terminal, are sent to the second terminal by first terminal; Send in the process of transport stream to first terminal transmission transport stream and first terminal to the second terminal at described server, because each TS sub-block is less, therefore the bandwidth in the process of transmission shared by each TS sub-block is also less, thus improves the speed of transfer of data.And, described second terminal obtains the criteria check value of each TS sub-block this TS from server side, by calculating each the TS sub-block in this TS received, obtain local check value, for each the TS sub-block received from first terminal, the criteria check value of this TS sub-block and local check value is utilized to carry out checking treatment to this TS sub-block, detect each TS sub-block described whether to be once tampered in first terminal side, improve the fail safe of the data transmitted by P2P mode.
Accompanying drawing explanation
The schematic flow sheet of the transmission method of the transport stream that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of the transmission method of the transport stream that Fig. 2 provides for the embodiment of the present invention two;
The schematic flow sheet of the transmission method of the transport stream that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of the transmitting device of the transport stream that Fig. 4 provides for the embodiment of the present invention four;
The structural representation of the transmitting device of the transport stream that Fig. 5 provides for the embodiment of the present invention five;
The structural representation of the transmitting device of the transport stream that Fig. 6 provides for the embodiment of the present invention six;
The structural representation of the transmission system of the transport stream that Fig. 7 provides for the embodiment of the present invention seven.
Embodiment
Embodiments provide a kind of transmission method of transport stream TS, device and system, for realizing, the transmit flow data block in transport stream split and verified, solving in prior art the slower problem of the transfer of data excessive caused because of transmit flow data block that exist when obtaining media transport stream by P2P mode and the lower problem of fail safe.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of transmission method of transport stream TS, described method comprises: server is according to the request of first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; Need the to send to TS of this first terminal and the description document thereof determined are sent to this first terminal by server; The criteria check value of each TS sub-block in this TS, according to the request of the second terminal, is sent to the second terminal by server, and wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block.
See the transmission method of a kind of transport stream TS that Fig. 1, Fig. 1 provide for the embodiment of the present invention one, described method specifically comprises:
Step 11, server, according to the request of first terminal, determines the transfer stream file needing to send to described first terminal.
Step 12, server side extracts each TS data block of transport stream from the transfer stream file determined, according to the segmentation module preset to each TS data block, obtains multiple TS sub-block.
Step 13, generates the description document comprising the descriptor of each TS sub-block of each TS data block; And the criteria check value of each TS sub-block in this TS is calculated according to certain algorithm.
Step 14, each TS sub-block of each TS data block and the description document that comprises each TS sub-block are sent to terminal by server.
Step 15, the criteria check value of each TS sub-block in this TS, according to the request of the second terminal, is sent to the second terminal by server.
Preferably, the segmentation unit preset in the embodiment of the present invention one is several kilobytes, and in addition, the most I of the segmentation unit preset is set to 188 bytes, maximumly be set to a few Mbytes, specifically can also arrange voluntarily according to the utilization power of the bandwidth between transmitting terminal and receiving terminal and bandwidth.
Preferably, the descriptor of each the TS sub-block after described segmentation comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make the terminal obtaining this transport stream can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Preferably, when splitting each TS data block, use same default segmentation unit to split TS data block, the memory space that each the TS sub-block after splitting is taken is equal; When the memory space that TS sub-block takies is equal, is conducive to the utilance improving bandwidth, improves data transmission bauds.
Preferably, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block from the positional information of each TS sub-block.
Further, said method also comprises: arrange default segmentation unit at server side.
In the transmission method of above-mentioned transport stream TS, by each the TS data block in TS being divided into multiple TS sub-block at server side, and generate the description document comprising the descriptor of each TS sub-block of each TS data block, make the terminal obtaining this transport stream according to the descriptor of each the TS sub-block in description document, corresponding sub-block can be read from the multiple TS sub-blocks obtained.Because each TS sub-block is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is also less, thus improves the speed of transfer of data.
Meanwhile, because described second terminal can be verified each the TS sub-block obtained according to obtaining from server criteria check value, detecting each TS sub-block described and whether being tampered, improve the fail safe transmitted by P2P mode.
The invention process row two provide a kind of transmission method of transport stream TS, the method comprises: first terminal obtains TS and description document thereof from server side, wherein, each TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; First terminal, according to the request of the second terminal, is determined the TS that needs to send to the second terminal and description document thereof, and the description document of each TS sub-block and this TS in the described TS determined is sent to the second terminal.
See the transmission method of a kind of transport stream TS that Fig. 2, Fig. 2 provide for the embodiment of the present invention two, described method specifically comprises:
Step 21, first terminal sends the request obtaining transport stream and description document to server.
Step 22, the transport stream that first terminal reception server sends and description document thereof, wherein, each the TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block.
Step 23, first terminal, in response to the request from the second terminal, is determined to need the transport stream to the second terminal transmission and description document thereof.
Step 24, the described transport stream determined and description document thereof are sent to the second terminal by first terminal.
In the embodiment of the present invention two, each TS sub-block described is at server side, to be split obtain by server according to the segmentation unit preset to each the TS data block in transport stream; In this embodiment two, described default segmentation unit is several kilobytes, and in addition, the most I of the segmentation unit preset is set to 188 bytes, maximumly be set to a few Mbytes, specifically can also arrange voluntarily according to the utilization power of the bandwidth between server and first terminal and bandwidth.
Further, the memory space that in described TS, each TS sub-block of each TS data block takies is equal; When the memory space that TS sub-block takies is equal, is conducive to the utilance improving bandwidth, improves the data transmission bauds between server and first terminal.
Preferably, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make first terminal can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Preferably, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block according to the positional information of each TS sub-block.
Further, the transmission method of described transport stream TS also comprises:
First terminal is according to the request of other terminal except the second terminal, determine the TS and the description document thereof that need transmission, and each the TS sub-block in the TS determined and the description document of this TS are sent to other terminal except the second terminal, for realizing the transfer of data between first terminal and other terminal except the second terminal.
Further, the transmission method of described transport stream TS also comprises:
Each TS sub-block in this TS received, according to the descriptor of each TS sub-block of each TS data block in this TS in the description document of TS, is formed complete TS file, to play the content of described transport stream by first terminal.
Further, first terminal can also obtain described transport stream and description document thereof from other terminal equipment.Now, described first terminal calculates the local check value of each TS sub-block according to the algorithm identical with server side, and the criteria check value of each TS sub-block this transport stream is obtained from server side, for each the TS sub-block in the TS received from other-end side joint, the criteria check value of this TS sub-block and local check value is utilized to carry out checking treatment to this TS sub-block, to ensure that the TS file that described first terminal obtains is safe.
In the transmission method of above-mentioned transport stream TS, first terminal obtains TS and description document thereof from server side, wherein, each the TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; First terminal is according to the request of the second terminal simultaneously, determines the TS needing to send to the second terminal, and each TS sub-block in the described TS determined is sent to the second terminal, realizes P2P transmission between first terminal and the second terminal; In the process of transfer of data, because each TS sub-block is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is also less, thus improves the speed of the transfer of data between node.Simultaneously, because transport stream and description document thereof are just sent to the second terminal by described first terminal, therefore the second terminal needs to obtain criteria check value from server side, each the TS sub-block obtained from first terminal side is verified, detect each TS sub-block described whether to be tampered in end side, improve the fail safe transmitted by P2P mode.
The embodiment of the present invention three provides a kind of P2P transmission method of transport stream TS, the method comprises: each the TS sub-block in the TS that the second terminal reception first terminal sends and the description document of this TS, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; The descriptor of each TS sub-block of each TS data block of this TS that the second terminal comprises according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; Second terminal obtains the criteria check value of each TS sub-block this TS from server side, wherein, the criteria check value of each TS sub-block described for verifying the authenticity of this TS sub-block, and calculates each the TS sub-block in this TS received, and obtains local check value; Second terminal pins, to each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.
See the transmission method of a kind of transport stream TS that Fig. 3, Fig. 3 provide for the embodiment of the present invention three, described method specifically comprises:
Step 31, the second terminal sends the request obtaining transport stream and description document to first terminal.
Step 32, each the TS sub-block in the TS that the second end side reception first terminal sends and the description document of this TS, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS.
Step 33, the second end side, according to the descriptor of each the TS sub-block in description document, searches corresponding TS sub-block, by the TS file that described multiple TS data block has formed from the multiple TS sub-blocks obtained.
Step 34, the second terminal to server side sends the request of the criteria check value of each the TS sub-block obtained in this TS.
Step 35, the criteria check value of each the TS sub-block in the described TS that the second terminal reception server side sends.
Step 36, the second terminal calculates each the TS sub-block in this TS received according to the method identical with server side, obtains local check value.
Step 37, the second terminal pins, to each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block;
This step specifically comprises: for each the TS sub-block received from first terminal, judge that whether the criteria check value of this TS sub-block is identical with local check value, if identical, then confirm that this TS sub-block is true, this TS sub-block is retained in TS file, otherwise, from TS file, abandon this TS sub-block.
In the embodiment of the present invention three, each TS sub-block described is at server side, and server to be split each the TS data block in transport stream according to the segmentation unit preset and obtained; In this embodiment three, described default segmentation unit is several kilobytes, and in addition, the most I of the segmentation unit preset is set to 188 bytes, maximumly be set to a few Mbytes, specifically can also arrange voluntarily according to the utilization power of the bandwidth between server and first terminal and bandwidth.
Preferably, the memory space that in described TS, each TS sub-block of each TS data block takies is equal; When the memory space that TS sub-block takies is equal, is conducive to the utilance improving bandwidth, improves the data transmission bauds between first terminal and the second terminal.
Preferably, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make the second terminal can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Preferably, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block according to the positional information of each TS sub-block.
Further, described method also comprises:
Each TS sub-block in the TS that second terminal reception other terminal except first terminal sends and the description document of this TS, the source of the transport stream of described second terminal is increased, and the probability successfully obtaining transport stream increases.
Further, described method also comprises: the content of the second terminal to the TS file formed due to multiple TS data block is play.
In the transmission method of above-mentioned transport stream TS, second terminal obtains the description document of each TS sub-block TS and this TS from first terminal by P2P mode, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; The descriptor of each TS sub-block of each TS data block of this TS that the second terminal comprises according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; Because each the TS sub-block in TS is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is also less, thus improves the speed of the transfer of data between first terminal and the second terminal; And, second terminal obtains the criteria check value of each TS sub-block this TS from server side, and each the TS sub-block in this TS received is calculated, obtain local check value, second terminal pins is to each the TS sub-block received from first terminal, utilize the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block, to ensure that each TS sub-block described is not tampered, improve the fail safe transmitted by P2P mode.
The embodiment of the present invention four provides a kind of transmitting device of transport stream TS, the structural representation of the transmitting device of the TS provided for the embodiment of the present invention four see Fig. 4, Fig. 4; As can be seen from Figure 4, this device described comprises: the first processing module 41 and the first sending module 42;
Concrete:
Described first processing module 41, for the request according to first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; And for the request according to the second terminal, determine to need to send to the criteria check value of each TS sub-block in the described TS of this second terminal, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
Described first sending module 42, for sending to this first terminal by need the to send to TS of this first terminal and the description document thereof determined; And, the criteria check value of described each the TS sub-block determined is sent to described second terminal.
Preferably, default segmentation unit is comprised in described first processing module 41, after the request receiving terminal, server is split according to the unit preset each the TS data block in the TS determined, each TS data block is divided into the TS sub-block of multiple sizes etc.;
The segmentation unit preset in the embodiment of the present invention one is several kilobytes, in addition, the most I of the segmentation unit preset is set to 188 bytes, is maximumly set to a few Mbytes, specifically can also arrange voluntarily according to the utilization power of the bandwidth between server and terminal and bandwidth.
When splitting each TS data block, use same default segmentation unit to split TS data block, the memory space that each the TS sub-block after splitting is taken is equal; When the memory space that TS sub-block takies is equal, is conducive to the utilance improving bandwidth, improves data transmission bauds.
Further, described first processing module 41 generates the description document comprising the descriptor of each TS sub-block of each TS data block; Wherein, the descriptor of each the TS sub-block after described segmentation comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make the terminal obtaining this transport stream can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Simultaneously, described first processing module 41 is according to certain algorithm, each TS sub-block after segmentation is calculated, obtain the criteria check value of each TS sub-block in this TS, utilize this criteria check value, the local check value of each TS sub-block that identical algorithm can be utilized to obtain with end side compares, to verify whether described TS sub-block is tampered.
Further, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes from the positional information of each TS sub-block, just can learn the TS data block described in this TS sub-block and the position in this TS data block.
In above-mentioned transmitting device, at server side, each the TS data block in TS is divided into multiple TS sub-block by the first processing module 41, and generate the description document and the criteria check value that comprise the descriptor of each TS sub-block of each TS data block, make the terminal obtaining this transport stream according to the descriptor of each the TS sub-block in description document, corresponding sub-block can be read from the multiple TS sub-blocks obtained.Because each TS sub-block is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is also less, thus improves the speed of transfer of data.Simultaneously, described second terminal is verified according to obtaining criteria check value each TS sub-block to this TS obtained from end side from server, detect each TS sub-block described whether to be tampered in end side, improve the fail safe transmitted by P2P mode.
The embodiment of the present invention five provides a kind of transmitting device of transport stream TS, the structural representation of the transmitting device of the TS provided for the embodiment of the present invention five see Fig. 5, Fig. 5; As can be seen from Figure 5, this device described comprises: acquisition module 51, the 3rd processing module 52 and the second sending module 53;
Concrete:
Described acquisition module 51, for obtaining TS and description document thereof from server side, wherein, each the TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block;
Described 3rd processing module 52, for the request according to the second terminal, determines the TS that needs to send to the second terminal and description document thereof;
Described second sending module 53, for sending to the second terminal by the description document of each TS sub-block and this TS in the described TS determined.
In the embodiment of the present invention five, each TS sub-block described is at server side, and server to be split each the TS data block in transport stream according to the segmentation unit preset and obtained; In this embodiment five, described default segmentation unit is several kilobytes, and in addition, the most I of the segmentation unit preset is set to 188 bytes, maximumly be set to a few Mbytes, specifically can also arrange voluntarily according to the utilization power of the bandwidth between server and first terminal and bandwidth.
Further, the memory space that in described TS, each TS sub-block of each TS data block takies is equal; When the memory space that TS sub-block takies is equal, is conducive to the utilance improving bandwidth, improves the data transmission bauds between server and first terminal.
Preferably, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make first terminal can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Preferably, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block according to the positional information of each TS sub-block.
Further, described 3rd processing module 52, also for the request according to other terminal except the second terminal, determines the TS and the description document thereof that need transmission; Described second sending module 53, also for the description document of each the TS sub-block in the TS determined and this TS being sent to other terminal except the second terminal; For realizing the transfer of data between first terminal and other terminal except the second terminal.
Further, described 3rd processing module 52 also in first terminal side according to the descriptor of each TS sub-block of each TS data block in this TS in the description document of TS, each TS sub-block in this TS received is formed complete TS file, realizes the broadcasting of the content to transport stream.
Further, described device also comprises the first playing module 54, for playing the complete TS file consisted of the 3rd processing module 52.
In above-mentioned transmitting device, TS and description document thereof is obtained from server side by acquisition module, wherein, each the TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; 3rd processing module is according to the request of the second terminal, determine the TS that needs to send to the second terminal and description document thereof, and by the second sending module, the description document of each TS sub-block and this TS in the described TS determined is sent to the second terminal, between first terminal and the second terminal, realize P2P transmission; In TS transmitting procedure, because each TS sub-block is less, the bandwidth in the process of transmission shared by each TS sub-block is also less, therefore improves the speed of the transfer of data between node.Simultaneously, the second terminal obtaining this TS and description document thereof can be verified according to obtaining from server criteria check value each TS sub-block to this TS obtained from end side, detect each TS sub-block described whether to be tampered in end side, improve the fail safe transmitted by P2P mode.
The embodiment of the present invention six provides a kind of transmitting device of transport stream TS, the structural representation of the transmitting device of the TS provided for the embodiment of the present invention six see Fig. 6, Fig. 6; As can be seen from Figure 6, this device described comprises: receiver module 61, second processing module 62 and authentication module 63;
Concrete:
Described receiver module 61, for receiving each TS sub-block in TS that first terminal sends and the description document of this TS in the second end side, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; And the criteria check value of each TS sub-block in the TS to send at the second end side reception server, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
Described second processing module 62, for the descriptor of each TS sub-block of each TS data block of this TS comprised according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; And each the TS sub-block in this TS received is calculated, obtain local check value;
Described authentication module 63, for for each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.Concrete, described authentication module 63 is for each the TS sub-block received from first terminal, judge that whether the criteria check value of this TS sub-block is identical with local check value, if identical, then confirm that this TS sub-block is true, this TS sub-block is retained in TS file, otherwise, from TS file, abandon this TS sub-block.
In the embodiment of the present invention six, each TS sub-block described is at server side, to be split obtain by server according to the segmentation unit preset to each the TS data block in transport stream; In this embodiment six, described default segmentation unit is several kilobytes, and in addition, the most I of the segmentation unit preset is set to 188 bytes, maximumly be set to a few Mbytes, specifically can also arrange voluntarily according to the utilization power of the bandwidth between server and first terminal and bandwidth.
Preferably, when splitting each TS data block, use same default segmentation unit to split TS data block, the memory space that each the TS sub-block after splitting is taken is equal; When the memory space that TS sub-block takies is equal, is conducive to the utilance improving bandwidth, improves data transmission bauds.
Preferably, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make the terminal obtaining this transport stream can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Each TS data block described corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block from the positional information of each TS sub-block.
Further, described acquisition module 61 is also for receiving each TS sub-block in the TS of other terminal transmission except first terminal except and the description document of this TS in the second end side, the source of the transport stream of described second terminal is increased, and the probability successfully obtaining transport stream increases.
Further, described device also comprises the second playing module 64, for playing the complete TS file consisted of the second processing module 62.
In the present embodiment, when described second processing module 62 calculates the local check value of each TS sub-block, the algorithm of utilization is identical with the algorithm of the criteria check value calculating each TS sub-block in server.
In the transmitting device of above-mentioned transport stream TS, obtained the description document of each TS sub-block TS and this TS from first terminal by receiver module 61 in the second end side, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; Because each the TS sub-block in TS is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is also less, thus improves the speed of the transfer of data between node; And, receiver module 61 obtains the criteria check value of each TS sub-block this TS from server side, by the second processing module 62, each the TS sub-block in this TS received is calculated, obtain local check value, and by authentication module 63 for each the TS sub-block received from first terminal, the criteria check value of this TS sub-block and local check value is utilized to carry out checking treatment to this TS sub-block, detect each TS sub-block described whether to be once tampered, improve the fail safe of the data transmitted by P2P mode.
The embodiment of the present invention seven provides a kind of transmission system of transport stream TS, see the structural representation of the transmission system that Fig. 7, Fig. 7 provide for the embodiment of the present invention seven; As can be seen from Figure 7, described system comprises:
Server 71, for the request according to first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; Need the to send to TS of this first terminal and the description document thereof determined are sent to this first terminal; And according to the request of the second terminal, the criteria check value of each TS sub-block in this TS is sent to the second terminal;
First terminal 72, for obtaining TS and description document thereof from server side, wherein, each the TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; And according to the request of the second terminal, determine the TS that needs to send to the second terminal and description document thereof, and the description document of each TS sub-block and this TS in the described TS determined is sent to the second terminal;
Second terminal 73, for receiving each TS sub-block in TS that first terminal sends and the description document of this TS, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; The descriptor of each TS sub-block of each TS data block of this TS comprised according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; Obtain the criteria check value of each TS sub-block this TS from server side, and each the TS sub-block in this TS received is calculated, obtain local check value; And for each the TS sub-block received from first terminal, utilize the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.
Wherein, the process that described server 71 sends transport stream and criteria check value from each TS sub-block in this this transport stream to the second terminal 73 that send to first terminal 72 comprises:
Server, according to the request of first terminal, determines the transfer stream file needing to send to described first terminal.
Server extracts each TS data block of transport stream from transfer stream file, according to the segmentation module preset to each TS data block, obtains multiple TS sub-block.
Generate the description document comprising the descriptor of each TS sub-block of each TS data block; And the criteria check value of each TS sub-block in this TS is calculated according to certain method.
Each TS sub-block of each TS data block and the description document that comprises each TS sub-block are sent to terminal by server.
The criteria check value of each TS sub-block in this TS, according to the request of the second terminal, is sent to the second terminal by server.
Transmitting procedure between described first terminal 72 and the second terminal 73 comprises:
Second terminal 73 sends the request obtaining transport stream and description document to first terminal;
Second terminal 73 receives each TS sub-block in the TS that first terminal 72 sends and the description document of this TS, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS;
Second terminal 73, according to the descriptor of each the TS sub-block in description document, searches corresponding TS sub-block, by the TS file that described multiple TS data block has formed from the multiple TS sub-blocks obtained.
Further, in this transmission system, described second terminal 73 also can obtain transport stream and description document thereof from server side.When the second terminal 73 obtains this transport stream and description document thereof from server side, can not each the TS sub-block obtained be verified.
Preferably, described server comprises:
First processing module, for the request according to first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; And, for the request according to the second terminal, determine to need to send to the criteria check value of each TS sub-block in the described TS of this second terminal;
First sending module, for sending to this first terminal by described need the to send to TS of this first terminal and the description document thereof determined; And, the criteria check value of described each the TS sub-block determined is sent to described second terminal.
Preferably, described first terminal comprises:
Acquisition module, for obtaining TS and description document thereof from server side, wherein, each the TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block;
3rd processing module, for the request according to the second terminal, determines the TS that needs to send to the second terminal and description document thereof;
Second sending module, for sending to the second terminal by the description document of each TS sub-block and this TS in the described TS determined.
Preferably, described second terminal comprises:
Receiver module, for receiving each TS sub-block in TS that first terminal sends and the description document of this TS, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; And the criteria check value of each TS sub-block in the TS that sends of reception server;
Second processing module, for the descriptor of each TS sub-block of each TS data block of this TS comprised according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; And each the TS sub-block in this TS received is calculated, obtain local check value;
Authentication module, for for each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.
Preferably, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block; Make the terminal obtaining this transport stream can find rapidly each TS sub-block corresponding accurately according to the positional information of each TS sub-block in description document and size.
Preferably, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number, makes just can learn the TS data block described in this TS sub-block and the position in this TS data block according to the positional information of each TS sub-block.
In this transmission system, at server side, each the TS data block in TS is divided into multiple TS sub-block, and generate and comprise the description document of the descriptor of each TS sub-block of each TS data block and the criteria check value of each TS sub-block, make the terminal obtaining this transport stream according to the descriptor of each the TS sub-block in description document, corresponding sub-block can be read from the multiple TS sub-blocks obtained; Described TS and description document thereof, in response to the request of first terminal, are sent to first terminal by server; After obtaining described TS and description document thereof, described TS and description document thereof, in response to the request of the second terminal, are sent to the second terminal by first terminal; Send in the process of transport stream to first terminal transmission transport stream and first terminal to the second terminal at described server, because each TS sub-block is less, therefore the bandwidth in the process of transmission shared by each TS sub-block is also less, thus improves the speed of transfer of data.And, described second terminal obtains the criteria check value of each TS sub-block this TS from server side, by calculating each the TS sub-block in this TS received, obtain local check value, for each the TS sub-block received from first terminal, the criteria check value of this TS sub-block and local check value is utilized to carry out checking treatment to this TS sub-block, detect each TS sub-block described whether to be once tampered, improve the fail safe of the data transmitted by P2P mode.
To sum up, a kind of transmission method of transport stream, device and system is embodiments provided; In the process, by server, each TS data block is divided into multiple TS sub-block, and generate the description document of descriptor and the criteria check value of each TS sub-block that comprise each TS sub-block described, make the terminal obtaining this transport stream and description document from other end side, according to described description document, described TS sub-block can be formed complete TS file, and utilize described criteria check value to verify each the TS sub-block obtained; Due in the process of transfer of data, because each TS sub-block is less, the bandwidth therefore in the process of transmission shared by each TS sub-block is less, thus improves the speed of transfer of data, improves user's impression., by criteria check value, each the TS sub-block obtained is verified meanwhile, guarantee that each the TS sub-block obtained all is not tampered, improve the fail safe of the data transmitted by P2P mode.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (21)

1. a transmission method for transport stream TS, is characterized in that, described method comprises:
Server is according to the request of first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each the TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block;
Need the to send to TS of this first terminal and the description document thereof determined are sent to this first terminal by server;
The criteria check value of each TS sub-block in this TS, according to the request of the second terminal, is sent to the second terminal by server, and wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block.
2. the method for claim 1, is characterized in that, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block.
3. the method for claim 1, is characterized in that, the memory space that each TS sub-block described takies is equal.
4. method as claimed in claim 2, it is characterized in that, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number.
5. a transmission method for transport stream TS, is characterized in that, described method comprises:
Each TS sub-block in the TS that second terminal reception first terminal sends and the description document of this TS, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS;
The descriptor of each TS sub-block of each TS data block of this TS that the second terminal comprises according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received;
Second terminal obtains the criteria check value of each TS sub-block this TS from server side, and wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block; And each the TS sub-block in this TS received is calculated, obtain local check value;
Second terminal pins, to each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.
6. method as claimed in claim 5, it is characterized in that, the second terminal pins, to each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block, comprising:
Second terminal pins is to each the TS sub-block received from first terminal, judge that whether the criteria check value of this TS sub-block is identical with local check value, if identical, then confirm that this TS sub-block is true, this TS sub-block is retained in TS file, otherwise, from TS file, abandon this TS sub-block.
7. method as claimed in claim 5, it is characterized in that, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block.
8. method as claimed in claim 5, it is characterized in that, the memory space that each TS sub-block takies is equal.
9. method as claimed in claim 5, it is characterized in that, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number.
10. method as claimed in claim 5, it is characterized in that, described method also comprises:
Each TS sub-block in the TS that second terminal reception other terminal except first terminal sends and the description document of this TS.
The transmitting device of 11. 1 kinds of transport stream TS, is characterized in that, described device comprises:
First processing module, for the request according to first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; And for the request according to the second terminal, determine to need to send to the criteria check value of each TS sub-block in the described TS of this second terminal, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
First sending module, for sending to this first terminal by need the to send to TS of this first terminal and the description document thereof determined; And, the criteria check value of described each the TS sub-block determined is sent to described second terminal.
12. devices as claimed in claim 11, is characterized in that, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block.
13. devices as claimed in claim 11, is characterized in that, the memory space that each TS sub-block described takies is equal.
14. devices as claimed in claim 12, it is characterized in that, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number.
The transmitting device of 15. 1 kinds of transport stream TS, is characterized in that, described device comprises:
Receiver module, for receiving each TS sub-block in TS that first terminal sends and the description document of this TS in the second end side, the description document of this TS comprises the descriptor of each TS sub-block of each TS data block of this TS; And the criteria check value of each TS sub-block in the TS to send at the second end side reception server, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
Second processing module, for the descriptor of each TS sub-block of each TS data block of this TS comprised according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; And each the TS sub-block in this TS received is calculated, obtain local check value;
Authentication module, for for each the TS sub-block received from first terminal, utilizes the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.
16. devices as claimed in claim 15, is characterized in that, described authentication module specifically for:
For each the TS sub-block received from first terminal, judge that whether the criteria check value of this TS sub-block is identical with local check value, if identical, then confirm that this TS sub-block is true, this TS sub-block is retained in TS file, otherwise, from TS file, abandon this TS sub-block.
17. devices as claimed in claim 15, is characterized in that, the descriptor of each TS sub-block described comprises the positional information of this TS sub-block in the TS belonging to this TS sub-block, and the size of each TS sub-block.
18. devices as claimed in claim 15, it is characterized in that, the memory space that each TS sub-block takies is equal.
19. devices as claimed in claim 17, it is characterized in that, each TS data block corresponds to a chief series number, each TS sub-block corresponds to a subsequence number, the combination of chief series that the positional information of each TS sub-block described is its subsequence number and the TS data block belonging to this TS sub-block number.
20. devices as claimed in claim 17, is characterized in that, described receiver module is also for receiving each TS sub-block in the TS of other terminal transmission except first terminal except and the description document of this TS in the second end side.
The transmission system of 21. 1 kinds of transport stream TS, is characterized in that, described system comprises:
Server, for the request according to first terminal, determine the TS and the description document thereof that need to send to this first terminal, wherein, each TS data block in this TS comprises multiple TS sub-block, and the description document of this TS comprises the descriptor of each TS sub-block of each TS data block; Need the to send to TS of this first terminal and the description document thereof determined are sent to this first terminal; And according to the request of the second terminal, the criteria check value of each TS sub-block in this TS is sent to the second terminal, and wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
First terminal, for obtaining TS and description document thereof from server side, and according to the request of the second terminal, determine the TS that needs to send to the second terminal and description document thereof, and the description document of each TS sub-block and this TS in the described TS determined is sent to the second terminal;
Second terminal, for receiving each TS sub-block in TS that first terminal sends and the description document of this TS; The descriptor of each TS sub-block of each TS data block of this TS comprised according to the description document of TS, forms complete TS file by each the TS sub-block in this TS received; Obtain the criteria check value of each TS sub-block this TS from server side, and each the TS sub-block in this TS received is calculated, obtain local check value; And for each the TS sub-block received from first terminal, utilize the criteria check value of this TS sub-block and local check value to carry out checking treatment to this TS sub-block.
CN201310603821.XA 2013-11-25 2013-11-25 Method, device and system for transmitting transport stream Pending CN104661043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310603821.XA CN104661043A (en) 2013-11-25 2013-11-25 Method, device and system for transmitting transport stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310603821.XA CN104661043A (en) 2013-11-25 2013-11-25 Method, device and system for transmitting transport stream

Publications (1)

Publication Number Publication Date
CN104661043A true CN104661043A (en) 2015-05-27

Family

ID=53251665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310603821.XA Pending CN104661043A (en) 2013-11-25 2013-11-25 Method, device and system for transmitting transport stream

Country Status (1)

Country Link
CN (1) CN104661043A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454439A (en) * 2016-09-29 2017-02-22 深圳Tcl数字技术有限公司 Advertisement resource transmission method and system
CN115209224A (en) * 2022-06-29 2022-10-18 乐视云计算有限公司 TS section checking method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207805A (en) * 2006-12-20 2008-06-25 北京汉辰科技有限公司 Method and system for transmitting flow media by P2P set-top box technique
CN101212269A (en) * 2007-12-20 2008-07-02 深圳市同洲电子股份有限公司 Unilateral network based information pushing and receiving method and device
US7424729B2 (en) * 2000-04-17 2008-09-09 Lg Electronics Inc. Differentiated PSIP table update interval technology
CN101888384A (en) * 2010-06-30 2010-11-17 北京世纪互联宽带数据中心有限公司 Multi-media safety signaling system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7424729B2 (en) * 2000-04-17 2008-09-09 Lg Electronics Inc. Differentiated PSIP table update interval technology
US7426742B2 (en) * 2000-04-17 2008-09-16 Lg Electronics Inc. Differentiated PSIP table updated interval technology
CN101207805A (en) * 2006-12-20 2008-06-25 北京汉辰科技有限公司 Method and system for transmitting flow media by P2P set-top box technique
CN101212269A (en) * 2007-12-20 2008-07-02 深圳市同洲电子股份有限公司 Unilateral network based information pushing and receiving method and device
CN101888384A (en) * 2010-06-30 2010-11-17 北京世纪互联宽带数据中心有限公司 Multi-media safety signaling system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454439A (en) * 2016-09-29 2017-02-22 深圳Tcl数字技术有限公司 Advertisement resource transmission method and system
CN115209224A (en) * 2022-06-29 2022-10-18 乐视云计算有限公司 TS section checking method, device, equipment and storage medium
CN115209224B (en) * 2022-06-29 2024-03-22 乐视云网络技术(北京)有限公司 Transport stream segment verification method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104661042A (en) Method, device and system for transmitting transport stream
US11191049B1 (en) Systems and methods for improving wireless performance
US20130336323A1 (en) Optimized bi-directional communication in an information centric network
US20060112422A1 (en) Data transfer using hyper-text transfer protocol (HTTP) query strings
CN103051976B (en) A kind of CDN distributes HLS content and method, system and equipment
CA2450869A1 (en) Methods and systems for transferring data over a network
CN106658045A (en) Cloud storage and cloud download methods for multimedia data and related devices
US20230118176A1 (en) Data transmission method and apparatus, computer-readable storage medium, electronic device, and computer program product
CN104348578B (en) The method and device of data processing
RU2008122944A (en) METHODS AND DEVICE FOR FRAGMENTATION OF SYSTEM INFORMATION MESSAGES IN RADIO NETWORKS
US10020916B2 (en) Method and apparatus for data communication of vehicle
CN112839003A (en) Data verification method and system
CN112887429A (en) Data transmission method and device, electronic equipment and storage medium
MX2013015385A (en) Highly-scalable data transmission.
CN103152606B (en) Video file processing method and device, system
US20140164574A1 (en) Method and System for Downloading a Font File
CN105848145A (en) WIFI intelligent configuration method and device
CN105307052A (en) Video request processing method and device
CN102325025B (en) Data processing method and system for verifying provision source authenticity
CN104661043A (en) Method, device and system for transmitting transport stream
CN102164276A (en) Method and system for processing streaming media
CN109710502A (en) Log transmission method, apparatus and storage medium
KR102238590B1 (en) Method of authenticating and verifying data packet transmission, and apparatuses operating the same
CN112910568A (en) Data communication method, data sending method and data receiving method
CN101212332A (en) Stream recording method, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20151224

Address after: Room six, building 19, building 68, No. 100089 South Road, Haidian District, Beijing

Applicant after: LETV CLOUD COMPUTING CO., LTD.

Address before: Room six, building 19, building 68, No. 100089 South Road, Haidian District, Beijing

Applicant before: LeTV Information Technology (Beijing) Co., Ltd.

WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150527

WD01 Invention patent application deemed withdrawn after publication