[go: up one dir, main page]

CN110224793A - A kind of adaptive FEC method based on media content - Google Patents

A kind of adaptive FEC method based on media content Download PDF

Info

Publication number
CN110224793A
CN110224793A CN201910549405.3A CN201910549405A CN110224793A CN 110224793 A CN110224793 A CN 110224793A CN 201910549405 A CN201910549405 A CN 201910549405A CN 110224793 A CN110224793 A CN 110224793A
Authority
CN
China
Prior art keywords
fec
media content
coding
media
mmt
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
CN201910549405.3A
Other languages
Chinese (zh)
Other versions
CN110224793B (en
Inventor
徐异凌
张文军
黄巍
汤旭国
李博
孙军
管云峰
柳宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiao Tong University
Original Assignee
Shanghai Jiao Tong University
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 Shanghai Jiao Tong University filed Critical Shanghai Jiao Tong University
Priority to CN201910549405.3A priority Critical patent/CN110224793B/en
Publication of CN110224793A publication Critical patent/CN110224793A/en
Application granted granted Critical
Publication of CN110224793B publication Critical patent/CN110224793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • H04L1/0042Encoding specially adapted to other signal generation operation, e.g. in order to reduce transmit distortions, jitter, or to improve signal shape
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明提供了一种基于媒体内容的自适应FEC方法,该方法将媒体内容进行分级,并赋予不同的重要性,在不对原有媒体数据流进行分流的情况下,根据当前信道状况,动态调整媒体数据包中所包含的帧的重要程度和相应的编码方案,把数据包传送到相应的FEC编码器,进行不同程度的保护,最终一个源数据流只会被编码为一个FEC码流,实现最大限度保证媒体内容质量的同时,减少FEC造成的极大的数据量;不需要对源数据流进行分流,降低了发送端FEC编码的复杂度,提高了FEC编码的效率;极大的减少因FEC编码带来的数据量的增加;可以根据当前网络状态的变化动态的调整编码方案,因此对时变网络具有更强的适应性。

The present invention provides an adaptive FEC method based on media content. The method classifies media content and assigns different importances, and dynamically adjusts the FEC according to the current channel status without shunting the original media data stream. The importance of the frame contained in the media data packet and the corresponding encoding scheme, the data packet is transmitted to the corresponding FEC encoder, and different degrees of protection are carried out. Finally, a source data stream will only be encoded into a FEC code stream to achieve While ensuring the quality of media content to the greatest extent, it reduces the huge amount of data caused by FEC; it does not need to split the source data stream, which reduces the complexity of FEC coding at the sending end and improves the efficiency of FEC coding; greatly reduces the The increase in the amount of data brought about by FEC coding; the coding scheme can be dynamically adjusted according to changes in the current network state, so it has stronger adaptability to time-varying networks.

Description

一种基于媒体内容的自适应FEC方法An Adaptive FEC Method Based on Media Content

本申请是母案发明申请201510673091.X,发明创造名称《一种基于媒体内容的自适应FEC机制》、申请日2015年10月16日的分案申请。This application is a divisional application of the parent invention application 201510673091.X with the title of invention "An Adaptive FEC Mechanism Based on Media Content" and the filing date of October 16, 2015.

技术领域technical field

本发明涉及多媒体传输技术领域,更具体地,涉及一种基于媒体内容的自适应FEC(前向纠错)方法。The present invention relates to the technical field of multimedia transmission, and more specifically, to an adaptive FEC (forward error correction) method based on media content.

背景技术Background technique

在异构网络媒体服务系统中,内容通过因特网协议或广播协议分发到终端,因特网中使用IP/TCP或UDP报文来传输媒体数据,广播通过MPEG2-TS来传输内容。UDP报文在经过多个网络设备后可能会出现丟失,广播TS流可能因为传输环境的影响,产生误码,从而造成终端侧的画面破损或者声音停顿。In the heterogeneous network media service system, the content is distributed to the terminal through the Internet protocol or broadcast protocol, the Internet uses IP/TCP or UDP packets to transmit media data, and the broadcast transmits content through MPEG2-TS. UDP packets may be lost after passing through multiple network devices, and broadcast TS streams may cause bit errors due to the influence of the transmission environment, resulting in broken screens or sound pauses on the terminal side.

FEC(Forward Error Correction,前向纠错)技术是一种广泛应用于通信系统中的编码技术。通过服务器侧对媒体数据进行纠错编码,加入冗余信息一并发送,终端侧进行反向FEC解码,对丟失的报文进行恢复。以典型的分组码为例,其基本原理是:在发送端,通过将kbit信息作为一个分组进行编码,加入(n-k)bit的冗余校验信息,组成长度为n bit的码字。码字经过信道到达接收端之后,如果错误在可纠范围之内,通过译码即可检查并纠正错误bit,从而抵抗信道带来的干扰,有效降低系统的误码率,提高通信系统的可靠性。FEC (Forward Error Correction, Forward Error Correction) technology is a coding technology widely used in communication systems. The server side performs error correction encoding on the media data, adds redundant information and sends it together, and the terminal side performs reverse FEC decoding to restore the lost message. Taking a typical block code as an example, the basic principle is: at the sending end, by encoding the kbit information as a block, adding (n-k) bit redundancy check information to form a codeword with a length of n bits. After the code word reaches the receiving end through the channel, if the error is within the correctable range, the error bit can be checked and corrected by decoding, thereby resisting the interference caused by the channel, effectively reducing the bit error rate of the system, and improving the reliability of the communication system sex.

但是FEC处理,是以冗余开销代价来降低系统的误码率,过度FEC编码对系统实时性和网络状态也会造成压力。However, FEC processing is to reduce the bit error rate of the system at the cost of redundant overhead, and excessive FEC coding will also cause pressure on the system's real-time performance and network status.

在ISO-23008-1/10/13标准中,传统的FEC结构对于所有信息统一进行编码,对于用户信息没有区分度。对于混合内容或者混合网络下分发不适合,因此他们提出了两层结构。两层结构,如附图1所示。In the ISO-23008-1/10/13 standard, the traditional FEC structure uniformly encodes all information, and has no distinction for user information. It is not suitable for mixed content or distribution under mixed networks, so they proposed a two-tier structure. Two-layer structure, as shown in Figure 1.

第一层将source packet block分为较多的小块分别做FEC保护,第二层是一个整块做FEC保护。第一层划分较细致可以提供较小的时延,第二层保证了恢复性能和较小的冗余。The first layer divides the source packet block into more small blocks for FEC protection, and the second layer is a whole block for FEC protection. The finer division of the first layer can provide a small delay, and the second layer ensures recovery performance and small redundancy.

对于混合内容传输,其内容可能分为timed和non-timed,因此可以采用这种两层结构。时序内容用方式1,保证了时延,非时序内容同时借助方式1和方式2,保证了准确性。For mixed content transmission, its content may be divided into timed and non-timed, so this two-layer structure can be adopted. Timing content uses method 1 to ensure the delay, and non-chronological content uses both methods 1 and 2 to ensure accuracy.

对于用户处于不同性能信道,信道性能好的用户只需要FEC1保证时延和功耗,对于信道性能差的用户同时做FEC1和FEC2保证了准确性。For users in different performance channels, users with good channel performance only need FEC1 to ensure delay and power consumption. For users with poor channel performance, FEC1 and FEC2 are performed at the same time to ensure accuracy.

这在一定程度上的解决了问题,对于信道性能较差的用户(GroupB),两层结构确实提高了恢复性能,但是会引入极大的时延。对于信道性能较好的用户(GroupA),不一定是做FEC1,越小的分包带来越小的时延。没有考虑信息的不等重要程度。对于信息或者用户要根据两层结构进行分类,以及对于将大block拆分为小blcok的具体策略是一个复杂的问题。This solves the problem to a certain extent. For users with poor channel performance (GroupB), the two-layer structure does improve recovery performance, but it will introduce a huge delay. For users (GroupA) with better channel performance, FEC1 is not necessarily used, and the smaller the packet, the smaller the delay. The unequal importance of the information is not taken into account. It is a complicated issue to classify information or users according to the two-layer structure, and to split a large block into small blocks.

发明内容Contents of the invention

针对现有技术中的缺陷,本发明的目的是提供一种基于媒体内容的自适应FEC方法,从而解决目前FEC系统中实时性好,而准确性差,准确性好而实时性差,以及过度FEC编码造成的数据拥塞问题。In view of the defects in the prior art, the purpose of the present invention is to provide an adaptive FEC method based on media content, so as to solve the problem of good real-time performance but poor accuracy, good accuracy but poor real-time performance, and excessive FEC coding in the current FEC system. caused by data congestion.

为实现上述目的,本发明采用以下技术方案:To achieve the above object, the present invention adopts the following technical solutions:

一种基于媒体内容的自适应FEC方法,该方法将媒体内容进行分级,并赋予不同的重要性,在不对原有媒体数据流进行分流的情况下,根据当前信道状况,动态调整媒体数据包中所包含的帧的重要程度和相应的编码方案,把数据包传送到相应的FEC编码器,进行不同程度的保护,最终一个源数据流只会被编码为一个FEC码流。An adaptive FEC method based on media content, which classifies media content and assigns different importances, and dynamically adjusts the content of media data packets according to the current channel conditions without shunting the original media data streams. The importance of the included frames and the corresponding encoding scheme, the data packets are transmitted to the corresponding FEC encoder, and different degrees of protection are performed. In the end, one source data stream will only be encoded into one FEC code stream.

进一步的,所述方法在与媒体处理单元(MPU)一同传输的信令信息中加入不等差错保护标志位。Further, the method adds an unequal error protection flag bit to the signaling information transmitted together with the media processing unit (MPU).

进一步的,所述方法加入专门的指示字段,可以做更多个性化的保护方案。更进一步的,所述专门的指示字段加在MFU包头前。Further, the method adds a special indication field, so that more personalized protection schemes can be implemented. Furthermore, the special indication field is added before the header of the MFU packet.

进一步的,所述方法将媒体内容进行分级,并赋予不同的重要性,然后利用信令和指示字段控制,采用不同的FEC编码强度编码。Further, the method classifies the media content and assigns different importances, and then uses signaling and indication field control to encode with different FEC coding strengths.

进一步的,所述方法能够根据当前网络状况动态的改变编码方案,提供自适应的保护强度。Furthermore, the method can dynamically change the coding scheme according to the current network conditions, and provide adaptive protection strength.

进一步的,所述方法在与媒体处理单元(MPU)一同传输的信令信息中加入不等差错保护标志位,同时加入专门的指示字段,以形成更多个性化的保护方案。Further, the method adds an unequal error protection flag bit and a special indication field to the signaling information transmitted together with the media processing unit (MPU), so as to form more personalized protection schemes.

较优地,所述方法将媒体内容进行分级,并赋予不同的重要性,然后利用信令和指示字段控制,采用不同的FEC编码强度编码。Preferably, the method classifies the media content and assigns different importances, and then utilizes signaling and indication field control to encode with different FEC coding strengths.

进一步的,所述方法针对MMT AL-FEC发送端架构,发送端流程为:Further, the method is aimed at the MMT AL-FEC sender architecture, and the sender process is:

a)服务器端根据媒体资源生成MMTP流和信令;a) The server side generates MMTP flow and signaling according to media resources;

b)根据MMT流中每帧数据的重要性的不同,把MMT包传递到FEC编码器,对不同的优先级,采用不同的FEC编码矩阵对MMT包进行FEC编码生成相应的FEC码;b) according to the importance of each frame of data in the MMT stream, the MMT packet is delivered to the FEC encoder, and for different priorities, different FEC encoding matrices are used to perform FEC encoding on the MMT packet to generate corresponding FEC codes;

c)将上步中对同一数据流的不同优先级的MMT包进行FEC编码后形成的FEC码进行整合生成一个FEC码流;c) Integrating the FEC codes formed after FEC encoding the MMT packets of different priorities of the same data stream in the previous step to generate a FEC code stream;

d)FEC编码完后,返回相应的修复字符以及FEC数据负载标识和原数据负载标识;d) After the FEC encoding is completed, return the corresponding repair character and the FEC data payload identifier and the original data payload identifier;

e)所有的修复字符打包成FEC修复包,发送到传输层。e) All repaired characters are packaged into a FEC repair package and sent to the transport layer.

进一步的,本发明通过信令识别FEC流以及采用的FEC编码结构和FEC code,为了支持这种方法,修改了信令中的fec_flow_descriptor字段:在AL-FEC message中现有的三种fec_coding_structure的基础上增加了一种新的fec_coding_structure,fec_coding_structure的功能是用来描述当前采用的FEC编码方案,包括选择的编码算法,是否采用私有编码方案,最大的保护时间窗时间和值等信息,该字段位于AL-FEC信令中被传送到接收端;新增加的fec_coding_structure的标志位的值在现有的reserved的范围内选择;Furthermore, the present invention identifies the FEC flow and the FEC coding structure and FEC code adopted by the signaling. In order to support this method, the fec_flow_descriptor field in the signaling is modified: the basis of the three existing fec_coding_structures in the AL-FEC message A new fec_coding_structure is added to the above. The function of fec_coding_structure is to describe the currently used FEC coding scheme, including the selected coding algorithm, whether to use a private coding scheme, the maximum protection time window time and value, and other information. This field is located in AL -It is transmitted to the receiving end in FEC signaling; the value of the flag bit of the newly added fec_coding_structure is selected within the existing reserved range;

