CN103108214A - Method for identifying test set (TS) packet with information in empty packet replacing process - Google Patents

Method for identifying test set (TS) packet with information in empty packet replacing process Download PDF

Info

Publication number
CN103108214A
CN103108214A CN2013100353210A CN201310035321A CN103108214A CN 103108214 A CN103108214 A CN 103108214A CN 2013100353210 A CN2013100353210 A CN 2013100353210A CN 201310035321 A CN201310035321 A CN 201310035321A CN 103108214 A CN103108214 A CN 103108214A
Authority
CN
China
Prior art keywords
bag
field
pid
packet header
bytes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013100353210A
Other languages
Chinese (zh)
Other versions
CN103108214B (en
Inventor
刘和
陈森
Original Assignee
辛欣
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 辛欣 filed Critical 辛欣
Priority to CN201310035321.0A priority Critical patent/CN103108214B/en
Publication of CN103108214A publication Critical patent/CN103108214A/en
Application granted granted Critical
Publication of CN103108214B publication Critical patent/CN103108214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention relates to a method for identifying test set (TS) packet with information in an empty packet replacing process. The method for identifying TS packet with information in the empty packet replacing process comprises the following steps: utilizing non-empty packet picture input device (PID) or empty packet PID to identify a TS packet with information after replacing the TS packet by the TS packet with information; regarding a packet head of the TS packet with information as a first packet head of the TS packet with information, and choosing a relative byte in effective load of the identified TS packet with information as a second packet head of the TS packet with information, or adding an adaptive filed to the TS packet with information, wherein the second packet head and the adaptive filed both comprise at least a PID field; utilizing PID in the second packet head and PID in the adaptive filed to identify an effective load content of the TS packet with information, and defining the identified TS packet with information as a nested packet TS packet; loading information data to the nested packet TS packet at information sending front end, and extracting, analyzing and processing the effective load content of the nested packet TS packet at an information receiving terminal. By introducing a concept and a method of the nested packet, the method for identifying TS packet with information in the empty packet replacing process is favorable for achieving a low-carbon, green and environmental information service.

Description

A kind of method that in sky bag replacement process, the TS of carrying information bag is identified
Technical field
The present invention relates to areas of information technology, particularly relate to a kind of method that in sky bag replacement process, the TS of carrying information bag is identified.
Background technology
TS (Transport Stream, transport stream) stream is the agreement of digital television system transport layer, TS stream is to propagate with packet form, be that it is that subpackage sends, and each Bao Changwei 188 byte, be made of packet header and payload (also referred to as payload), packet header is 4 bytes, and payload is 184 bytes.
For TS bag, national GB/T17975.1-2010 standard code order, the syntax and semantics of each field in TS packet header, they are:
1) sync byte field: be fixed as 0x47, in order to identify the beginning of a TS bag.
2) transport error indicator field: whether make a mistake in transmitting procedure in order to indicate TS stream.
3) payload data unit start indicator: in order to indicate the beginning data that contain PES/PSI in payload.
4) transport priority field: in order to indicate this packet priority whether higher than the bag of identical PID sign in TS stream.
5) PID field: i.e. Packet Identifier field is surrounded by data type in effect load in order to point out to be stored in TS.When pid value was 0x1FFF, the bag that PID identifies was empty bag, and namely TS is surrounded by in effect load does not have valid data; The effect of the empty bag of TS is to fill TS stream, such as inserting when program multiplexing, system multiplexing or code stream are modulated or the empty bag of deletion, reaches the bandwidth of prior regulation to guarantee output bandwidth.
6) transmission scrambling control field: be surrounded by the scrambling mode of effect load in order to point out TS.
7) adapt to the field control field: in order to point out whether follow the adaptation field after this TS flows packet header, 0b01 represents that TS flows packet header and only has payload, 0b10 represent to only have after TS stream packet header adaptation field, 0b11 represent after TS stream packet header with payload before with adapting to field.
8) continuity counter field: in order to the increase of the TS bag of indicating identical PID sign,, then count from zero after maximum when the continuous counter meter.
In technical scheme of the present invention and embodiment, all relevant national standard that relate to can be all the GB/T17975.1-2010 standards.
Information service system and method based on digital television system or IPTV system in prior art fail to utilize well empty bag to carry out communication, have wasted the part resource.Therefore, utilize empty bag to carry out the information service that communication is conducive to realize low-carbon (LC), green, environmental protection.Patent of invention " a kind of information service system and method based on digital television system or IPTV system " (application number is 201210135406.1) has just proposed a kind ofly to utilize empty bag to carry out the method for communication, the present invention is based on this, for sky bag replacement technology, a kind of method that in sky bag replacement process, the TS of carrying information bag is identified is proposed.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method that in sky bag replacement process, the TS of carrying information bag is identified, and is used for optimizing utilizing empty bag to carry out the technology of communication, realizes the information service of low-carbon (LC), green, environmental protection.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of method that in sky bag replacement process, the TS of carrying information bag is identified comprises:
Step 1 after replacing the empty bag of TS with the TS of carrying information bag, adopts the TS bag of non-NULL bag PID or the described carrying information of empty bag PID sign;
Step 2, this TS is wrapped packet header as its first packet header, and choose the second packet header that respective byte is defined as this TS bag from the payload of the TS bag after step 1 sign, or acquire the adaptation field to this TS bag, wherein said the second packet header and described adaptation field all comprise the PID field at least;
Step 3 adopts the PID in the second packet header or adapt to the payload content of the TS bag of the described carrying information of PID sign in field, and the TS package definition after identify is wrapped for the nested TS of bag;
Step 4, hosting Information data in information transmission front end wraps to the nested TS of bag, and at information receiving terminal, the payload content of the nested TS bag of this bag is extracted, resolved and processes.
Wherein, to wrap the TS bag of the carrying information of PID sign by sky in step 1, it adopts in step 2 when acquiring to the TS bag method that adapts to field, needs expansion GB/T17975.1-2010 standard.
In addition, step 1 adopts the TS bag of non-NULL bag PID or the described carrying information of empty bag PID sign, step 3 adopts again the PID in the second packet header or adapts to the payload content of the TS bag of the described carrying information of PID sign in field, therefore technical scheme of the present invention has been carried out sign to the TS bag of same carrying information twice with nested mode, namely adopted and wrapped nested mode and identify, formed the nested TS bag of bag.Here, in the present invention, the nested TS bag of all bag all refers to be nested with the payload content that another one PID and this PID identify in a TS bag.
On the basis of technique scheme, the present invention can also do following improvement.
Further, when adopting the TS bag of empty bag PID sign carrying information in described step 1, can adopt the transport priority field in relevant national standard to wrap the sign of carrying information as this TS, also can not adopt transport priority field as the sign of this TS bag carrying information.
Further, in described step 2, the second packet header of the described TS of definition bag specifically comprises: four bytes of the payload of the TS bag of carrying information, three bytes or two bytes are defined as the second packet header of this TS bag, and with whole payload of remainder as new payload and/or the adaptation field relevant to described the second packet header.
Here, the payload data of TS bag is by the PID sign in the second packet header, and when the byte number in the second packet header during greater than two bytes, each field in the second packet header is decided according to the data cases in relevant national standard and payload; When the byte number in the second packet header is two bytes, PID in the second packet header decides according to the data cases in relevant national standard and payload, the data cases in the payload that each field in the first packet header except the PID field identifies according to PID and this PID in relevant national standard, the second packet header and deciding.This rule is all applicable to the scheme in all definition the second packet header hereinafter.
Further, if four bytes of the payload of the TS of described carrying information bag are defined as the second packet header, by relevant national standard, these four bytes are defined as sync byte field to each field between the continuity counter field, and sync byte field is set to any value except " 0x47 " and " 0xFF ", and the value of the sync byte field that arranges can be as the sign of this TS bag of expression for the nested TS bag of bag.
Further, if three bytes of the payload of the TS of described carrying information bag are defined as the second packet header, by relevant national standard, these three bytes are defined as transport error indicator field to each field between the continuity counter field.
Further, if two bytes of the payload of the TS of described carrying information bag are defined as the second packet header, by relevant national standard, these two bytes are defined as transport error indicator field, payload data unit start indicator, transport priority field and PID field.
Further, acquiring the adaptation field to the TS bag of described carrying information in described step 2 specifically comprises: according to the payload content of relevant national standard and TS bag, acquire the adaptation field to this TS bag, and add in addition again three bytes or two bytes in the adaptation field of acquiring.
Here, the payload data of TS bag is by the PID sign of newly acquiring, and when having added in addition three bytes again in the adaptation field, each field of newly acquiring is decided according to the data cases in relevant national standard and payload; When having added in addition two bytes again in adapting to field, the PID that newly acquires decides according to the data cases in relevant national standard and payload, each field in the first packet header except the PID field according to relevant national standard, adapt to the data cases in the payload that PID in field and this PID identify and decide.This rule is to hereinafter all schemes of adding in addition again three bytes or two bytes in the adaptation field of acquiring are all applicable.
Further, if add in addition again three bytes in the adaptation field of acquiring, by relevant national standard, these three bytes are defined as transport error indicator field to each field between the continuity counter field.
Further, if add in addition again two bytes in the adaptation field of acquiring, by relevant national standard, these two bytes are defined as transport error indicator field, payload data unit start indicator, transport priority field and PID field.
Further, be defined as the scheme in the second packet header for three bytes of the payload of above-mentioned TS bag with described carrying information, with add in addition again the scheme of three bytes in the adaptation field of acquiring, wherein transport error indicator field and the transport priority field of definition occupy to change and are made as the sign that this TS bag of expression wraps for the nested TS of bag.
Further, be defined as the scheme in the second packet header for four bytes of the payload of above-mentioned TS bag with described carrying information or three bytes, with add in addition again the scheme of three bytes in the adaptation field of acquiring, continuity counter field in the first packet header of TS bag is used for the precedence of each TS bag of sign, and the sign of the payload data unit start indicator in the first packet header of TS bag is used and comprised:
When payload data unit start indicator was " 1 ", this TS bag was the nested TS bag of bag;
When payload data unit start indicator was " 0 ", this TS bag was not the nested TS bag of bag, and the payload content of this TS bag occurred by " 0 " before the second packet header of the nested TS bag of the last bag that occurs or the PID that adapts in field identified.
Certainly, also can not adopt in practice continuity counter field and payload data unit start indicator to carry out above-mentioned sign.
Further, be defined as the scheme in the second packet header for two bytes of the payload of above-mentioned TS bag with described carrying information, with add in addition again the scheme of two bytes in the adaptation field of acquiring, wherein transport error indicator field, the payload data unit start indicator of definition occupies to change with transport priority field and is made as the sign that this TS bag of expression wraps for the nested TS of bag.And, by relevant national standard, according to the second packet header or adapt to the PID in field and this TS bag of the payload content setting that identifies packet header in transport error indicator field each field except the PID field between the continuity counter field.
Further, described step 4 specifically comprises:
Step 4A1 sends front end in information, at first according to the method for relevant national standard regulation, information data is organized, and then the information data of organizing is loaded in the nested TS bag of bag that adopts non-NULL bag PID or empty bag PID sign;
Step 4A2, if the byte number that wraps in the second packet header of nested TS bag has added three bytes more in addition greater than two bytes or in adapting to field, according to relevant national standard and payload content, the second packet header is set or adapts in field transport error indicator field to each field between the continuity counter field;
Step 4A3, if the byte number that wraps in the second packet header of nested TS bag equals two bytes or added in addition two bytes again in adapting to field, according to relevant national standard and payload content, the second packet header is set or adapts to PID in field, and the transport error indicator field except the PID field is set in the first packet header of the nested TS bag of bag simultaneously to each field between the continuity counter field;
Step 4A4, at information receiving terminal, extract the second packet header or adapt to PID in field from the nested TS bag of bag of the non-NULL bag PID of correspondence or empty bag PID sign, and extract relevant field from the second packet header or adaptation field or the first packet header, and according to relevant national standard, the payload content of the TS bag of this PID sign is extracted, resolved and processes.
Further, except scheme of upper step, described step 4 can also specifically comprise:
Step 4B1 sends front end in information, the TS bag of already present relevant PID sign is turned be contained in the nested TS bag of bag that adopts non-NULL bag PID or empty bag PID sign;
Step 4B2, if wrap byte number in the second packet header of nested TS bag greater than two bytes or adapt in field and added in addition again three bytes, copy in second packet header by respective rule each field except sync byte field in TS bag packet header of already present relevant PID sign or the adaptation field in, perhaps, according to relevant national standard and payload content, reset in the second packet header or adapt to relevant field in field;
Step 4B3, if the byte number that wraps in the second packet header of nested TS bag equals two bytes or adapts in field to have added in addition two bytes again, each field except the PID field in TS bag packet header of already present relevant PID sign is copied to by respective rule on the first packet header of the nested TS bag of bag, TS that simultaneously will already present relevant PID sign wrap PID in packet header copy in the second packet header or the adaptation field in; Perhaps, according to relevant national standard and payload content, reset in the second packet header or adapt to PID in field, and resetting simultaneously the relevant field in the first packet header of the nested TS bag of bag;
Step 4B4, at information receiving terminal, extract the second packet header or adapt to PID in field from the TS bag of the non-NULL bag PID of correspondence or empty bag PID sign, and from the second packet header adapt to field or TS bag packet header extract relevant field, and according to relevant national standard, the TS of this PID sign is surrounded by the effect payload content and extracts, resolves and process.
Here, in step 4B2 and 4B3, continuity counter field content may need to adjust in reproduction process, this is because the payload of the TS bag before copying is larger than the payload of the bag of the TS after copying, and that is to say to have illustrated that in step 4B2 and 4B3, relevant field needs to copy by respective rule.
Wherein, the relevant national standard in two of step 4 kinds of implementations can also be GB/T17975.2-2010, GB/T17975.3-2010 and GB/T28430-2012 standard.
The invention has the beneficial effects as follows: utilization of the present invention has equipment and other information service equipments of replacing the empty bag of TS, realize the TS bag that is loaded with information on services according to the bag nested mode is replaced the function of the sky bag in the digital television transfer code stream, this programme neither changes the composition structure of former TS stream, do not change the content of former TS bag yet, make information service system and television broadcasting front end system basically independent separately, Information Service flow process and broadcast television service flow process are also independent separately.Its beneficial effect specifically comprises:
One, aspect system Construction: the course of work and the operation flow of each equipment in former television broadcasting front end system are changed, PID number, the value of each PID, the PSI/SI table content of former television broadcasting front end system are changed, and the links such as electronic program guides part, multiplexer part, scrambler part, modulator part all need not be transformed or be reset.
Two, aspect system's O﹠M: because information service system and television broadcasting front end system are basically independent separately, Information Service flow process and broadcast television service flow process are also separate, so irrelevant to the maintenance of information service system and use and television broadcasting front end system, equally, maintenance and use to the television broadcasting front end system are also irrelevant with information service system, so system's O﹠M and easy to use.
Three. aspect system compatible:
Be loaded with that the sky bag of information on services is easier to be exchanged between different telecast networks, the mutual exchangeability of information on services is good, easily sets up information sharing mechanism, realizes trans-regional data sharing and information sharing.And when using effective PID sign to be loaded with the TS bag of information on services, be difficult to guarantee that the allocation rule of each TV network PID identifier is all identical, be difficult to guarantee that the allocation rule of each TV network PID identifier does not change, be difficult to guarantee that each TV network allocation rule to the PID identifier in information service is all identical, be difficult to guarantee that each TV network does not change the allocation rule of PID identifier in information service, so the PID that very difficult assurance sign is loaded with information on services TS bag does not free with other PID and conflicts.The present invention uses empty bag PID identifier sign to be loaded with the TS bag of information on services, and the information on services in a TV network can not affecting in the visual broadcast service situation of other TV networks, be play in other TV networks.
In addition, if a TV network needs the program of another TV network and the program of oneself to carry out multiplexing again, and the information on services no requirement (NR) of this TV network to another TV network, and another TV network uses the TS bag that is loaded with information on services of effective PID identifier sign to replace the bag of having time of this TV network, be there is no empty bag in the TS stream of another TV network, may overflow in multiplexing or modulated process again, because multiplexing and modulated process needs certain sky bag.Use superiority of the present invention to be, due to the information on services no requirement (NR) of a TV network to another TV network, namely be loaded with the empty bag of TS and the empty bag of pure TS indistinction of information on services, they can be processed as the empty bag of pure TS, make the multiplexing and modulation work is unaffected again of this TV network.
Four, aspect system changes expansion: may need in practical application in information service perhaps form modify or expand, and because Information Service under the technical program can be independent of the traditional broadcast television business, so the changing expansion and can not affect the traditional broadcast television business of Information Service is so the system that is easy to changes expansion.Equally, the information service system under the technical program is expanded on service capacity and also is easy to, and such as at the empty bag of each place, branch center increase of cable TV network alternative, the information service amount is increased many.
Five, aspect management: because information service system and television broadcasting front end system are basically independent separately, so, TV station or TV in CATV network company can be more flexible in the operation of information service, both can oneself manage, also can outsourcing, can also lease bandwidth to Specialty Information Service company, especially last point, be conducive to the division of labor based on specialization of information service.
To sum up, the present invention is by the method for the TS bag of sign carrying information, introduced and wrapped nested concept and methodology, be conducive to realize share bandwidth, unified transmission, difference service, realization economizes on resources, the information service of the intensive and energy-saving of energy savings, realizes the information service of low-carbon (LC), green, environmental protection.
Description of drawings
Fig. 1 is the schematic flow sheet that the TS of carrying information is wrapped the method that identifies in sky bag replacement process of the present invention;
Fig. 2 is the schematic flow sheet of the implementation method of step 3 in the embodiment of the present invention one;
Fig. 3 is the schematic flow sheet of the implementation method of step 3 in the embodiment of the present invention two.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example only is used for explaining the present invention, is not be used to limiting scope of the present invention.
As shown in Figure 1, embodiment one is a kind of method that in sky bag replacement process, the TS bag of carrying information is identified, and comprising:
Step 1 after replacing the empty bag of TS with the TS of carrying information bag, adopts the TS bag of non-NULL bag PID or the described carrying information of empty bag PID sign;
Step 2, this TS is wrapped packet header as its first packet header, and choose the second packet header that respective byte is defined as this TS bag from the payload of the TS bag after step 1 sign, or acquire the adaptation field to this TS bag, wherein said the second packet header and described adaptation field all comprise the PID field at least;
Step 3 adopts the PID in the second packet header or adapt to the payload content of the TS bag of the described carrying information of PID sign in field, and the TS package definition after identify is wrapped for the nested TS of bag;
Step 4, hosting Information data in information transmission front end wraps to the nested TS of bag, and at information receiving terminal, the payload content of the nested TS bag of this bag is extracted, resolved and processes.
Wherein, step 4 specifically comprises again:
Step 4A1 sends front end in information, at first according to the method for relevant national standard regulation, information data is organized, and then the information data of organizing is loaded in the nested TS bag of bag that adopts non-NULL bag PID or empty bag PID sign;
Step 4A2, if the byte number that wraps in the second packet header of nested TS bag has added three bytes more in addition greater than two bytes or in adapting to field, according to relevant national standard and payload content, the second packet header is set or adapts in field transport error indicator field to each field between the continuity counter field;
Step 4A3, if the byte number that wraps in the second packet header of nested TS bag equals two bytes or added in addition two bytes again in adapting to field, according to relevant national standard and payload content, the second packet header is set or adapts to PID in field, and the transport error indicator field except the PID field is set in the first packet header of the nested TS bag of bag simultaneously to each field between the continuity counter field;
Step 4A4, at information receiving terminal, extract the second packet header or adapt to PID in field from the nested TS bag of bag of the non-NULL bag PID of correspondence or empty bag PID sign, and extract relevant field from the second packet header or adaptation field or the first packet header, and according to relevant national standard, the payload content of the TS bag of this PID sign is extracted, resolved and processes.
The method of embodiment two, its basic step is identical with embodiment one, but its step 4 adopts another scheme to realize, that is:
Step 4B1 sends front end in information, the TS bag of already present relevant PID sign is turned be contained in the nested TS bag of bag that adopts non-NULL bag PID or empty bag PID sign;
Step 4B2, if wrap byte number in the second packet header of nested TS bag greater than two bytes or adapt in field and added in addition again three bytes, copy in second packet header by respective rule each field except sync byte field in TS bag packet header of already present relevant PID sign or the adaptation field in, perhaps, according to relevant national standard and payload content, reset in the second packet header or adapt to relevant field in field;
Step 4B3, if the byte number that wraps in the second packet header of nested TS bag equals two bytes or adapts in field to have added in addition two bytes again, each field except the PID field in TS bag packet header of already present relevant PID sign is copied to by respective rule on the first packet header of the nested TS bag of bag, TS that simultaneously will already present relevant PID sign wrap PID in packet header copy in the second packet header or the adaptation field in; Perhaps, according to relevant national standard and payload content, reset in the second packet header or adapt to PID in field, and resetting simultaneously the relevant field in the first packet header of the nested TS bag of bag;
Step 4B4, at information receiving terminal, extract the second packet header or adapt to PID in field from the TS bag of the non-NULL bag PID of correspondence or empty bag PID sign, and from the second packet header adapt to field or TS bag packet header extract relevant field, and according to relevant national standard, the TS of this PID sign is surrounded by the effect payload content and extracts, resolves and process.
Wherein, in step 4B2 and 4B3, continuity counter field content may need to adjust in reproduction process, this is because the payload of the TS bag before copying is larger than the payload of the bag of the TS after copying, and that is to say to have illustrated that in step 4B2 and 4B3, relevant field needs to copy by respective rule.
The definition of wrapping for the nested TS of bag in above-mentioned two embodiment and the setting of relevant national standard can be referring to the summary of the invention parts.
For above-mentioned two embodiment, some embodiments of its each step are as follows:
When one, adopting the TS bag of empty bag PID sign carrying information in described step 1, can adopt the transport priority field in relevant national standard to wrap the sign of carrying information as this TS, also can not adopt transport priority field as the sign of this TS bag carrying information.
Two, in described step 2, the second packet header of the described TS of definition bag specifically comprises: four bytes of the payload of the TS bag of carrying information, three bytes or two bytes are defined as the second packet header of this TS bag, and with whole payload of remainder as new payload and/or the adaptation field use relevant to described the second packet header.Specifically comprise following 3 points:
1) if four bytes of the payload of the TS of described carrying information bag are defined as the second packet header, by relevant national standard, these four bytes are defined as sync byte field to each field between the continuity counter field, and sync byte field is set to any value except " 0x47 " and " 0xFF ", and the value of the sync byte field that arranges is used for this TS bag of expression and is the sign of the nested TS bag of bag.
Here, when adopting empty bag PID sign, the sync byte field in the second packet header is set to any value except " 0x47 " and " 0xFF ", can in order to represent this TS wrap in carrying information or effect is separately arranged.
2) if three bytes of the payload of the TS of described carrying information bag are defined as the second packet header, by relevant national standard, these three bytes are defined as transport error indicator field to each field between the continuity counter field.
3) if two bytes of the payload of the TS of described carrying information bag are defined as the second packet header, by relevant national standard, these two bytes are defined as transport error indicator field, payload data unit start indicator, transport priority field and PID field.
Above-mentioned 1), 2) and 3) in described execution mode, the payload data of TS bag is by the PID sign in the second packet header, and during greater than two bytes, each field in the second packet header is decided according to the data cases in relevant national standard and payload when the byte number in the second packet header; When the byte number in the second packet header is two bytes, PID in the second packet header decides according to the data cases in relevant national standard and payload, the data cases in the payload that each field in the first packet header except the PID field identifies according to PID and this PID in relevant national standard, the second packet header and deciding.
Three, acquiring the adaptation field to the TS bag of described carrying information in described step 2 specifically comprises: according to the payload content of relevant national standard and TS bag, acquire the adaptation field to this TS bag, and add in addition again three bytes or two bytes in the adaptation field of acquiring.
1) if add in addition again three bytes in the adaptation field of acquiring, by relevant national standard, these three bytes are defined as transport error indicator field to each field between the continuity counter field.
2) if add in addition again two bytes in the adaptation field of acquiring, by relevant national standard, these two bytes are defined as transport error indicator field, payload data unit start indicator, transport priority field and PID field.
Above-mentioned 1) and 2) in described execution mode, the payload data of TS bag is by the PID sign of newly acquiring, and when having added in addition three bytes again in adapting to field, each field of newly acquiring is decided according to the data cases in relevant national standard and payload; When having added in addition two bytes again in adapting to field, the PID that newly acquires decides according to the data cases in relevant national standard and payload, each field in the first packet header except the PID field according to relevant national standard, adapt to the data cases in the payload that PID in field and this PID identify and decide.
The execution mode of comprehensive above-mentioned one, two, three, above-mentioned two embodiment also comprise following embodiment.
Be defined as the execution mode in the second packet header for three bytes of the payload of above-mentioned TS bag with described carrying information, with add in addition again the execution mode of three bytes in the adaptation field of acquiring, wherein transport error indicator field and the transport priority field of definition occupy to change and are made as the sign that this TS bag of expression wraps for the nested TS of bag.
Be defined as the execution mode in the second packet header for four bytes of the payload of above-mentioned TS bag with described carrying information or three bytes, with add in addition again the execution mode of three bytes in the adaptation field of acquiring, continuity counter field in the first packet header of TS bag is used for the precedence of each TS bag of sign, and the sign of the payload data unit start indicator in the first packet header of TS bag is used and comprised:
When payload data unit start indicator was " 1 ", this TS bag was the nested TS bag of bag;
When payload data unit start indicator was " 0 ", this TS bag was not the nested TS bag of bag, and the payload content of this TS bag occurred by " 0 " before the second packet header of the nested TS bag of the last bag that occurs or the PID that adapts in field identified.
Certainly, also can not adopt continuity counter field and payload data unit start indicator to carry out above-mentioned sign in above-described embodiment.
Be defined as the execution mode in the second packet header for two bytes of the payload of above-mentioned TS bag with described carrying information, with add in addition again the execution mode of two bytes in the adaptation field of acquiring, wherein transport error indicator field, the payload data unit start indicator of definition occupies to change with transport priority field and is made as the sign that this TS bag of expression wraps for the nested TS of bag.And, by relevant national standard, according to the second packet header or adapt to the PID in field and this TS bag of the payload content setting that identifies packet header in transport error indicator field each field except the PID field between the continuity counter field.
The above is only preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (14)

