CN108307204A - A kind of ALP packaging methods based on multi-service TS streams - Google Patents
A kind of ALP packaging methods based on multi-service TS streams Download PDFInfo
- Publication number
- CN108307204A CN108307204A CN201710027313.XA CN201710027313A CN108307204A CN 108307204 A CN108307204 A CN 108307204A CN 201710027313 A CN201710027313 A CN 201710027313A CN 108307204 A CN108307204 A CN 108307204A
- Authority
- CN
- China
- Prior art keywords
- program
- data packet
- alp
- stream data
- enter
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000004806 packaging method and process Methods 0.000 title 1
- 238000005538 encapsulation Methods 0.000 claims abstract description 39
- 238000013507 mapping Methods 0.000 claims 1
- 238000001824 photoionisation detection Methods 0.000 description 53
- 230000005540 biological transmission Effects 0.000 description 6
- 238000012217 deletion Methods 0.000 description 6
- 230000037430 deletion Effects 0.000 description 6
- 230000007246 mechanism Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
- H04N21/23608—Remultiplexing multiplex streams, e.g. involving modifying time stamps or remapping the packet identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/236—Assembling of a multiplex stream, e.g. transport stream, by combining a video stream with other content or additional data, e.g. inserting a URL [Uniform Resource Locator] into a video stream, multiplexing software data into a video stream; Remultiplexing of multiplex streams; Insertion of stuffing bits into the multiplex stream, e.g. to obtain a constant bit-rate; Assembling of a packetised elementary stream
- H04N21/23614—Multiplexing of additional data and video streams
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供了一种基于多业务TS流的ALP封装方法,该方法应用于发送端ALP封装设备中,该方法包括如下步骤:在封装ALP流数据包时,根据TS流数据包中的PID值,将TS流数据包中具有相同PID值的视频数据包放入同一队列,并对视频数据包进行分别排队封装;该PID值为该TS流数据包报头中的PID字段的值;该队列的长度均为固定,并根据所在网络的MTU限制所确定。本发明提供的基于多业务TS流的ALP封装方法,在不改变表报文封装头的基础上提高了多业务TS数据流的ALP封装效率。
The present invention provides an ALP encapsulation method based on multi-service TS streams. The method is applied to an ALP encapsulation device at the sending end. The method includes the following steps: when encapsulating ALP stream data packets, according to the PID value in the TS stream data packets , put the video data packets with the same PID value in the TS stream data packet into the same queue, and enqueue and encapsulate the video data packets respectively; the PID value is the value of the PID field in the TS stream data packet header; the queue’s The length is fixed and determined according to the MTU limit of the network where it is located. The ALP encapsulation method based on the multi-service TS stream provided by the invention improves the ALP encapsulation efficiency of the multi-service TS data stream on the basis of not changing the table message encapsulation header.
Description
技术领域technical field
本发明涉及视频节目传输领域,具体地,涉及一种基于多业务TS流的ALP封装方法。The invention relates to the field of video program transmission, in particular to an ALP encapsulation method based on multi-service TS flows.
背景技术Background technique
随着数字电视的快速发展,前端系统处理的业务逐渐增多,数字电视IP化已经成为一种趋势。美国高级电视业务顾问委员会(ATSC)制定了新一代的标准,ATSC3.0标准。在该标准中的ATSC Link-Layer Protocol中定义了一种全新的数据包封装格式(以下简称ALP封装),这种封装可以支持传统的TS数据流和通用的IP数据流视频业务。针对TS数据流进行封装时,ALP协议采用了同步字节删除、包头删除和空包删除三种机制减小传输开销。其中包头删除针对视频业务传输过程中装载着视频流的TS包中存在大量的相似包头(除CC位不相同以外其他字段均相同)的情况,提出了在发送端将相似包头删除,而在接收端利用ALP的报文头中的标志位将这些被删除了的包头还原的机制。但是在包含多个视频业务的TS数据流中,装载不同视频业务流的TS包的PID值不相同,而这些PID不相同的包混合在一起,使得ALP封装器在封装时几乎不能采用ALP包头删除机制,使得传输资源被浪费。With the rapid development of digital TV, the business handled by the front-end system is gradually increasing, and digital TV IP has become a trend. The American Advanced Television Service Advisory Committee (ATSC) has developed a new generation of standards, the ATSC3.0 standard. The ATSC Link-Layer Protocol in this standard defines a new data packet encapsulation format (hereinafter referred to as ALP encapsulation), which can support traditional TS data streams and general IP data stream video services. When encapsulating the TS data stream, the ALP protocol adopts three mechanisms of synchronous byte deletion, packet header deletion and empty packet deletion to reduce transmission overhead. Among them, packet header deletion is aimed at the situation that there are a large number of similar headers (except for CC bits, other fields are the same) in the TS packets loaded with video streams during video service transmission. The end uses the flag bit in the header of the ALP to restore these deleted headers. However, in a TS data stream containing multiple video services, the PID values of the TS packets loaded with different video service streams are different, and these packets with different PIDs are mixed together, making it almost impossible for the ALP encapsulator to use the ALP header when encapsulating The deletion mechanism causes the transmission resources to be wasted.
目前没有发现同本发明类似技术的说明或报道,也尚未收集到国内外类似的资料。Do not find description or report similar to the present invention at present, also do not collect similar data both at home and abroad.
发明内容Contents of the invention
针对现有技术ALP封装中包头删除机制的缺陷,本发明的目的是提供一种当TS数据流中包含有多个视频业务时的基于多业务TS流的ALP封装方法。该方法的实现如下:Aiming at the defects of header deletion mechanism in ALP encapsulation in the prior art, the purpose of the present invention is to provide an ALP encapsulation method based on multi-service TS streams when TS data streams contain multiple video services. The method is implemented as follows:
一种基于多业务TS流的ALP封装方法,包括如下步骤:根据TS流数据包中的PID值,将TS流数据包中具有相同PID值的视频数据包放入同一队列,并对视频数据包进行分别排队封装。A kind of ALP encapsulation method based on multi-service TS flow, comprises the steps: according to the PID value in the TS flow data packet, the video data packet with the same PID value in the TS flow data packet is put into the same queue, and the video data packet Carry out separate queuing encapsulation.
优选地,所述PID值为TS流数据包报头中的PID字段的值。Preferably, the PID value is the value of the PID field in the header of the TS stream data packet.
优选地,具体包括如下子步骤:Preferably, it specifically includes the following sub-steps:
步骤S100,获取一个TS流数据包,进入步骤S101;Step S100, obtain a TS stream data packet, and enter step S101;
步骤S101,判断所获取的TS流数据包的PID值是否为0;如果是,则进入步骤S102,如果不是,则进入步骤S103;Step S101, judging whether the PID value of the acquired TS stream data packet is 0; if yes, then enter step S102, if not, then enter step S103;
步骤S102,读取所获取的TS流数据包中的内容,比对TS流数据包中节目号与节目映射表(PMT)的对应关系和当前节目列表(PLT)中节目号与节目映射表的对应关系是否相同,如果是,则重新回到步骤S100,进行下一个循环,如果不是,则进入步骤S104;Step S102, read the content in the obtained TS stream data packet, compare the corresponding relationship between the program number in the TS stream data packet and the program mapping table (PMT) and the program number in the current program list (PLT) and the program mapping table Whether the corresponding relationship is the same, if yes, then return to step S100 for the next cycle, if not, then enter step S104;
步骤S103,判断所获取的TS流数据包的PID值是否存在于节目列表中,如果是,则进入步骤S105,如果不是,则进入步骤S106;Step S103, judging whether the PID value of the obtained TS stream data packet exists in the program list, if yes, then enter step S105, if not, then enter step S106;
步骤S104,修改节目列表,使节目列表中节目号与所获取的TS流数据包中节目号一致,然后重新回到步骤S100,进行下一个循环;Step S104, modifying the program list so that the program number in the program list is consistent with the program number in the obtained TS stream data packet, and then returns to step S100 for the next cycle;
步骤S105,根据节目列表判断所获取的TS流数据包的PID值是属于节目映射表还是属于视频数据包,若属于节目映射表,则进入步骤S108,若属于视频数据包,则进入步骤S107;Step S105, judging according to the program list whether the PID value of the obtained TS stream data packet belongs to the program mapping table or the video data packet, if it belongs to the program mapping table, then enters step S108, if it belongs to the video data packet, then enters step S107;
步骤S106,将所获取的TS流数据包单独进行ALP封装,然后重新回到步骤S100,进入下一个循环;Step S106, ALP-encapsulates the obtained TS stream data packets separately, and then returns to step S100 to enter the next cycle;
步骤S107,将当前视频数据包放入相应的队列排序,然后进入步骤S110;Step S107, put the current video data packet into the corresponding queue for sorting, and then enter step S110;
步骤S108,判断当前节目映射表中对应的视频数据是否与节目列表中的相同,如果是,则重新回到步骤S100,进入下一个循环,如果不是,则进入步骤S109;Step S108, judging whether the corresponding video data in the current program mapping table is the same as that in the program list, if yes, then return to step S100, and enter the next cycle, if not, then enter step S109;
步骤S109,修改节目列表中当前节目号所对应的视频数据PID值,然后重新回到步骤S100,进入下一循环;Step S109, revise the video data PID value corresponding to the current program number in the program list, and then return to step S100 to enter the next cycle;
步骤S110,判断当前队列是否已满;如果是,则进入步骤S111,如果不是,则检查当前队列时间片是否消耗完,若消耗完,则对视频数据进行ALP封装,若未消耗完,则重新回到步骤S100,进入下一循环;Step S110, judge whether the current queue is full; if yes, then enter step S111, if not, then check whether the current queue time slice is exhausted, if exhausted, perform ALP encapsulation on video data, if not exhausted, then re-encapsulate Go back to step S100 and enter the next cycle;
步骤S111,对视频数据进行ALP封装。Step S111, performing ALP encapsulation on the video data.
优选地,所述步骤S102中,TS流数据包中节目号与节目映射表的对应关系和当前节目列表中节目号与节目映射表的对应关系为:将从节目映射表中获取的TS流数据包的PID值存储于节目列表中,并在节目列中存储为节目号、节目映射表PID值和视频数据包PID值一一对应的状态。Preferably, in the step S102, the corresponding relationship between the program number in the TS stream data packet and the program mapping table and the corresponding relationship between the program number and the program mapping table in the current program list are: the TS stream data obtained from the program mapping table The PID value of the packet is stored in the program list, and stored in the program column as a state of one-to-one correspondence between the program number, the PID value of the program mapping table and the PID value of the video data packet.
优选地,所述队列的长度均为固定,并根据所在网络的MTU限制所确定。Preferably, the lengths of the queues are all fixed and determined according to the MTU limit of the network where they are located.
本发明提供的基于多业务TS流的ALP封装方法,该方法应用于ALP封装设备,该方法包括:在接收到TS流数据包的时候,根据TS流数据包的PID值的不同,将所收到的TS数据流中的视频数据包中具有相同PID值的数据包放入同一队列,具有不同PID值的数据包放入不同的队列中。每个队列的长度都是固定的,该队列长度根据所在网络的MTU(最大传输单元,Maximum Transmission Unit)限制所确定。当某一队列装满时或某一队列的计时片段消耗完时,将该队列进行ALP封装。对于装载着如节目特定信息(PSI)、节目关联表(PAT)、条件接收表(CAT)、节目映射表(PMT)等的这些相对于视频信息较少的TS流数据包时,不将该TS流数据包置于队列中,而是单独封装成ALP数据包发送。The ALP encapsulation method based on the multi-service TS stream provided by the present invention is applied to an ALP encapsulation device. Among the video data packets in the received TS data stream, the data packets with the same PID value are put into the same queue, and the data packets with different PID values are put into different queues. The length of each queue is fixed, and the queue length is determined according to the MTU (Maximum Transmission Unit, Maximum Transmission Unit) limitation of the network where it is located. When a queue is full or the timing segment of a queue is exhausted, the queue is ALP-encapsulated. For TS stream data packets loaded with program specific information (PSI), program association table (PAT), conditional access table (CAT), program mapping table (PMT), etc., which are relatively less than video information, the The TS flow data packet is placed in the queue, but is separately encapsulated into an ALP data packet and sent.
与现有技术相比,本发明具有如下有益效果:Compared with the prior art, the present invention has the following beneficial effects:
1、本发明提供的基于多业务TS流的ALP封装方法,使得在ALP封装承载着多视频业务的TS流时的封装效率大大提高。1. The ALP encapsulation method based on multi-service TS streams provided by the present invention greatly improves the encapsulation efficiency when ALP encapsulates TS streams carrying multiple video services.
2、本发明提供的基于多业务TS流的ALP封装方法,在不更改报头的基础上,提高ALP封装效率。2. The ALP encapsulation method based on the multi-service TS stream provided by the present invention improves the ALP encapsulation efficiency without changing the header.
附图说明Description of drawings
通过阅读参照以下附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是PLT表生成及更新方法示意图。FIG. 1 is a schematic diagram of a method for generating and updating a PLT table.
图2是ALP封装方法示意图。Fig. 2 is a schematic diagram of an ALP encapsulation method.
图3是本发明基于多业务TS流的ALP封装方法流程图。Fig. 3 is a flow chart of the ALP encapsulation method based on multi-service TS flows in the present invention.
具体实施方式Detailed ways
下面对本发明的实施例作详细说明:本实施例在以本发明技术方案为前提下进行实施,给出了详细的实施方式和具体的操作过程。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。The following is a detailed description of the embodiments of the present invention: this embodiment is implemented on the premise of the technical solution of the present invention, and provides detailed implementation methods and specific operation processes. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.
实施例Example
本实施例提供了一种基于多业务TS流的ALP封装方法,该方法包括如下步骤:在进行ALP数据包封装时,利用TS流数据包中PID字段值的不同,将TS流数据包中具有相同PID值的视频数据包放入同一队列,并对视频数据流进行分别排队封装。This embodiment provides an ALP encapsulation method based on multi-service TS streams, the method includes the following steps: when encapsulating ALP data packets, using the difference in the PID field value in the TS stream data packets, the TS stream data packets have The video data packets with the same PID value are put into the same queue, and the video data streams are respectively queued and encapsulated.
进一步地,所述PID字段为TS流数据包报头中的PID字段。Further, the PID field is the PID field in the header of the TS stream data packet.
如图3所示,本实施例提供了一种基于多业务TS流的ALP封装方法,具体包括如下子步骤:As shown in Figure 3, this embodiment provides an ALP encapsulation method based on multi-service TS flows, specifically including the following sub-steps:
步骤S100,获取一个TS流数据包,进入步骤S101;Step S100, obtain a TS stream data packet, and enter step S101;
步骤S101,判断所获取的TS流数据包的PID值是否为0;如果是,则进入步骤S102,如果不是,则进入步骤S103;Step S101, judging whether the PID value of the acquired TS stream data packet is 0; if yes, then enter step S102, if not, then enter step S103;
步骤S102,读取所获取的TS流数据包中的内容,比对TS流数据包中节目号与PMT表的对应关系和当前PLT表中节目号与PMT表的对应关系是否相同,如果是,则重新回到步骤S100,进行下一个循环,如果不是,则进入步骤S104;Step S102, read the content in the obtained TS stream data packet, compare whether the corresponding relationship between the program number and the PMT table in the TS stream data packet and the corresponding relationship between the program number and the PMT table in the current PLT table are the same, if yes, Then get back to step S100 again, carry out next cycle, if not, then enter step S104;
步骤S103,判断所获取的TS流数据包的PID值是否存在于PLT表中,如果是,则进入步骤S105,如果不是,则进入步骤S106;Step S103, judging whether the PID value of the obtained TS flow packet exists in the PLT table, if yes, then enter step S105, if not, then enter step S106;
步骤S104,修改PLT表,使PLT表中节目号与所获取的TS流数据包中节目号一致,然后重新回到步骤S100,进行下一个循环;Step S104, revise the PLT table so that the program number in the PLT table is consistent with the program number in the obtained TS stream data packet, and then return to step S100 for the next cycle;
步骤S105,根据PLT表判断所获取的TS流数据包的PID值是属于PMT表还是属于视频数据包,若属于PMT表,则进入步骤S108,若属于视频数据包,则进入步骤S107;Step S105, judge according to the PLT table whether the PID value of the obtained TS stream data packet belongs to the PMT table or belongs to the video data packet, if it belongs to the PMT table, then enters step S108, if it belongs to the video data packet, then enters step S107;
步骤S106,将所获取的TS流数据包单独进行ALP封装,然后重新回到步骤S100,进入下一个循环;Step S106, ALP-encapsulates the obtained TS stream data packets separately, and then returns to step S100 to enter the next cycle;
步骤S107,将当前视频数据包放入相应的队列排序,然后进入步骤S110;Step S107, put the current video data packet into the corresponding queue for sorting, and then enter step S110;
步骤S108,判断当前PMT表中对应的视频数据是否与PLT表中的相同,如果是,则重新回到步骤S100,进入下一个循环,如果不是,则进入步骤S109;Step S108, judge whether the corresponding video data in the current PMT table is identical with that in the PLT table, if yes, then get back to step S100 again, enter next cycle, if not, then enter step S109;
步骤S109,修改PLT表中当前节目号所对应的视频数据PID值,然后重新回到步骤S100,进入下一循环;Step S109, modify the corresponding video data PID value of the current program number in the PLT table, then get back to step S100, and enter the next cycle;
步骤S110,判断当前队列是否已满;如果是,则进入步骤S111,如果不是,则检查当前队列时间片是否消耗完,若消耗完,则对视频数据进行ALP封装,若未消耗完,则重新回到步骤S100,进入下一循环;Step S110, judge whether the current queue is full; if yes, then enter step S111, if not, then check whether the current queue time slice is exhausted, if exhausted, perform ALP encapsulation on video data, if not exhausted, then re-encapsulate Go back to step S100 and enter the next cycle;
步骤S111,对视频数据进行ALP封装。Step S111, performing ALP encapsulation on the video data.
进一步地,所述步骤S102中的对应关系为:将从节目映射表(PMT)中获取的TS流数据包的PID值存储于节目列表中(PLT),并在节目列表(PLT)中存储为节目号、PMT表PID值和视频数据包PID值一一对应的状态。Further, the corresponding relationship in step S102 is: store the PID value of the TS stream data packet obtained from the program mapping table (PMT) in the program list (PLT), and store it in the program list (PLT) as The status of one-to-one correspondence between program number, PMT table PID value and video data packet PID value.
进一步地,所述队列的长度均为固定,并根据所在网络的MTU限制所确定。Further, the lengths of the queues are all fixed and determined according to the MTU limit of the network where they are located.
以下详细描述本实施例的方案。The scheme of this embodiment is described in detail below.
如图1所示,在ALP封装设备中获取TS流数据包时,从装载着节目信息的PAT包(其PID号固定是00)中获取当前TS流数据包中包含的节目数量以及每个节目流的PMT表的PID值。根据所获得的所需PMT表的PID值找到相应的TS流数据包,读取其中内容,找到该路节目的视频信息所对应的PID值,并记录节目列表(PLT)中。As shown in Figure 1, when the TS stream data packet is obtained in the ALP encapsulation device, the number of programs contained in the current TS stream data packet and the number of programs contained in the current TS stream data packet and the The PID value of the stream's PMT table. Find the corresponding TS stream data packet according to the obtained PID value of the required PMT table, read the content therein, find the PID value corresponding to the video information of the program, and record it in the program list (PLT).
当建立了PLT表以后,再获取到TS流数据包时就可以对照PLT表将视频数据包与其他类型的数据包区分开来。当前传输流中承载着视频数据的TS流数据包的PID值全部应该在PLT表中,同时PLT表也在实时的更新,以应对当节目发生变化值随之带来的视频数据包PID值的变化。After the PLT table is established, when the TS stream data packet is obtained, the video data packet can be distinguished from other types of data packets according to the PLT table. The PID values of the TS stream data packets carrying video data in the current transport stream should all be in the PLT table, and the PLT table is also updated in real time to deal with the PID value of the video data packets brought about when the program changes. Variety.
请参阅表1,该表给出了一个PAT包的具体例子。Please refer to Table 1 for a specific example of a PAT packet.
读取表1,可以获取当前TS流数据包中包含3路节目,其序号分别为01、02、03,同时这三路节目的PMT表存在于PID值分别为21、22、23的TS流数据包中。参阅表3中步骤101、102、104生成PLT表。并继续获取TS流数据包。Read Table 1, you can get 3 programs in the current TS stream data packet, their sequence numbers are 01, 02, and 03 respectively, and the PMT tables of these three programs exist in the TS streams with PID values respectively 21, 22, and 23 in the packet. Refer to steps 101, 102, and 104 in Table 3 to generate a PLT table. And continue to get TS stream packets.
表1Table 1
请参阅表2、3、4,这三个表给出了PID值为20、21、22的PMT表中的具体例子。这三个表格说明了三路节目中的TS流数据包的PID值分别为70、73、76,由这些信息可以生成如表5的PLT表。由表5可知只要每次提取PID值为20、21、22、70、73、76的TS流数据包就可以了。提取到的20、21、22可以用于更新PLT表中的视频数据包PID值。Please refer to Tables 2, 3, and 4. These three tables give specific examples in the PMT tables with PID values of 20, 21, and 22. These three tables indicate that the PID values of the TS stream data packets in the three-channel program are 70, 73, and 76 respectively, and the PLT table shown in Table 5 can be generated from these information. It can be seen from Table 5 that it is sufficient to extract TS stream data packets with PID values of 20, 21, 22, 70, 73, and 76 each time. The extracted 20, 21, 22 can be used to update the PID value of the video data packet in the PLT table.
表2Table 2
表3table 3
表4Table 4
表5table 5
请参阅表6,该表给出了一个输入的TS流数据包的实例。表6中给出了10个TS数据流,每个TS数据流中有多个不同PID值的TS流数据包。Please refer to Table 6, which shows an example of an incoming TS stream packet. Table 6 shows 10 TS data streams, and each TS data stream has multiple TS stream data packets with different PID values.
表6Table 6
根据步骤S103,可以筛选出PID值为20、21、22、70、73、76的TS流数据包,其中PID值为20、21、22的TS流数据包用于更新PLT表,PID值为70、73、76的TS流数据包分别装入三个队列,当队列装满后执行ALP封装。在第1个TS流数据包中,执行步骤S100和步骤S101,读取到PID值为00的PAT包,从中读出如表1所示的PMT表中的PID值列表,并将节目号和对应的PMT表中的PID值分别填入PLT表中。According to step S103, the TS stream data packets with PID values of 20, 21, 22, 70, 73, and 76 can be filtered out, wherein the TS stream data packets with PID values of 20, 21, and 22 are used to update the PLT table, and the PID values are The TS stream data packets of 70, 73, and 76 are respectively loaded into three queues, and ALP encapsulation is performed when the queues are full. In the first TS flow packet, execute steps S100 and S101, read the PAT packet with a PID value of 00, read the PID value list in the PMT table as shown in Table 1, and program number and The corresponding PID values in the PMT table are respectively filled in the PLT table.
执行步骤S103、步骤S105、步骤S108和步骤S109,读取出节目列表(PLT)中TS流数据包的PID值70、73和76。Execute step S103, step S105, step S108 and step S109 to read the PID values 70, 73 and 76 of the TS stream data packets in the program list (PLT).
循环执行步骤S100、步骤S101、步骤S103、步骤S105至步骤S111,将所获得的TS流数据包按照PID值分别封装成ALP数据包。其封装后的ALP数据包结果如表7。Step S100 , step S101 , step S103 , step S105 to step S111 are executed cyclically, and the obtained TS stream data packets are respectively encapsulated into ALP data packets according to the PID values. The results of the encapsulated ALP packet are shown in Table 7.
表7Table 7
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. In the range.
本实施例提供的基于多业务TS流的ALP封装方法,应用于发送端ALP封装设备中,在封装ALP流数据包时,使用TS流数据包中的PID值,对不同TS流数据包的视频数据进行分别封装;本实施例中采用的PID值为该TS流数据包中TS报头中的PID字段的值。本实施例在不改变表报文封装头的基础上提高了多业务TS数据流的ALP封装效率。The ALP encapsulation method based on the multi-service TS stream provided in this embodiment is applied to the ALP encapsulation device at the sending end. When encapsulating the ALP stream data packet, the PID value in the TS stream data packet is used to convert the video data of different TS stream data packets. The data are encapsulated separately; the PID value adopted in this embodiment is the value of the PID field in the TS header in the TS stream data packet. This embodiment improves the ALP encapsulation efficiency of the multi-service TS data stream without changing the encapsulation header of the table message.
以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变形或修改,这并不影响本发明的实质内容。Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art may make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710027313.XA CN108307204B (en) | 2017-01-13 | 2017-01-13 | An ALP encapsulation method based on multi-service TS stream |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710027313.XA CN108307204B (en) | 2017-01-13 | 2017-01-13 | An ALP encapsulation method based on multi-service TS stream |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108307204A true CN108307204A (en) | 2018-07-20 |
CN108307204B CN108307204B (en) | 2020-07-28 |
Family
ID=62872499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710027313.XA Active CN108307204B (en) | 2017-01-13 | 2017-01-13 | An ALP encapsulation method based on multi-service TS stream |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108307204B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111770117A (en) * | 2020-09-01 | 2020-10-13 | 北京东方通软件有限公司 | Network packet splicing method and device |
CN114696944A (en) * | 2020-12-25 | 2022-07-01 | 深圳Tcl新技术有限公司 | Data packet processing method and device, intelligent terminal and computer readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1228221A (en) * | 1997-05-13 | 1999-09-08 | 松下电器产业株式会社 | Packet transmitter |
CN1210948C (en) * | 1996-05-31 | 2005-07-13 | 汤姆森消费电子有限公司 | Formation of performance specific information processed by digital data |
US6970462B1 (en) * | 2000-04-24 | 2005-11-29 | Cisco Technology, Inc. | Method for high speed packet classification |
CN1968211A (en) * | 2006-11-23 | 2007-05-23 | 华为技术有限公司 | Message header compression method, compressor and transmission system |
CN101379797A (en) * | 2006-02-06 | 2009-03-04 | 艾利森电话股份有限公司 | transport packet |
US20110096775A1 (en) * | 2009-10-22 | 2011-04-28 | Electronic And Telecommunications Research Institute | System and method for multiplexing and streaming contents |
CN102377650A (en) * | 2010-08-12 | 2012-03-14 | 华为技术有限公司 | Data transmission processing method, device and system |
WO2016195412A1 (en) * | 2015-06-04 | 2016-12-08 | 엘지전자 주식회사 | Broadcast signal transmission apparatus, broadcast signal reception apparatus, broadcast signal transmission method, and broadcast signal reception method |
-
2017
- 2017-01-13 CN CN201710027313.XA patent/CN108307204B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1210948C (en) * | 1996-05-31 | 2005-07-13 | 汤姆森消费电子有限公司 | Formation of performance specific information processed by digital data |
CN1228221A (en) * | 1997-05-13 | 1999-09-08 | 松下电器产业株式会社 | Packet transmitter |
US6970462B1 (en) * | 2000-04-24 | 2005-11-29 | Cisco Technology, Inc. | Method for high speed packet classification |
CN101379797A (en) * | 2006-02-06 | 2009-03-04 | 艾利森电话股份有限公司 | transport packet |
CN1968211A (en) * | 2006-11-23 | 2007-05-23 | 华为技术有限公司 | Message header compression method, compressor and transmission system |
US20110096775A1 (en) * | 2009-10-22 | 2011-04-28 | Electronic And Telecommunications Research Institute | System and method for multiplexing and streaming contents |
CN102377650A (en) * | 2010-08-12 | 2012-03-14 | 华为技术有限公司 | Data transmission processing method, device and system |
WO2016195412A1 (en) * | 2015-06-04 | 2016-12-08 | 엘지전자 주식회사 | Broadcast signal transmission apparatus, broadcast signal reception apparatus, broadcast signal transmission method, and broadcast signal reception method |
Non-Patent Citations (2)
Title |
---|
WOOSUK KWON等: "The ATSC Link-layer Protocol (ALP):Design and Efficiency Evaluation", 《IEEE TRANSACTIONS ON BROADCASTING》 * |
何大治等: "ATSC3.0关键技术介绍", 《电视技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111770117A (en) * | 2020-09-01 | 2020-10-13 | 北京东方通软件有限公司 | Network packet splicing method and device |
CN114696944A (en) * | 2020-12-25 | 2022-07-01 | 深圳Tcl新技术有限公司 | Data packet processing method and device, intelligent terminal and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108307204B (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220078222A1 (en) | Interface apparatus and method for transmitting and receiving media data | |
CN100544447C (en) | A transmission method of mobile multimedia broadcasting service data stream | |
CN109040791A (en) | Method and apparatus for sending media data in multi-media transmission system | |
CN101459611B (en) | Data transmission scheduling method, system and device for IP SAN storage | |
CN108632559B (en) | A kind of video data handling procedure and device | |
CN102916936B (en) | IP data encapsulating method and system applicable to IP over DVB (digital video broadcasting) | |
CN103595660A (en) | IP data packet encapsulating method and method for compressing packet head of data packet | |
CN109246486A (en) | A kind of framing method and device | |
CN109818960A (en) | Data processing method and device | |
WO2008154779A1 (en) | Apparatus and method for encapsulating data | |
CN109547163A (en) | A kind of control method and device of message transmission rate | |
CN108307204B (en) | An ALP encapsulation method based on multi-service TS stream | |
CN109905729A (en) | Method and apparatus for sending multimedia data packets using cross-layer optimization | |
CN111614714B (en) | A data processing method and device for a business system | |
CN110049341A (en) | Method for processing video frequency and device | |
CN109151610A (en) | A kind for the treatment of method and apparatus receiving web camera picture | |
CN109547727A (en) | Data cache method and device | |
CN110401513A (en) | A data transmission method and device | |
WO2025040105A1 (en) | Video bitstream processing method and apparatus, and device and readable storage medium | |
CN102088420A (en) | Method and system for transmitting multi-media message as well as multi-media message service center (MMSC) | |
CN101511009A (en) | Transmission method for multipath concurrence network television video stream based on internet | |
CN108882054B (en) | Data header structure and encapsulation method for STL-SFN transmission process | |
CN110166832A (en) | A kind of communication means based on media data and view networked system | |
CN108306848A (en) | A kind of data packet length identification method based on media encapsulation format | |
CN101330398B (en) | Method for transmitting business data flow |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |