WO2007051343A1 - A bandwidth adaptive stream medium transmission system of a stream medium serving system and a method thereof - Google Patents

A bandwidth adaptive stream medium transmission system of a stream medium serving system and a method thereof Download PDF

Info

Publication number
WO2007051343A1
WO2007051343A1 PCT/CN2005/001795 CN2005001795W WO2007051343A1 WO 2007051343 A1 WO2007051343 A1 WO 2007051343A1 CN 2005001795 W CN2005001795 W CN 2005001795W WO 2007051343 A1 WO2007051343 A1 WO 2007051343A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
streaming media
bandwidth
media data
bandwidth detection
Prior art date
Application number
PCT/CN2005/001795
Other languages
French (fr)
Chinese (zh)
Inventor
Zunyou Ke
Liang Guo
Jie Hu
Ji Lv
Tao Yu
Jiming Zhang
Original Assignee
Zte Corporation
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 Zte Corporation filed Critical Zte Corporation
Priority to PCT/CN2005/001795 priority Critical patent/WO2007051343A1/en
Priority to CN2005800524650A priority patent/CN101352009B/en
Publication of WO2007051343A1 publication Critical patent/WO2007051343A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/11Identifying congestion
    • H04L47/115Identifying congestion using a dedicated packet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/38Flow control; Congestion control by adapting coding or compression rate