原来的信令仅仅支持一个FEC流中复用多个媒体资源的修复信息,现在增加了一种针对一个媒体资源的不同重要性部分,分别进行FEC的信令控制,使FEC方法能够更加细化,服务端可以根据用户网络状态动态地调整媒体资源不同部分的FEC强度,在网络带宽和用户体验间取得一个平衡点。The original signaling only supports the repair information of multiple media resources multiplexed in one FEC stream. Now, a kind of FEC signaling control for different important parts of a media resource is added, so that the FEC method can be more refined. , the server can dynamically adjust the FEC strength of different parts of media resources according to the user's network status, and achieve a balance between network bandwidth and user experience.

与现有技术相比,本发明具有如下的有益效果:Compared with the prior art, the present invention has the following beneficial effects:

采用了本发明的技术方案,可以针对目前FEC系统中过度编码造成的数据拥塞,通过对媒体内容分级,赋予不同的重要性,利用信令和指示位控制,采用不同的FEC编码强度;实现最大限度保证媒体内容质量的同时,减少FEC造成的极大的数据量;由于不需要对源数据流进行分流,因此降低了发送端FEC编码的复杂度,提高了FEC编码的效率;由于对一个源数据流只会编码生成一个FEC码流,因此可以极大的减少因FEC编码带来的数据量的增加;同时由于可以根据当前网络状态的变化动态的调整编码方案,因此对时变网络具有更强的适应性。Adopting the technical solution of the present invention, aiming at the data congestion caused by excessive coding in the current FEC system, by classifying the media content, giving different importance, using signaling and indicator bit control, and using different FEC coding strengths; to achieve maximum While ensuring the quality of media content to the maximum, it reduces the huge amount of data caused by FEC; since it is not necessary to split the source data stream, it reduces the complexity of FEC coding at the sending end and improves the efficiency of FEC coding; The data stream will only be encoded to generate an FEC code stream, so the increase in the amount of data caused by FEC encoding can be greatly reduced; at the same time, the encoding scheme can be dynamically adjusted according to the change of the current network state, so it is more effective for time-varying networks. Strong adaptability.

附图说明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是MMT中针对媒体资源的FEC两层结构;Figure 1 is a two-layer structure of FEC for media resources in MMT;

图2a-图2b是一个图像组中各帧依赖关系图;Fig. 2a-Fig. 2b are each frame dependency graph in an image group;

图3是一个通用的MPU组成部分及各部分的重要性示意图;Fig. 3 is a schematic diagram of the importance of a general MPU component and each part;

图4是改进的MMT AL-FEC发送端架构图。Fig. 4 is a structural diagram of an improved MMT AL-FEC sending end.

具体实施方式Detailed ways

下面结合具体实施例对本发明进行详细说明。以下实施例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进。这些都属于本发明的保护范围。The present invention will be described in detail below in conjunction with specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. 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. These all belong to the protection scope of the present invention.

如图1所示:MMT中针对媒体资源的FEC两层结构,第一层将source packet block分为较多的小块分别做FEC保护,第二层是一个整块做FEC保护。第一层划分较细致可以提供较小的时延,第二层保证了恢复性能和较小的冗余,但是这种灵活性不够。As shown in Figure 1: the FEC two-layer structure for media resources in MMT, the first layer divides the source packet block into more small blocks for FEC protection, and the second layer is a whole block for FEC protection. The finer division of the first layer can provide a smaller delay, and the second layer ensures recovery performance and smaller redundancy, but this flexibility is not enough.

如图2a-图2b所示:一个图像组中各帧依赖关系,此图说明一个图像组中不同帧的依赖程度和重要性不同,I帧是最重要的,前面的P帧比后面P帧重要,B帧重要性最低,因此可以根据重要性不同进行分层FEC。这也是进行FEC的基础。As shown in Figure 2a-Figure 2b: the dependence of each frame in an image group, this figure shows that the dependence and importance of different frames in an image group are different, the I frame is the most important, the front P frame is more important than the back P frame Important, the B frame is the least important, so hierarchical FEC can be performed according to the importance. This is also the basis for FEC.

实施例一:Embodiment one:

本实施例以MMT传输协议为例This embodiment takes the MMT transmission protocol as an example

MMT方案中,MPU包下的MFU包拥有不同的重要性,缺少不等差错的保护,这样就不能设定个性化的传输方案。在MMT的包中,不同重要程度的帧(如I帧和B帧)是可以区分开的(有指示标志)如附图2a-图2b,附图3。然而编码中并没有涉及到不等差错的保护,虽然Two-stage结构方案和LA-FEC在一定程度上可以实现不等差错保护,但是灵活性低,复杂度高。尤其对于变化的信道状况和具有不同特征(如缓存不同)的接收用户,现有两种方式会存在冗余大,适应性差,只能针对单一状况,无法从用户体验考虑等问题。In the MMT scheme, the MFU packages under the MPU package have different importances and lack the protection of unequal errors, so it is impossible to set a personalized transmission scheme. In MMT packets, frames of different importance (such as I frame and B frame) can be distinguished (with indication marks) as shown in Fig. 2a-Fig. 2b, Fig. 3 . However, the protection of unequal errors is not involved in the coding. Although the Two-stage structure scheme and LA-FEC can realize unequal error protection to a certain extent, they have low flexibility and high complexity. Especially for changing channel conditions and receiving users with different characteristics (such as different buffers), the existing two methods have large redundancy, poor adaptability, can only address a single situation, and cannot be considered from the perspective of user experience.

解决方式:Solution:

1根据属于不同重要程度帧的包,其重要程度有所区分,同时结合信道状况和用户体验感受,自适应的改变编码方案。例如当信道状况很差或是用户存储能力有限时候,发送端将更针对I帧数据进行保护,使得用户以更大的概率接收到I帧,B帧和P帧将更大程度的在接收时候舍弃,这样不再是接收端后续的处理中舍弃B,P帧,而是从发送端就解决了这一问题,节省了带宽资源,可以利用资源保护更多的重要帧。而在时变信道中,可以根据当前网络状况的变化自适应的改变FEC编码方案,例如如果出现网络状况恶化的情况,可以通过改变FEC seed来改变FEC编码的编码矩阵,增加传输数据的保护强度。1 According to the packets belonging to frames with different importance levels, the importance levels are differentiated, and the coding scheme is adaptively changed in combination with channel conditions and user experience. For example, when the channel condition is very poor or the user's storage capacity is limited, the sending end will protect the I frame data more, so that the user will receive the I frame with a greater probability, and the B frame and P frame will be received to a greater extent. Abandoning, so that it is no longer discarding B and P frames in the subsequent processing of the receiving end, but solving this problem from the sending end, saving bandwidth resources, and using resources to protect more important frames. In a time-varying channel, the FEC coding scheme can be adaptively changed according to changes in the current network conditions. For example, if the network condition deteriorates, the FEC coding matrix can be changed by changing the FEC seed to increase the protection strength of the transmitted data. .

2如果不加入专门的指示字段,那么只能根据现有的状况来编码,不等差错保护只能按照所属帧的重要程度来安排。在与MPU同传输的信令中加入不等差错保护标志位。2 If no special indication field is added, it can only be coded according to the existing situation, and the unequal error protection can only be arranged according to the importance of the frame to which it belongs. The unequal error protection flag bit is added to the signaling transmitted with the MPU.

3但是如果想更个性化的方案,随着信道质量改变保护方案,根据用户特征来定制,那么则需要加入专门的指示字段。由于不同的MFU有不同的重要性,则在MFU包头前加入指示,可以做更多个性化的保护方案。3 But if you want a more personalized scheme, change the protection scheme with the channel quality, and customize it according to user characteristics, then you need to add a special indication field. Since different MFUs have different importance, more personalized protection schemes can be implemented by adding instructions before the MFU header.

如图4所示,是改进的MMT AL-FEC发送端架构,主要修改了MMT协议中流化后的输出,把MMT数据包按照优先级发送到FEC编码器分别进行FEC编码,根据MMT包的优先级不同,选择不同的编码矩阵,并将各个优先级经过FEC编码器处理后生成的FEC码整合成一个FEC码流。As shown in Figure 4, it is an improved MMT AL-FEC sender architecture, which mainly modifies the streamed output in the MMT protocol, and sends the MMT data packets to the FEC encoder according to the priority for FEC encoding. According to the priority of the MMT packet For different levels, select different encoding matrices, and integrate the FEC codes generated by each priority level after being processed by the FEC encoder into one FEC code stream.

发送端架构如附图4所示。The sender architecture is shown in Figure 4.

发送端流程:Sending process:

a)服务器端根据媒体资源生成MMTP流和信令。a) The server side generates MMTP flow and signaling according to media resources.

b)根据MMT流中每帧数据的重要性的不同,把MMT包传递到FEC编码器,对不同的优先级,采用不同的FEC编码矩阵对MMT包进行FEC编码生成相应的FEC码。b) According to the importance of each frame of data in the MMT stream, the MMT packet is passed to the FEC encoder, and for different priorities, different FEC coding matrices are used to perform FEC encoding on the MMT packet to generate corresponding FEC codes.

c)将上步中对同一数据流的不同优先级的MMT包进行FEC编码后形成的FEC码进行整合生成一个FEC码流。c) Integrating the FEC codes formed after performing FEC coding on the MMT packets of different priorities of the same data stream in the previous step to generate an FEC code stream.

d)FEC编码完后,返回相应的修复字符以及FEC数据负载标识和原数据负载标识。d) After the FEC encoding is completed, the corresponding repair character, the FEC data load identifier and the original data payload identifier are returned.

e)所有的修复字符打包成FEC修复包,发送到传输层。e) All repaired characters are packaged into a FEC repair package and sent to the transport layer.

通过信令识别FEC流以及采用的FEC编码结构和FEC code,为了支持这种方法,本实施例中修改了信令中的fec_flow_descriptor字段。The FEC flow and the adopted FEC coding structure and FEC code are identified through signaling. In order to support this method, the fec_flow_descriptor field in the signaling is modified in this embodiment.

表1:fec_coding_structure的说明Table 1: Description of fec_coding_structure

原来的信令仅仅支持一个FEC流中复用多个媒体资源的修复信息,本实施例增加新的fec_coding_structure,fec_coding_structure的功能是用来描述当前采用的FEC编码方案,包括选择的编码算法,是否采用私有编码方案,最大的保护时间窗时间和值等信息,该字段位于AL-FEC信令中被传送到接收端。新增加的fec_coding_structure的标志位的值可以在现有的reserved的范围内选择,本方案中建议选取为0110。The original signaling only supports the repair information of multiple media resources multiplexed in one FEC stream. This embodiment adds a new fec_coding_structure. The function of fec_coding_structure is to describe the currently used FEC coding scheme, including the selected coding algorithm, whether to use Information such as the private coding scheme, the maximum protection time window time and value, etc., this field is sent to the receiving end in the AL-FEC signaling. The value of the flag bit of the newly added fec_coding_structure can be selected within the existing reserved range, and it is recommended to select 0110 in this solution.

表中的字段语义如下:The field semantics in the table are as follows:

seed:随机种子,是作为产生伪随机数的初始条件,用于产生伪随机序列以构造FEC编码的生成矩阵和校验矩阵。seed的选取有多种算法,常用的如获取系统当前时间,获取当前进程ID等方法。seed: Random seed, which is used as the initial condition for generating pseudo-random numbers, and is used to generate pseudo-random sequences to construct the generation matrix and check matrix of FEC encoding. There are many algorithms for seed selection, such as obtaining the current time of the system, obtaining the current process ID and other methods are commonly used.

num_of_priority_for_mmtps:一个媒体资源中优先级的数目。num_of_priority_for_mmtps: The number of priorities in a media resource.

priority_mapping:优先级映射,用于指示媒体资源中不同数据包与资源优先级的映射关系。priority_mapping: Priority mapping, used to indicate the mapping relationship between different data packets in media resources and resource priorities.

private_fec_flag:指示位,指明是否使用私有的FEC编码方案。private_fec_flag: Indicates whether to use a private FEC coding scheme.

private_flag:指示位,指明是否存在一个private_field用来描述所使用的私有FEC编码方案。private_flag: Indicates whether there is a private_field used to describe the private FEC coding scheme used.

private_field_length:长度字段,用于描述私有FEC编码方案的字段的长度。private_field_length: length field, used to describe the length of the field of the private FEC coding scheme.

private_field:用于描述私有FEC方案的详细信息。private_field: used to describe the details of the private FEC scheme.

priority_id:优先级id,用于指示MMT包的优先级。priority_id: priority id, used to indicate the priority of the MMT packet.

fec_code_id_for_repair_flow:用于描述所使用的FEC编码方案。fec_code_id_for_repair_flow: Used to describe the FEC encoding scheme used.

repair_flow_id:8位整数,用于指示生成的FEC repair flow,与FEC repair包的包头中的packet id有对应关系。repair_flow_id: 8-bit integer, used to indicate the generated FEC repair flow, corresponding to the packet id in the header of the FEC repair packet.

maximum_k_for_repair_flow:24位整数,描述在一个source sysmbol块中sourcesymbol的最大数目。maximum_k_for_repair_flow: 24-bit integer, describing the maximum number of sourcesymbols in a source sysmbol block.

maximum_p_for_repair_flow:24位整数,描述在一个repair sysmbol块中repairsymbol的最大数目。maximum_p_for_repair_flow: 24-bit integer, describing the maximum number of repairsymbols in a repair sysmbol block.

