WO2012094981A1 - Method, device and system for updating synchronization source identifier - Google Patents

Method, device and system for updating synchronization source identifier Download PDF

Info

Publication number
WO2012094981A1
WO2012094981A1 PCT/CN2012/070175 CN2012070175W WO2012094981A1 WO 2012094981 A1 WO2012094981 A1 WO 2012094981A1 CN 2012070175 W CN2012070175 W CN 2012070175W WO 2012094981 A1 WO2012094981 A1 WO 2012094981A1
Authority
WO
WIPO (PCT)
Prior art keywords
synchronization source
source identifier
update
updated
added
Prior art date
Application number
PCT/CN2012/070175
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2012094981A1 publication Critical patent/WO2012094981A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0673Clock or time synchronisation among packet nodes using intermediate nodes, e.g. modification of a received timestamp before further transmission to the next packet node, e.g. including internal delay time or residence time into the packet

Definitions

  • the present invention relates to transmission techniques in multimedia systems, and more particularly to a method, apparatus and system for updating synchronization source identification.
  • IPTV Internet Protocol Television
  • VOIP Voice Over Internet Protocol
  • video surveillance services have become more and more widely used.
  • the synchronization source identifier can identify the sender of the code stream. Therefore, the receiver of the code stream can distinguish the normal code stream from the interference code stream according to the synchronization source identifier, and can determine the synchronization clock of the code stream according to the synchronization source identifier.
  • the video server may insert the code stream of the advertisement in real time during the process of sending the on-demand program code stream, and the code stream of the program and the code stream of the advertisement may have different synchronization source identifiers.
  • the stream receiving end may consider that the code stream of the advertisement is an interference stream and discard the stream, resulting in reception interruption.
  • the receiver of the code stream needs to receive the code streams of multiple senders at the same time, and the sender synchronization source identifier of the code stream may be the same, resulting in a synchronization source identifier conflict for the code stream receiver.
  • the sender of the code stream needs to update the synchronization source identifier.
  • the technical problem to be solved by the present invention is to provide a method, device and system for updating a synchronization source identifier, so as to enable a code stream receiver to know the update of the synchronization source identifier in time.
  • the present invention provides a method for updating a synchronization source identifier, which includes: a sending device encapsulates a code stream into a transport packet, where a synchronization source identifier update indication is added to a transport packet whose synchronization source identifier is updated;
  • the transmitting device sends the encapsulated transport packet.
  • the above method has the following characteristics:
  • the sending device encapsulates the code stream into a transport packet
  • the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets before the synchronization source identifier update, and the synchronization source identifier update is also performed.
  • the synchronization source identifier update offset is added to the transport packet.
  • the above method has the following characteristics:
  • the synchronization source identifier update indication and the synchronization source identifier update offset are also added to one or more transport packets after the synchronization source identifier is updated.
  • the above method has the following characteristics:
  • the synchronization source identifier update offset added to one or more transport packets after the synchronization source identifier is updated is a negative value; or
  • the synchronization source identifier update offset added to one or more transport packets before the update source identifier is a negative value
  • the synchronization source identifier update offset value added in the transport packet updated by the synchronization source identifier is 0.
  • the sync source ID update offset added to one or more transport packets after the synchronization source ID is updated is a positive value.
  • the above method has the following characteristics:
  • the receiving device After receiving the transport packet sent by the sending device, the receiving device updates the offset according to the synchronization source identifier update indication and the synchronization source identifier in the transport packet, and obtains the updated synchronization source identifier.
  • the present invention provides an apparatus for updating a synchronization source identifier, including a package module and a sending module, where
  • the encapsulating module is configured to: encapsulate the code stream into a transport packet, where the synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated;
  • the sending module is configured to: send the encapsulated transport packet.
  • the above device has the following features:
  • the encapsulating module is further configured to: when the code stream is encapsulated into a transport packet, add a synchronization source identifier update indication and a synchronization source identifier update offset in one or more transport packets before the synchronization source identifier update, in the synchronization source identifier
  • the synchronization source identifier update offset is added to the updated transport packet, and the synchronization source identifier update indication and the synchronization source identifier are added to one or more transport packets after the synchronization source identifier is updated. New offset.
  • the above device has the following features:
  • the synchronization source identifier update offset added to one or more transport packets after the synchronization source identifier is updated is a negative value; or
  • the synchronization source identifier update offset added to one or more transport packets before the update source identifier is a negative value
  • the synchronization source identifier update offset value added in the transport packet updated by the synchronization source identifier is 0.
  • the sync source ID update offset added to one or more transport packets after the synchronization source ID is updated is a positive value.
  • the present invention provides a system for updating a source identifier, including a sending device, where
  • the sending device is configured to: encapsulate the code stream into a transport packet, where the synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated; and the encapsulated transport packet is sent out.
  • the above system has the following characteristics:
  • the sending device is further configured to: when the code stream is encapsulated into a transport packet, add a synchronization source identifier update indication and a synchronization source identifier update offset in one or more transport packets before the synchronization source identifier update, in the synchronization source identifier
  • the synchronization source identifier update offset is added to the updated transport packet, and the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets after the synchronization source identifier is updated.
  • the above system further comprises a receiving device,
  • the receiving device is configured to: after receiving the transport packet sent by the sending device, obtain an updated synchronization source identifier according to the synchronization source identifier update indication and the synchronization source identifier update offset in the transport packet.
  • the embodiment of the present invention uses the synchronization source identifier update indication, so that the receiving device does not consider the updated synchronization source identifier as the interference code stream and erroneously discards the code stream.
  • the synchronization source identifier can be updated to the entire process of the synchronization source identifier update completion. When a plurality of transport packets are spanned, even if some of the transport packets are lost on the network, the information of the synchronization source identifier update is not lost.
  • FIG. 1 is a schematic structural diagram of a transmission packet according to an embodiment of the present invention.
  • RTP Real Time Transport Packet
  • FIG. 3 is a schematic diagram of a front end code stream sending process according to an application example of the present invention.
  • FIG. 4 is a schematic diagram of a terminal code stream receiving process according to an application example of the present invention.
  • the basic idea of the present invention is to update the synchronization source identifier by means of in-band transmission, and notify the code stream receiver in time to prevent the code stream receiver from erroneously judging the synchronization source identifier in the code stream, resulting in interruption of the code stream reception.
  • the sending device also referred to as a front-end stream sending device
  • the transmitting device sends the encapsulated transport packet.
  • the receiving device By adding the synchronization source identifier update indication to the transport packet updated by the synchronization source identifier, the receiving device does not consider the updated synchronization source identifier as the interference code stream and erroneously discards the code stream.
  • the code stream receiver can smoothly update the synchronization source identifier update in a network environment where packet loss exists, and the synchronization source can be added to multiple transmission packets. Identifies the update indication and the synchronization source ID update offset. Specifically, the following methods can be used:
  • the sending device When the sending device encapsulates the code stream into a transport packet, and also synchronizes the source identifier before updating one or
  • the synchronization source identifier update indication and the synchronization source identifier update offset are added to the plurality of transport packets, and the synchronization source identifier update offset is added to the transport packet of the synchronization source identifier update.
  • the synchronization source identifier update indication and the synchronization source identifier update offset are also added to one or more transport packets after the synchronization source identifier is updated.
  • the value of the above synchronization source identifier update offset can be set as follows:
  • the synchronization source identifier update offset added to one or more transport packets before the update source identifier is positive, indicating that the synchronization source identifier is updated by the advance amount, that is, after the update identifier is updated by the synchronization source identifier.
  • the synchronization source identifier is updated by the determined number of transport packets;
  • the synchronization source identifier update offset value added to the transport packet of the synchronization source identifier update is 0, indicating that the synchronization source identifier is updated in the transport packet;
  • the synchronization source identifier update offset added to the subsequent one or more transport packets is a negative value, that is, the synchronization source identifier is updated before the transport packet determined by the absolute value of the synchronization source identifier update offset. .
  • the synchronization source identifier update offset added to one or more transport packets before the update source identifier is a negative value, indicating that the synchronization source identifier updates the advance amount, that is, the update offset is further updated by the synchronization source identifier.
  • the synchronization source identifier is updated by the determined number of transport packets;
  • the synchronization source identifier update offset value added to the transport packet of the synchronization source identifier update is 0, indicating that the synchronization source identifier is updated in the transport packet;
  • the synchronization source identifier update offset added to the subsequent one or more transport packets is a positive value, that is, the synchronization source identifier is updated before the transport packet determined by the absolute value of the synchronization source identifier update offset. .
  • the synchronization source identifier is carried in the transport packet to identify the synchronization source (prior art).
  • the synchronization source identifier update indication proposed by the present invention is used to indicate the update process of the synchronization source identifier, and the synchronization source identifier update offset is used to indicate Synchronization source identification update timing.
  • the present invention proposes that the synchronization source identifier field and the synchronization source identifier update indication field and the synchronization source identifier update offset field may be carried in the transport packet, but the synchronization source identifier field and the synchronization source identifier update indication field and the synchronization source are not limited. Identify the location of the update offset field in the transport package And order.
  • the receiving device After receiving the transport packet sent by the sending device, the receiving device (such as the terminal receiving device) obtains the updated synchronization source identifier according to the synchronization source identifier update indication and the synchronization source identifier update offset in the transport packet.
  • the terminal receiving device detects that the transport packet carries the synchronization source identifier update indication, detecting a synchronization source update offset field in the transport packet, and determining, by the synchronization source update offset field, a synchronization source identifier update timing. After the terminal receiving device detects the synchronization source identifier update, the new synchronization source identifier is used.
  • the terminal receiving device may update the synchronization source identifier by the following steps:
  • the synchronization source identifier update offset in the transport packet When it is detected that the synchronization source identifier update offset in the transport packet is positive, it indicates that the synchronization source identifier will be updated in the subsequent transport packet of the transport packet, and continues to receive subsequent transport packets.
  • the synchronization source identifier update offset in the transport packet is 0, it indicates that the synchronization source identifier is updated in the transport packet, and the synchronization source identifier in the transport packet is used as the new synchronization source identifier.
  • the synchronization source identifier in the transport packet is used as the new sync source identifier. If the transport packet with the synchronization source identifier update offset of 0 is not received before the transport packet, it indicates that the transport packet with the update source identifier update offset of 0 is lost during the transmission.
  • the device for updating the synchronization source identifier of the embodiment of the present invention includes a package module and a sending module, where
  • the encapsulating module is configured to encapsulate the code stream into a transport packet, where the synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated;
  • the sending module is configured to send the encapsulated transport packet.
  • the encapsulating module may be further configured to: when the code stream is encapsulated into a transport packet, adding a synchronization source identifier update indication and a synchronization source identifier update offset to the one or more transport packets before the synchronization source identifier update, in the synchronization source
  • the synchronization source identifier update offset is added to the transport packet that identifies the update, and the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets after the synchronization source identifier is updated.
  • a system for updating a synchronization source identifier includes a transmitting device and a receiving device, where
  • the sending device is configured to encapsulate the code stream into a transport packet, where a synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated; and the encapsulated transport packet is sent out.
  • the sending device may be further configured to: when the code stream is encapsulated into a transport packet, adding a synchronization source identifier update indication and a synchronization source identifier update offset to the one or more transport packets before the synchronization source identifier update, in the synchronization source
  • the synchronization source identifier update offset is added to the transport packet that identifies the update, and the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets after the synchronization source identifier is updated.
  • the receiving device may be configured to: after receiving the transport packet sent by the sending device, update the offset according to the synchronization source identifier and the synchronization source identifier in the transport packet, and obtain the updated synchronization source identifier.
  • FIG. 2 is a schematic structural diagram of an RTP packet extended synchronization source identifier update indication field and a synchronization source identifier update offset field in the example.
  • this example uses two encoders as two streams.
  • One encoder A outputs one program A and the other encoder B outputs one advertisement B.
  • the front-end stream transmitting device receives the code stream of the program A from the encoder A, and the synchronization source identifier of the program A is 123456, and the front-end code stream transmitting device transmits the received code stream to the terminal stream receiving device.
  • the front-end stream transmitting device receives the advertisement B, and the front-end stream transmitting device receives the code stream of the advertisement B from the encoder B, and then transmits the code stream to the terminal stream receiving device.
  • the synchronization source identifier of the advertisement B is 654321, and the synchronization source identifier needs to be updated. Therefore, the front-end stream transmission device needs to notify the terminal stream receiving device in advance to prevent the terminal stream receiving device from being misjudged as The 4 stream is terminated to terminate the reception of the stream.
  • Step 301 Synchronize the source identifier before the update.
  • the code stream of the program A After transmitting the code stream of the program A for 10 minutes, it is determined that after continuing to transmit the six RTP packets of the program A, the code stream of the program A is stopped, and the code stream for inserting the advertisement B is prepared.
  • the 6 RTP packets are modified according to the order of transmission, and the P field in the RTP packet is set to 1 respectively, and the synchronization source identifier update field is added at the end of the RTP packet respectively.
  • the value of the synchronization source identifier update field is set to 1, and a synchronization source update offset field is added to the end of the RTP packet, and the synchronization source update offset field in the RTP packet is respectively assigned according to the order of sending. 6, 5, 4, 3, 2, 1.
  • the P field in the RTP packet is set to 1, indicating that an additional padding word will be included at the end of the packet.
  • Step 302 Synchronize the source identifier update processing.
  • an RTP packet is taken out from the code stream of the advertisement B, the P field in the RTP packet is set to 1, and a synchronization source is added at the end of the RTP packet.
  • the identifier update field is set, and the value of the synchronization source identifier update field is set to 1, and a synchronization source update offset field is added at the end of the RTP packet, and the value of the synchronization source identifier update offset field is set to 0, indicating The synchronization source identification has been updated since the RTP packet.
  • Step 303 The synchronization source identifier is processed after the update.
  • the six RTP packets of the advertisement B are continuously sent, the six RTP packets are modified according to the order of transmission, and the P field in each of the RTP packets is respectively set to 1, respectively, in each of the RTPs.
  • the sync source update offset field is assigned -1, -2, -3, -4, -5, -6.
  • a smoothing process is performed before the synchronization source is updated, and then the synchronization source identifier is updated, and a smoothing process is performed after the synchronization source is updated.
  • the terminal stream receiving device receives the RTP packet of program A and buffers the RTP packet.
  • the P field is 1 in the RTP packet of the program A, and detecting that the synchronization source identifier update indication field in the RTP packet is 1, detecting a synchronization source update offset field in the RTP packet,
  • the value of the synchronization source update offset field determines when the synchronization source identifier is updated, and when the synchronization source identifier is updated, the new synchronization source identifier is used.
  • Step 401 Identify the synchronization source pre-update processing
  • Receiving an RTP packet of the program A and processing detecting a P field in the RTP packet of the program A, and when the P field is 1, detecting a synchronization source identifier update indication field in the RTP packet, if the synchronization source identifier update indication field When 1, it indicates that the synchronization source identifier update starts.
  • the value of the synchronization source update offset field in the subsequent RTP packet is 1, it indicates that the synchronization source pre-processing has been completed, and the next RTP packet from the RTP packet will update the synchronization source identifier.
  • Step 402 Identify synchronization source update processing
  • the synchronization source identifier update offset in the RTP packet is 0, it indicates that the synchronization source identifier is updated in the RTP packet, and the synchronization source identifier in the RTP packet is used as the new synchronization source identifier.
  • Step 402 Identify the synchronization source post-update processing.
  • the synchronization source is indicated. If there is a packet loss on the network during the process of the identifier update, the synchronization source identifier in the RTP packet whose value of the offset field is negative is used as the new synchronization source identifier, and the synchronization source identifier update process is completed.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may use software functions.
  • the form of the module is implemented. The invention is not limited to any specific form of combination of hardware and software.
  • the embodiment of the present invention uses the synchronization source identifier update indication so that the receiving device does not consider the updated synchronization source identifier as the interference code stream and erroneously discards the code stream.
  • the synchronization source identifier can be updated to the synchronization source identifier. The entire process of updating is completed across multiple transport packets, even if some of the transport packets are lost on the network, the synchronization source identifier is updated. It will not be lost.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a method, device and system for updating a synchronization source identifier. The method includes: a transmitting device encapsulates a code stream into a transmission packet, wherein a synchronization source identifier update indication is added into the synchronization source identifier updated transmission packet; and the transmitting device transmits the encapsulated transmission packet. Due to the use of the synchronization source identifier update indication in the present invention, the receiving device will not regard the updated synchronization source identifier as an interference code stream and mistakenly discard the code stream.