Definitions

  • the present invention relates to the field of network communication technologies, and relates to a method and a method for processing streaming media data adapted to adapt to bandwidth changes on a network, and in particular, to a bandwidth adaptive streaming media transmission system and method for a streaming media service system. Background technique
  • IP Internet Protocol
  • the main way to implement bandwidth adaptive streaming media transmission is to provide several different bit rate encoded streaming media data for each media file in advance, and use a bit rate high or according to the detected bandwidth.
  • Low streaming media data Low streaming media data.
  • Patent Document existing comprising: Chinese Patent Application No. 02159354 of application “Method for adaptively adjusting the video quality of the network,” and U.S. Patent Application Publication No. 20050108414 specifically Wo of 1 J “System and method for transmitting data in computer systems using Virtual streaming” (system and method of using virtual streams to transfer data in a computer system).
  • the Chinese patent application with the application number 02159354 has the following shortcomings: 1.
  • the patent does not provide a solution for streaming media services. This solution is the core technology of bandwidth adaptive streaming media transmission. 2.
  • the method adopted by the system is not the target system.
  • the specification system uses custom processing and interface modules. This patent only proposes a method to solve bandwidth measurement using a separate module outside the specification system, so it is difficult to integrate into the existing streaming media service specification system.
  • additional processing modules and interfaces that must be added will inevitably increase the complexity of the system, the development of the system is more difficult and the reliability of the system is reduced.
  • U.S. Patent Application Publication No. 20050108414 has the following disadvantages: This patent proposes a system and method for variable virtual flow to accommodate bandwidth changes for data transmission.
  • the method divides the data to be transmitted into a plurality of small parts, transmits them through multiple channels allowed in the bandwidth, and then combines them at the destination end.
  • the method is based on simple segmentation of data, rather than on the basis of data coding analysis, and does not provide a solution for logical segmentation of coded data.
  • a bandwidth adaptive streaming media transmission system of a streaming media service system of the present invention includes:
  • the client which is responsible for providing an IP-based communication mechanism, provides a transmission channel for streaming data transmission and bandwidth detection message transmission, such as Real Time Transport Protocol (RTP) and Real Time Transport Control Protocol (Realtime Transport). Control Protocol) (hereinafter referred to as RTCP); it is responsible for receiving the bandwidth detection message packet, transmitting the bandwidth detection feedback message packet, and receiving the streaming media data packet, and decoding and processing the streaming media data packet to play the audio and video;
  • RTP Real Time Transport Protocol
  • Realtime Transport Real Time Transport Control Protocol
  • the streaming media server is responsible for providing an IP-based communication mechanism, providing a transmission channel for streaming data transmission and bandwidth detection message transmission, such as RTP, RTCP, etc.; it is responsible for packaging and transmitting the bandwidth detection message.
  • the message packet receiving the bandwidth detection feedback message packet, calculating an average packet loss rate within a preset time (for example, 10 seconds), and performing logical control and secondary decoding coding; wherein the architecture of the streaming media server side includes: Stream and media data streams.
  • the control flow includes: a bandwidth detection message sending module, a bandwidth detection feedback message receiving module, a bandwidth detection feedback message parsing module, and a bandwidth adaptation logic control module;
  • the media data stream includes: a media data receiving module, and a media data.
  • the bandwidth detection message sending module is configured to send the bandwidth detection message packet to the client, and the bandwidth detection feedback message receiving module is configured to receive the bandwidth detection feedback message packet returned by the client, and the bandwidth detection feedback message is parsed.
  • the module is responsible for parsing the above bandwidth detection Detecting a feedback message packet, and taking out field information related to bandwidth detection, such as a packet loss rate; the bandwidth adaptation logic control module is configured to calculate an average packet loss rate within a predetermined time period, and determine according to the average packet loss rate.
  • the media data receiving module is responsible for reading the streaming media data packet; the media data decoding module is responsible for decoding the streaming media data packet to be sent by the streaming media server end, because the media encoding format is numerous,
  • the media data decoding module may be composed of a plurality of different media data decoding modules; the media data encoding module is configured to recalculate the encoded code rate according to the average packet loss rate, and re-encode the streaming media data packet according to the code rate.
  • the media data encoding module may be composed of a plurality of different media data encoding modules; the media data streaming and sending module is responsible for streaming and transmitting the streaming media data packet to the client.
  • the bandwidth detection message packet and the bandwidth detection feedback message packet are non-one-to-one correspondence mechanisms, that is, one bandwidth detection message may return multiple pieces. Bandwidth detection feedback message.
  • a bandwidth adaptive streaming media transmission method of a streaming media service system of the present invention includes the following steps:
  • Step 1 The streaming media server sends a bandwidth detection message packet to the client.
  • Step 2 The streaming media server receives the bandwidth detection feedback packet returned by the client.
  • Step 3 The streaming media server parses the bandwidth detection feedback message packet, and calculates an average packet loss rate within a preset time period;
  • Step 4 The streaming media server determines whether secondary decoding coding is required. If the average packet loss rate is below a preset ratio (the ratio can be configured, for example, 20%), then No need to perform secondary decoding and encoding, perform step 7, otherwise perform step 5;
  • Step 5 If the average packet loss rate is greater than the preset ratio, the streaming media server decodes the sent streaming media packet;
  • Step 6 The streaming media server reduces the encoded code rate according to the average packet loss rate and percentages, and re-encodes the decoded streaming media data packet according to the code rate.
  • Step 7 The foregoing streaming media server sends Streaming data packets.
  • the above preset time can be configured, and in order to reduce the network load, the time should not be set too small.
  • code rate starting code rate X (1 - average packet loss rate).
  • the present invention introduces a secondary decoding and coding mechanism based on bandwidth detection, so that when the communication line is in a bad condition, the code rate of the transmitted streaming media data packet can be dynamically adjusted in time to enable it to Adapt to network bandwidth; when the communication line is in good condition, the streaming code packet is always sent using the default bit rate. In this way, regardless of the status of the communication network, the smooth playback of streaming media packets is not affected.
  • the encoding and decoding module can be provided through the streaming server server plug-in component, or the interface is provided by a third party, the system development difficulty is reduced and the system is improved. Reliability.
  • FIG. 1 is a schematic structural diagram of a streaming media server end according to the present invention
  • Figure 2 is a flow chart of the method of the present invention
  • FIG. 3 is a timing diagram of the method of the present invention. detailed description
  • the architecture of the streaming media server of the present invention includes a control flow and a media data stream, which are respectively indicated by thin lines and black thick lines in the figure:
  • the bandwidth detection message sending module 201 in the process of streaming media playback, initiates a bandwidth detection process, and sends a bandwidth detection message packet to the client;
  • the bandwidth detection feedback message receiving module 101 is configured to receive the bandwidth detection feedback message packet returned by the client, and the bandwidth detection feedback message packet and the bandwidth detection message are required because the streaming media server end needs the client to continuously report the network status.
  • the packet is a non-one-to-one correspondence mechanism, that is, one bandwidth detection message may return multiple bandwidth detection feedback messages;
  • the bandwidth detection feedback message parsing module 102 is configured to parse the bandwidth detection feedback message packet, and take out field information such as a packet loss rate related to bandwidth detection;
  • the bandwidth adaptation logic control module 103 is configured to calculate an average packet loss rate within a predetermined time period, and determine, according to the average packet loss rate, whether secondary decoding coding is required;
  • the media data stream consists of the following components:
  • a media data receiving module 304 which is responsible for reading a streaming media data packet
  • the media data decoding module 303 is responsible for the stream to be sent by the streaming media server end.
  • the media data packet is decoded. Due to the large number of media encoding formats, the media data decoding module may be composed of a plurality of different media data decoding modules;
  • the media data encoding module 302 is configured to recalculate the encoded code rate according to the average packet loss rate, and re-encode the streaming media data packet according to the code rate. Because the media encoding format is numerous, the media data encoding module may be multi-coded.
  • the media data streaming and sending module 301 the streaming media data packet is streamed and sent to the client.
  • the method of the present invention includes the following steps:
  • Step 1 The streaming media server sends a bandwidth detection message packet to the client.
  • Step 2 The streaming media server receives the bandwidth detection feedback packet returned by the client.
  • Step 3 The streaming media server parses the bandwidth detection feedback message packet, and calculates an average packet loss rate within a preset time (for example, 10 seconds);
  • Step 4 The streaming media server determines whether secondary decoding is required. If the average packet loss rate is lower than a preset ratio (for example, 20%), the secondary decoding encoding is not required, and step 7 is performed. Otherwise, Perform step 5;
  • a preset ratio for example, 20%
  • Step 5 If the average packet loss rate is greater than the foregoing preset ratio, the streaming media server decodes the sent streaming media packet.
  • Step 6 The streaming media server reduces the encoded code rate according to the average packet loss rate and percentages, and re-encodes the decoded streaming media data packet according to the code rate; wherein the foregoing code rate is reduced by percentage
  • Step 7 The streaming media server sends the streaming media packet.
  • the timing of the method of the present invention is as follows:
  • Step A The streaming media server sends a bandwidth detection message packet to the client.
  • Step B The client sends a bandwidth detection feedback message packet to the streaming media server, and the feedback message may be multiple;
  • Step C The streaming media server detects the feedback packet according to the bandwidth of the client in a period of time, and calculates an average packet loss rate.
  • Step D The streaming media server performs logical control according to the average packet loss rate to determine whether secondary decoding and encoding are required.
  • Step E The streaming media server performs decoding, and re-encodes according to the average packet loss rate.
  • Step F. The streaming media server sends the re-encoded streaming media data packet.

Abstract

A bandwidth adaptive stream medium transmission system of a stream medium serving system and a method thereof are provided, the system includes a client and a stream medium server, the method comprises the steps: the stream medium server transmits a bandwidth detecting message packet to the client; the client transmits a bandwidth detecting feedback message packet to the stream medium server; the stream medium server calculates the average packet-lost rate based on the bandwidth detecting feedback message packets of the client during a period of time; the stream medium server performs logical control and judges whether to decode and encode again according to the average packet-lost rate; the stream medium server performs decoding and encoding according to the average packet-lost rate; the stream medium server transmits the re-encoded stream medium packets. The system and method of present invention improve the QoS of the stream medium, decrease the system development difficulty and increase the system reliability.

Description

一种流媒体服务系统的带宽自适应流媒体传输系统及方法 技术领域  Bandwidth adaptive streaming media transmission system and method for streaming media service system
本发明属于网络通信技术领域, 涉及一种用来实现在网络上适应带宽 变化的流媒体数据的处理和传输方法,且特别涉及一种流媒体服务系统的 带宽自适应流媒体传输系统及方法。 背景技术  The present invention relates to the field of network communication technologies, and relates to a method and a method for processing streaming media data adapted to adapt to bandwidth changes on a network, and in particular, to a bandwidth adaptive streaming media transmission system and method for a streaming media service system. Background technique
随着通信网络的高速发展, 基于网际协议 (Internet ProtocolX以下简称 IP)网络的流媒体业务逐渐成为人们日常工作和生活中喜闻乐见的业务形 式, 而媒体流在网络上进行传输的稳定性保证的需求也日趋强烈。众所周 知, IP网络是个开放的网络, 要求利 IP网络进行数据通信的带宽是稳 定带宽是没有保证的。 况且, 在使用移动终端访问流媒体时, 无线侧的带 宽也时好时坏。 为了满足适应带宽变化的通信需要, 专家们也提出了一些 方法。  With the rapid development of communication networks, the streaming media service based on the Internet Protocol (IP) network has gradually become a business form that people enjoy in daily work and life, and the stability of media stream transmission on the network is guaranteed. It is also growing stronger. It is well known that an IP network is an open network, and it is not guaranteed that the bandwidth of the IP network for data communication is stable. Moreover, when using a mobile terminal to access streaming media, the bandwidth of the wireless side is also good or bad. In order to meet the communication needs of adapting to bandwidth changes, experts have also proposed some methods.
目前, 用于实现带宽自适应流媒体传输的主要途径是: 事先为各个媒 体文件分别提供几个不同比特率编码的流媒体数据,根据侦测到的带宽的 高低, 分别使用比特率高的或低的流媒体数据。  At present, the main way to implement bandwidth adaptive streaming media transmission is to provide several different bit rate encoded streaming media data for each media file in advance, and use a bit rate high or according to the detected bandwidth. Low streaming media data.
由于现有的方式必须准备比原始数据多得多的流媒体数据,增加了流 媒体服务系统的存储开销, 另外, 在使用过程中, 当带宽改变时, 切换到 别的媒体流上并重新定位到当前画面的这种方式不可避免地带给接收者 较大的停顿。 而同一个内容的多个流媒体数据, 也加大了系统的复杂度, 不利于降低系统的成本、 开发难度和提高系统的可靠性, 也不利于系统处 理的灵活性的提高。 Since the existing method must prepare much more streaming media data than the original data, the storage overhead of the streaming media service system is increased. In addition, during the use, when the bandwidth changes, switching to another media stream and relocating This way to the current picture inevitably brings a large pause to the recipient. The multiple streaming media data of the same content also increases the complexity of the system. It is not conducive to reducing the cost of the system, the difficulty of development and the reliability of the system, and is not conducive to the flexibility of system processing.
现有的专利文献包括: 申请号为 02159354的中国专利申请 "自适应 地调节网络视频质量的方法" 和专利申请公开号为 20050108414的美国 专禾1 J "System and method for transmitting data in computer systems using virtual streaming" (在计算机系统中使用虚拟流来传输数据的系统和方法 )。 Patent Document existing comprising: Chinese Patent Application No. 02159354 of application "Method for adaptively adjusting the video quality of the network," and U.S. Patent Application Publication No. 20050108414 specifically Wo of 1 J "System and method for transmitting data in computer systems using Virtual streaming" (system and method of using virtual streams to transfer data in a computer system).
申请号为 02159354的中国专利申请存在以下不足: 一、 该专利没有 提供流媒体服务的解决方案,这一解决方案是带宽自适应流媒体传输的核 心技术; 二、 系统采用的方法不是目标系统的规范体系, 使用了自定义的 处理和接口模块。该专利只是提出使用规范体系外的单独模块来解决带宽 测量的方法, 因此难以融合到现有的流媒体服务的规范体系中。 此外, 因 为额外的处理模块和必将增加的接口等必然会增加系统的复杂度,加大了 系统的开发难度并且降低了系统的可靠性。  The Chinese patent application with the application number 02159354 has the following shortcomings: 1. The patent does not provide a solution for streaming media services. This solution is the core technology of bandwidth adaptive streaming media transmission. 2. The method adopted by the system is not the target system. The specification system uses custom processing and interface modules. This patent only proposes a method to solve bandwidth measurement using a separate module outside the specification system, so it is difficult to integrate into the existing streaming media service specification system. In addition, because additional processing modules and interfaces that must be added will inevitably increase the complexity of the system, the development of the system is more difficult and the reliability of the system is reduced.
专利申请公开号为 20050108414的美国专利存在以下不足: 该专利提 出了可变虚拟流适应带宽变化进行数据传输的系统和方法。该方法为分割 待传输数据为多个小部分, 通过在带宽允许的多个通道传输, 然后在目的 端组合。 该方法建立在简单分割数据的基础上, 而不是建立在对数据编码 分析的基础上, 未提供对编码数据逻辑性分割的解决方案。 另外, 多通道 适应带宽的方式, 增加了系统的复杂度, 加大了系统的开发难度并且降低 了系统的可靠性。 发明内容 鉴于上述,本发明的目的在于提供一种流媒体服务系统的带宽自适应 流媒体传输系统及方法, 以改善流媒体服务质量。 U.S. Patent Application Publication No. 20050108414 has the following disadvantages: This patent proposes a system and method for variable virtual flow to accommodate bandwidth changes for data transmission. The method divides the data to be transmitted into a plurality of small parts, transmits them through multiple channels allowed in the bandwidth, and then combines them at the destination end. The method is based on simple segmentation of data, rather than on the basis of data coding analysis, and does not provide a solution for logical segmentation of coded data. In addition, the multi-channel adaptation of the bandwidth increases the complexity of the system, increases the difficulty of system development and reduces the reliability of the system. Summary of the invention In view of the above, an object of the present invention is to provide a bandwidth adaptive streaming media transmission system and method for a streaming media service system to improve streaming media service quality.
为实现上述目的, 本发明的一种流媒体服务系统的带宽自适应流媒体 传输系统, 包括:  To achieve the above objective, a bandwidth adaptive streaming media transmission system of a streaming media service system of the present invention includes:
客户端, 其负责提供基于 IP 的通讯机制, 为流媒体数据传输和带宽 侦测消息的传输提供传输通道, 例如实时传输协议 (Realtime Transport Protocol) (以下简称 RTP)、 实时传输控制协议 (Realtime Transport Control Protocol) (以下简称 RTCP)等; 其负责接收带宽侦测消息包、发送带宽侦测 反馈消息包和接收流媒体数据包并对该流媒体数据包进行解码处理,播放 音视频; 及  The client, which is responsible for providing an IP-based communication mechanism, provides a transmission channel for streaming data transmission and bandwidth detection message transmission, such as Real Time Transport Protocol (RTP) and Real Time Transport Control Protocol (Realtime Transport). Control Protocol) (hereinafter referred to as RTCP); it is responsible for receiving the bandwidth detection message packet, transmitting the bandwidth detection feedback message packet, and receiving the streaming media data packet, and decoding and processing the streaming media data packet to play the audio and video;
流媒体服务器端, 其负责提供基于 IP 的通讯机制, 为流媒体数据传 输和带宽侦测消息的传输提供传输通道, 例如 RTP、 RTCP等; 其负责将 带宽侦测消息打包并发送上述带宽侦测消息包、接收上述带宽侦测反馈消 息包、计算一预先设定时间 (例如 10秒)内的平均丢包率和进行逻辑控制及 二次解码编码; 其中上述流媒体服务器端的体系结构包括: 控制流和媒体 数据流。 其中, 上述控制流包括: 带宽侦测消息发送模块、 带宽侦测反馈 消息接收模块、 带宽侦测反馈消息解析模块及带宽适配逻辑控制模块; 上 述媒体数据流包括: 媒体数据接收模块、 媒体数据解码模块、 媒体数据编 码模块及媒体数据流化和发送模块。  The streaming media server is responsible for providing an IP-based communication mechanism, providing a transmission channel for streaming data transmission and bandwidth detection message transmission, such as RTP, RTCP, etc.; it is responsible for packaging and transmitting the bandwidth detection message. The message packet, receiving the bandwidth detection feedback message packet, calculating an average packet loss rate within a preset time (for example, 10 seconds), and performing logical control and secondary decoding coding; wherein the architecture of the streaming media server side includes: Stream and media data streams. The control flow includes: a bandwidth detection message sending module, a bandwidth detection feedback message receiving module, a bandwidth detection feedback message parsing module, and a bandwidth adaptation logic control module; the media data stream includes: a media data receiving module, and a media data. Decoding module, media data encoding module and media data streaming and sending module.
上述带宽侦测消息发送模块负责向上述客户端发送上述带宽侦测消 息包;上述带宽侦测反馈消息接收模块负责接收上述客户端返回的上述带 宽侦测反馈消息包;上述带宽侦测反馈消息解析模块负责解析上述带宽侦 测反馈消息包, 并取出与带宽侦测有关的字段信息, 例如丢包率; 上述带 宽适配逻辑控制模块负责计算一预先设定时间内的平均丢包率,并根据该 平均丢包率判定是否需要进行二次解码编码; 上述媒体数据接收模块负责 读取流媒体数据包;上述媒体数据解码模块负责将上述流媒体服务器端即 将发送出去的流媒体数据包进行解码, 由于媒体编码格式众多, 该媒体数 据解码模块可能由多个不同的媒体数据解码模块组成;上述媒体数据编码 模块负责根据上述平均丢包率重新计算编码的码率,并将上述流媒体数据 包按照该码率重新进行编码, 由于媒体编码格式众多, 该媒体数据编码模 块可能由多个不同的媒体数据编码模块组成;上述媒体数据流化和发送模 块负责将上述流媒体数据包流化并向上述客户端发送。 The bandwidth detection message sending module is configured to send the bandwidth detection message packet to the client, and the bandwidth detection feedback message receiving module is configured to receive the bandwidth detection feedback message packet returned by the client, and the bandwidth detection feedback message is parsed. The module is responsible for parsing the above bandwidth detection Detecting a feedback message packet, and taking out field information related to bandwidth detection, such as a packet loss rate; the bandwidth adaptation logic control module is configured to calculate an average packet loss rate within a predetermined time period, and determine according to the average packet loss rate. Whether it is necessary to perform secondary decoding and encoding; the media data receiving module is responsible for reading the streaming media data packet; the media data decoding module is responsible for decoding the streaming media data packet to be sent by the streaming media server end, because the media encoding format is numerous, The media data decoding module may be composed of a plurality of different media data decoding modules; the media data encoding module is configured to recalculate the encoded code rate according to the average packet loss rate, and re-encode the streaming media data packet according to the code rate. The media data encoding module may be composed of a plurality of different media data encoding modules; the media data streaming and sending module is responsible for streaming and transmitting the streaming media data packet to the client.
此外, 由于上述流媒体服务器端需要上述客户端不断地报告网络状 况, 因此上述带宽侦测消息包和上述带宽侦测反馈消息包为非一一对应机 制, 即一条带宽侦测消息可能返回多条带宽侦测反馈消息。  In addition, since the foregoing media server needs the client to continuously report the network status, the bandwidth detection message packet and the bandwidth detection feedback message packet are non-one-to-one correspondence mechanisms, that is, one bandwidth detection message may return multiple pieces. Bandwidth detection feedback message.
为实现上述目的,本发明的一种流媒体服务系统的带宽自适应流媒体 传输方法, 包括如下步骤:  To achieve the above objective, a bandwidth adaptive streaming media transmission method of a streaming media service system of the present invention includes the following steps:
步骤 1 : 流媒体服务器端向客户端发送带宽侦测消息包;  Step 1: The streaming media server sends a bandwidth detection message packet to the client.
步骤 2: 上述流媒体服务器端接收上述客户端返回的带宽侦测反馈消 息包;  Step 2: The streaming media server receives the bandwidth detection feedback packet returned by the client.
步骤 3 : 上述流媒体服务器端解析上述带宽侦测反馈消息包, 并计算 一预先设定时间内的平均丢包率;  Step 3: The streaming media server parses the bandwidth detection feedback message packet, and calculates an average packet loss rate within a preset time period;
步骤 4: 上述流媒体服务器端判断是否需要进行二次解码编码, 如果 上述平均丢包率在预先设定的比率 (该比率可以配置, 例如 20%)以下, 则 不需要进行二次解码编码, 执行步骤 7, 否则执行步骤 5 ; Step 4: The streaming media server determines whether secondary decoding coding is required. If the average packet loss rate is below a preset ratio (the ratio can be configured, for example, 20%), then No need to perform secondary decoding and encoding, perform step 7, otherwise perform step 5;
步骤 5 : 如果上述平均丢包率大于上述预先设定的比率, 则上述流媒 体服务器端对发送的流媒体数据包进行解码; '  Step 5: If the average packet loss rate is greater than the preset ratio, the streaming media server decodes the sent streaming media packet;
步骤 6: 上述流媒体服务器端根据上述平均丢包率并按百分比降低编 码的码率, 并对上述解码后的流媒体数据包按照该码率重新进行编码; 步骤 7: 上述流媒体服务器端发送流媒体数据包。  Step 6: The streaming media server reduces the encoded code rate according to the average packet loss rate and percentages, and re-encodes the decoded streaming media data packet according to the code rate. Step 7: The foregoing streaming media server sends Streaming data packets.
其中, 上述预先设定的时间可以配置, 同时为了降低网络负荷, 该时 间不应设定得过小。  The above preset time can be configured, and in order to reduce the network load, the time should not be set too small.
上述步骤 6中按百分比降低编码的码率的方法为:码率 =开始的码率 X ( 1—平均丢包率)。  The method of lowering the coded rate by percentage in the above step 6 is: code rate = starting code rate X (1 - average packet loss rate).
与现有技术相比较,本发明引入了带宽侦测基础上的二次解码编码机 制, 使得当通信线路状况不好的时候, 能适时地动态调整发送流媒体数据 包的码率, 使之能适应网络带宽; 而当通信线路状况良好的时候, 则一直 使用默认的码率发送流媒体数据包。这样无论通信网络状况如何, 都不影 响流媒体数据包的顺畅播放; 同时由于编码解码模块可以通过流媒体服务 器端外挂组件提供, 或者由第三方提供接口, 降低了系统开发的难度和提 高了系统的可靠性。  Compared with the prior art, the present invention introduces a secondary decoding and coding mechanism based on bandwidth detection, so that when the communication line is in a bad condition, the code rate of the transmitted streaming media data packet can be dynamically adjusted in time to enable it to Adapt to network bandwidth; when the communication line is in good condition, the streaming code packet is always sent using the default bit rate. In this way, regardless of the status of the communication network, the smooth playback of streaming media packets is not affected. At the same time, since the encoding and decoding module can be provided through the streaming server server plug-in component, or the interface is provided by a third party, the system development difficulty is reduced and the system is improved. Reliability.
为让本发明的上述和其它目的、特征和优点能更明显易懂, 下文特举 较佳实施例, 并配合说明书附图, 作详细说明如下。 附闳¾昍  The above and other objects, features, and advantages of the present invention will become more apparent and understood by the appended claims appended claims Attachment 3⁄4昍
图 1为本发明流媒体服务器端的体系结构示意图; 图 2为本发明所述方法的流程图; 1 is a schematic structural diagram of a streaming media server end according to the present invention; Figure 2 is a flow chart of the method of the present invention;
图 3为本发明所述方法的时序图。 具体实施方式  Figure 3 is a timing diagram of the method of the present invention. detailed description
下面结合附图对本发明的技术方案的具体实施作进一步的详细说明, 但其并不作为对本发明的限定。 一 如图 1所示,本发明流媒体服务器端的体系结构包括控制流和媒体数 据流, 分别在图中以细线及黑粗线标示:  The specific implementation of the technical solution of the present invention will be further described in detail below with reference to the accompanying drawings, which are not intended to limit the invention. As shown in FIG. 1, the architecture of the streaming media server of the present invention includes a control flow and a media data stream, which are respectively indicated by thin lines and black thick lines in the figure:
1 ) 控制流由如下部分组成:  1) The control flow consists of the following parts:
带宽侦测消息发送模块 201, 其在流媒体播放过程中, 发起带宽侦测 流程, 向客户端发送带宽侦测消息包;  The bandwidth detection message sending module 201, in the process of streaming media playback, initiates a bandwidth detection process, and sends a bandwidth detection message packet to the client;
带宽侦测反馈消息接收模块 101, 其负责接收客户端返回的带宽侦测 反馈消息包, 由于流媒体服务器端需要客户端不断地报告网络状况, 所以 上述带宽侦测反馈消息包和带宽侦测消息包为非一一对应机制, 即一条带 宽侦测消息可能返回多条带宽侦测反馈消息;  The bandwidth detection feedback message receiving module 101 is configured to receive the bandwidth detection feedback message packet returned by the client, and the bandwidth detection feedback message packet and the bandwidth detection message are required because the streaming media server end needs the client to continuously report the network status. The packet is a non-one-to-one correspondence mechanism, that is, one bandwidth detection message may return multiple bandwidth detection feedback messages;
带宽侦测反馈消息解析模块 102, 其负责解析上述带宽侦测反馈消息 包, 并取出其中与带宽侦测有关的丢包率等字段信息;  The bandwidth detection feedback message parsing module 102 is configured to parse the bandwidth detection feedback message packet, and take out field information such as a packet loss rate related to bandwidth detection;
带宽适配逻辑控制模块 103, 其负责计算一预先设定时间内的平均丢 包率, 并根据该平均丢包率判定是否需要进行二次解码编码;  The bandwidth adaptation logic control module 103 is configured to calculate an average packet loss rate within a predetermined time period, and determine, according to the average packet loss rate, whether secondary decoding coding is required;
2) 媒体数据流由如下部分组成:  2) The media data stream consists of the following components:
媒体数据接收模块 304, 其负责读取流媒体数据包;  a media data receiving module 304, which is responsible for reading a streaming media data packet;
媒体数据解码模块 303, 其负责将流媒体服务器端即将发送出去的流 媒体数据包进行解码, 由于媒体编码格式众多, 该媒体数据解码模块可能 由多个不同的媒体数据解码模块组成; The media data decoding module 303 is responsible for the stream to be sent by the streaming media server end. The media data packet is decoded. Due to the large number of media encoding formats, the media data decoding module may be composed of a plurality of different media data decoding modules;
媒体数据编码模块 302, 其负责根据上述平均丢包率重新计算编码的 码率, 并将上述流媒体数据包按照该码率重新进行编码, 由于媒体编码格 式众多, 该媒体数据编码模块可能由多个不同的媒体数据编码模块组成; 媒体数据流化和发送模块 301, 其上述流媒体数据包流化并向上述客 户端发送。  The media data encoding module 302 is configured to recalculate the encoded code rate according to the average packet loss rate, and re-encode the streaming media data packet according to the code rate. Because the media encoding format is numerous, the media data encoding module may be multi-coded. The media data streaming and sending module 301, the streaming media data packet is streamed and sent to the client.
如图 2所示, 本发明所述方法包括如下步骤:  As shown in FIG. 2, the method of the present invention includes the following steps:
步骤 1 : 流媒体服务器端向客户端发送带宽侦测消息包;  Step 1: The streaming media server sends a bandwidth detection message packet to the client.
步骤 2: 上述流媒体服务器端接收上述客户端返回的带宽侦测反馈消 息包;  Step 2: The streaming media server receives the bandwidth detection feedback packet returned by the client.
步骤 3 : 上述流媒体服务器端解析上述带宽侦测反馈消息包, 并计算 一预先设定时间内 (例如 10秒)的平均丢包率;  Step 3: The streaming media server parses the bandwidth detection feedback message packet, and calculates an average packet loss rate within a preset time (for example, 10 seconds);
步骤 4: 上述流媒体服务器端判断是否需要进行二次解码编码, 如果 上述平均丢包率在预先设定的比率 (例如 20%)以下, 则不需要进行二次解 码编码, 执行步骤 7, 否则执行步骤 5 ;  Step 4: The streaming media server determines whether secondary decoding is required. If the average packet loss rate is lower than a preset ratio (for example, 20%), the secondary decoding encoding is not required, and step 7 is performed. Otherwise, Perform step 5;
步骤 5 : 如果上述平均丢包率大于上述预先设定的比率, 则上述流媒 体服务器端对发送的流媒体数据包进行解码;  Step 5: If the average packet loss rate is greater than the foregoing preset ratio, the streaming media server decodes the sent streaming media packet.
步骤 6: 上述流媒体服务器端根据上述平均丢包率并按百分比降低编 码的码率, 并对上述解码后的流媒体数据包按照该码率重新进行编码; 其 中上述按百分比降低编码的码率的方法为: 码率 =开始的码率 X ( 1—平 均丢包率), 例如开始的码率为 100kbps、平均丢包率为 40%, 则重新编码 的码率为 100X ( 1 -40%) = 60kbps; Step 6: The streaming media server reduces the encoded code rate according to the average packet loss rate and percentages, and re-encodes the decoded streaming media data packet according to the code rate; wherein the foregoing code rate is reduced by percentage The method is: code rate = starting code rate X (1 - average packet loss rate), for example, starting code rate is 100 kbps, average packet loss rate is 40%, then re-encoding The code rate is 100X (1 -40%) = 60kbps;
步骤 7: 上述流媒体服务器端发送流媒体数据包。  Step 7: The streaming media server sends the streaming media packet.
如图 3所示, 本发明所述方法的时序如下:  As shown in FIG. 3, the timing of the method of the present invention is as follows:
步骤 A. 流媒体服务器端向客户端发送带宽侦测消息包;  Step A. The streaming media server sends a bandwidth detection message packet to the client.
步骤 B. 客户端向流媒体服务器端发送带宽侦测反馈消息包, 且该反 馈消息可能是多条;  Step B. The client sends a bandwidth detection feedback message packet to the streaming media server, and the feedback message may be multiple;
步骤 C. 流媒体服务器端根据一段时间内的客户端的带宽侦测反馈消 息包, 计算平均丢包率;  Step C. The streaming media server detects the feedback packet according to the bandwidth of the client in a period of time, and calculates an average packet loss rate.
步骤 D. 流媒体服务器端根据上述平均丢包率进行逻辑控制, 判定是 否需要进行二次解码编码;  Step D. The streaming media server performs logical control according to the average packet loss rate to determine whether secondary decoding and encoding are required.
步骤 E.流媒体服务器端进行解码,并根据平均丢包率重新进行编码; 步骤 F. 流媒体服务器端发送重编码后的流媒体数据包。  Step E: The streaming media server performs decoding, and re-encodes according to the average packet loss rate. Step F. The streaming media server sends the re-encoded streaming media data packet.
以上详细说明了本发明的工作原理,但这只是为了便于理解而举的一 个形象化的实例, 不应被视为是对本发明范围的限制。 同样, 根据本发明 的技术方案及其较佳实施例的描述, 可以做出各种可能的等同改变或替 换, 而所有这些改变或替换都应属于本发明的权利要求的保护范围。  The above is a detailed description of the working principle of the present invention, but this is only a visual example for the purpose of understanding and should not be construed as limiting the scope of the invention. Also, various possible equivalents and substitutions may be made in accordance with the description of the technical solutions of the present invention and the preferred embodiments thereof, and all such changes or substitutions are intended to fall within the scope of the appended claims.

Claims

权 利 要 求 Rights request
1、 一种流媒体服务系统的带宽自适应流媒体传输系统, 其特征在于 包括: A bandwidth adaptive streaming media transmission system for a streaming media service system, comprising:
客户端, 其负责提供基于网际协议的通讯机制, 负责接收带宽侦测消 息包、发送带宽侦测反馈消息包和接收流媒体数据包并对该流媒体数据包 进行解码处理; 及  The client is responsible for providing an internet protocol-based communication mechanism, and is responsible for receiving a bandwidth detection message packet, transmitting a bandwidth detection feedback message packet, and receiving the streaming media data packet, and decoding the streaming media data packet;
流媒体服务器端, 其负责提供基于网际协议的通讯机制, 负责将带宽 侦测消息打包并发送上述带宽侦测消息包、 接收上述带宽侦测反馈消息 包、 计算一预先设定时间内的平均丢包率和进行逻辑控制及二次解码编 码; 其中上述流媒体服务器端的体系结构包括: 控制流和媒体数据流, 其中, 上述控制流包括: 带宽侦测消息发送模块、 带宽侦测反馈 消息接收模块、 带宽侦测反馈消息解析模块及带宽适配逻辑控制模块; 上述媒体数据流包括: 媒体数据接收模块、 媒体数据解码模块、 媒体数据编码模块及媒体数据流化和发送模块。  The streaming media server is responsible for providing an internet protocol-based communication mechanism, and is configured to package the bandwidth detection message and send the bandwidth detection message packet, receive the bandwidth detection feedback message packet, and calculate an average lost time in a preset time. The packet rate and the logic control and the secondary decoding coding; wherein the architecture of the streaming media server includes: a control flow and a media data flow, wherein the control flow includes: a bandwidth detection message sending module, a bandwidth detection feedback message receiving module The bandwidth detection feedback message parsing module and the bandwidth adaptation logic control module; the media data stream includes: a media data receiving module, a media data decoding module, a media data encoding module, and a media data streaming and sending module.
2、 根据权利要求 1所述的系统, 其特征在于  2. The system of claim 1 wherein
上述带宽侦测消息发送模块负责向上述客户端发送上述带宽侦测消 息包;  The bandwidth detecting message sending module is configured to send the bandwidth detecting message packet to the client.
上述带宽侦测反馈消息接收模块负责接收上述客户端返回的上述带 宽侦测反馈消息包;  The bandwidth detection feedback message receiving module is configured to receive the bandwidth detection feedback message packet returned by the client;
上述带宽侦测反馈消息解析模块负责解析上述带宽侦测反馈消息包, 并取出与带宽侦测有关的字段信息; 上述带宽适配逻辑控制模块负责计算一预先设定时间内的平均丢包 率, 并根据该平均丢包率判定是否需要进行二次解码编码; The bandwidth detection feedback message parsing module is configured to parse the bandwidth detection feedback message packet, and take out field information related to bandwidth detection; The bandwidth adaptation logic control module is configured to calculate an average packet loss rate within a preset time period, and determine, according to the average packet loss rate, whether secondary decoding coding is required;
上述媒体数据接收模块负责读取流媒体数据包;  The media data receiving module is configured to read the streaming media data packet;
上述媒体数据解码模块负责将上述流媒体服务器端即将发送出去的 流媒体数据包进行解码;  The media data decoding module is configured to decode the streaming media data packet to be sent by the streaming media server end;
上述媒体数据编码模块负责根据上述平均丢包率重新计算编码的码 率, 并将上述流媒体数据包按照该码率重新进行编码;  The media data encoding module is configured to recalculate the encoded code rate according to the average packet loss rate, and re-encode the streaming media data packet according to the code rate;
上述媒体数据流化和发送模块负责将上述流媒体数据包流化并向上 述客户端发送。  The media data streaming and sending module is configured to stream the streaming media packet and send the packet to the client.
3、 根据权利要求 2所述的系统, 其特征在于上述带宽侦测消息包和 上述带宽侦测反馈消息包为非一一对应机制。  3. The system according to claim 2, wherein the bandwidth detection message packet and the bandwidth detection feedback message packet are non-one-to-one correspondence mechanisms.
4、 一种流媒体服务系统的带宽自适应流媒体传输方法, 其特征在于 包括如下步骤:  A bandwidth adaptive streaming media transmission method for a streaming media service system, comprising the steps of:
步骤 1 : 流媒体服务器端向客户端发送带宽侦测消息包;  Step 1: The streaming media server sends a bandwidth detection message packet to the client.
步骤 2: 上述流媒体服务器端接收上述客户端返回的带宽侦测反馈消 息包;  Step 2: The streaming media server receives the bandwidth detection feedback packet returned by the client.
步骤 3 : 上述流媒体服务器端解析上述带宽侦测反馈消息包, 并计算 一预先设定时间内的平均丢包率;  Step 3: The streaming media server parses the bandwidth detection feedback message packet, and calculates an average packet loss rate within a preset time period;
步骤 4: 上述流媒体服务器端判断是否需要进行二次解码编码, 如果 上述平均丢包率在预先设定的比率以下, 则不需要进行二次解码编码, 执 行步骤 7, 否则执行步骤 5 ;  Step 4: The streaming media server determines whether secondary decoding is required. If the average packet loss rate is lower than a preset ratio, the secondary decoding and encoding are not required, and step 7 is performed; otherwise, step 5 is performed;
步骤 5 : 如果上述平均丢包率大于上述预先设定的比率, 则上述流媒 体服务器端对发送的流媒体数据包进行解码; Step 5: If the average packet loss rate is greater than the preset ratio, the streaming medium The server side decodes the sent streaming media packet;
步骤 6: 上述流媒体服务器端根据上述平均丢包率并按百分比降低编 码的码率, 并对上述解码后的流媒体数据包按照该码率重新进行编码; 步骤 7: 上述流媒体服务器端发送流媒体数据包。  Step 6: The streaming media server reduces the encoded code rate according to the average packet loss rate and percentages, and re-encodes the decoded streaming media data packet according to the code rate. Step 7: The foregoing streaming media server sends Streaming data packets.
PCT/CN2005/001795 2005-10-31 2005-10-31 A bandwidth adaptive stream medium transmission system of a stream medium serving system and a method thereof WO2007051343A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2005/001795 WO2007051343A1 (en) 2005-10-31 2005-10-31 A bandwidth adaptive stream medium transmission system of a stream medium serving system and a method thereof
CN2005800524650A CN101352009B (en) 2005-10-31 2005-10-31 Bandwidth-self-adapting stream medium transmission system and method for stream medium service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2005/001795 WO2007051343A1 (en) 2005-10-31 2005-10-31 A bandwidth adaptive stream medium transmission system of a stream medium serving system and a method thereof