protection_window_time:保护窗时间,指示在FEC编码中发送第一个source或者repair包与发送最后一个source或者repair包之间的最大时间差,单位为毫秒。protection_window_time: Protection window time, indicating the maximum time difference between sending the first source or repair packet and sending the last source or repair packet in FEC encoding, in milliseconds.

protection_window_size:保护窗值,指示在FEC编码流中发送第一个FEC包的负载与发送最后一个FEC包负载之间的最大计数值。protection_window_size: Protection window value, indicating the maximum count value between the payload of the first FEC packet sent and the payload of the last FEC packet sent in the FEC encoded stream.

修改后的信令针对一个媒体资源的不同重要性部分,采用不同的编码矩阵分别对不同的优先级进行FEC的编码控制,对于一个媒体数据流最终只生成一个FEC码流,使FEC方法能够更加细化,同时减少因过度FEC编码带来的网络流量增加,采用该方案服务端可以根据用户网络状态动态地调整媒体资源不同部分的FEC强度,收端收到信令后,可以从中解析出seed以及各个资源包的优先级,根据seed生成校验矩阵进行FEC解码恢复媒体资源。在网络带宽和用户体验间取得一个平衡点。The modified signaling uses different encoding matrices to control the FEC encoding of different priorities for different important parts of a media resource. Only one FEC code stream is finally generated for a media data stream, so that the FEC method can be more efficient. Refinement, and at the same time reduce the increase in network traffic caused by excessive FEC coding. Using this solution, the server can dynamically adjust the FEC strength of different parts of the media resource according to the user's network status. After receiving the signaling, the receiving end can parse out the seed And the priority of each resource package, generate a parity check matrix according to the seed, perform FEC decoding and restore media resources. Strike a balance between network bandwidth and user experience.

上述解决方式的优势:Advantages of the above solution:

1资源的节省,如果在接收端,人为的根据情况舍弃已经接收的帧(例如B帧)则造成了传输资源的浪费,上述方案从源端解决问题,让不想要的包在传输过程中更大概率丢掉,而更大程度的保护了重要的包。1 Resource saving. If at the receiving end, artificially abandoning the received frames (such as B frames) according to the situation will cause a waste of transmission resources, the above solution solves the problem from the source end, so that unwanted packets are replaced during transmission. There is a high probability of loss, and the important package is protected to a greater extent.

2个性化的传输方案。视频传输应该是基于用户体验的,做更细致的不等差错保护就可以针对用户状况,如视觉体验,缓存状况等设计I帧和B帧的FEC保护的程度。2 Personalized transmission schemes. Video transmission should be based on user experience. By doing more detailed unequal error protection, the degree of FEC protection for I-frames and B-frames can be designed according to user conditions, such as visual experience and cache conditions.

3能根据当前网络状况自适应的改变FEC编码的方式,在对不同优先级的数据进行不同强度的FEC保护的基础上,如果出现网络状况恶化丢包率增加的情况下,可自适应的调整FEC的seed,改变FEC的生成矩阵,增加FEC强度来抵抗网络恶化带来的影响。3. It can adaptively change the FEC encoding method according to the current network conditions. On the basis of different strengths of FEC protection for data with different priorities, if the network condition deteriorates and the packet loss rate increases, it can be adaptively adjusted. The seed of FEC changes the generation matrix of FEC and increases the strength of FEC to resist the influence of network deterioration.

4MMT中现有的AL-FEC方案只支持对不同的优先级的MMT包生成不同的FEC码流,本方案提出的方案支持对一个媒体资源数据流只生成一个FEC码流,可以极大的减少FEC带来的流量增加,减小网络压力。The existing AL-FEC scheme in 4MMT only supports the generation of different FEC streams for MMT packets with different priorities. The scheme proposed in this scheme supports only one FEC stream for one media resource data stream, which can greatly reduce The increased traffic brought by FEC reduces network pressure.

以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变形或修改,这并不影响本发明的实质内容。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 (10)