Description

一种同步源标识更新的方法、 装置和***  Method, device and system for synchronizing source identification update
技术领域 Technical field
本发明涉及多媒体***中传输技术, 尤其涉及一种同步源标识更新的方 法、 装置和***。  The present invention relates to transmission techniques in multimedia systems, and more particularly to a method, apparatus and system for updating synchronization source identification.
背景技术 Background technique
随着通信技术的发展, 多媒体***中的传输技术的应用越来越广。 目前, IPTV( Internet Protocol Television,因特网协议电视)、 VOIP( Voice Over Internet Protocol, 网络电话)和视频监控业务得到了越来越广泛的应用。  With the development of communication technology, the application of transmission technology in multimedia systems is becoming more and more widespread. At present, IPTV (Internet Protocol Television), VOIP (Voice Over Internet Protocol) and video surveillance services have become more and more widely used.
同步源标识能够标识码流的发送方, 因此, 码流的接收方能够根据同步 源标识区分正常码流和干扰码流, 同时能够根据同步源标识确定码流的同步 时钟。 在点对点通信过程中, 例如视频点播业务, 视频服务器在发送点播节 目码流的过程中, 可能会实时***广告的码流, 节目的码流和广告的码流可 能存在不同的同步源标识, 码流接收端可能认为广告的码流是干扰码流而丟 弃该码流, 结果造成接收中断。 在多点通信过程中, 例如视频会议业务, 码 流的接收方需要同时接收多个发送方的码流, 码流的发送方同步源标识可能 相同, 结果给码流接收方造成同步源标识冲突, 码流的发送方需要更新同步 源标识。 发明内容  The synchronization source identifier can identify the sender of the code stream. Therefore, the receiver of the code stream can distinguish the normal code stream from the interference code stream according to the synchronization source identifier, and can determine the synchronization clock of the code stream according to the synchronization source identifier. In the process of peer-to-peer communication, such as video on demand service, the video server may insert the code stream of the advertisement in real time during the process of sending the on-demand program code stream, and the code stream of the program and the code stream of the advertisement may have different synchronization source identifiers. The stream receiving end may consider that the code stream of the advertisement is an interference stream and discard the stream, resulting in reception interruption. In the multipoint communication process, such as video conferencing service, the receiver of the code stream needs to receive the code streams of multiple senders at the same time, and the sender synchronization source identifier of the code stream may be the same, resulting in a synchronization source identifier conflict for the code stream receiver. The sender of the code stream needs to update the synchronization source identifier. Summary of the invention
本发明要解决的技术问题提出一种同步源标识更新的方法、装置和***, 以实现码流接收方能够及时获知同步源标识的更新。  The technical problem to be solved by the present invention is to provide a method, device and system for updating a synchronization source identifier, so as to enable a code stream receiver to know the update of the synchronization source identifier in time.
为了解决上述问题, 本发明提供一种同步源标识更新的方法, 包括: 发送设备将码流封装成传输包, 其中, 在同步源标识更新的传输包中加 入同步源标识更新指示;  In order to solve the above problem, the present invention provides a method for updating a synchronization source identifier, which includes: a sending device encapsulates a code stream into a transport packet, where a synchronization source identifier update indication is added to a transport packet whose synchronization source identifier is updated;
所述发送设备将封装后的传输包发送出去。  The transmitting device sends the encapsulated transport packet.
优选地, 上述方法具有以下特点: 所述发送设备将码流封装成传输包时, 还在同步源标识更新前的一个或 多个传输包中加入同步源标识更新指示以及同步源标识更新偏移量, 以及, 在同步源标识更新的传输包中加入同步源标识更新偏移量。 Preferably, the above method has the following characteristics: When the sending device encapsulates the code stream into a transport packet, the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets before the synchronization source identifier update, and the synchronization source identifier update is also performed. The synchronization source identifier update offset is added to the transport packet.
优选地, 上述方法具有以下特点:  Preferably, the above method has the following characteristics:
所述发送设备将码流封装成传输包时, 还在同步源标识更新后的一个或 多个传输包中加入同步源标识更新指示以及同步源标识更新偏移量。  When the transmitting device encapsulates the code stream into a transport packet, the synchronization source identifier update indication and the synchronization source identifier update offset are also added to one or more transport packets after the synchronization source identifier is updated.
优选地, 上述方法具有以下特点:  Preferably, the above method has the following characteristics:
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为正值, 同步源标识更新的传输包中加入的同步源标识更新偏移量的值 为 0 , 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为负值; 或者,  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is positive, and the synchronization source identifier update offset value added to the transport packet updated by the synchronization source identifier is 0. The synchronization source identifier update offset added to one or more transport packets after the synchronization source identifier is updated is a negative value; or
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为负值, 同步源标识更新的传输包中加入的同步源标识更新偏移量的值 为 0 , 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为正值。  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is a negative value, and the synchronization source identifier update offset value added in the transport packet updated by the synchronization source identifier is 0. The sync source ID update offset added to one or more transport packets after the synchronization source ID is updated is a positive value.
优选地, 上述方法具有以下特点:  Preferably, the above method has the following characteristics:
接收设备接收到发送设备发送的传输包后, 根据传输包中的同步源标识 更新指示和同步源标识更新偏移量, 获知更新后的同步源标识。  After receiving the transport packet sent by the sending device, the receiving device updates the offset according to the synchronization source identifier update indication and the synchronization source identifier in the transport packet, and obtains the updated synchronization source identifier.
为了解决上述问题, 本发明提供一种同步源标识更新的装置, 包括封装 模块和发送模块, 其中,  In order to solve the above problem, the present invention provides an apparatus for updating a synchronization source identifier, including a package module and a sending module, where
所述封装模块设置为: 将码流封装成传输包, 其中, 在同步源标识更新 的传输包中加入同步源标识更新指示;  The encapsulating module is configured to: encapsulate the code stream into a transport packet, where the synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated;
所述发送模块设置为: 将封装后的传输包发送出去。  The sending module is configured to: send the encapsulated transport packet.
优选地, 上述装置具有以下特点:  Preferably, the above device has the following features:
所述封装模块还设置为: 将码流封装成传输包时, 在同步源标识更新前 的一个或多个传输包中加入同步源标识更新指示以及同步源标识更新偏移 量, 在同步源标识更新的传输包中加入同步源标识更新偏移量, 在同步源标 识更新后的一个或多个传输包中加入同步源标识更新指示以及同步源标识更 新偏移量。 The encapsulating module is further configured to: when the code stream is encapsulated into a transport packet, add a synchronization source identifier update indication and a synchronization source identifier update offset in one or more transport packets before the synchronization source identifier update, in the synchronization source identifier The synchronization source identifier update offset is added to the updated transport packet, and the synchronization source identifier update indication and the synchronization source identifier are added to one or more transport packets after the synchronization source identifier is updated. New offset.
优选地, 上述装置具有以下特点:  Preferably, the above device has the following features:
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为正值, 同步源标识更新的传输包中加入的同步源标识更新偏移量的值 为 0 , 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为负值; 或者,  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is positive, and the synchronization source identifier update offset value added to the transport packet updated by the synchronization source identifier is 0. The synchronization source identifier update offset added to one or more transport packets after the synchronization source identifier is updated is a negative value; or
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为负值, 同步源标识更新的传输包中加入的同步源标识更新偏移量的值 为 0 , 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为正值。  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is a negative value, and the synchronization source identifier update offset value added in the transport packet updated by the synchronization source identifier is 0. The sync source ID update offset added to one or more transport packets after the synchronization source ID is updated is a positive value.
为了解决上述问题, 本发明提供一种同步源标识更新的***, 包括发送 设备, 其中,  In order to solve the above problem, the present invention provides a system for updating a source identifier, including a sending device, where
所述发送设备设置为: 将码流封装成传输包, 其中, 在同步源标识更新 的传输包中加入同步源标识更新指示; 以及, 将封装后的传输包发送出去。  The sending device is configured to: encapsulate the code stream into a transport packet, where the synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated; and the encapsulated transport packet is sent out.
优选地, 上述***具有以下特点:  Preferably, the above system has the following characteristics:
所述发送设备还设置为: 将码流封装成传输包时, 在同步源标识更新前 的一个或多个传输包中加入同步源标识更新指示以及同步源标识更新偏移 量, 在同步源标识更新的传输包中加入同步源标识更新偏移量, 在同步源标 识更新后的一个或多个传输包中加入同步源标识更新指示以及同步源标识更 新偏移量。  The sending device is further configured to: when the code stream is encapsulated into a transport packet, add a synchronization source identifier update indication and a synchronization source identifier update offset in one or more transport packets before the synchronization source identifier update, in the synchronization source identifier The synchronization source identifier update offset is added to the updated transport packet, and the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets after the synchronization source identifier is updated.
优选地, 上述***还包括接收设备,  Preferably, the above system further comprises a receiving device,
所述接收设备设置为: 接收到所述发送设备发送的传输包后, 根据传输 包中的同步源标识更新指示和同步源标识更新偏移量, 获知更新后的同步源 标识。  The receiving device is configured to: after receiving the transport packet sent by the sending device, obtain an updated synchronization source identifier according to the synchronization source identifier update indication and the synchronization source identifier update offset in the transport packet.
本发明实施例使用了同步源标识更新指示, 使得接收设备不会认为更新 的同步源标识为干扰码流而错误地丟弃码流。 另外, 通过使用同步源标识更 新偏移量, 可以使得同步源标识开始更新到同步源标识更新完成的整个过程 跨越多个传输包, 即使有部分传输包在网络上丟失, 同步源标识更新的信息 也不会丟失。 附图概述 The embodiment of the present invention uses the synchronization source identifier update indication, so that the receiving device does not consider the updated synchronization source identifier as the interference code stream and erroneously discards the code stream. In addition, by using the synchronization source identifier to update the offset, the synchronization source identifier can be updated to the entire process of the synchronization source identifier update completion. When a plurality of transport packets are spanned, even if some of the transport packets are lost on the network, the information of the synchronization source identifier update is not lost. BRIEF abstract
图 1为本发明实施例的传输包结构示意图;  1 is a schematic structural diagram of a transmission packet according to an embodiment of the present invention;
图 2为本发明应用示例的 RTP( Realtime Transport Packet,实时传输协议 ) 包结构示意图;  2 is a schematic structural diagram of an RTP (Real Time Transport Packet) packet of an application example of the present invention;
图 3为本发明应用示例的前端码流发送流程示意图;  3 is a schematic diagram of a front end code stream sending process according to an application example of the present invention;
图 4为本发明应用示例的终端码流接收流程示意图。  FIG. 4 is a schematic diagram of a terminal code stream receiving process according to an application example of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
本发明的基本思想是, 通过带内传输的方式更新同步源标识, 并及时通 知码流接收方, 防止码流接收方对码流中同步源标识的误判导致码流接收的 中断。  The basic idea of the present invention is to update the synchronization source identifier by means of in-band transmission, and notify the code stream receiver in time to prevent the code stream receiver from erroneously judging the synchronization source identifier in the code stream, resulting in interruption of the code stream reception.
具体地, 发送设备(也可称为前端码流发送设备)将码流封装成传输包, 其中, 在同步源标识更新的传输包中加入同步源标识更新指示; 传输包的结 构如图 1所示;  Specifically, the sending device (also referred to as a front-end stream sending device) encapsulates the code stream into a transport packet, where the synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated; the structure of the transport packet is as shown in FIG. 1 Show
所述发送设备将封装后的传输包发送出去。  The transmitting device sends the encapsulated transport packet.
通过在同步源标识更新的传输包中加入同步源标识更新指示, 使接收设 备不会认为更新的同步源标识为干扰码流而错误地丟弃码流。  By adding the synchronization source identifier update indication to the transport packet updated by the synchronization source identifier, the receiving device does not consider the updated synchronization source identifier as the interference code stream and erroneously discards the code stream.
进一步地, 为了防止同步源标识更新的传输包丟失, 确保即使在存在丟 包的网络环境下, 码流接收方能够及时平滑处理同步源标识的更新, 还可以 在多个传输包均加入同步源标识更新指示以及同步源标识更新偏移量。 具体 地, 可釆用如下方式:  Further, in order to prevent the transmission packet of the synchronization source identifier from being lost, it is ensured that the code stream receiver can smoothly update the synchronization source identifier update in a network environment where packet loss exists, and the synchronization source can be added to multiple transmission packets. Identifies the update indication and the synchronization source ID update offset. Specifically, the following methods can be used:
所述发送设备将码流封装成传输包时, 还在同步源标识更新前的一个或 多个传输包中加入同步源标识更新指示以及同步源标识更新偏移量, 以及, 在同步源标识更新的传输包中加入同步源标识更新偏移量。 以及, 还在同步 源标识更新后的一个或多个传输包中加入同步源标识更新指示以及同步源标 识更新偏移量。 When the sending device encapsulates the code stream into a transport packet, and also synchronizes the source identifier before updating one or The synchronization source identifier update indication and the synchronization source identifier update offset are added to the plurality of transport packets, and the synchronization source identifier update offset is added to the transport packet of the synchronization source identifier update. And, the synchronization source identifier update indication and the synchronization source identifier update offset are also added to one or more transport packets after the synchronization source identifier is updated.
上述同步源标识更新偏移量的值可进行如下设置:  The value of the above synchronization source identifier update offset can be set as follows:
方式一:  method one:
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为正值, 表示同步源标识更新提前量, 即再经过由所述同步源标识更新 偏移量所确定的数量的传输包就更新同步源标识; 同步源标识更新的传输包 中加入的同步源标识更新偏移量的值为 0, 表示在所述传输包中更新同步源 标识; 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为负值, , 即在由同步源标识更新偏移量的绝对值所确定数量的传输包之 前就已经更新了同步源标识。  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is positive, indicating that the synchronization source identifier is updated by the advance amount, that is, after the update identifier is updated by the synchronization source identifier. The synchronization source identifier is updated by the determined number of transport packets; the synchronization source identifier update offset value added to the transport packet of the synchronization source identifier update is 0, indicating that the synchronization source identifier is updated in the transport packet; The synchronization source identifier update offset added to the subsequent one or more transport packets is a negative value, that is, the synchronization source identifier is updated before the transport packet determined by the absolute value of the synchronization source identifier update offset. .
方式二:  Method 2:
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为负值, 表示同步源标识更新提前量, 即再经过由所述同步源标识更新 偏移量所确定的数量的传输包就更新同步源标识; 同步源标识更新的传输包 中加入的同步源标识更新偏移量的值为 0, 表示在所述传输包中更新同步源 标识; 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为正值, , 即在由同步源标识更新偏移量的绝对值所确定数量的传输包之 前就已经更新了同步源标识。  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is a negative value, indicating that the synchronization source identifier updates the advance amount, that is, the update offset is further updated by the synchronization source identifier. The synchronization source identifier is updated by the determined number of transport packets; the synchronization source identifier update offset value added to the transport packet of the synchronization source identifier update is 0, indicating that the synchronization source identifier is updated in the transport packet; The synchronization source identifier update offset added to the subsequent one or more transport packets is a positive value, that is, the synchronization source identifier is updated before the transport packet determined by the absolute value of the synchronization source identifier update offset. .
釆用上述方式一或者方式二, 可按照发送设备和接收设备的约定执行。 综上, 传输包中携带同步源标识用来标识同步源 (现有技术) , 本发明 提出的同步源标识更新指示用于指示同步源标识的更新过程, 同步源标识更 新偏移量用于指示同步源标识更新时机。  釆 In the above manner 1 or 2, it can be executed according to the agreement of the transmitting device and the receiving device. In summary, the synchronization source identifier is carried in the transport packet to identify the synchronization source (prior art). The synchronization source identifier update indication proposed by the present invention is used to indicate the update process of the synchronization source identifier, and the synchronization source identifier update offset is used to indicate Synchronization source identification update timing.
本发明提出, 可以在传输包中携带同步源标识字段和同步源标识更新指 示字段以及同步源标识更新偏移量字段, 但是不限制所述同步源标识字段和 同步源标识更新指示字段以及同步源标识更新偏移量字段在传输包中的位置 和顺序。 The present invention proposes that the synchronization source identifier field and the synchronization source identifier update indication field and the synchronization source identifier update offset field may be carried in the transport packet, but the synchronization source identifier field and the synchronization source identifier update indication field and the synchronization source are not limited. Identify the location of the update offset field in the transport package And order.
接收设备(如终端接收设备)接收到发送设备发送的传输包后, 根据传 输包中的同步源标识更新指示和同步源标识更新偏移量, 获知更新后的同步 源标识。  After receiving the transport packet sent by the sending device, the receiving device (such as the terminal receiving device) obtains the updated synchronization source identifier according to the synchronization source identifier update indication and the synchronization source identifier update offset in the transport packet.
当所述终端接收设备检测到传输包携带有同步源标识更新指示时, 检测 所述传输包中同步源更新偏移量字段, 由所述同步源更新偏移量字段判断同 步源标识更新时机。 所述终端接收设备检测到同步源标识更新后, 使用新的 同步源标识。  And when the terminal receiving device detects that the transport packet carries the synchronization source identifier update indication, detecting a synchronization source update offset field in the transport packet, and determining, by the synchronization source update offset field, a synchronization source identifier update timing. After the terminal receiving device detects the synchronization source identifier update, the new synchronization source identifier is used.
具体地, 当釆用上述方式一时, 终端接收设备可按以下步骤更新同步源 标识:  Specifically, when the first mode is used, the terminal receiving device may update the synchronization source identifier by the following steps:
1、 识别同步源更新前处理  1, identify the synchronization source pre-update processing
当检测到传输包中同步源标识更新偏移量为正值时, 表示同步源标识将 会在所述传输包的后续传输包中被更新, 继续接收后续传输包。  When it is detected that the synchronization source identifier update offset in the transport packet is positive, it indicates that the synchronization source identifier will be updated in the subsequent transport packet of the transport packet, and continues to receive subsequent transport packets.
2、 识别同步源更新处理  2, identify the synchronization source update processing
当检测到传输包中同步源标识更新偏移量为 0时, 表示在所述传输包中 更新同步源标识, 使用所述传输包中的同步源标识作为新的同步源标识。  When it is detected that the synchronization source identifier update offset in the transport packet is 0, it indicates that the synchronization source identifier is updated in the transport packet, and the synchronization source identifier in the transport packet is used as the new synchronization source identifier.
3、 识别同步源更新后处理  3, identify the synchronization source after the update process
当检测到传输包中同步源标识更新偏移量为负值时, 表示同步源标识在 所述传输包之前已经被更新, 则使用所述传输包中的同步源标识作为新的同 步源标识。 如果在所述传输包之前没有接收到同步源标识更新偏移量为 0的 传输包,则说明在传输过程中所述同步源标识更新偏移量为 0的传输包丟失。  When it is detected that the synchronization source identifier update offset in the transport packet is a negative value, indicating that the synchronization source identifier has been updated before the transport packet, the synchronization source identifier in the transport packet is used as the new sync source identifier. If the transport packet with the synchronization source identifier update offset of 0 is not received before the transport packet, it indicates that the transport packet with the update source identifier update offset of 0 is lost during the transmission.
当釆用上述方式二时, 终端接收设备处理方式类似, 此处不再赘述。 相应地, 本发明实施例的同步源标识更新的装置, 包括封装模块和发送 模块, 其中,  When the method of the foregoing method is used, the processing mode of the terminal receiving device is similar, and details are not described herein again. Correspondingly, the device for updating the synchronization source identifier of the embodiment of the present invention includes a package module and a sending module, where
所述封装模块用于将码流封装成传输包, 其中, 在同步源标识更新的传 输包中加入同步源标识更新指示;  The encapsulating module is configured to encapsulate the code stream into a transport packet, where the synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated;
所述发送模块用于将封装后的传输包发送出去。 所述封装模块可进一步用于将码流封装成传输包时, 还在同步源标识更 新前的一个或多个传输包中加入同步源标识更新指示以及同步源标识更新偏 移量, 在同步源标识更新的传输包中加入同步源标识更新偏移量, 在同步源 标识更新后的一个或多个传输包中加入同步源标识更新指示以及同步源标识 更新偏移量。 The sending module is configured to send the encapsulated transport packet. The encapsulating module may be further configured to: when the code stream is encapsulated into a transport packet, adding a synchronization source identifier update indication and a synchronization source identifier update offset to the one or more transport packets before the synchronization source identifier update, in the synchronization source The synchronization source identifier update offset is added to the transport packet that identifies the update, and the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets after the synchronization source identifier is updated.
本发明实施例的同步源标识更新的***, 包括发送设备和接收设备, 其 中,  A system for updating a synchronization source identifier according to an embodiment of the present invention includes a transmitting device and a receiving device, where
所述发送设备用于将码流封装成传输包, 其中, 在同步源标识更新的传 输包中加入同步源标识更新指示; 以及, 将封装后的传输包发送出去。  The sending device is configured to encapsulate the code stream into a transport packet, where a synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated; and the encapsulated transport packet is sent out.
所述发送设备可进一步用于将码流封装成传输包时, 还在同步源标识更 新前的一个或多个传输包中加入同步源标识更新指示以及同步源标识更新偏 移量, 在同步源标识更新的传输包中加入同步源标识更新偏移量, 在同步源 标识更新后的一个或多个传输包中加入同步源标识更新指示以及同步源标识 更新偏移量。  The sending device may be further configured to: when the code stream is encapsulated into a transport packet, adding a synchronization source identifier update indication and a synchronization source identifier update offset to the one or more transport packets before the synchronization source identifier update, in the synchronization source The synchronization source identifier update offset is added to the transport packet that identifies the update, and the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets after the synchronization source identifier is updated.
所述接收设备可用于接收到所述发送设备发送的传输包后, 根据传输包 中的同步源标识更新指示和同步源标识更新偏移量, 获知更新后的同步源标 识。  The receiving device may be configured to: after receiving the transport packet sent by the sending device, update the offset according to the synchronization source identifier and the synchronization source identifier in the transport packet, and obtain the updated synchronization source identifier.
下面以一具体的应用示例进一步说明本发明。  The invention will now be further illustrated by a specific application example.
图 2为本示例在 RTP包扩充同步源标识更新指示字段和同步源标识更新 偏移量字段的结构示意图。  FIG. 2 is a schematic structural diagram of an RTP packet extended synchronization source identifier update indication field and a synchronization source identifier update offset field in the example.
为便于描述, 本示例使用了两台编码器作为两路码流源, 其中一个编码 器 A输出一路节目 A, 另外一台编码器 B输出一路广告 B。  For ease of description, this example uses two encoders as two streams. One encoder A outputs one program A and the other encoder B outputs one advertisement B.
前端码流发送设备从编码器 A接收节目 A的码流,节目 A的同步源标识 为 123456, 所述前端码流发送设备将接收的码流向终端码流接收设备发送。 所述前端码流发送设备在发送节目 A的过程中, 如果需要***广告 B, 所述 前端码流发送设备从编码器 B接收广告 B的码流, 然后向终端码流接收设备 发送。 广告 B的同步源标识为 654321 , 同步源标识需要更新, 因此, 前端码 流发送设备需要事先通知终端码流接收设备, 防止终端码流接收设备误判为 干 4尤码流而终止码流的接收。 The front-end stream transmitting device receives the code stream of the program A from the encoder A, and the synchronization source identifier of the program A is 123456, and the front-end code stream transmitting device transmits the received code stream to the terminal stream receiving device. In the process of transmitting the program A, the front-end stream transmitting device receives the advertisement B, and the front-end stream transmitting device receives the code stream of the advertisement B from the encoder B, and then transmits the code stream to the terminal stream receiving device. The synchronization source identifier of the advertisement B is 654321, and the synchronization source identifier needs to be updated. Therefore, the front-end stream transmission device needs to notify the terminal stream receiving device in advance to prevent the terminal stream receiving device from being misjudged as The 4 stream is terminated to terminate the reception of the stream.
如图 3所示, 前端码流发送设备上, 同步源更新按以下方法进行: 步骤 301 : 同步源标识更新前处理。  As shown in Figure 3, on the front-end stream sending device, the synchronization source update is performed as follows: Step 301: Synchronize the source identifier before the update.
在发送节目 A的码流 10分钟之后, 确定再继续发送节目 A的 6个 RTP 包之后, 停止发送节目 A的码流, 准备开始***广告 B的码流。 在发送节目 A的最后 6个 RTP包时,按照发送的顺序对所述 6个 RTP包进行修改, 分别 将 RTP包中的 P字段置 1 , 分别在 RTP包的尾部添加同步源标识更新字段, 同时置所述同步源标识更新字段的值为 1 , 分别在所述 RTP包尾部添加同步 源更新偏移字段, 同时依据发送的顺序分别给所述 RTP包中的同步源更新偏 移字段赋值为 6, 5, 4, 3 , 2, 1。  After transmitting the code stream of the program A for 10 minutes, it is determined that after continuing to transmit the six RTP packets of the program A, the code stream of the program A is stopped, and the code stream for inserting the advertisement B is prepared. When the last 6 RTP packets of the program A are sent, the 6 RTP packets are modified according to the order of transmission, and the P field in the RTP packet is set to 1 respectively, and the synchronization source identifier update field is added at the end of the RTP packet respectively. At the same time, the value of the synchronization source identifier update field is set to 1, and a synchronization source update offset field is added to the end of the RTP packet, and the synchronization source update offset field in the RTP packet is respectively assigned according to the order of sending. 6, 5, 4, 3, 2, 1.
其中, 将 RTP包中的 P字段置 1 , 表示在包尾将包含附加填充字。  The P field in the RTP packet is set to 1, indicating that an additional padding word will be included at the end of the packet.
步骤 302: 同步源标识更新处理。  Step 302: Synchronize the source identifier update processing.
待所述节目 A的 6个 RTP包修改并且发送完毕后,从广告 B的码流中取 出一个 RTP包, 将所述 RTP包中的 P字段置 1 , 在所述 RTP包的尾部添加 同步源标识更新字段,同时置所述同步源标识更新字段的值为 1 ,在所述 RTP 包的尾部添加同步源更新偏移字段, 同时置所述同步源标识更新偏移字段的 值为 0 , 表示从所述 RTP包开始同步源标识已经被更新。  After the 6 RTP packets of the program A are modified and sent, an RTP packet is taken out from the code stream of the advertisement B, the P field in the RTP packet is set to 1, and a synchronization source is added at the end of the RTP packet. The identifier update field is set, and the value of the synchronization source identifier update field is set to 1, and a synchronization source update offset field is added at the end of the RTP packet, and the value of the synchronization source identifier update offset field is set to 0, indicating The synchronization source identification has been updated since the RTP packet.
步骤 303: 同步源标识更新后处理。  Step 303: The synchronization source identifier is processed after the update.
继续发送所述广告 B的 6个 RTP包时, 按照发送的顺序对这所述 6个 RTP包进行修改, 分别将所述每个 RTP包中的 P字段置 1 , 分别在所述每个 RTP包的尾部添加同步源更新标识字段, 同时置所述同步源更新标识字段的 值为 1 , 分别在所述每个 RTP包的尾部添加同步源更新偏移字段, 根据发送 的顺序分别给所述同步源更新偏移字段赋值为 -1 , -2, -3 , -4, -5, -6。  When the six RTP packets of the advertisement B are continuously sent, the six RTP packets are modified according to the order of transmission, and the P field in each of the RTP packets is respectively set to 1, respectively, in each of the RTPs. Adding a synchronization source update identifier field at the end of the packet, and setting the synchronization source update identifier field to a value of 1, respectively, adding a synchronization source update offset field at the end of each of the RTP packets, respectively, according to the order of sending The sync source update offset field is assigned -1, -2, -3, -4, -5, -6.
根据本方法, 在同步源更新前进行一段平滑处理, 然后更新同步源标识, 在同步源更新后再进行一段平滑处理。 通过本发明所述方法处理之后, 即使 出现丟包, 本方法也可以保证终端正确识别同步源标识的更新, 能够防止终 端出现误判, 从而提供了同步源标识平滑更新的保证手段。  According to the method, a smoothing process is performed before the synchronization source is updated, and then the synchronization source identifier is updated, and a smoothing process is performed after the synchronization source is updated. After the method of the present invention is processed, even if packet loss occurs, the method can ensure that the terminal correctly recognizes the update of the synchronization source identifier, thereby preventing the terminal from being misjudged, thereby providing a guarantee means for the smooth update of the synchronization source identifier.
终端码流接收设备接收节目 A的 RTP包并且緩冲所述 RTP包。 当检测 到所述节目 A的 RTP包中 P字段为 1 ,并且检测到所述 RTP包中的同步源标 识更新指示字段为 1时, 检测所述 RTP包中同步源更新偏移量字段, 由所述 同步源更新偏移量字段的值判断同步源标识何时更新, 当同步源标识更新后, 使用新的同步源标识。 The terminal stream receiving device receives the RTP packet of program A and buffers the RTP packet. When testing When the P field is 1 in the RTP packet of the program A, and detecting that the synchronization source identifier update indication field in the RTP packet is 1, detecting a synchronization source update offset field in the RTP packet, The value of the synchronization source update offset field determines when the synchronization source identifier is updated, and when the synchronization source identifier is updated, the new synchronization source identifier is used.
如图 4所示, 终端码流接收设备上, 同步源标识更新按以下方法进行: 步骤 401: 识别同步源更新前处理  As shown in FIG. 4, on the terminal stream receiving device, the synchronization source identifier update is performed as follows: Step 401: Identify the synchronization source pre-update processing
接收节目 A的 RTP包并且处理, 检测所述节目 A的 RTP包中 P字段, 当所述 P字段为 1时, 检测所述 RTP包中同步源标识更新指示字段, 如果同 步源标识更新指示字段为 1时,表明同步源标识更新开始进行。继续接收 RTP 包, 当检测到后续 RTP包中同步源更新偏移字段的值为 1时, 表明同步源更 新前处理已经完成, 从所述 RTP包下一个 RTP包将会更新同步源标识。  Receiving an RTP packet of the program A and processing, detecting a P field in the RTP packet of the program A, and when the P field is 1, detecting a synchronization source identifier update indication field in the RTP packet, if the synchronization source identifier update indication field When 1, it indicates that the synchronization source identifier update starts. Continuing to receive the RTP packet, when it is detected that the value of the synchronization source update offset field in the subsequent RTP packet is 1, it indicates that the synchronization source pre-processing has been completed, and the next RTP packet from the RTP packet will update the synchronization source identifier.
步骤 402: 识别同步源更新处理  Step 402: Identify synchronization source update processing
当检测到 RTP包中同步源标识更新偏移量为 0时,表示在所述 RTP包中 更新同步源标识, 使用所述 RTP包中的同步源标识作为新的同步源标识。  When it is detected that the synchronization source identifier update offset in the RTP packet is 0, it indicates that the synchronization source identifier is updated in the RTP packet, and the synchronization source identifier in the RTP packet is used as the new synchronization source identifier.
步骤 402: 识别同步源更新后处理。  Step 402: Identify the synchronization source post-update processing.
继续接收后续 RTP包, 如果整个接收过程中没有接收到同步源更新偏移 字段的值为 0的 RTP包, 而接收到了同步源更新偏移字段的值为负值的 RTP 包, 说明在同步源标识更新的过程中网络上存在丟包, 则使用所述同步源更 新偏移字段的值为负值的 RTP包中的同步源标识作为新的同步源标识, 同步 源标识更新过程完成。  Continue to receive the subsequent RTP packet. If the RTP packet with the value of the synchronization source update offset field of 0 is not received during the whole receiving process, and the RTP packet with the negative value of the synchronization source update offset field is received, the synchronization source is indicated. If there is a packet loss on the network during the process of the identifier update, the synchronization source identifier in the RTP packet whose value of the offset field is negative is used as the new synchronization source identifier, and the synchronization source identifier update process is completed.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现, 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Optionally, all or part of the steps of the foregoing embodiments may also be implemented by using one or more integrated circuits. Accordingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may use software functions. The form of the module is implemented. The invention is not limited to any specific form of combination of hardware and software.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention. Various modifications and variations of the present invention are possible in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性 Industrial applicability
本发明实施例使用了同步源标识更新指示, 使得接收设备不会认为更新 的同步源标识为干扰码流而错误地丟弃码流。 另外, 通过使用同步源标识更 新偏移量, 可以使得同步源标识开始更新到同步源标识更新完成的整个过程 跨越多个传输包, 即使有部分传输包在网络上丟失, 同步源标识更新的信息 也不会丟失。  The embodiment of the present invention uses the synchronization source identifier update indication so that the receiving device does not consider the updated synchronization source identifier as the interference code stream and erroneously discards the code stream. In addition, by using the synchronization source identifier to update the offset, the synchronization source identifier can be updated to the synchronization source identifier. The entire process of updating is completed across multiple transport packets, even if some of the transport packets are lost on the network, the synchronization source identifier is updated. It will not be lost.

Claims

权 利 要 求 书 Claim
1、 一种同步源标识更新的方法, 包括:  1. A method for updating a synchronization source identifier, comprising:
发送设备将码流封装成传输包, 其中, 在同步源标识更新的传输包中加 入同步源标识更新指示;  The sending device encapsulates the code stream into a transport packet, where the synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated;
所述发送设备将封装后的传输包发送出去。  The transmitting device sends the encapsulated transport packet.
2、 如权利要求 1所述的方法, 其中,  2. The method of claim 1 wherein
所述发送设备将码流封装成传输包时, 还在同步源标识更新前的一个或 多个传输包中加入同步源标识更新指示以及同步源标识更新偏移量, 以及, 在同步源标识更新的传输包中加入同步源标识更新偏移量。  When the sending device encapsulates the code stream into a transport packet, the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets before the synchronization source identifier update, and the synchronization source identifier update is also performed. The synchronization source identifier update offset is added to the transport packet.
3、 如权利要求 2所述的方法, 其中,  3. The method of claim 2, wherein
所述发送设备将码流封装成传输包时, 还在同步源标识更新后的一个或 多个传输包中加入同步源标识更新指示以及同步源标识更新偏移量。  When the transmitting device encapsulates the code stream into a transport packet, the synchronization source identifier update indication and the synchronization source identifier update offset are also added to one or more transport packets after the synchronization source identifier is updated.
4、 如权利要求 3所述的方法, 其中,  4. The method of claim 3, wherein
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为正值, 同步源标识更新的传输包中加入的同步源标识更新偏移量的值 为 0 , 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为负值; 或者,  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is positive, and the synchronization source identifier update offset value added to the transport packet updated by the synchronization source identifier is 0. The synchronization source identifier update offset added to one or more transport packets after the synchronization source identifier is updated is a negative value; or
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为负值, 同步源标识更新的传输包中加入的同步源标识更新偏移量的值 为 0 , 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为正值。  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is a negative value, and the synchronization source identifier update offset value added in the transport packet updated by the synchronization source identifier is 0. The sync source ID update offset added to one or more transport packets after the synchronization source ID is updated is a positive value.
5、 如权利要求 3或 4中所述的方法, 其中,  5. The method of claim 3 or 4, wherein
接收设备接收到发送设备发送的传输包后, 根据传输包中的同步源标识 更新指示和同步源标识更新偏移量, 获知更新后的同步源标识。  After receiving the transport packet sent by the sending device, the receiving device updates the offset according to the synchronization source identifier update indication and the synchronization source identifier in the transport packet, and obtains the updated synchronization source identifier.
6、 一种同步源标识更新的装置, 包括封装模块和发送模块, 其中, 所述封装模块设置为: 将码流封装成传输包, 其中, 在同步源标识更新 的传输包中加入同步源标识更新指示; 所述发送模块设置为: 将封装后的传输包发送出去。 A device for updating a synchronization source identifier, comprising: a package module and a sending module, wherein the encapsulation module is configured to: encapsulate a code stream into a transport packet, where a synchronization source identifier is added to a transport packet with a synchronization source identifier update Update instructions; The sending module is configured to: send the encapsulated transport packet.
7、 如权利要求 6所述的装置, 其中,  7. The apparatus according to claim 6, wherein
所述封装模块还设置为: 将码流封装成传输包时, 在同步源标识更新前 的一个或多个传输包中加入同步源标识更新指示以及同步源标识更新偏移 量, 在同步源标识更新的传输包中加入同步源标识更新偏移量, 在同步源标 识更新后的一个或多个传输包中加入同步源标识更新指示以及同步源标识更 新偏移量。  The encapsulating module is further configured to: when the code stream is encapsulated into a transport packet, add a synchronization source identifier update indication and a synchronization source identifier update offset in one or more transport packets before the synchronization source identifier update, in the synchronization source identifier The synchronization source identifier update offset is added to the updated transport packet, and the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets after the synchronization source identifier is updated.
8、 如权利要求 7所述的装置, 其中,  8. The apparatus according to claim 7, wherein
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为正值, 同步源标识更新的传输包中加入的同步源标识更新偏移量的值 为 0 , 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为负值; 或者,  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is positive, and the synchronization source identifier update offset value added to the transport packet updated by the synchronization source identifier is 0. The synchronization source identifier update offset added to one or more transport packets after the synchronization source identifier is updated is a negative value; or
所述同步源标识更新前的一个或多个传输包中加入的同步源标识更新偏 移量为负值, 同步源标识更新的传输包中加入的同步源标识更新偏移量的值 为 0 , 同步源标识更新后的一个或多个传输包中加入的同步源标识更新偏移 量为正值。  The synchronization source identifier update offset added to one or more transport packets before the update source identifier is a negative value, and the synchronization source identifier update offset value added in the transport packet updated by the synchronization source identifier is 0. The sync source ID update offset added to one or more transport packets after the synchronization source ID is updated is a positive value.
9、 一种同步源标识更新的***, 包括发送设备, 其中,  9. A system for updating a source identifier, including a sending device, wherein
所述发送设备设置为: 将码流封装成传输包, 其中, 在同步源标识更新 的传输包中加入同步源标识更新指示; 以及, 将封装后的传输包发送出去。  The sending device is configured to: encapsulate the code stream into a transport packet, where the synchronization source identifier update indication is added to the transport packet whose synchronization source identifier is updated; and the encapsulated transport packet is sent out.
10、 如权利要求 9所述***, 其中,  10. The system of claim 9 wherein:
所述发送设备还设置为: 将码流封装成传输包时, 在同步源标识更新前 的一个或多个传输包中加入同步源标识更新指示以及同步源标识更新偏移 量, 在同步源标识更新的传输包中加入同步源标识更新偏移量, 在同步源标 识更新后的一个或多个传输包中加入同步源标识更新指示以及同步源标识更 新偏移量。  The sending device is further configured to: when the code stream is encapsulated into a transport packet, add a synchronization source identifier update indication and a synchronization source identifier update offset in one or more transport packets before the synchronization source identifier update, in the synchronization source identifier The synchronization source identifier update offset is added to the updated transport packet, and the synchronization source identifier update indication and the synchronization source identifier update offset are added to one or more transport packets after the synchronization source identifier is updated.
11、 如权利要求 9所述***, 其中, 还包括接收设备, 所述接收设备设 置为: 接收到所述发送设备发送的传输包后, 根据传输包中的同步源标识更 新指示和同步源标识更新偏移量, 获知更新后的同步源标识。  The system according to claim 9, further comprising a receiving device, wherein the receiving device is configured to: after receiving the transport packet sent by the sending device, according to the synchronization source identifier update indication and the synchronization source identifier in the transport packet Update the offset to know the updated synchronization source ID.
PCT/CN2012/070175 2011-01-11 2012-01-10 Method, device and system for updating synchronization source identifier WO2012094981A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110004684.9 2011-01-11
CN201110004684.9A CN102594776B (en) 2011-01-11 2011-01-11 The methods, devices and systems that a kind of Synchronization Source updates

Publications (1)

Publication Number Publication Date
WO2012094981A1 true WO2012094981A1 (en) 2012-07-19

Family

ID=46482984

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070175 WO2012094981A1 (en) 2011-01-11 2012-01-10 Method, device and system for updating synchronization source identifier

Country Status (2)

Country Link
CN (1) CN102594776B (en)
WO (1) WO2012094981A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10638288B2 (en) 2017-05-15 2020-04-28 At&T Intellectual Property I, L.P. Embedded device identification information in packetized communications

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008054078A (en) * 2006-08-25 2008-03-06 Oki Electric Ind Co Ltd Multicast system
CN101364999A (en) * 2008-09-18 2009-02-11 华为技术有限公司 QoS processing method, apparatus and system based on stream
CN101714977A (en) * 2007-04-13 2010-05-26 华为技术有限公司 Method, system and device for modifying playing streaming media

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1432196A1 (en) * 2002-12-20 2004-06-23 Matsushita Electric Industrial Co., Ltd. Control traffic compression method in media data transmission
US8385233B2 (en) * 2007-06-12 2013-02-26 Microsoft Corporation Active speaker identification
CN101127712B (en) * 2007-08-20 2011-05-25 中兴通讯股份有限公司 A method for solving synchronization source identity confliction in RTP session
CN101588356B (en) * 2008-05-19 2012-01-25 鸿富锦精密工业(深圳)有限公司 Network equipment and method for detecting voice packet by same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008054078A (en) * 2006-08-25 2008-03-06 Oki Electric Ind Co Ltd Multicast system
CN101714977A (en) * 2007-04-13 2010-05-26 华为技术有限公司 Method, system and device for modifying playing streaming media
CN101364999A (en) * 2008-09-18 2009-02-11 华为技术有限公司 QoS processing method, apparatus and system based on stream

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Koders Code Search RtpPacket_hpp - C++", KODERS, 1 April 2009 (2009-04-01), Retrieved from the Internet <URL:http://www.koders.com/cpp/fidA8910124FB861B056795202289085C51E3F72423.aspx?s=socket> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10638288B2 (en) 2017-05-15 2020-04-28 At&T Intellectual Property I, L.P. Embedded device identification information in packetized communications

Also Published As

Publication number Publication date
CN102594776B (en) 2016-08-03
CN102594776A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
US9756127B2 (en) Packet loss anticipation and preemptive retransmission for low latency media applications
US7860011B2 (en) Method and system for fault resilience in networks with Audio/Video Bridging aware Shortest Path Bridging
US8155157B2 (en) Method and apparatus for synchronizing applications of terminals in communication network
US9641588B2 (en) Packets recovery system and method
US9817629B2 (en) Audio synchronization method for bluetooth speakers
CN101809906B (en) Synchronizing related data streams in interconnection networks
JP6516674B2 (en) Method and apparatus for media data delivery control
WO2015053530A1 (en) Method and apparatus for content delivery
US8208460B2 (en) Method and system for in-band signaling of multiple media streams
US10027496B2 (en) Method for distributing identifiers of multicast sources
US9571234B2 (en) Retransmission of data lost between a sender and a receiver
CN111263239B (en) Video frame packet loss processing method and related device
CN103532923B (en) A kind of real-time media stream transmission method and system
EP2486683B1 (en) A digital receiver and corresponding digital transmission system server
EP3281317B1 (en) Multi-layer timing synchronization framework
EP4013018A3 (en) Method for transmitting stream, streaming server and streaming system
CN108540273B (en) Method and device for retransmitting data packet
US9461931B1 (en) Methods and apparatus for preventing head of line blocking for RTP over TCP
US20070220171A1 (en) Systems and methods for synchronization of asynchronous networks
WO2012094981A1 (en) Method, device and system for updating synchronization source identifier
JP2017147695A (en) Ethernet switch device
US9954984B2 (en) System and method for enabling replay using a packetized link protocol
WO2013098812A1 (en) Transport over udp system and method
WO2012094977A1 (en) Method and system for merging transmission streams smoothly
WO2016123851A1 (en) Method and device for synchronizing communication parameters

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12734191

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12734191

Country of ref document: EP

Kind code of ref document: A1