1. a method that in sky bag replacement process, the TS of carrying information bag is identified, is characterized in that, comprising:
Step 1 after replacing the empty bag of TS with the TS of carrying information bag, adopts the TS bag of non-NULL bag PID or the described carrying information of empty bag PID sign;
Step 2, this TS is wrapped packet header as its first packet header, and choose the second packet header that respective byte is defined as this TS bag from the payload of the TS bag after step 1 sign, or acquire the adaptation field to this TS bag, all comprise at least the PID field in wherein said the second packet header and described adaptation field;
Step 3 adopts the PID in the second packet header or adapt to the payload content of the TS bag of the described carrying information of PID sign in field, and the TS package definition after identify is wrapped for the nested TS of bag;
Step 4, hosting Information data in information transmission front end wraps to the nested TS of bag, and at information receiving terminal, the payload content of the nested TS bag of this bag is extracted, resolved and processes.
2. method according to claim 1, is characterized in that, in described step 1: when adopting the TS bag of empty bag PID sign carrying information, with the sign of transport priority field as this TS bag carrying information.
3. method according to claim 1, it is characterized in that, in described step 2, the second packet header of the described TS of definition bag specifically comprises: four bytes of the payload of the TS bag of carrying information, three bytes or two bytes are defined as the second packet header of this TS bag, and with whole payload of remainder as new payload and/or the adaptation field relevant to described the second packet header.
4. method according to claim 3, it is characterized in that, if four bytes of the payload of the TS of described carrying information bag are defined as the second packet header, by relevant national standard, these four bytes are defined as sync byte field to each field between the continuity counter field, and sync byte field is set to any value except " 0x47 " and " 0xFF ", and the value of the sync byte field that arranges can be as the sign of this TS bag of expression for the nested TS bag of bag.
5. method according to claim 3, it is characterized in that, if three bytes of the payload of the TS of described carrying information bag are defined as the second packet header, by relevant national standard, these three bytes are defined as transport error indicator field to each field between the continuity counter field.
6. method according to claim 3, it is characterized in that, if two bytes of the payload of the TS of described carrying information bag are defined as the second packet header, by relevant national standard, these two bytes are defined as transport error indicator field, payload data unit start indicator, transport priority field and PID field.
7. method according to claim 1, it is characterized in that, acquiring the adaptation field to the TS bag of described carrying information in described step 2 specifically comprises: according to the payload content of relevant national standard and this TS bag, acquire the adaptation field to this TS bag, and add in addition again three bytes or two bytes in the adaptation field of acquiring.
8. method according to claim 7, is characterized in that, if add in addition three bytes in the adaptation field of acquiring, by relevant national standard, these three bytes is defined as transport error indicator field to each field between the continuity counter field again.
9. method according to claim 7, it is characterized in that, if add in addition again two bytes in the adaptation field of acquiring, by relevant national standard, these two bytes are defined as transport error indicator field, payload data unit start indicator, transport priority field and PID field.
10. according to claim 5 or 8 described methods, is characterized in that, the transport error indicator field of described definition occupies to change with transport priority field and is made as the sign that this TS bag of expression wraps for the nested TS of bag.
11. according to claim 4 or 5 or 8 described methods, it is characterized in that, for described employing non-NULL bag PID or the empty TS bag that wraps the carrying information of PID sign, continuity counter field in the first packet header of TS bag is used for the precedence of each TS bag of sign, and the sign of the payload data unit start indicator in the first packet header of TS bag is used and comprised:
When payload data unit start indicator was " 1 ", this TS bag was the nested TS bag of bag;
When payload data unit start indicator was " 0 ", this TS bag was not the nested TS bag of bag, and the payload content of this TS bag occurred by " 0 " before the second packet header of the nested TS bag of the last bag that occurs or the PID that adapts in field identified.
12. according to claim 6 or 9 described methods, it is characterized in that, the transport error indicator field of described definition, payload data unit start indicator and transport priority field occupy to change and are made as this TS bag of expression and are the sign of the nested TS bag of bag, and by relevant national standard, according to the second packet header or adapt to PID in field and this PID identifies payload content setting the first packet header in transport error indicator field each field except the PID field between the continuity counter field.
13. according to claim 1 to 9, arbitrary described method, is characterized in that, described step 4 specifically comprises:
Step 4A1 sends front end in information, at first according to the method for relevant national standard regulation, information data is organized, and then the information data of organizing is loaded in the nested TS bag of bag that adopts non-NULL bag PID or empty bag PID sign;
Step 4A2, if the byte number that wraps in the second packet header of nested TS bag has added three bytes in addition again greater than two bytes or in adapting to field, according to relevant national standard and payload content, the second packet header is set or adapts in field transport error indicator field to each field between the continuity counter field;
Step 4A3, if the byte number that wraps in the second packet header of nested TS bag equals two bytes or adapts in field to have added in addition two bytes again, according to relevant national standard and payload content, the second packet header is set or adapts to PID in field, and the transport error indicator field except the PID field is set in the first packet header simultaneously to each field between the continuity counter field;
Step 4A4, at information receiving terminal, extract the second packet header or adapt to PID in field from the nested TS bag of bag of the non-NULL bag PID of correspondence or empty bag PID sign, and extract relevant field from the second packet header or adaptation field or the first packet header, then according to relevant national standard, the payload content of the TS bag of this PID sign is extracted, resolved and processes.
14. according to claim 1 to 9, arbitrary described method, is characterized in that, described step 4 specifically comprises:
Step 4B1 sends front end in information, the TS bag of already present relevant PID sign is turned be contained in the nested TS bag of bag that adopts non-NULL bag PID or empty bag PID sign;
Step 4B2, if wrap byte number in the second packet header of nested TS bag greater than two bytes or adapt in field and added in addition three bytes, copy in second packet header by respective rule each field except sync byte field in TS bag packet header of already present relevant PID sign or the adaptation field in, perhaps, according to relevant national standard and payload content, reset in the second packet header or adapt to relevant field in field;
Step 4B3, if the byte number that wraps in nested TS bag the second packet header equals two bytes or adapts in field to have added in addition two bytes again, each field except the PID field in TS bag packet header of already present relevant PID sign is copied to by respective rule on the first packet header of the nested TS bag of bag, TS that simultaneously will already present relevant PID sign wrap PID in packet header copy in the second packet header or the adaptation field in; Perhaps, according to relevant national standard and payload content, reset in the second packet header or adapt to PID in field, and resetting simultaneously the relevant field in the first packet header of the nested TS bag of bag;
Step 4B4, at information receiving terminal, extract the second packet header or adapt to PID in field from the nested TS bag of bag of the non-NULL bag PID of correspondence or empty bag PID sign, and from the second packet header adapt to field or the first packet header extract relevant field, and according to relevant national standard, the TS of this PID sign is surrounded by the effect payload content and extracts, resolves and process.
CN201310035321.0A 2013-01-29 2013-01-29 A kind ofly the TS of carrying information is wrapped to the method identified in empty bag replacement process Active CN103108214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310035321.0A CN103108214B (en) 2013-01-29 2013-01-29 A kind ofly the TS of carrying information is wrapped to the method identified in empty bag replacement process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310035321.0A CN103108214B (en) 2013-01-29 2013-01-29 A kind ofly the TS of carrying information is wrapped to the method identified in empty bag replacement process