1.一种基于媒体内容的自适应FEC方法,其特征在于,将媒体内容进行分级,并赋予不同的重要性,在不对原有媒体数据流进行分流的情况下,根据当前信道状况,动态调整媒体数据包中所包含的帧的重要程度和相应的编码方案,所述方法针对MMT AL-FEC发送端架构,发送端流程为:1. An adaptive FEC method based on media content, characterized in that the media content is classified and given different importance, and dynamically adjusted according to the current channel condition without shunting the original media data flow The importance of the frame contained in the media packet and the corresponding encoding scheme, the method is aimed at the MMT AL-FEC sender architecture, and the sender process is: 服务器端根据媒体内容生成MMT流和信令;The server side generates MMT flow and signaling according to the media content; 根据MMT流中每帧数据的重要性的不同,把MMT包传递到FEC编码器,该FEC编码矩阵根据MMT包的不同优先级而生成,对MMT包进行FEC编码生成相应的FEC码;According to the importance of each frame of data in the MMT stream, the MMT packet is passed to the FEC encoder. The FEC encoding matrix is generated according to the different priorities of the MMT packet, and the FEC encoding is performed on the MMT packet to generate the corresponding FEC code; 将上步中对同一数据流的不同优先级的MMT包进行FEC编码后形成的FEC码进行整合生成一个FEC码流;Integrate the FEC codes formed after performing FEC encoding on the MMT packets of different priorities of the same data stream in the previous step to generate a FEC code stream; FEC编码完后,返回相应的修复字符以及FEC数据负载标识和原数据负载标识;After FEC encoding, return the corresponding repair character, FEC data load identification and original data load identification; 所有的修复字符打包成FEC修复包,发送到传输层。All repair characters are packaged into FEC repair packets and sent to the transport layer. 2.根据权利要求1所述的基于媒体内容的自适应FEC方法,其特征在于,服务器所生成的信令至少用于指示修复字符。2. The adaptive FEC method based on media content according to claim 1, wherein the signaling generated by the server is at least used to indicate the repair character. 3.根据权利要求1所述的基于媒体内容的自适应FEC方法,其特征在于,所述MMT AL-FEC发送端架构,修改了MMT协议中流化后的输出,把MMT数据包按照优先级发送到FEC编码器分别进行FEC编码,根据MMT包的优先级不同,选择不同的编码矩阵,并将各个优先级经过FEC编码器处理后生成的FEC码整合成一个FEC码流。3. the adaptive FEC method based on media content according to claim 1, it is characterized in that, described MMT AL-FEC sender framework, has revised the output after the streaming in the MMT agreement, MMT packet is sent according to priority Go to the FEC encoder to perform FEC encoding respectively, select different encoding matrices according to the different priorities of the MMT packets, and integrate the FEC codes generated after each priority is processed by the FEC encoder into an FEC code stream. 4.根据权利要求1所述的基于媒体内容的自适应FEC方法,其特征在于,所述方法在与媒体处理单元(MPU)一同传输的信令信息中加入不等差错保护标志位。4. The adaptive FEC method based on media content according to claim 1, characterized in that the method adds an unequal error protection flag bit in the signaling information transmitted together with the media processing unit (MPU). 5.根据权利要求1所述的基于媒体内容的自适应FEC方法,其特征在于,所述方法加入专门的指示字段,以形成更多个性化的保护方案。5. The adaptive FEC method based on media content according to claim 1, characterized in that, the method adds a special indication field to form more personalized protection schemes. 6.根据权利要求3所述的基于媒体内容的自适应FEC方法,其特征在于,所述专门的指示字段加在MFU包头前。6. The adaptive FEC method based on media content according to claim 3, wherein the special indication field is added before the MFU header. 7.根据权利要求1所述的基于媒体内容的自适应FEC方法,其特征在于,所述方法在与媒体处理单元(MPU)一同传输的信令信息中加入不等差错保护标志位,同时加入专门的指示字段,以形成更多个性化的保护方案。7. the adaptive FEC method based on media content according to claim 1 is characterized in that, described method adds unequal error protection flag bit in the signaling information that transmits together with media processing unit (MPU), adds simultaneously Special instruction fields to form more personalized protection schemes. 8.根据权利要求1所述的基于媒体内容的自适应FEC方法,其特征在于,所述方法能根据网络状况的变化,自适应的改变编码方案。8. The adaptive FEC method based on media content according to claim 1, characterized in that the method can adaptively change the coding scheme according to the change of the network condition. 9.根据权利要求1所述的基于媒体内容的自适应FEC方法,其特征在于,所述方法通过信令识别FEC流以及采用的FEC编码结构和FEC code,为了支持这种机制,修改了信令中的fec_flow_descriptor字段:在AL-FEC message中现有的三种fec_coding_structure的基础上增加了一种新的fec_coding_structure,fec_coding_structure的功能是用来描述当前采用的FEC编码方案,包括选择的编码算法,是否采用私有编码方案,最大的保护时间窗时间和值等信息,该字段位于AL-FEC信令中被传送到接收端;新增加的fec_coding_structure的标志位的值在现有的reserved的范围内选择;9. The adaptive FEC method based on media content according to claim 1, characterized in that, the method identifies the FEC flow and the FEC coding structure and FEC code adopted by signaling, and in order to support this mechanism, the signaling The fec_flow_descriptor field in the order: A new fec_coding_structure is added on the basis of the existing three fec_coding_structures in the AL-FEC message. The function of fec_coding_structure is to describe the currently used FEC coding scheme, including the selected coding algorithm, whether Using a private coding scheme, information such as the maximum protection time window time and value, this field is transmitted to the receiving end in the AL-FEC signaling; the value of the newly added flag bit of fec_coding_structure is selected within the existing reserved range; 原来的信令仅仅支持一个FEC流中复用多个媒体资源的修复信息,现在增加了一种针对一个媒体资源的不同重要性部分,分别进行FEC的信令控制,使FEC机制能够更加细化,服务端可以根据用户网络状态动态地调整媒体资源不同部分的FEC强度,在网络带宽和用户体验间取得一个平衡点。The original signaling only supports the repair information of multiple media resources multiplexed in one FEC stream. Now, a kind of FEC signaling control for different important parts of a media resource is added, so that the FEC mechanism can be more refined. , the server can dynamically adjust the FEC strength of different parts of media resources according to the user's network status, and achieve a balance between network bandwidth and user experience. 10.根据权利要求9所述的基于媒体内容的自适应FEC方法,其特征在于,新增加的fec_coding_structure的标志位的值选取为0100。10. The adaptive FEC method based on media content according to claim 9, characterized in that the value of the flag bit of the newly added fec_coding_structure is selected as 0100.
CN201910549405.3A 2015-10-16 2015-10-16 An Adaptive FEC Method Based on Media Content Active CN110224793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910549405.3A CN110224793B (en) 2015-10-16 2015-10-16 An Adaptive FEC Method Based on Media Content

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910549405.3A CN110224793B (en) 2015-10-16 2015-10-16 An Adaptive FEC Method Based on Media Content
CN201510673091.XA CN106603192B (en) 2015-10-16 2015-10-16 An Adaptive FEC Method Based on Media Content

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510673091.XA Division CN106603192B (en) 2015-01-08 2015-10-16 An Adaptive FEC Method Based on Media Content