Publications (1)

Publication Number Publication Date
WO2007051343A1 true WO2007051343A1 (en) 2007-05-10

Family

ID=38005407

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2005/001795 WO2007051343A1 (en) 2005-10-31 2005-10-31 A bandwidth adaptive stream medium transmission system of a stream medium serving system and a method thereof

Country Status (2)

Country Link
CN (1) CN101352009B (en)
WO (1) WO2007051343A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101449515B (en) * 2006-05-04 2012-11-14 思杰在线有限责任公司 Methods and systems for bandwidth adaptive N-to-N communication in a distributed system
WO2013185651A1 (en) * 2012-07-25 2013-12-19 中兴通讯股份有限公司 Terminal capability information synchronization method, system and device

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148747A (en) * 2010-07-20 2011-08-10 华为软件技术有限公司 Media stream transmission method and device
CN102915736B (en) * 2012-10-16 2015-09-02 广东威创视讯科技股份有限公司 Mixed audio processing method and stereo process system
HUE043713T2 (en) * 2013-03-29 2019-09-30 Intel Ip Corp Quality-aware rate adaptation techniques for dash streaming
CN103546391A (en) * 2013-11-04 2014-01-29 腾讯科技(武汉)有限公司 Method and device for sending data packet and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1518285A (en) * 2003-01-16 2004-08-04 华为技术有限公司 Network bandwidth detecting method for implementing stream medium service
CN1578463A (en) * 2003-06-30 2005-02-09 英特尔公司 Method for transcoding mpeg encoded streams

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003009581A1 (en) * 2001-07-19 2003-01-30 British Telecommunications Public Limited Company Video stream switching

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1518285A (en) * 2003-01-16 2004-08-04 华为技术有限公司 Network bandwidth detecting method for implementing stream medium service
CN1578463A (en) * 2003-06-30 2005-02-09 英特尔公司 Method for transcoding mpeg encoded streams

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101449515B (en) * 2006-05-04 2012-11-14 思杰在线有限责任公司 Methods and systems for bandwidth adaptive N-to-N communication in a distributed system
WO2013185651A1 (en) * 2012-07-25 2013-12-19 中兴通讯股份有限公司 Terminal capability information synchronization method, system and device