Publications (2)

Publication Number Publication Date
CN103108214A true CN103108214A (en) 2013-05-15
CN103108214B CN103108214B (en) 2015-08-12

Family

ID=48315733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310035321.0A Active CN103108214B (en) 2013-01-29 2013-01-29 A kind ofly the TS of carrying information is wrapped to the method identified in empty bag replacement process

Country Status (1)

Country Link
CN (1) CN103108214B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491386A (en) * 2013-09-18 2014-01-01 辛欣 Method and system for transmitting streaming media by utilizing TS package
CN105847873A (en) * 2016-05-16 2016-08-10 西安电子科技大学 High definition video code stream and data multiplexing system and method for surveillance application
CN106534896A (en) * 2016-11-25 2017-03-22 北京数码视讯科技股份有限公司 Method and apparatus for transmitting transport streams TS
CN106534981A (en) * 2016-11-28 2017-03-22 湖南国科微电子股份有限公司 Method and device for generating code stream file for set-top box testing
CN107113321A (en) * 2015-01-07 2017-08-29 三星电子株式会社 Transmission equipment and receiving device and their signal processing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004056214A (en) * 2002-07-16 2004-02-19 Sumitomo Electric Ind Ltd Transmission apparatus for digital broadcast data
CN101064851A (en) * 2006-04-30 2007-10-31 神州亿品科技有限公司 Method for displaying subtitling in video
CN101098445A (en) * 2006-06-30 2008-01-02 株式会社日立制作所 Television program receiving equipment and method for receiving and broadcasting television program
CN101141408A (en) * 2007-10-22 2008-03-12 中兴通讯股份有限公司 Network multimedia data packet regularized method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004056214A (en) * 2002-07-16 2004-02-19 Sumitomo Electric Ind Ltd Transmission apparatus for digital broadcast data
CN101064851A (en) * 2006-04-30 2007-10-31 神州亿品科技有限公司 Method for displaying subtitling in video
CN101098445A (en) * 2006-06-30 2008-01-02 株式会社日立制作所 Television program receiving equipment and method for receiving and broadcasting television program
CN101141408A (en) * 2007-10-22 2008-03-12 中兴通讯股份有限公司 Network multimedia data packet regularized method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491386A (en) * 2013-09-18 2014-01-01 辛欣 Method and system for transmitting streaming media by utilizing TS package
CN107113321A (en) * 2015-01-07 2017-08-29 三星电子株式会社 Transmission equipment and receiving device and their signal processing method
CN107113321B (en) * 2015-01-07 2020-06-30 三星电子株式会社 Transmission apparatus and reception apparatus and signal processing method thereof
CN105847873A (en) * 2016-05-16 2016-08-10 西安电子科技大学 High definition video code stream and data multiplexing system and method for surveillance application
CN105847873B (en) * 2016-05-16 2018-11-16 西安电子科技大学 HD video code stream and data multiplexing system and method towards monitoring application
CN106534896A (en) * 2016-11-25 2017-03-22 北京数码视讯科技股份有限公司 Method and apparatus for transmitting transport streams TS
CN106534896B (en) * 2016-11-25 2019-06-18 北京数码视讯科技股份有限公司 A kind of transmission method and device of transport stream TS
CN106534981A (en) * 2016-11-28 2017-03-22 湖南国科微电子股份有限公司 Method and device for generating code stream file for set-top box testing
CN106534981B (en) * 2016-11-28 2019-07-16 湖南国科微电子股份有限公司 A kind of generation method and generating means of the ASCII stream file ASCII of set top box testing