Publications (2)

Publication Number Publication Date
CN110224793A true CN110224793A (en) 2019-09-10
CN110224793B CN110224793B (en) 2021-03-09

Family

ID=58553836

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910549405.3A Active CN110224793B (en) 2015-10-16 2015-10-16 An Adaptive FEC Method Based on Media Content
CN201510673091.XA Active CN106603192B (en) 2015-01-08 2015-10-16 An Adaptive FEC Method Based on Media Content

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510673091.XA Active CN106603192B (en) 2015-01-08 2015-10-16 An Adaptive FEC Method Based on Media Content

Country Status (1)

Country Link
CN (2) CN110224793B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110224793B (en) * 2015-10-16 2021-03-09 上海交通大学 An Adaptive FEC Method Based on Media Content
CN109687934B (en) * 2017-10-18 2020-05-26 上海交通大学 Self-adaptive system code FEC method, device and system based on media content
EP3654556A4 (en) 2017-07-11 2021-04-21 Shanghai Jiao Tong University ADAPTIVE METHOD, DEVICE, AND SYSTEM BASED ON MULTIMEDIA CONTENT FOR FEC ENCODING AND DECODING OF A SYSTEMATIC CODE, AND SUPPORT
CN109245850B (en) * 2017-07-11 2021-04-02 上海交通大学 Adaptive System Code FEC Coding and Decoding Method Based on Media Content
CN113179262B (en) * 2018-07-11 2022-12-06 上海交通大学 Media transmission method and system under heterogeneous network
CN111385055B (en) * 2018-12-27 2023-03-24 杭州海康威视数字技术股份有限公司 Data transmission method and device
CN110299963A (en) * 2019-06-05 2019-10-01 西安万像电子科技有限公司 Data processing method and device
CN115190080A (en) * 2021-04-02 2022-10-14 维沃移动通信有限公司 Congestion control method and device and communication equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080025211A1 (en) * 2006-07-25 2008-01-31 Jeyhan Karaoguz Method and system for content-aware mapping/error protection
CN101478373A (en) * 2009-01-16 2009-07-08 北京航空航天大学 Signal source and channel combined optimized adaptive error control method
CN106603192A (en) * 2015-10-16 2017-04-26 上海交通大学 Adaptive FEC mechanism based on media content

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010017836A1 (en) * 2008-08-12 2010-02-18 Telefonaktiebolaget L M Ericsson (Publ) Subdivision of media streams for channel switching
CN101924946A (en) * 2009-06-16 2010-12-22 中兴通讯股份有限公司 Method and device for enhancing reliability of data in mobile multi-media broadcasting system
CN103795996B (en) * 2012-11-01 2016-08-03 上海贝尔股份有限公司 3D delivery of video method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080025211A1 (en) * 2006-07-25 2008-01-31 Jeyhan Karaoguz Method and system for content-aware mapping/error protection
CN101478373A (en) * 2009-01-16 2009-07-08 北京航空航天大学 Signal source and channel combined optimized adaptive error control method
CN106603192A (en) * 2015-10-16 2017-04-26 上海交通大学 Adaptive FEC mechanism based on media content

Also Published As

Publication number Publication date
CN110224793B (en) 2021-03-09
CN106603192B (en) 2019-07-19
CN106603192A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106603192B (en) An Adaptive FEC Method Based on Media Content
KR102048452B1 (en) Method for generating forward error correction packet in a multimedia system and tranmission/recetion method and apparatus thereof
JP7343915B2 (en) FEC mechanism based on media content
US9578292B2 (en) Device and method for transmitting/receiving a packet in communication system
JP5442816B2 (en) Streaming and buffering using variable FEC overhead and protection period
US9100180B2 (en) Method, device and communication system for retransmission based on forward error correction
CN103023813B (en) Wobble buffer
KR20130040096A (en) Apparatus and method for transmitting/receiving a packet in a mobile communication system
KR102383892B1 (en) Coding and decoding method, apparatus, system and medium of self-adapting system code FEC based on media content
CN101917625A (en) A Scalable Video Stream Transmission Method Based on Joint Source-Network Coding
CN108702245A (en) Adaptive application layer forward error correction for MPEG media transport
RU2646346C2 (en) Apparatus and method for transmitting and receiving forward error correction packet
CN106603193B (en) A FEC Method Based on Media Content
CN105827361A (en) Media content-based FEC (Forward Error Correction) mechanism
WO2018177348A1 (en) Self-adaptive fec coding matrix design method based on media content
CN108429921B (en) A video encoding and decoding method and device
CN101854224A (en) Error correcting coding method, device and system, and forwarding control method and device
EP2842253B1 (en) Apparatus and method for transmitting a packet in a communication system
CN109687934B (en) Self-adaptive system code FEC method, device and system based on media content
CN108306705A (en) A kind of adaptive FEC mechanism and system based on media content
CN105991226B (en) A kind of forward error correction based on unequal error protection
US20050201286A1 (en) Method and apparatus for processing header bits and payload bits
CN105978884A (en) Real-time stream encryption method for burst erasure channel

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