Also Published As

Publication number Publication date
CN101352009A (en) 2009-01-21
CN101352009B (en) 2012-11-14

Similar Documents

Publication Publication Date Title
EP1271830B1 (en) Negotiated dynamic error correction for streamed media
US7444418B2 (en) Transcoding multimedia information within a network communication system
CN101909208B (en) Video wireless transmission control method suitable for CDMA2000
EP1782644B1 (en) Interoperability for wireless user devices with different speech processing formats
EP2656579B1 (en) Signaling techniques for a multimedia-aware radio and network adaptation
WO2008125029A1 (en) A method, system and device for controlling the code rate of the stream media
TWI401918B (en) A communication method for signaling buffer parameters indicative of receiver buffer architecture
JP5528811B2 (en) Receiver operation and implementation for efficient media handling
CN101174995B (en) Method and system for monitoring multimedia service performance
CN101536088B (en) System and method for providing redundancy management
AU2005242613A1 (en) Cooperation between packetized data bit-rate adaptation and data packet re-transmission
JP2005176352A (en) Wireless moving picture streaming file, method and system for moving picture streaming service of mobile communication terminal
WO2007051343A1 (en) A bandwidth adaptive stream medium transmission system of a stream medium serving system and a method thereof
KR20090089901A (en) Error filter to differentiate between reverse link and forward link video data errors
WO2010083737A1 (en) Method and apparatus for processing voice signal, method and apparatus for transmitting voice signal
CN103118238A (en) Controlling method of video conference and video conference system
US8438016B2 (en) Silence-based adaptive real-time voice and video transmission methods and system
CN101335687B (en) Subscriber service quality guarantee method for radio communication system
JPWO2005122455A1 (en) Two-way communication method, device, system and program
JP2005051299A (en) Packet transmission apparatus, packet reception apparatus, packet transmission method and packet reception method
WO2008040186A1 (en) A method, system and gateway for negotiating about the ability of the data signal detector
Xie et al. Rate-distortion optimized dynamic bitstream switching for scalable video streaming
Prangl et al. Towards QoS improvements of TCP-based media delivery
CN101179353A (en) Method and system of monitoring multimedia service performance
CN113905026A (en) Streaming media video data processing method, device and storage medium

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200580052465.0

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 05801822

Country of ref document: EP

Kind code of ref document: A1