Also Published As

Publication number Publication date
CN103108214B (en) 2015-08-12

Similar Documents

Publication Publication Date Title
CN106031181B (en) Broadcast singal sending device, broadcasting signal receiving, broadcast singal sending method and broadcast signal received method
CN106803974B (en) The real-time retransmission method of live video stream
CN102891886B (en) Multi-screen interacting method and system based on cloud computing
CN101888514B (en) Wireless multimedia transport method and apparatus
CN103108214A (en) Method for identifying test set (TS) packet with information in empty packet replacing process
CN100542341C (en) Realize the method and apparatus of data sharing between portable terminal
WO2015147590A1 (en) Broadcast and broadband hybrid service with mmt and dash
CN105981391A (en) Transmission device, transmission method, reception device, reception method, display device, and display method
WO2018210169A1 (en) Data transmission methods, devices, apparatuses, and system
WO2016129953A1 (en) Method and apparatus for converting mmtp stream to mpeg-2ts
CN103002354A (en) Method and system for eliminating network jitter of video data during transmission
EP3127287A2 (en) Signaling and operation of an mmtp de-capsulation buffer
CN105577645A (en) Agent-based HLS client-end device and realization method thereof
WO2015152587A2 (en) Method and apparatus for signaling and operation of low delay consumption of media data in mmt
CN104601481A (en) Method for flow distribution in multichannel access network
WO2015105376A1 (en) Methods and apparatus for universal presentation timeline alignment
CN104581368A (en) Multi-screen interaction method based on signal interaction
CN104022844A (en) Data packaging method capable of matching multiple transmission modes and system
CN102215425B (en) Method and equipment for realizing live video on demand
CN102905174A (en) Sharing method of transport stream
CN108271039A (en) A kind of document sending method and device
CN101959062A (en) Data transmission method, system and device for China mobile multimedia broadcasting (CMMB) system
CN110719534B (en) Transmission protocol conversion method and system based on broadcast system
WO2017204525A1 (en) Apparatus and method to manage buffers for rate pacing
CN106330751B (en) Resource dynamic requests time window and terminal buffers method under heterogeneous network transmission

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