CN101867803B - Data transmission method, equipment and system - Google Patents
Data transmission method, equipment and system Download PDFInfo
- Publication number
- CN101867803B CN101867803B CN2010101790860A CN201010179086A CN101867803B CN 101867803 B CN101867803 B CN 101867803B CN 2010101790860 A CN2010101790860 A CN 2010101790860A CN 201010179086 A CN201010179086 A CN 201010179086A CN 101867803 B CN101867803 B CN 101867803B
- Authority
- CN
- China
- Prior art keywords
- private data
- stream
- field
- carried
- transmitting terminal
- 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.)
- Active
Links
Images
Landscapes
- Television Systems (AREA)
Abstract
The invention discloses a data transmission method, data transmission equipment and a data transmission system. The method comprises the following steps that: a sending end loads private data to be transmitted into TS stream; and the sending end sends the TS stream to a receiving end. In the method, the equipment and the system, an extra data channel does not need to be established between the receiving end and the sending end, so the maintenance workload of the channel is reduced.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of transmission method, equipment and system of data.
Background technology
Along with continuous advancement in technology; May transmit a large amount of private datas between transmitting terminal and the receiving terminal, in the prior art, in the process of transmission private data; Need between transmitting terminal and receiving terminal, set up transparent channel, and through transparent channel transmission private data.Wherein, a passage promptly between transmitting terminal and receiving terminal, setting up of this transparent channel through IP network.
But, in setting up the process of transparent channel, require initiatively to set up between transmitting terminal and the receiving terminal IP tunnel.If the data of transmitting terminal need send to a plurality of receiving terminals, then need set up many IP tunnels, for transmitting terminal brings not reduced-maintenance workload.
Summary of the invention
The present invention provides a kind of transmission method, equipment and system of data, with when reducing the passage maintenance workload, private data is transferred to receiving terminal.
In order to achieve the above object, the present invention proposes a kind of transmission method of data, be applied to comprise in the system of transmitting terminal and receiving terminal, said method comprising the steps of:
The private data that said transmitting terminal will transmit is carried in the TS stream;
The said TS stream that said transmitting terminal will carry said private data sends to said receiving terminal;
Wherein, The structure of said private data comprises type part and position part; Said type is partly represented the type of said private data; Said position part is represented the positional information of private data, is used to identify said private data and only uses adaptation_feld transmission or be used to identify said private data that to use a plurality of adaptation_field transmission and current adaptation_field be first field or be used to identify said private data and use a plurality of adaptation_field transmission and current adaptation_field for middle field or be used to identify said private data and use a plurality of adaptation_field transmission and current field to be tail field.
The private data that said transmitting terminal will transmit is carried in the TS stream, specifically comprises:
Said transmitting terminal judges whether said private data is split according to the information of said private data and the information of TS stream; When judged result when being, said transmitting terminal splits said private data according to the information of said TS stream, and the private data after will splitting is carried on during said TS flows; When judged result for not the time, said transmitting terminal is carried on said private data in the said TS stream.
The private data that said transmitting terminal will transmit is carried in the TS stream, specifically comprises:
Said transmitting terminal judges whether the private data of at least two types is carried in the said TS stream according to the information of the private data of at least two types and the information of TS stream; When judged result when being, said transmitting terminal is carried on the private data of said two types in the said TS stream at least.
The information of said private data comprises the size of said private data, and the information of said TS stream comprises the size of the private data that Adaption field part can be carried in the said TS stream.
Said transmitting terminal splits said private data according to the information of said TS stream, and the private data after will splitting is carried on during said TS flows, and specifically comprises:
Said transmitting terminal splits said private data according to the size of the private data that Adaption field part can be carried, and the private data after will splitting is carried on Adaption field part;
Said transmitting terminal is carried on said private data in the said TS stream, and specifically comprise: said transmitting terminal is carried on Adaption field part with said private data.
Said transmitting terminal sends to said receiving terminal with said TS stream, also comprises afterwards:
Said receiving terminal receives said TS stream, and during the private data in self can discerning said TS stream, from said TS stream, obtains said private data.
A kind of transmitting terminal is applied to comprise in the system of transmitting terminal and receiving terminal, comprising:
Processing module is used for the private data of needs transmission is carried on TS stream;
Sending module is connected with said processing module, is used for the said TS stream that has carried said private data is sent to said receiving terminal;
Wherein, The structure of said private data comprises type part and position part; Said type is partly represented the type of said private data; Said position part is represented the positional information of private data, is used to identify said private data and only uses adaptation_field transmission or be used to identify said private data that to use a plurality of adaptation_field transmission and current adaptation_field be first field or be used to identify said private data and use a plurality of adaptation_field transmission and current adaptation_field for middle field or be used to identify said private data and use a plurality of adaptation_field transmission and current field to be tail field.
Said processing module comprises:
Judge submodule, be used for judging whether said private data is split according to the information of said private data and the information of TS stream;
Processing sub is connected with said judgement submodule, be used for when judged result when being, split said private data according to the information of said TS stream, and the private data after will splitting is carried on during said TS flows; When judged result for not the time, said private data is carried in the said TS stream.
Said judgement submodule also is used for, and the size of the private data that can carry according to the size and the said TS stream of the private data of at least two types judges whether the private data of at least two types is carried in the said TS stream;
Said processing sub also is used for, when judged result when being, the private data of said at least two types is carried in the said TS stream.
The information of said private data comprises the size of said private data, and the information of said TS stream comprises the size of the private data that Adaption field part can be carried in the said TS stream.
Said processing sub specifically is used for, and the size of the private data that can carry according to Adaption field part splits said private data, and the private data after will splitting is carried on Adaption field part;
Perhaps, said private data is carried on Adaption field part.
A kind of transmission system of data comprises transmitting terminal and receiving terminal, wherein:
Said transmitting terminal is used for the private data of needs transmission is carried on TS stream; And the said TS stream that will carry said private data sends to said receiving terminal;
Said receiving terminal is used to receive said TS stream, and during the private data in self can discerning said TS stream, from said TS stream, obtains said private data;
Wherein, The structure of said private data comprises type part and position part; Said type is partly represented the type of said private data; Said position part is represented the positional information of private data, is used to identify said private data and only uses adaptation_field transmission or be used to identify said private data that to use a plurality of adaptation_field transmission and current adaptation_field be first field or be used to identify said private data and use a plurality of adaptation_field transmission and current adaptation_field for middle field or be used to identify said private data and use a plurality of adaptation_field transmission and current field to be tail field.
Compared with prior art, the present invention has the following advantages:
Through using TS stream to carry private data; TS is spread when being passed to receiving terminal, can private data also be transferred to receiving terminal, thereby use existing TS circulation road transmission private data; Need between receiving terminal and transmitting terminal, not set up extra data channel, reduce the maintenance workload of passage.And when the data flow of private data is very big, can split private data, carry the very big private data of data flow thereby flow through a plurality of TS, accomplish the process that private data is transferred to receiving terminal.When the data flow of private data is very little, and when having the private data of a plurality of types to transmit, can the private data of a plurality of types be carried in the TS stream, thus can be through once carrying the private data of a plurality of types of transmission.
Description of drawings
Fig. 1 is a TS fluid layer hierarchical structure chart;
Fig. 2 is TS stream, PS stream forming process sketch map;
Fig. 3 is the structural representation of Program Specific Information (PSI);
Fig. 4 is the transmission method flow chart of a kind of data of the present invention's proposition;
The structural representation that Fig. 5 forms for TS stream;
Fig. 6 is the structural representation of TS stream head;
Fig. 7 is the transmission method flow chart of the following a kind of data that proposed of application scenarios of the present invention;
Fig. 8 is the transmission method flow chart of the following another kind of data that proposed of application scenarios of the present invention;
A kind of private data structure chart that Fig. 9 is proposed down for application scenarios of the present invention;
Figure 10 is the structure chart of a kind of transmitting terminal of the present invention's proposition.
Embodiment
(1) TS flow structure level
TS stream (Transport Stream transmits stream) can be divided into Program data flow (program stream) and two kinds of packetization types of PSI (Program Specific Information, program description) information flow, TS fluid layer hierarchical structure chart as shown in Figure 1.
Program stream comprises voice data, video data and other data, and this voice data and video data all are to have (this TS bag will describe) according to the form that TS wraps in subsequent process.In addition, one or more program of TS stream permission is combined with each other and transmits, and corresponding compound then needs extra information instruct completion with disassembling, and these extra information have just constituted the PSI information flow.Wherein, this PSI information flow is used to refer to sign and the management information that the leading note video data is compound and split, and mainly comprises program-related information, the map information of TS stream and program, network description information and qualification visit information etc.
(2) TS bag
Program stream can be divided into three types of voice data, video data and other data according to the data purposes, generally is used to transmit audio, video data.Wherein, Program stream is made up of TS bag (TS Packet), and it is divided into PES (Packetized Elementary Stream, PES Packet Elementary Stream) and ES (ElementaryStream down again; Elementary stream) double-layer structure below is explained the packing manner of TS bag through forming process.
Video data and the voice data data flow after overcompression is called ES stream, and this ES stream is commonly defined as the packed data stream of audio coder, video encoder output, and this ES stream is the original divided data flow that do not have.
Further, ES stream is then formed PES stream according to the PES packing manner, this PES stream is that ES flow point continuously is slit into a section and is packaged into data flow.This PES stream is made up of corresponding header (Header) information and load (Payload) data.
Because the length of cutting apart of data is not done regulation in agreement, then the PES bag is non-fixed length, and audio frequency PES bag generally is no more than the 64K byte, and video data generally is to be divided into video PES bag by a frame.In addition, load only transmits one road ES flow data, and different ES stream need transmit through different PES bags.Therefore, even same program stream, the ES of Voice & Video also is packaged into different PES bags, and TS stream, PS as shown in Figure 2 flow forming process.
If the program stream of a plurality of passages is arranged, the PES data after the packing will can multiplexingly become TS stream or PS stream according to different modes.In compound process, need to insert other relevant informations.For example, for realizing the synchronous of audio/video decoding, also need insert relevant time marking information and carry out synchronously.
In addition, PSI stream is used for discerning the data in the TS stream packets, according to the information in the PSI stream; The TS stream that separates compound multichannel program data; To cut apart the packs of data reconstructions in back and become program data, subsequent sound, video decode will be provided, the structure of Program Specific Information as shown in Figure 3 (PSI).Wherein, PSI stream comprises the information that is used to transmit program information going along with and explains relevant TS ad hoc structure.This PSI stream is used for explanation: 1 program what ES is made up of; 1 program which ES is made up of; And these information are for the TS of separation multiplexing stream with rebuild ES, and information all is absolutely necessary.
Concrete, according to information classification, PSI possibly be made up of following 6 kinds of tables: (1) PAT (ProgramAssociation Table, Program Association Table); (2) PMT (Program Map Table, Program Map Table); (3) NIT (Network Information Table, network information table); (4) CAT (Conditional AccessTable limits access list); (5) TSDT (Transport Stream Description Table, MPTS description list); (6) IPMP Control Information Table (IPMP control information table).
Further, pat table is indicated with the PID of MPEG (Moving Pictures Experts Group, dynamic image expert group) appointment (Packet IDdentifier, PID Packet Identifier, for example, 00), is represented with PID=0 usually.The main effect of this pat table is to each multiplexing channel transfer stream; The position of the Program Map Table (PMT) of the numbering that comprises which program, program in the MPTS and corresponding program is provided; It is the value of PID Packet Identifier (PID) of the TS bag of PMT; The position of network information table (NIT) also is provided simultaneously, i.e. the value of the PID Packet Identifier (PID) of the TS of NIT bag.
Pmt table indicates the content that this program comprises; Promptly this program is formed the type of these streams (audio frequency, video data), and the position of forming the stream of this program by which stream; The pid value of promptly corresponding TS bag, the position of program clock reference (PCR) field of every road program.The NIT table provides about many groups MPTS information relevant with transmission network, wherein comprises information such as MPTS descriptor, channel frequence, satellite launch vehicle number, modulating characteristic.
The CAT table is indicated with the PID (01) of MPEG appointment; Usually represent with PID=1 that this CAT table provides in multiplex stream condition receiving system to specify CA system and their corresponding Entitlement Management Messages (EMM) for information about) between contact; Specify the PID of EMM, and relevant parameter.TSDT table is that 2 TS bag transmits by PID, and some major parameters of MPTS are provided.In addition, also defined the exclusive data that a kind of private section is used to transmit user oneself definition among the MPEG-2.
And except above-mentioned statement; MPEG-2 has also defined many descriptors; These descriptors provide about many-sided information such as video flowing, audio stream, language, level, system clock, code checks, in the table of PSI, can adopt these descriptors further for receiving terminal more information to be provided flexibly.
Based on above-mentioned knowledge, among the present invention, carry private data through using TS stream, TS is spread when being passed to receiving terminal, can private data also be transferred to receiving terminal, thereby use existing TS circulation road transmission private data, reduced the maintenance workload of passage.
When the data flow of private data is very big, can split private data, carry the very big private data of data flow thereby flow through a plurality of TS, accomplish the process that private data is transferred to receiving terminal.
When the data flow of private data is very little, and when having the private data of a plurality of types to transmit, can the private data of a plurality of types be carried in the TS stream, thus can be through once carrying the private data of a plurality of types of transmission.
Based on above-mentioned thought, a kind of transmission method of data is provided among the present invention, be applied to comprise that in the system of transmitting terminal and receiving terminal, as shown in Figure 4, this method may further comprise the steps:
Step 401, said transmitting terminal are obtained the private data that needs transmission.
Step 402, said transmitting terminal is carried on the said private data of transmission that needs in the TS stream.
The said TS stream that step 403, said transmitting terminal will have been carried said private data sends to said receiving terminal.
It is understandable that among the present invention, when the data traffic of private data is very big, in the time of can't in TS stream, carrying, then this transmitting terminal need split this private data, and the private data after will splitting is carried on during TS flows; Carry the very big private data of data traffic thereby can flow, accomplish the process that private data is transferred to receiving terminal through a plurality of TS.
When the data traffic of private data is very little, and when having the private data of a plurality of types to transmit through TS stream, this transmitting terminal need be carried on the private data of a plurality of types in the TS stream; Thereby can flow the private data that carries a plurality of types through a TS, the private data of accomplishing a plurality of types is transferred to the process of receiving terminal.
In order more clearly to set forth technical scheme provided by the invention, describe the present invention below in conjunction with a kind of concrete application scenarios.Should be with under the scene, the structural representation that TS stream is formed in Fig. 5, comprises TS stream head and TS stream Payload shown in Fig. 5, the structural representation of this TS stream head is as shown in Figure 6.Wherein, in the structure of TS stream head, each field that is not limited among Fig. 6 to be shown also comprises other part in the practical application, should be with giving unnecessary details no longer in detail under the scene.
Should need transmit private data through using TS to flow, wherein with under the scene; This private data is transmitting terminal and the self-defining data of receiving terminal, can be provided with arbitrarily according to actual needs, for example; This private data can be semaphore, control signal etc., should be with giving unnecessary details no longer in detail under the scene.
In order to realize that private data is carried in the TS stream, need change existing P MT table and pat table, wherein, and the number of programs in the PAT explanation TS stream, PMT explains the medium type in some TS stream programs.For example, when carrying private data in the TS stream, then need private data be recorded as the number of programs in the TS stream, and explain that through PMT the medium type of related content (being private data) is a private data.
Concrete; In order in TS, to transmit private data, should be with under the scene, need newly-increased stream type: this stream type is used to represent that related content is a private data; For example; Can use first sign to represent that related content is private data, describe for ease, should can be defined as 0xA0 Private Data with this first sign under the scene.In addition; Should can be set to second sign (describe for ease, should can be 0x90) by elementary_PID with under the scene with this second sign under the scene; When elementary_PID is 0x90; Be illustrated among the adaptation_field (adaptation field) and only contain privatedata (private data), and do not contain payload data (load data, for example video data etc.).
Based on the 0xA0 Private Data and the 0x90 of above-mentioned setting, it is as shown in table 1 that existing P rogram Map Section is revised explanation of field.
Table 1
stream_type(8b) | 0x02 MPEG2 video 0x10 MPEG4 video 0x1B H264 video 0x90 MJPEG video |
[0075]
0x80 G711u note is 0xA0 Private Data frequently | |
Elementary_PID (13b) | 0 0,000 0,100 1001 (0x45) MPEG2 video 0x44 MPEG2 program corresponding audio 0x100 MPEG4 video 0x101 MPEG4 program corresponding audio 0x65 H264 video 0x64 H264 program corresponding audio 0x85 MJPEG video 0x84 MJPEG program corresponding audio 0x87 speech talkback PC end audio frequency 0x90 only contains private data at adaptation_field, does not contain payload data |
Should through above-mentioned setting, promptly can in TS stream, carry private data with under the scene; And when in using TS stream, carrying private data; The mode of in TS stream, carrying private data comprises two kinds of situation, when Media Stream is carried in (1) in TS stream, in TS stream, carries private data; When (2) in TS stream, not carrying Media Stream, in TS stream, carry private data.
First kind of situation; Promptly comprise Media Stream in the TS stream, also comprise private data, at this moment; Need the Adaptation_field_control field be set to 11; The transport_private_data_flag field is set to 1, is right after after the transport_private_data_length field transmission private data; Certainly, in practical application, also can relevant field (for example, Adaptation_field_control field, transport_private_data_flag field etc.) be set to other numerical value, should be with giving unnecessary details no longer in detail under the scene.
Second kind of situation; Only comprise private data in the TS stream, at this moment, need be set to 0x90 by PID; And the Adaptation_field_control field is set to 10; The transport_private_data_flag field is set to 1, is right after after the transport_private_data_length transmission private data.Certainly, in practical application, also can relevant field (for example, Adaptation_field_control field, transport_private_data_flag field etc.) be set to other numerical value, should be with giving unnecessary details no longer in detail under the scene.
Based on above-mentioned situation, as shown in Figure 7, in the transmission method to the data under the very big situation of data traffic of private data provided by the invention, be applied to comprise the system of transmitting terminal and receiving terminal, this method further may further comprise the steps:
Wherein, The information of this private data comprises the size of private data; The information of this TS stream comprises the size of the private data that this TS stream can carry; For example, when needs partly carried private data through using Adaptionfield in the TS stream, then the information of this TS stream was the size of the Adaption field part private data that can carry; When needs carry private datas through using other parts in the TS stream, the size of the information of this TS stream private data that can carry for other parts then.Describe for ease, should be with under the scene, to describe as example through using Adaption field partly to carry private data.
In this step; Transmitting terminal judges whether according to the information of the information of private data and TS stream that needs split private data and is specially: the size of the private data whether size that transmitting terminal is judged private data partly can carry greater than Adaption field; When judged result when being; Then transmitting terminal is confirmed and need be split private data, otherwise transmitting terminal is confirmed need not split private data.
Concrete, for TS stream, can data carried by data be certain; Be that Media Stream and the private data that TS stream can carry confirmed, for example, TS stream can carry 2X, and (this 2X representes the size of data; For example, when X represented the 50K data, then 2X represented the 100K data; In practical application, X representes that the size of data can select according to actual conditions) data the time, to above-mentioned in TS stream, carry Media Stream in; In TS stream, carry the situation of private data, in TS stream, carry the Media Stream of X if desired, then the size of the Adaption field part private data that can carry is X; To above-mentioned in TS stream, do not carry Media Stream in; The situation of in TS stream, carrying private data; Then the size of the Adaption field part private data that can carry is 2X, should use under the scene to describe as example in TS stream, only to carry private data.Based on above-mentioned situation, if when needing the size of the private data of transmission to be 12X, then transmitting terminal is confirmed and need be split private data.
The size of the private data that step 703, transmitting terminal can be carried according to Adaption field part and the size of private data split the private data of this needs transmission, and the private data after will splitting is carried on Adaption field part.
For example; Needing the size of the private data of transmission is 12X, and when the size of the private data that Adaption field part can be carried was 2X, the private data that then needs to transmit split; Can find out; At this moment, need private data be split repeatedly, and the private data after will splitting is carried on the Adaption field part of a plurality of TS streams; In order to guarantee with correct being transferred in the receiving terminal of private data; When the private data after splitting need be carried on a plurality of Adaption field part; This transmitting terminal also need be provided with counter for the private data after splitting; And at every turn to receiving terminal transmission TS stream the time, the private data that is carried on Adaption field part is counted through counter.
For example; For the first time when receiving terminal sends TS stream; Need the preceding 2X private data in the private data of 12X be split out, and the private data of preceding 2X is carried on the Adaption field part that TS flows, at this moment; Need usage counter that the private data that is carried on Adaption field part is counted, write down the private data of 2X in this counter; For the second time when receiving terminal sends TS stream; Owing to write down the private data of 2X in the counter, then need begin from the private data of 2X to split this moment, ensuing 2X private data is split out; The private data that just splits the 2X that comes out is carried on the Adaption field part of TS stream; At this moment, continue usage counter the private data that is carried on the Adaptionfield part is counted, write down the private data of 4X in this counter; By that analogy, until the Adaption field that the private data of 12X all is carried on TS stream partly is transferred to receiving terminal.Afterwards, with counter O reset, and the private data that continues as other is counted.
Concrete, in practical application, when transmitting terminal need send to a receiving terminal with private data, the mode that then this transmitting terminal can be through clean culture will send to this receiving terminal through the TS stream that Adaption field has partly carried private data; Certainly, in the practical application, this transmitting terminal also can will send to this receiving terminal through the TS stream that Adapfion field has partly carried private data through multicast or multicast mode.When transmitting terminal need send to a plurality of receiving terminal with private data, then this transmitting terminal need will send to this a plurality of receiving terminals through the TS stream that Adaption field has partly carried private data through multicast or multicast mode.
Concrete; When the private data that will transmit through a plurality of TS stream when transmitting terminal is transferred to receiving terminal; This transmitting terminal also need be notified private data to receiving terminal by the information of segment transmissions, and at this moment, this receiving terminal can be according to this private data by the information of segment transmissions; Confirm to need to receive a plurality of TS streams; And partly obtain corresponding private data from the Adaption field of a plurality of TS stream respectively, and will be stitched together from the private data that a plurality of Adaption field partly obtain, the private data that this need transmit formed.
As shown in Figure 8, the private data to a plurality of types provided by the invention uses in the transmission method of the data under the situation of same TS stream, is applied to comprise the system of transmitting terminal and receiving terminal, and this method further may further comprise the steps:
It is understandable that, when the size of the private data of at least two types when being not more than Adaptionfield and partly carrying private data big or small, need then to confirm will at least two types private data be carried on during said TS flows.For example; The size of the private data that Adaption field part can be carried is 2X; If the size of the private data of the type A (semaphore) that need transmit is X; The size of the private data of the type B (control signal) that need transmit is 0.5X, then need the private data of type A and the private data of type B be carried in the TS stream.
To the example in the above-mentioned steps 802, for transmitting terminal is carried on the private data of type A and the private data of type B in the same TS stream.
For example; The size of the private data that Adaption field part can be carried is 2X; If the size of the private data of the type A (semaphore) that need transmit is 1.5X; The size of the private data of the type B (control signal) that need transmit is 1.5X, and then transmitting terminal need be carried on private data respectively the Adaption field part of different TS streams.
Concrete; When transmitting terminal is transferred to receiving terminal through TS stream with the private data of a plurality of types; This transmitting terminal also need be notified the type information of private data to receiving terminal, and at this moment, this receiving terminal can be according to the type of this private data; Confirm to have transmitted in the TS stream private data of a plurality of types, and partly obtain the private data of each type from the Adaption field of a TS stream.
In order further to set forth technical scheme provided by the invention, below in conjunction with private data structure chart shown in Figure 9 the present invention is further specified, wherein, as shown in table 2 to the explanation of field of private data.
Table 2
Field | Explanation |
PID(13b) | 0 0,000 0,100 1001 (0x45) MPEG2 video 0x44 MPEG2 program corresponding audio 0x100 MPEG4 video 0x101 MPEG4 program corresponding audio 0x65 H264 video 0x64 H264 program corresponding audio 0x85 MJPEG video 0x84 MJPEG program corresponding audio 0x87 speech talkback PC end audio frequency 0x90 only contains private data at adaptation_field, does not contain payload data |
transport_private_dataflag(1b) | 1 |
transport?private?data?length (8b) | Privately owned field length.The number of first byte representation structure A_PRIVATE_DATA_HEADER_S, arrange followed by the A_PRIVATE_DATA_HEADER_S structure back |
Content shown in the associative list 2, in Fig. 9, the number (number of this structure is N among Fig. 9) of first byte representation structure PRIVATE_DATA_HEADER_S of private data, arrange followed by the PRIVATE_DATA_HEADER_S structure back.
For each structure, comprise 3 parts in the structure of private data at least, be respectively counter portion, byte number and privately owned field part; Wherein, this counter portion is used to represent how many private datas are one transmitted, and this byte number is partly represented the byte of the private data of current transmission, and this privately owned field is partly represented the particular content of the private data of current transmission.For example, to the example in the step 702, for the second time when receiving terminal sends TS stream; Then counter portion will show byte number 4X; The private data of 4X byte has been transmitted in i.e. expression, and this byte number part will show 2X byte, promptly this time transmit 2X byte.
Further, in the structure of private data, can also comprise type part and position (mark) part; The type is partly represented the type of this private data; For example, can be semaphore, be control signal through using 0 expression private data through using 1 expression private data; The positional information of this position part sign private data.
It should be noted that when private data is split the back transmission, can know this fractionation situation, also need carry the information that private data is split in the structure of this private data in order to guarantee receiving terminal.
Based on above-mentioned situation, the structure of this private data can be defined as following situation:
typedef?struct?A_PrivateData
{
/ * type is supported type in 64,0:xxx altogether; 1:xxx; */
unsigned?char?type:6;
/ * mark.0: privately owned field is only used an adaptation_field transmission; 1: privately owned field is used a plurality of adaptation_field transmission; And current adaptation_field is first field, and 2: privately owned field is used a plurality of adaptation_field transmission, and is middle field; 3: privately owned field is used a plurality of adaptation_field transmission, and is tail field.*/
unsigned?char?flag:2;
Unsigned char count; One group of private data counter of/* */
Unsigned char size; / * byte number, the actual privately owned byte number * that transmits/
Unsigned char array [size]; The privately owned field * of/*/
}A_PRIVATE_DATA_S;
It is understandable that the structure of above-mentioned private data is a kind of sample situation, in practical application, the structure of this private data can also be adjusted, and for example, the structure of private data does not comprise above-mentioned type.
Inventive concept based on same with said method the invention allows for a kind of transmitting terminal, is applied to comprise that in the system of transmitting terminal and receiving terminal, shown in figure 10, this transmitting terminal further comprises:
Processing module 11 is used for the private data of needs transmission is carried on TS stream.
Among the present invention, said processing module 11 comprises:
The information of said private data comprises the size of said private data; The information of said TS stream comprises the size of the private data that said TS stream can carry; Said judgement submodule 111 is further used for, the size of the private data whether size of judging said private data can carry greater than said TS stream; When judged result when being, confirm and need split said private data, when judged result for not the time, confirm need not split to said private data.
The size of the private data that said TS stream can carry comprises: the size of the private data that Adaption field part can be carried in the said TS stream; Said processing sub 112 specifically is used for, and the size of the private data that can carry according to Adaption field part splits said private data, and the private data after will splitting is carried on Adaption field part; Perhaps, said private data is carried on Adaption field part.
Among the present invention, said judgement submodule 111 also is used for, and the size of the private data that can carry according to the size and the said TS stream of the private data of at least two types judges whether the private data of at least two types is carried in the said TS stream.
Said processing sub 112 also is used for, when judged result when being, the private data of said at least two types is carried in the said TS stream.
Sending module 12 is connected with said processing module 11, is used for the said TS stream that has carried said private data is sent to said receiving terminal.
Wherein, each module of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
A kind of transmission system of data comprises transmitting terminal and receiving terminal, wherein:
Said transmitting terminal is used for the private data of needs transmission is carried on TS stream; And the said TS stream that will carry said private data sends to said receiving terminal;
Said receiving terminal is used to receive said TS stream, and during the private data in self can discerning said TS stream, from said TS stream, obtains said private data.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the sketch map of a preferred embodiment, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosedly be merely several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.
Claims (10)
1. the transmission method of data is applied to comprise in the system of transmitting terminal and receiving terminal, it is characterized in that, said method comprising the steps of:
The private data that said transmitting terminal will transmit is carried in the TS stream;
The said TS stream that said transmitting terminal will carry said private data sends to said receiving terminal;
Wherein, The structure of said private data comprises type part and position part; Said type is partly represented the type of said private data; Said position part is represented the positional information of private data, is used to identify said private data and only uses adaptation_field transmission or be used to identify said private data that to use a plurality of adaptation_field transmission and current adaptation_field be first field or be used to identify said private data and use a plurality of adaptation_field transmission and current adaptation_field for middle field or be used to identify said private data and use a plurality of adaptation_field transmission and current field to be tail field;
The private data that said transmitting terminal will transmit is carried in the TS stream, specifically comprises:
Said transmitting terminal judges whether the private data of at least two types is carried in the said TS stream according to the information of the private data of at least two types and the information of TS stream; When judged result when being, said transmitting terminal is carried on the private data of said two types in the said TS stream at least.
2. the method for claim 1 is characterized in that, the private data that said transmitting terminal will transmit is carried in the TS stream, specifically comprises:
Said transmitting terminal judges whether said private data is split according to the information of said private data and the information of TS stream; When judged result when being, said transmitting terminal splits said private data according to the information of said TS stream, and the private data after will splitting is carried on during said TS flows; When judged result for not the time, said transmitting terminal is carried on said private data in the said TS stream.
3. method as claimed in claim 2 is characterized in that, the information of said private data comprises the size of said private data, and the information of said TS stream comprises the size of the private data that Adaption field part can be carried in the said TS stream.
4. method as claimed in claim 3 is characterized in that, said transmitting terminal splits said private data according to the information of said TS stream, and the private data after will splitting is carried on during said TS flows, and specifically comprises:
Said transmitting terminal splits said private data according to the size of the private data that Adaption field part can be carried, and the private data after will splitting is carried on Adaption feld part;
Said transmitting terminal is carried on said private data in the said TS stream, and specifically comprise: said transmitting terminal is carried on Adaption field part with said private data.
5. according to claim 1 or claim 2 method is characterized in that, said transmitting terminal sends to said receiving terminal with said TS stream, also comprises afterwards:
Said receiving terminal receives said TS stream, and during the private data in self can discerning said TS stream, from said TS stream, obtains said private data.
6. a transmitting terminal is applied to comprise in the system of transmitting terminal and receiving terminal, it is characterized in that, comprising:
Processing module is used for the private data of needs transmission is carried on TS stream;
Sending module is connected with said processing module, is used for the said TS stream that has carried said private data is sent to said receiving terminal;
Wherein, The structure of said private data comprises type part and position part; Said type is partly represented the type of said private data; Said position part is represented the positional information of private data, is used to identify said private data and only uses adaptation_field transmission or be used to identify said private data that to use a plurality of adaptation_field transmission and current adaptation_field be first field or be used to identify said private data and use a plurality of adaptation_field transmission and current adaptation_field for middle field or be used to identify said private data and use a plurality of adaptation_field transmission and current field to be tail field;
Said processing module comprises judges submodule and processing sub;
Said judgement submodule, the size that is used for the private data that size and said TS stream according to the private data of at least two types can carry judges whether the private data of at least two types is carried on said TS stream;
Said processing sub is connected with said judgement submodule, be used for when judged result when being, the private data of said at least two types is carried in the said TS stream.
7. transmitting terminal as claimed in claim 6 is characterized in that,
Said judgement submodule also is used for judging whether said private data is split according to the information of said private data and the information of TS stream;
Said processing sub, also be used for when judged result when being, split said private data according to the information of said TS stream, and the private data after will splitting is carried on during said TS flows; When judged result for not the time, said private data is carried in the said TS stream.
8. transmitting terminal as claimed in claim 7 is characterized in that, the information of said private data comprises the size of said private data, and the information of said TS stream comprises the size of the private data that Adaption field part can be carried in the said TS stream.
9. transmitting terminal as claimed in claim 8 is characterized in that,
Said processing sub specifically is used for, and the size of the private data that can carry according to Adaption field part splits said private data, and the private data after will splitting is carried on Adaption field part;
Perhaps, said private data is carried on Adaption field part.
10. the transmission system of data is characterized in that, comprises transmitting terminal and receiving terminal, wherein:
Said transmitting terminal is used for the private data of needs transmission is carried on TS stream; And the said TS stream that will carry said private data sends to said receiving terminal; And the size of the private data that can carry according to the size and the said TS stream of the private data of at least two types judges whether the private data of at least two types is carried in the said TS stream; When judged result when being, the private data of said at least two types is carried in the said TS stream;
Said receiving terminal is used to receive said TS stream, and during the private data in self can discerning said TS stream, from said TS stream, obtains said private data;
Wherein, The structure of said private data comprises type part and position part; Said type is partly represented the type of said private data; Said position part is represented the positional information of private data, is used to identify said private data and only uses adaptation_field transmission or be used to identify said private data that to use a plurality of adaptation_field transmission and current adaptation_field be first field or be used to identify said private data and use a plurality of adaptation_field transmission and current adaptation_field for middle field or be used to identify said private data and use a plurality of adaptation_field transmission and current field to be tail field.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101790860A CN101867803B (en) | 2010-05-21 | 2010-05-21 | Data transmission method, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101790860A CN101867803B (en) | 2010-05-21 | 2010-05-21 | Data transmission method, equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101867803A CN101867803A (en) | 2010-10-20 |
CN101867803B true CN101867803B (en) | 2012-11-28 |
Family
ID=42959329
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010101790860A Active CN101867803B (en) | 2010-05-21 | 2010-05-21 | Data transmission method, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101867803B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075807A (en) * | 2011-01-06 | 2011-05-25 | 深圳创维数字技术股份有限公司 | Digital television program searching method, and digital television receiving terminal and transmission system |
CN106303580A (en) * | 2015-07-08 | 2017-01-04 | 中国科学院上海高等研究院 | A kind of TS streaming method and system |
CN105357495B (en) * | 2015-12-08 | 2019-04-12 | 浙江宇视科技有限公司 | The method and device of front and back end cooperation intellectual analysis |
CN105744380B (en) * | 2016-02-25 | 2018-11-30 | 深圳创维数字技术有限公司 | A kind of media data flow playback method and system based on android system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100759002B1 (en) * | 2005-10-21 | 2007-09-17 | 삼성전자주식회사 | System for processing and transmitting digital broadcasting signal and method thereof |
US9544638B2 (en) * | 2006-04-17 | 2017-01-10 | Broadcom Corporation | Method for reconstructing system time clock (STC) without carrying PCR |
CN101212647B (en) * | 2007-07-18 | 2010-06-09 | 中国科学技术大学 | Two-way HFC network based stream media service implementation method and device |
CN100533380C (en) * | 2007-11-30 | 2009-08-26 | 上海广电(集团)有限公司中央研究院 | Upgrade system and upgrade method based on DSP |
CN101426119A (en) * | 2008-12-05 | 2009-05-06 | 天津三星电子显示器有限公司 | Implementing method and system for email receiving function of digital television |
-
2010
- 2010-05-21 CN CN2010101790860A patent/CN101867803B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN101867803A (en) | 2010-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101068367B (en) | Method and apparatus for changing codec | |
KR101303480B1 (en) | Method and apparatus for decoding an enhanced video stream | |
US10484734B2 (en) | Transmitting method, receiving method, transmitting apparatus, and receiving apparatus | |
US20040098398A1 (en) | Method and apparatus for delivery of metadata synchronized to multimedia contents | |
US11770582B2 (en) | Frame conversion for adaptive streaming alignment | |
US7933411B2 (en) | Method of constructing MPEG program streams from encrypted MPEG transport streams | |
CN101867803B (en) | Data transmission method, equipment and system | |
JP7176598B2 (en) | Sending method | |
CN1653800A (en) | Digital video broadcasting receiver | |
US11170792B2 (en) | Transmitting device, transmitting method, receiving device, and receiving method | |
KR20130034026A (en) | Digital multi-media broadcast (dmb) having efficient data transmission for limiting access in a transport stream packet comprising the program association table (pat) | |
JP2017508375A (en) | Embed encoded audio in transport streams for perfect splicing | |
EP3913625B1 (en) | Transmitting apparatus, transmitting method, receiving apparatus, and receiving method | |
US20070143386A1 (en) | Method and system for reconfigurable pattern filtering engine | |
CN106031186B (en) | Receiving apparatus, receiving method, transmitting apparatus and transmitting method | |
CN107210041B (en) | Transmission device, transmission method, reception device, and reception method | |
JP2005530376A (en) | Dynamic multiplexing method of digital stream | |
JP2005347787A (en) | Information recorder and recording method | |
US7388871B2 (en) | Method and system for changing message filter coefficients dynamically | |
JP2004040576A (en) | Data distributing apparatus and method | |
US20070237143A1 (en) | System and method for demultiplexing different stream types in a programmable transport demultiplexer | |
JP2004112316A (en) | Digital broadcast signal transmission processing apparatus | |
WO2020040085A1 (en) | Video transmission device and video transmission method | |
KR20030085196A (en) | Apparatus for protecting digital broadcasting program component by sections using an mpeg-4 system and a method thereof | |
US20090041127A1 (en) | Flexible length decoder |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: Huasan Communication Technology Co., Ltd. |