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

Method, device and system for transmitting transport stream Download PDF

Info

Publication number
CN104661042A
CN104661042A CN201310603798.4A CN201310603798A CN104661042A CN 104661042 A CN104661042 A CN 104661042A CN 201310603798 A CN201310603798 A CN 201310603798A CN 104661042 A CN104661042 A CN 104661042A
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
CN201310603798.4A
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 CN201310603798.4A priority Critical patent/CN104661042A/en
Publication of CN104661042A publication Critical patent/CN104661042A/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/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234318Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by decomposing into objects, e.g. MPEG-4 objects
    • 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/2385Channel allocation; Bandwidth allocation
    • 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/632Control 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 using a connection between clients on a wide area network, e.g. setting up a peer-to-peer communication via Internet for retrieving video segments from the hard-disk of other client devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

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, the description file comprises the description information and a standard proof test value of each TS sub-data block, and the standard proof test value of each TS sub-data block is used for verifying the authenticity of the TS sub-data block; the server sends the required TS and the description file of the TS to the first terminal; the server sends the description file 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 TS data block in this TS comprises multiple TS sub-block, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block, and the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-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 description document of this TS, according to the request of the second terminal, is sent to the second terminal by server.
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 and comprise the descriptor of each TS sub-block of each TS data block and the description document of criteria check value, 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 from other terminal can be verified each the TS sub-block obtained according to the description document Plays check value obtained from server, detect each TS sub-block described whether to be 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, 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:
Second terminal receives each the TS sub-block in the TS of first terminal transmission;
Second terminal obtains the description document of this TS from server side, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block of this TS, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
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;
Each TS sub-block in this TS that second end-on receives calculates, 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.
In the transmission method of above-mentioned transport stream TS, the second terminal passes through P2P technology from each the TS sub-block first terminal acquisition 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 first terminal and the second terminal, and, second terminal obtains the description document of this TS from server 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, 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, 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 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:
Second terminal receives each the TS sub-block in the TS of other terminal transmission except first terminal, and 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, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block, and 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 according to the request of the second terminal, the description document of this TS is sent to the second terminal.
In above-mentioned transmitting device, by the first processing module, each the TS data block in TS is divided into multiple TS sub-block, and generate and comprise the descriptor of each TS sub-block of each TS data block and the description document of criteria check value, 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 criteria check value each the TS sub-block to this TS obtained from end side reading each TS sub-block in the description document obtained from server, detect each TS sub-block described whether to be 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 the TS sub-block in the TS of first terminal transmission in the second end side; And in the description document of this TS that the second end side reception server sends, 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, 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, to be obtained each the TS sub-block TS from first terminal by receiver module in the second end side; 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; Further, receiver module obtains the description document of this TS from server side, and the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block of this TS; 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, 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 also for receiving each the TS sub-block in the TS of other terminal transmission except first terminal in the second end side, makes the source of the transport stream of described second terminal increase, 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 descriptor and the criteria check value 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 description document of this TS is sent to the second terminal;
First terminal, for obtaining TS and description document thereof from server side; And according to the request of the second terminal, determine the TS needing to send to the second terminal, and by what determine, each TS sub-block in described TS is sent to the second terminal;
Second terminal, for receiving each the TS sub-block in the TS of first terminal transmission, and the description document of this TS is obtained from server side, the description document of this TS comprises descriptor and the criteria check value 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; Each TS sub-block in this TS received is calculated, obtains local check value; And 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.
In above-mentioned transmission system, at server side, each the TS data block in TS is divided into multiple TS sub-block, and 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, 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, in response to the request of the second terminal, is 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 reads the criteria check value of each TS sub-block from description document, 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, 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 of the data 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.
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, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block, and the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-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 description document of this TS, according to the request of the second terminal, is sent to the second terminal by server.
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 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, server calculates the criteria check value of each TS sub-block in this TS according to certain algorithm, and generation comprises the descriptor of each TS sub-block of each TS data block and the description document of criteria check value.
Step 14, each TS sub-block of each TS data block and the description document that comprises each TS sub-block are sent to first terminal by server.
Step 15, the description document comprising each TS sub-block descriptor and criteria check value, 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 and comprise the descriptor of each TS sub-block of each TS data block and the description document of criteria check value, 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 the criteria check value read from description document, detect each TS sub-block described and whether be 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, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block; First terminal, according to the request of the second terminal, determines the TS needing to send to the second terminal, and by what determine, each TS sub-block in described TS 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 descriptor and the criteria check value of each TS sub-block of each TS data block.
Step 23, first terminal, in response to the request from the second terminal, determines the transport stream needing to send to the second terminal.
Step 24, the described transport stream determined is 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 needing to send, and each the TS sub-block in the TS determined is 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 from other terminal equipment, and from server, obtain the description document of this transport stream.Now, described first terminal calculates the local check value of each TS sub-block according to the algorithm identical with server side, and from description document, read the criteria check value of each TS sub-block, 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 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 the criteria check value of each TS sub-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 is just sent to the second terminal by described first terminal, therefore the second terminal needs to comprise the descriptor of each TS sub-block and the description document of criteria check value, each the TS sub-block obtained from first terminal side is verified, detect each TS sub-block described whether to be tampered, improve the fail safe transmitted by P2P mode.
The embodiment of the present invention three provides a kind of transmission method of transport stream TS, and the method comprises: the second terminal receives each the TS sub-block in the TS of first terminal transmission; Second terminal obtains the description document of this TS from server side, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block of this TS, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block; 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; Each TS sub-block in this TS that second end-on receives calculates, 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 to first terminal.
Step 32, the second end side receives each the TS sub-block in this TS of first terminal transmission.
Step 33, the second terminal to server side sends the request of the description document obtaining this TS.
Step 34, the description document of this TS that reception server sends, the description document of being somebody's turn to do comprises descriptor and the criteria check value of each TS sub-block of each TS data block of this TS.
Step 35, 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 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 37 specifically comprises:
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.
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:
Second terminal receives each the TS sub-block in the TS of other terminal transmission except first terminal, and 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, the second terminal passes through P2P mode from each the TS sub-block first terminal acquisition 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 first terminal and the second terminal, and, second terminal obtains the description document of this TS from server side, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block of this TS, 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, 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 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 is 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, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block, 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 according to the request of the second terminal, the description document of this TS is sent to the 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 this algorithm can be utilized to obtain with terminal 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, by the first processing module 41, each the TS data block in TS is divided into multiple TS sub-block, and generate and comprise the descriptor of each TS sub-block of each TS data block and the description document of criteria check value, 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 criteria check value each the TS sub-block to this TS obtained from end side reading each TS sub-block in the description document obtained from server, detect each TS sub-block described whether to be tampered, 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 TS data block in this TS comprises multiple TS sub-block, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
Described 3rd processing module 52, for the request according to the second terminal, determines the TS needing to send to the second terminal;
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 needing to send; Described second sending module 53, also for each the TS sub-block in the TS determined 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 descriptor and the criteria check value of each TS sub-block of each TS data block; 3rd processing module, according to the request of the second terminal, determines the TS needing to send to the second terminal, and by the second sending module, 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 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 the description document of this TS from server side can be verified according to pre-check value each the TS sub-block to this TS obtained from end side reading each TS sub-block from described description document, detect each TS sub-block described whether to be tampered, 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 the TS sub-block in the TS of first terminal transmission in the second end side; And in the description document of this TS that the second end side reception server sends, 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, 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.
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 also for receiving each the TS sub-block in the TS of other terminal transmission except first terminal in the second end side, makes the source of the transport stream of described second terminal increase, and the probability successfully obtaining transport stream increases.
Preferably, described authentication module 63 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.
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, pass through receiver module 61 from each the TS sub-block first terminal acquisition TS in the second end side; 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; Further, receiver module 61 obtains the description document of this TS from server side, and the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block of this TS; 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 descriptor and the criteria check value 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 description document of 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 descriptor and the criteria check value of each TS sub-block of each TS data block; And according to the request of the second terminal, determine the TS needing to send to the second terminal, and by what determine, each TS sub-block in described TS is sent to the second terminal;
Second terminal 73, for receiving each the TS sub-block in the TS of first terminal transmission, and the description document of this TS is obtained from server side, the description document of this TS comprises descriptor and the criteria check value 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; Each TS sub-block in this TS received is calculated, obtains local check value; And 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.
Wherein, described server 71 sends transport stream to first terminal 72 and comprises to the process that the second terminal 73 sends the descriptor comprising each TS sub-block of this this transport stream and the description document of criteria check value:
Server, according to the request of first terminal, determines the transfer stream file needing to send to described first terminal;
Server side 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;
Calculate the criteria check value of each TS sub-block in this TS according to certain algorithm, and generation comprises the descriptor of each TS sub-block of each TS data block and the description document of criteria check value;
Each TS sub-block of each TS data block and the description document that comprises each TS sub-block are sent to first terminal by server side;
The description document comprising each TS sub-block descriptor and criteria check value, 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 to first terminal;
Second terminal 73 receives each the TS sub-block in the TS of first terminal 72 transmission;
Second terminal 73, according to the descriptor of each the TS sub-block in the description document obtained from server side, searches corresponding TS sub-block, by the TS file that described multiple TS data block has formed from the multiple TS sub-blocks obtained.
Second terminal calculates each the TS sub-block in this TS received according to the method identical with server side, obtains local check value.
For each the TS sub-block received from first terminal, the second 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.
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 descriptor and the criteria check value of each TS sub-block of each TS data 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 according to the request of the second terminal, the description document of this TS is sent to the 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 descriptor and the criteria check value of each TS sub-block of each TS data block;
3rd processing module, for the request according to the second terminal, determines the TS needing to send to the second terminal;
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 the TS sub-block in the TS of first terminal transmission in the second end side; And in the description document of this TS that the second end side reception server sends, 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;
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 from 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 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, 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, in response to the request of the second terminal, is 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 reads the criteria check value of each TS sub-block from description document, 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.
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 comprising the described descriptor of each TS sub-block and the criteria check value of each TS sub-block, 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.Simultaneously; when being transmitted by P2P; transport stream and description document thereof is obtained respectively from opposite end and server; and by the criteria check value in described description document, each the TS sub-block obtained is verified; 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 (23)

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 TS data block in this TS comprises multiple TS sub-block, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block, and the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-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 description document of this TS, according to the request of the second terminal, is sent to the second terminal by server.
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:
Second terminal receives each the TS sub-block in the TS of first terminal transmission;
Second terminal obtains the description document of this TS from server side, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block of this TS, wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-block;
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;
Each TS sub-block in this TS that second end-on receives calculates, 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.
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:
Second terminal receives each the TS sub-block in the TS of other terminal transmission except first terminal.
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, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block, and 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 according to the request of the second terminal, the description document of this TS is sent to the 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 the TS sub-block in the TS of first terminal transmission in the second end side; And in the description document of this TS that the second end side reception server sends, 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, 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, the description document of this TS comprises descriptor and the criteria check value of each TS sub-block of each TS data block, and wherein, the criteria check value of each TS sub-block described is for verifying the authenticity of this TS sub-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 description document of this TS is sent to the second terminal;
First terminal, for obtaining TS and description document thereof from server side; And according to the request of the second terminal, determine the TS needing to send to the second terminal, and by what determine, each TS sub-block in described TS is sent to the second terminal;
Second terminal, for receiving each the TS sub-block in the TS of first terminal transmission, and the description document of this TS is obtained from server side, the description document of this TS comprises descriptor and the criteria check value 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; Each TS sub-block in this TS received is calculated, obtains local check value; And 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.
22. systems as claimed in claim 21, 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.
23. the system as claimed in claim 22, 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.
CN201310603798.4A 2013-11-25 2013-11-25 Method, device and system for transmitting transport stream Pending CN104661042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310603798.4A CN104661042A (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
CN201310603798.4A CN104661042A (en) 2013-11-25 2013-11-25 Method, device and system for transmitting transport stream

Publications (1)

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

Family

ID=53251664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310603798.4A Pending CN104661042A (en) 2013-11-25 2013-11-25 Method, device and system for transmitting transport stream

Country Status (1)

Country Link
CN (1) CN104661042A (en)

Cited By (10)

* 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
CN106656424A (en) * 2017-01-10 2017-05-10 西安蜂语信息科技有限公司 Verification method of data transmission
CN106790653A (en) * 2017-01-17 2017-05-31 上海泓智信息科技有限公司 Document transmission processing method and device
CN108024122A (en) * 2017-12-15 2018-05-11 中广热点云科技有限公司 A kind of digital TV TS stream safe transmission crime prevention system and method
CN108769742A (en) * 2018-07-10 2018-11-06 江苏省公用信息有限公司 A kind of IPTV multicast contents tamper resistant method
CN110505228A (en) * 2019-08-23 2019-11-26 上海宽带技术及应用工程研究中心 Big data processing method, system, medium and device based on edge cloud framework
CN112839003A (en) * 2019-11-22 2021-05-25 上海哔哩哔哩科技有限公司 Data verification method and system
CN113014533A (en) * 2019-12-20 2021-06-22 北京金山云网络技术有限公司 Processing method, device and system for checking file, storage medium and electronic device
CN113784168A (en) * 2020-06-10 2021-12-10 西安诺瓦星云科技股份有限公司 Program checking method, device and system
CN115209224A (en) * 2022-06-29 2022-10-18 乐视云计算有限公司 TS section checking method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014022A (en) * 2007-02-13 2007-08-08 北京亿企通信息技术有限公司 Method, apparatus and system for transmitting files in instant messaging tool
CN101207805A (en) * 2006-12-20 2008-06-25 北京汉辰科技有限公司 Method and system for transmitting flow media by P2P set-top box technique
CN101453478A (en) * 2007-11-28 2009-06-10 新奥特(北京)视频技术有限公司 Integrity checking method in document transmission
CN101854241A (en) * 2009-03-30 2010-10-06 上海聚力传媒技术有限公司 Method and device for verifying data block transmitted in network
CN102137089A (en) * 2010-11-01 2011-07-27 华为技术有限公司 Method, device and system for verifying content integrity of streaming media
CN102868665A (en) * 2011-07-05 2013-01-09 华为软件技术有限公司 Method and device for data transmission
CN103079116A (en) * 2012-12-31 2013-05-01 乐视网信息技术(北京)股份有限公司 Data passive checking system and passive checking method applied to peer-to-peer network

Patent Citations (7)

* 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
CN101014022A (en) * 2007-02-13 2007-08-08 北京亿企通信息技术有限公司 Method, apparatus and system for transmitting files in instant messaging tool
CN101453478A (en) * 2007-11-28 2009-06-10 新奥特(北京)视频技术有限公司 Integrity checking method in document transmission
CN101854241A (en) * 2009-03-30 2010-10-06 上海聚力传媒技术有限公司 Method and device for verifying data block transmitted in network
CN102137089A (en) * 2010-11-01 2011-07-27 华为技术有限公司 Method, device and system for verifying content integrity of streaming media
CN102868665A (en) * 2011-07-05 2013-01-09 华为软件技术有限公司 Method and device for data transmission
CN103079116A (en) * 2012-12-31 2013-05-01 乐视网信息技术(北京)股份有限公司 Data passive checking system and passive checking method applied to peer-to-peer network

Cited By (16)

* 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
CN106656424A (en) * 2017-01-10 2017-05-10 西安蜂语信息科技有限公司 Verification method of data transmission
CN106656424B (en) * 2017-01-10 2020-08-14 西安蜂语信息科技有限公司 Data transmission verification method
CN106790653A (en) * 2017-01-17 2017-05-31 上海泓智信息科技有限公司 Document transmission processing method and device
CN106790653B (en) * 2017-01-17 2020-04-24 上海泓智信息科技有限公司 File transmission processing method and device
CN108024122A (en) * 2017-12-15 2018-05-11 中广热点云科技有限公司 A kind of digital TV TS stream safe transmission crime prevention system and method
CN108769742B (en) * 2018-07-10 2021-06-01 天翼智慧家庭科技有限公司 IPTV multicast content tamper-proofing method
CN108769742A (en) * 2018-07-10 2018-11-06 江苏省公用信息有限公司 A kind of IPTV multicast contents tamper resistant method
CN110505228B (en) * 2019-08-23 2022-07-01 上海宽带技术及应用工程研究中心 Edge cloud architecture-based big data processing method, system, medium and device
CN110505228A (en) * 2019-08-23 2019-11-26 上海宽带技术及应用工程研究中心 Big data processing method, system, medium and device based on edge cloud framework
CN112839003A (en) * 2019-11-22 2021-05-25 上海哔哩哔哩科技有限公司 Data verification method and system
CN113014533A (en) * 2019-12-20 2021-06-22 北京金山云网络技术有限公司 Processing method, device and system for checking file, storage medium and electronic device
CN113014533B (en) * 2019-12-20 2022-11-08 北京金山云网络技术有限公司 Processing method, device and system for checking file, storage medium and electronic device
CN113784168A (en) * 2020-06-10 2021-12-10 西安诺瓦星云科技股份有限公司 Program checking method, device 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
CN111382463B (en) Block chain system and method based on stream data
US11191049B1 (en) Systems and methods for improving wireless performance
CA2450869A1 (en) Methods and systems for transferring data over a network
CN103051976B (en) A kind of CDN distributes HLS content and method, system and equipment
CN103916483A (en) Self-adaptation data storage and reconstruction method for coding redundancy storage system
US20120197847A1 (en) Method and System for Monitoring and Tracing Multimedia Resource Transmission
CN104348578B (en) The method and device of data processing
US10020916B2 (en) Method and apparatus for data communication of vehicle
CN112839003A (en) Data verification method and system
WO2017097106A1 (en) Method and apparatus for transmitting file difference
MX2013015385A (en) Highly-scalable data transmission.
CN103152606B (en) Video file processing method and device, system
CN110784741A (en) Time-shifting response method and device of media data
CN105307052A (en) Video request processing method and device
CN102325025B (en) Data processing method and system for verifying provision source authenticity
CN102739650A (en) File transmission system combining broadcast and television net and internet
CN102164276A (en) Method and system for processing streaming media
CN104661043A (en) Method, device and system for transmitting transport stream
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
CN103561013A (en) Streaming media data distributing system
CN110740133A (en) network voting and election method and system based on RTMP protocol
CN104661049A (en) Transmission method and transmission system for transport stream, streaming media server and terminal

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: 20151223

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