WO2018058700A1 - 一种编码器及控制方法 - Google Patents

一种编码器及控制方法 Download PDF

Info

Publication number
WO2018058700A1
WO2018058700A1 PCT/CN2016/101853 CN2016101853W WO2018058700A1 WO 2018058700 A1 WO2018058700 A1 WO 2018058700A1 CN 2016101853 W CN2016101853 W CN 2016101853W WO 2018058700 A1 WO2018058700 A1 WO 2018058700A1
Authority
WO
WIPO (PCT)
Prior art keywords
target code
code rate
adjusted
current
rate
Prior art date
Application number
PCT/CN2016/101853
Other languages
English (en)
French (fr)
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 WO2018058700A1 publication Critical patent/WO2018058700A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output

Definitions

  • the present invention relates to the field of communications, and more particularly to an encoder and a control method.
  • the existing bandwidth adaptive algorithm automatically adjusts the bandwidth according to parameters such as packet loss rate, delay, and jitter of the RTCP feedback.
  • these algorithms are simple and use a single information.
  • the bandwidth is automatically adjusted.
  • the effect is not ideal, there will be problems such as stagnation, picture screen, sound discontinuity, etc., which seriously affects the wide application of audio and video services.
  • Due to the limitation of bandwidth the encoded data generated by devices such as encoders cannot be sent out through the network in time, which seriously affects the real-time transmission of audio and video services.
  • the invention provides an encoder capable of adjusting a target code rate according to a current prediction bandwidth, adjusting a resolution parameter and a frame rate parameter according to a target code rate, and improving reliability of the encoded data transmission.
  • the encoder includes:
  • a control module configured to calculate a ratio ⁇ of the current target code rate to the current estimated bandwidth, determine a range of values of the ratio ⁇ , and query a target rate adjustment formula corresponding to the range of values of the ratio ⁇ , according to the target
  • control module is further configured to adjust the current target code rate to 0.5 by multiplying the current estimated bandwidth when ⁇ 0.5;
  • the current target code rate is adjusted to a value obtained by multiplying 0.55 by the current estimated bandwidth
  • the current target code rate is adjusted to a value obtained by multiplying 0.65 by the current estimated bandwidth
  • the current target code rate is adjusted to a value obtained by multiplying 0.75 by the current estimated bandwidth
  • the current target code rate is adjusted to a value obtained by multiplying 0.85 by the estimated bandwidth of the current time;
  • the current target code rate is adjusted to a value obtained by multiplying 0.9 by the estimated bandwidth of the current time.
  • the encoder further includes:
  • the parameter adjustment module is configured to determine a target code rate range in which the adjusted target code rate is located, and adjust a resolution parameter and a frame rate parameter according to the target code rate range in which the adjusted target code rate is located.
  • the parameter adjustment module is further configured to determine whether the current target code rate is within a preset time period or whether the consecutive preset times are maintained within a same target code rate range, when the target code rate is preset If the adjusted target code rate is within the same target code rate range during the time period or the preset target code rate is different from the target code rate range in which the current target code rate is located, according to the adjusted target code
  • the target code rate range at which the rate is located adjusts the resolution parameter and the frame rate parameter.
  • the parameter adjustment module is further configured to adjust the resolution to 1080P and the frame rate to 25 or 30 frames/second when the target code rate is greater than 2048 kbps, when the target code rate is less than or equal to 2048 kbps. And when the target code rate is greater than 1024 kbps, the resolution is adjusted to 720P, the frame rate is adjusted to 25 or 30 frames/second, and when the target code rate is less than or equal to 1024 kbps and the target code rate is greater than 512 kbps, the resolution is resolved.
  • the rate is adjusted to 4CIF/D1/VGA, the frame rate is adjusted to 25 or 30 frames/second, and when the target code rate is less than or equal to 512 kbps and the target code rate is greater than 128 kbps, the resolution is adjusted to CIF, and the frame rate is adjusted. Adjust to 25 or 30 frames/second. When the target bit rate is less than or equal to 128kbps, adjust the resolution to QCIF and adjust the frame rate. It is 15 or 20 frames/second.
  • the invention also provides a control method, which can adjust the target code rate according to the current prediction bandwidth, adjust the resolution parameter and the frame rate parameter according to the target code rate, and improve the reliability of the encoded data transmission.
  • the control method includes:
  • control method further includes:
  • the current target code rate is adjusted to a value obtained by multiplying 0.5 by the current estimated bandwidth
  • the current target code rate is adjusted to a value obtained by multiplying 0.55 by the current estimated bandwidth
  • the current target code rate is adjusted to a value obtained by multiplying 0.65 by the current estimated bandwidth
  • the current target code rate is adjusted to a value obtained by multiplying 0.75 by the current estimated bandwidth
  • the current target code rate is adjusted to a value obtained by multiplying 0.85 by the estimated bandwidth of the current time;
  • the current target code rate is adjusted to a value obtained by multiplying 0.9 by the estimated bandwidth of the current time.
  • control method further includes:
  • control method further includes:
  • the resolution parameter and the frame rate parameter are adjusted according to the target code rate range in which the adjusted target code rate is located.
  • control method further includes:
  • the resolution is adjusted to 1080P, and the frame rate is adjusted to 25 or 30 frames/second;
  • the resolution is adjusted to 720P, and the frame rate is adjusted to 25 or 30 frames/second;
  • the resolution is adjusted to 4 CIF/D1/VGA, and the frame rate is adjusted to 25 or 30 frames/second;
  • the resolution is adjusted to CIF, and the frame rate is adjusted to 25 or 30 frames/second;
  • the resolution is adjusted to QCIF, and the frame rate is adjusted to 15 or 20 frames/second.
  • the encoder and the control method provided by the invention can calculate the ratio of the current target code rate to the current estimated bandwidth, and adjust the target code rate according to the numerical range in which the ratio is located, and the resolution parameter and the frame according to the adjusted target code rate.
  • the rate parameter is adjusted to ensure that the encoded data of audio and video can be transmitted under a certain bandwidth, and the reliability of the encoded data transmission is improved.
  • FIG. 1 is a functional block diagram of an encoder according to an embodiment of the present invention.
  • FIG. 2 is a functional block diagram of an encoder according to Embodiment 2 of the present invention.
  • FIG. 3 is a flow chart of a third control method of the embodiment of the present invention.
  • FIG. 1 is a functional block diagram of an encoder according to an embodiment of the present invention.
  • the encoder 1 shown in Fig. 1 comprises a control module 2.
  • Control module 2 calculates the current target bit rate and the current estimated bandwidth a ratio ⁇ , determining a range of values in which the ratio ⁇ is located, querying a target rate adjustment formula corresponding to a range of values of the ratio ⁇ , and calculating a target code rate according to the target rate adjustment formula, according to the calculated target
  • the formula set for the ⁇ 0.5 interval is: the target code rate is equal to 0.5 multiplied by the current estimated bandwidth;
  • control module 2 adjusts the current target code rate to a value obtained by multiplying 0.5 by the current estimated bandwidth
  • control module 2 adjusts the current target code rate to a value obtained by multiplying the current estimated bandwidth by 0.55;
  • control module 2 adjusts the current target code rate to a value obtained by multiplying 0.65 by the current estimated bandwidth
  • control module 2 adjusts the current target code rate to a value obtained by multiplying 0.75 by the current estimated bandwidth
  • control module 2 adjusts the current target code rate to 0.85 times The value obtained from the estimated bandwidth at the current time;
  • control module 2 adjusts the current target code rate to a value obtained by multiplying 0.9 by the estimated bandwidth of the current time.
  • FIG. 2 is a functional block diagram of an encoder according to Embodiment 2 of the present invention.
  • the encoder 1 shown in FIG. 2 includes a control module 2 and a parameter adjustment module 3.
  • the function of the control module 2 of the encoder 1 shown in FIG. 2 is the same as that of the control module 2 of the encoder 1 shown in FIG. 1, and will not be described herein.
  • the parameter adjustment module 3 determines a target code rate range in which the adjusted target code rate is located, and adjusts a resolution parameter and a frame rate parameter according to the target code rate range in which the adjusted target code rate is located.
  • the parameter adjustment module 3 determines whether the current target code rate is within a preset time period or whether the consecutive preset times are maintained within the same target code rate range. And when the target code rate is maintained within the same target code rate range within a preset time period or consecutive preset times, and the target code rate range of the adjusted target code rate and the current target code rate is not At the same time, the resolution parameter and the frame rate parameter are adjusted according to the target code rate range in which the adjusted target code rate is located. For example, the parameter adjustment module 3 determines that the target code rate is maintained within a target code rate range for at least 2 minutes.
  • the resolution parameter and the frame rate parameter are adjusted according to the target code rate range in which the adjusted target code rate is located.
  • the target code rate range and the resolution parameter and the frame rate parameter corresponding to each target code rate range are determined according to the following principles:
  • the resolution is set to 1080P
  • the frame rate is 25 or 30 frames/second
  • the resolution is set to QCIF, and the frame rate is 15 or 20 frames/second.
  • the parameter adjustment module 3 adjusts the resolution to 1080P, adjusts the frame rate to 25 or 30 frames/second, when the target code rate is less than or equal to 2048 kbps and the target code rate
  • the parameter adjustment module 3 adjusts the resolution to 720P, the frame rate to 25 or 30 frames/second, and when the target code rate is less than or equal to 1024 kbps and the target code rate is greater than 512 kbps, the parameter adjustment module 3
  • the resolution is adjusted to 4CIF/D1/VGA, the frame rate is adjusted to 25 or 30 frames/second, and when the target code rate is less than or equal to 512 kbps and the target code rate is greater than 128 kbps, the parameter adjustment module 3 adjusts the resolution.
  • the frame rate is adjusted to 25 or 30 frames/second.
  • the parameter adjustment module 3 adjusts the resolution to QCIF and the frame rate to
  • the present invention also provides a control method applied to the encoder 1 shown in Figs. 1 and 2, and the control method of the present embodiment will be described in detail below.
  • FIG. 3 is a flowchart of a third control method according to Embodiment 3 of the present invention.
  • the control module 2 calculates a ratio ⁇ of the current target code rate to the current estimated bandwidth, determines a range of values of the ratio ⁇ , and queries a target rate adjustment formula corresponding to the range of values of the ratio ⁇ , according to the target code rate.
  • step S11 the encoder is adjusted to update the target code rate.
  • step S12 the control module 2 of the encoder 1 acquires the target code rate D and the predicted bandwidth p, and the control module 2 calculates the ratio ⁇ of the current target code rate D to the current estimated bandwidth p, and determines the numerical range in which the ratio ⁇ is located. .
  • step S13 the control module 2 determines that the ratio ⁇ ⁇ 0.5, and proceeds to step S19.
  • the parameter adjustment module 3 determines whether the current target code rate is within a preset time period or whether the consecutive preset times are maintained within the same target code rate range. And when the target code rate is maintained within the same target code rate range within a preset time period or consecutive preset times, and the target code rate range of the adjusted target code rate and the current target code rate is not At the same time, the resolution parameter and the frame rate parameter are adjusted according to the target code rate range in which the adjusted target code rate is located. Specific steps are as follows:
  • step S25 the parameter adjustment module 3 determines whether the target code rate is maintained for at least 2 minutes or more than 20 times in a target code rate range, and determines whether the adjusted target code rate and the target code rate before adjustment are not present. Within the same target bit rate range.
  • the parameter The adjustment module 3 adjusts the resolution parameter and the frame rate parameter according to the target code rate range in which the adjusted target code rate is located.
  • the specific adjustment steps are as follows:
  • step S27 when the parameter adjustment module 3 determines that the target code rate is greater than 2048 kbps, that is, BW>2M, the parameter adjustment module 3 adjusts the resolution to 1080P and adjusts the frame rate to 25 or 30 frames/second. .
  • the encoder and the control method provided by the invention can calculate the ratio of the current target code rate to the current estimated bandwidth, and adjust the target code rate according to the numerical range in which the ratio is located, and the resolution parameter and the frame according to the adjusted target code rate.
  • the rate parameter is adjusted to ensure that the encoded data of audio and video can be transmitted under a certain bandwidth, and the reliability of the encoded data transmission is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Discrete Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Communication Control (AREA)

Abstract

本发明提供一种编码器,所述编码器包括:控制模块,用于计算当前目标码率与当前预估带宽的比值γ,判断比值γ所处的数值范围,查询比值γ所处数值范围对应的目标码率调节公式,根据目标码率调节公式计算目标码率,根据计算出的目标码率对当前目标码率进行调节,其中,目标码率调节公式为:目标码率=a*当前预估带宽,0<a<1。本发明还提供一种控制方法,本发明提供的编码器及控制方法能根据当前预测带宽对目标码率进行调节,根据目标码率对分辨率参数、帧率参数进行调节,提高编码数据传输的可靠性。

Description

一种编码器及控制方法 技术领域
本发明涉及通信领域,更具体地说,涉及一种编码器及控制方法。
背景技术
近些年,由于通信技术、网络技术和视频压缩技术的发展,基于IP网络的音视频通信越来越受到广泛的应用,特别是在视频会议、视频监控、视频指挥调度、远程教育、远程医疗会诊等领域都广泛实用。其中音视频传输是其广泛应用的关键技术,而在一些特殊通信信道(比如无线网络),带宽有限并且带宽波动较大,网络抖动、延迟、丢包等不确定因素使得很难提供可靠的音视频业务。
现有的带宽自适应算法主要根据RTCP反馈的丢包率、时延、抖动等参数对带宽进行自动调整,但是这些算法简单且利用的信息单一,在实际的复杂网络环境下,带宽自动调整的效果并不理想,会出现卡顿,画面花屏,声音断续等问题,这严重影响了音视频业务的广泛应用。由于带宽的限制,编码器等设备产生的编码数据往往不能及时的通过网络发送出去,严重影响了音视频业务的实时传输。
发明内容
本发明提供了一种编码器,所述编码器能根据当前预测带宽对目标码率进行调节,根据目标码率对分辨率参数、帧率参数进行调节,提高编码数据传输的可靠性。所述编码器包括:
控制模块,用于计算当前目标码率与当前预估带宽的比值γ,判断所述比值γ所处数值范围,查询所述比值γ所处数值范围对应的目标码率调节公式,根据所述目标码率调节公式计算目标码率,根据所述计算出的目标码率对当前目标码率进行调节,其中,所述目标码率调节公式为:目标码率=a*当前预估带宽,0<a<1。
进一步地,所述控制模块,还用于当γ<0.5时,将所述当前目标码率调整为0.5乘以所述当前预估带宽所得的值;
当0.5<=γ<0.6时,将所述当前目标码率调整为0.55乘以所述当前预估带宽所得的值;
当0.6<=γ<0.7时,将所述当前目标码率调整为0.65乘以所述当前预估带宽所得的值;
当0.7<=γ<0.8时,将所述当前目标码率调整为0.75乘以当前预估带宽所得的值;
当0.8<=γ<0.9时,将所述当前目标码率调整为0.85乘以当前时刻的预估带宽所得的值;
当0.9<=γ<1时,将所述当前目标码率调整为0.9乘以当前时刻的预估带宽所得的值。
进一步地,所述编码器还包括:
参数调节模块,用于判断所述调节后的目标码率所处的目标码率范围,根据所述调整后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
进一步地,所述参数调节模块,还用于判断所述当前目标码率是否在预设时间段内或者是否连续预设次数维持在同一目标码率范围内,当所述目标码率在预设时间段内或者连续预设次数维持在同一目标码率范围内、且所述调节后的目标码率与当前的目标码率所处的目标码率范围不同时,根据所述调节后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
进一步地,所述参数调节模块,还用于当所述目标码率大于2048kbps时,将分辨率调整为1080P、将帧率调整为25或者30帧/秒,当所述目标码率小于等于2048kbps且所述目标码率大于1024kbps时,将分辨率调整为720P、将帧率调整为25或者30帧/秒,当所述目标码率小于等于1024kbps且所述目标码率大于512kbps时,将分辨率调整为4CIF/D1/VGA、将帧率调整为25或者30帧/秒,当所述目标码率小于等于512kbps且所述目标码率大于128kbps时,将分辨率调整为CIF、将帧率调整为25或者30帧/秒,当所述目标码率小于等于128kbps时,将分辨率调整为QCIF、将帧率调整 为15或者20帧/秒。
本发明还提供一种控制方法,所述控制方法能根据当前预测带宽对目标码率进行调节,根据目标码率对分辨率参数、帧率参数进行调节,提高编码数据传输的可靠性。所述控制方法包括:
计算当前目标码率与当前预估带宽的比值γ,判断所述比值γ所处数值范围;
查询所述比值γ所处数值范围对应的目标码率调节公式,根据所述目标码率调节公式计算目标码率;
根据所述计算出的目标码率对当前目标码率进行调节,其中,所述目标码率调节公式为:目标码率=a*当前预估带宽,0<a<1。
进一步地,所述控制方法还包括:
当γ<0.5时,将所述当前目标码率调整为0.5乘以所述当前预估带宽所得的值;
当0.5<=γ<0.6时,将所述当前目标码率调整为0.55乘以所述当前预估带宽所得的值;
当0.6<=γ<0.7时,将所述当前目标码率调整为0.65乘以所述当前预估带宽所得的值;
当0.7<=γ<0.8时,将所述当前目标码率调整为0.75乘以当前预估带宽所得的值;
当0.8<=γ<0.9时,将所述当前目标码率调整为0.85乘以当前时刻的预估带宽所得的值;
当0.9<=γ<1时,将所述当前目标码率调整为0.9乘以当前时刻的预估带宽所得的值。
进一步地,所述控制方法还包括:
判断所述调节后的目标码率所处的目标码率范围,根据所述调整后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
进一步地,所述控制方法还包括:
判断所述当前目标码率是否在预设时间段内或者是否连续预设次数维持在同一目标码率范围内,当所述目标码率在预设时间段内或者连续预设次数维持在同一目标码率范围内、且所述调节后的目标码率与当前的目标 码率所处的目标码率范围不同时,根据所述调节后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
进一步地,所述控制方法还包括:
当所述目标码率大于2048kbps时,将分辨率调整为1080P、将帧率调整为25或者30帧/秒;
当所述目标码率小于等于2048kbps且所述目标码率大于1024kbps时,将分辨率调整为720P、将帧率调整为25或者30帧/秒;
当所述目标码率小于等于1024kbps且所述目标码率大于512kbps时,将分辨率调整为4CIF/D1/VGA、将帧率调整为25或者30帧/秒;
当所述目标码率小于等于512kbps且所述目标码率大于128kbps时,将分辨率调整为CIF、将帧率调整为25或者30帧/秒;
当所述目标码率小于等于128kbps时,将分辨率调整为QCIF、将帧率调整为15或者20帧/秒。
本发明提供的编码器及控制方法能计算当前目标码率与当前预估带宽的比值,并根据比值所在的数值范围对目标码率进行调节,根据调节后的目标码率对分辨率参数、帧率参数进行调节,确保在一定带宽下,能够传输音视频的编码数据,提高编码数据传输的可靠性。
附图说明
图1是本发明实施例一编码器的功能模块图;
图2是本发明实施例二编码器的功能模块图;
图3是本发明实施例三控制方法的流程图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
请参阅图1,图1是本发明实施例一编码器的功能模块图。图1所示的编码器1包括控制模块2。控制模块2计算当前目标码率与当前预估带宽的 比值γ,判断所述比值γ所处数值范围,查询所述比值γ所处数值范围对应的目标码率调节公式,根据所述目标码率调节公式计算目标码率,根据所述计算出的目标码率对当前目标码率进行调节,其中,所述目标码率调节公式为:目标码率=a*当前预估带宽,0<a<1。补充说明的是,在不同的数值范围,a对应的数值是不同的。
在一般情况下,可以对0到1之间的数值根据需要划分为多个数值范围,例如,将数值划分为γ<0.5、0.5<=γ<0.6、0.6<=γ<0.7、0.7<=γ<0.8、0.8<=γ<0.9、0.9<=γ。在划分数值范围的同时,设置每个数值范围对应的目标码率计算公式,设置公式如下:
为γ<0.5区间设置的公式为:目标码率等于0.5乘以所述当前预估带宽所得的值;
为0.5<=γ<0.6区间设置的公式为:目标码率等于0.55乘以所述当前预估带宽所得的值;
为0.6<=γ<0.7区间设置的公式为:目标码率等于0.65乘以所述当前预估带宽所得的值;
为0.7<=γ<0.8区间设置的公式为:目标码率等于0.75乘以当前预估带宽所得的值;
为0.8<=γ<0.9区间设置的公式为:前目标码率调整为0.85乘以当前时刻的预估带宽所得的值;
为0.9<=γ<1区间设置的公式为:目标码率调整为0.9乘以当前时刻的预估带宽所得的值。
当γ<0.5时,控制模块2将所述当前目标码率调整为0.5乘以所述当前预估带宽所得的值;
当0.5<=γ<0.6时,控制模块2将所述当前目标码率调整为0.55乘以所述当前预估带宽所得的值;
当0.6<=γ<0.7时,控制模块2将所述当前目标码率调整为0.65乘以所述当前预估带宽所得的值;
当0.7<=γ<0.8时,控制模块2将所述当前目标码率调整为0.75乘以当前预估带宽所得的值;
当0.8<=γ<0.9时,控制模块2将所述当前目标码率调整为0.85乘以 当前时刻的预估带宽所得的值;
当0.9<=γ时,控制模块2将所述当前目标码率调整为0.9乘以当前时刻的预估带宽所得的值。
参阅图2,图2是本发明实施例二编码器的功能模块图。图2所示的编码器1中包括控制模块2、参数调节模块3。图2所示的编码器1的控制模块2的功能与图1所示的编码器1的控制模块2的功能相同,在此不做赘述。参数调节模块3判断所述调节后的目标码率所处的目标码率范围,根据所述调整后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
为了防止太过频繁地调整分辨率和帧率等编码参数,所述参数调节模块3判断所述当前目标码率是否在预设时间段内或者是否连续预设次数维持在同一目标码率范围内,当所述目标码率在预设时间段内或者连续预设次数维持在同一目标码率范围内、且所述调节后的目标码率与当前的目标码率所处的目标码率范围不同时,根据所述调节后的目标码率所处的目标码率范围调整分辨率参数、帧率参数,例如,所述参数调节模块3判断目标码率在一个目标码率范围内维持至少2分钟或者连续20次以上,当目标码率在一个目标码率范围内维持至少2分钟或者连续20次以上,且调节后的目标码率与调节前的目标码率不在同一目标码率范围内时,根据调节后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
具体而言,将目标码率范围及每个目标码率范围对应的分辨率参数、帧率参数按照以下原则制定:
目标码率>2048kbps时,设置分辨率为1080P、帧率为25或者30帧/秒;
1024kbps<目标码率<=2048kbps时,设置分辨率为720P、将帧率为25或者30帧/秒;
512kbps<目标码率<=1024kbps时,设置分辨率为4CIF/D1/VGA、将帧率为25或者30帧/秒;
128kbps<目标码率<=512kbps时,设置分辨率为CIF、帧率为25或者30帧/秒;
目标码率<=128kbps时,设置分辨率为QCIF、帧率为15或者20帧/秒。
当所述目标码率大于2048kbps时,所述参数调节模块3将分辨率调整为1080P、将帧率调整为25或者30帧/秒,当所述目标码率小于等于2048kbps且所述目标码率大于1024kbps时,参数调节模块3将分辨率调整为720P、将帧率调整为25或者30帧/秒,当所述目标码率小于等于1024kbps且所述目标码率大于512kbps时,参数调节模块3将分辨率调整为4CIF/D1/VGA、将帧率调整为25或者30帧/秒,当所述目标码率小于等于512kbps且所述目标码率大于128kbps时,参数调节模块3将分辨率调整为CIF、将帧率调整为25或者30帧/秒,当所述目标码率小于等于128kbps时,参数调节模块3将分辨率调整为QCIF、将帧率调整为15或者20帧/秒。
本发明还提供一种控制方法,该方法应用于图1、2所示的编码器1,下面对本实施例的控制方法进行详细介绍。
参阅图3,图3是本发明实施例三控制方法的流程图。
控制模块2计算当前目标码率与当前预估带宽的比值γ,判断所述比值γ所处数值范围,查询所述比值γ所处数值范围对应的目标码率调节公式,根据所述目标码率调节公式计算目标码率,根据所述计算出的目标码率对当前目标码率进行调节,其中,所述目标码率调节公式为:目标码率=a*当前预估带宽,0<a<1。补充说明的是,在不同的数值范围,a对应的数值是不同的。本实施例中的具体流程如下:
在步骤S11中,调整编码器,更新目标码率。
在步骤S12中,编码器1的控制模块2获取目标码率D、预测带宽p,控制模块2计算当前目标码率D与当前预估带宽p的比值γ,判断所述比值γ所处数值范围。
在步骤S13中,控制模块2判断出述比值γ<0.5,进入步骤S19。
在步骤S19中,控制模块2根据所述目标码率调节公式计算目标码率,其中目标码率调节公式为:目标码率D=0.5*预测带宽p。
在步骤S14中,控制模块2判断出述比值0.5<=γ<0.6,进入步骤S20。
在步骤S20中,控制模块2根据所述目标码率调节公式计算目标码率,其中目标码率调节公式为:目标码率D=0.55*预测带宽p。
在步骤S15中,控制模块2判断出述比值0.6<=γ<0.7,进入步骤S21。
在步骤S21中,控制模块2根据所述目标码率调节公式计算目标码率,其中目标码率调节公式为:目标码率D=0.65*预测带宽p。
在步骤S16中,控制模块2判断出述比值0.7<=γ<0.8,进入步骤S22。
在步骤S22中,控制模块2根据所述目标码率调节公式计算目标码率,其中目标码率调节公式为:目标码率D=0.75*预测带宽p。
在步骤S17中,控制模块2判断出述比值0.8<=γ<0.9,进入步骤S23。
在步骤S23中,控制模块2根据所述目标码率调节公式计算目标码率,其中目标码率调节公式为:目标码率D=0.85*预测带宽p。
在步骤S18中,控制模块2判断出述比值0.9=<γ,进入步骤S24。
在步骤S24中,控制模块2根据所述目标码率调节公式计算目标码率,其中目标码率调节公式为:目标码率D=0.9*预测带宽p。
为了防止太过频繁地调整分辨率和帧率等编码参数,所述参数调节模块3判断所述当前目标码率是否在预设时间段内或者是否连续预设次数维持在同一目标码率范围内,当所述目标码率在预设时间段内或者连续预设次数维持在同一目标码率范围内、且所述调节后的目标码率与当前的目标码率所处的目标码率范围不同时,根据所述调节后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。具体步骤如下:
在步骤S25中,所述参数调节模块3判断目标码率是否在一个目标码率范围内维持至少2分钟或者连续20次以上,并且判断调节后的目标码率与调节前的目标码率是否不在同一目标码率范围内。
当目标码率在一个目标码率范围内维持至少2分钟或者连续20次以上,并且调节后的目标码率与调节前的目标码率不在同一目标码率范围内时,在步骤S26中,参数调节模块3根据调节后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。具体调整步骤如下:
在步骤S27中,当参数调节模块3判断出所述目标码率大于2048kbps时,即BW>2M,所述参数调节模块3将分辨率调整为1080P、将帧率调整为25或者30帧/秒。
在步骤S28中,当参数调节模块3判断出所述目标码率小于等于2048kbps且所述目标码率大于1024kbps时,即1M<BW<=2M时,参数调节模块3将分辨率调整为720P、将帧率调整为25或者30帧/秒。
在步骤S29中,当参数调节模块3判断出所述目标码率小于等于1024kbps且所述目标码率大于512kbps时,即512K<BW<=1M时,参数调节模块3将分辨率调整为4CIF/D1/VGA、将帧率调整为25或者30帧/秒。
在步骤S30中,当所述目标码率小于等于512kbps且所述目标码率大于128kbps时,即1M<BW<=2M时,参数调节模块3将分辨率调整为CIF、将帧率调整为25或者30帧/秒。
在步骤S31中,当所述目标码率小于等于128kbps时,即BW<=128K时,参数调节模块3将分辨率调整为QCIF、将帧率调整为15或者20帧/秒。
本发明提供的编码器及控制方法能计算当前目标码率与当前预估带宽的比值,并根据比值所在的数值范围对目标码率进行调节,根据调节后的目标码率对分辨率参数、帧率参数进行调节,确保在一定带宽下,能够传输音视频的编码数据,提高编码数据传输的可靠性。
以上仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (10)

  1. 一种编码器,其特征在于,包括:
    控制模块,用于计算当前目标码率与当前预估带宽的比值γ,判断所述比值γ所处数值范围,查询所述比值γ所处数值范围对应的目标码率调节公式,根据所述目标码率调节公式计算目标码率,根据所述计算出的目标码率对当前目标码率进行调节,其中,所述目标码率调节公式为:目标码率=a*当前预估带宽,0<a<1。
  2. 如权利要求1所述的编码器,其特征在于,所述控制模块,还用于当γ<0.5时,将所述当前目标码率调整为0.5乘以所述当前预估带宽所得的值;
    当0.5<=γ<0.6时,将所述当前目标码率调整为0.55乘以所述当前预估带宽所得的值;
    当0.6<=γ<0.7时,将所述当前目标码率调整为0.65乘以所述当前预估带宽所得的值;
    当0.7<=γ<0.8时,将所述当前目标码率调整为0.75乘以当前预估带宽所得的值;
    当0.8<=γ<0.9时,将所述当前目标码率调整为0.85乘以当前时刻的预估带宽所得的值;
    当0.9<=γ时,将所述当前目标码率调整为0.9乘以当前时刻的预估带宽所得的值。
  3. 如权利要求1-2任一一项所述的编码器,其特征在于,还包括:
    参数调节模块,用于判断所述调节后的目标码率所处的目标码率范围,根据所述调整后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
  4. 如权利要求3所述的编码器,其特征在于,所述参数调节模块,还用于判断所述当前目标码率是否在预设时间段内或者是否连续预设次数维持在同一目标码率范围内,当所述目标码率在预设时间段内或者连续预设次数维持在同一目标码率范围内、且所述调节后的目标码率与当前的目标码率所处的目标码率范围不同时,根据所述调节后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
  5. 如权利要求3所述的编码器,其特征在于,所述参数调节模块,还用于当所述目标码率大于2048kbps时,将分辨率调整为1080P、将帧率调整为25或者30帧/秒,当所述目标码率小于等于2048kbps且所述目标码率大于1024kbps时,将分辨率调整为720P、将帧率调整为25或者30帧/秒,当所述目标码率小于等于1024kbps且所述目标码率大于512kbps时,将分辨率调整为4CIF/D1/VGA、将帧率调整为25或者30帧/秒,当所述目标码率小于等于512kbps且所述目标码率大于128kbps时,将分辨率调整为CIF、将帧率调整为25或者30帧/秒,当所述目标码率小于等于128kbps时,将分辨率调整为QCIF、将帧率调整为15或者20帧/秒。
  6. 一种控制方法,其特征在于,包括:
    计算当前目标码率与当前预估带宽的比值γ,判断所述比值γ所处数值范围;
    查询所述比值γ所处数值范围对应的目标码率调节公式,根据所述目标码率调节公式计算目标码率;
    根据所述计算出的目标码率对当前目标码率进行调节,其中,所述目标码率调节公式为:目标码率=a*当前预估带宽,0<a<1。
  7. 如权利要求6所述的控制方法,其特征在于,还包括:
    当γ<0.5时,将所述当前目标码率调整为0.5乘以所述当前预估带宽所得的值;
    当0.5<=γ<0.6时,将所述当前目标码率调整为0.55乘以所述当前预估带宽所得的值;
    当0.6<=γ<0.7时,将所述当前目标码率调整为0.65乘以所述当前预估带宽所得的值;
    当0.7<=γ<0.8时,将所述当前目标码率调整为0.75乘以当前预估带宽所得的值;
    当0.8<=γ<0.9时,将所述当前目标码率调整为0.85乘以当前时刻的预估带宽所得的值;
    当0.9<=γ时,将所述当前目标码率调整为0.9乘以当前时刻的预估带宽所得的值。
  8. 如权利要求6-7任一一项所述的控制方法,其特征在于,还包括:
    判断所述调节后的目标码率所处的目标码率范围,根据所述调整后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
  9. 如权利要求8所述的控制方法,其特征在于,还包括:
    判断所述当前目标码率是否在预设时间段内或者是否连续预设次数维持在同一目标码率范围内,当所述目标码率在预设时间段内或者连续预设次数维持在同一目标码率范围内、且所述调节后的目标码率与当前的目标码率所处的目标码率范围不同时,根据所述调节后的目标码率所处的目标码率范围调整分辨率参数、帧率参数。
  10. 如权利要求8所述的控制方法,其特征在于,还包括:
    当所述目标码率大于2048kbps时,将分辨率调整为1080P、将帧率调整为25或者30帧/秒;
    当所述目标码率小于等于2048kbps且所述目标码率大于1024kbps时,将分辨率调整为720P、将帧率调整为25或者30帧/秒;
    当所述目标码率小于等于1024kbps且所述目标码率大于512kbps时,将分辨率调整为4CIF/D1/VGA、将帧率调整为25或者30帧/秒;
    当所述目标码率小于等于512kbps且所述目标码率大于128kbps时,将分辨率调整为CIF、将帧率调整为25或者30帧/秒;
    当所述目标码率小于等于128kbps时,将分辨率调整为QCIF、将帧率调整为15或者20帧/秒。
PCT/CN2016/101853 2016-09-30 2016-10-12 一种编码器及控制方法 WO2018058700A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610870815.4A CN106254875A (zh) 2016-09-30 2016-09-30 一种编码器及控制方法
CN201610870815.4 2016-09-30

Publications (1)

Publication Number Publication Date
WO2018058700A1 true WO2018058700A1 (zh) 2018-04-05

Family

ID=57612126

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101853 WO2018058700A1 (zh) 2016-09-30 2016-10-12 一种编码器及控制方法

Country Status (2)

Country Link
CN (1) CN106254875A (zh)
WO (1) WO2018058700A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660491A (zh) * 2021-08-10 2021-11-16 杭州网易智企科技有限公司 编码方法、编码装置、存储介质及电子设备
CN114390320A (zh) * 2022-02-18 2022-04-22 百果园技术(新加坡)有限公司 数据编码码率自适应调节方法、装置、设备和存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371028B (zh) * 2017-08-22 2018-10-19 南京惟初信息科技有限公司 一种适应带宽的高质量视频编码方法
CN110381316B (zh) * 2019-07-17 2023-09-19 腾讯科技(深圳)有限公司 一种视频传输控制方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005050989A1 (en) * 2003-11-12 2005-06-02 Sony Electronics Inc. Apparatus and method for use in providing dynamic bit rate encording
CN103248877A (zh) * 2013-05-14 2013-08-14 重庆讯美电子有限公司 一种动态调整码率的解码方法及系统
CN103269458A (zh) * 2013-05-16 2013-08-28 杭州巨峰科技有限公司 一种针对窄带网络情况下视频传输的调节控制方法
CN103501429A (zh) * 2013-10-22 2014-01-08 中国农业银行股份有限公司 一种基于动态码率的数据编码方法和装置
CN103686221A (zh) * 2013-12-31 2014-03-26 北京大洋润博科技有限公司 一种适应公用无线网络实现音视频流畅播出的方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130125168A (ko) * 2012-05-08 2013-11-18 삼성전자주식회사 비디오 인코딩 장치 및 그것의 인코딩 방법
CN105516721A (zh) * 2014-10-20 2016-04-20 广东中星电子有限公司 一种视频编码器及其码率控制方法
CN105100800B (zh) * 2015-09-11 2019-05-24 Tcl集团股份有限公司 视频编码器编码码率调节方法及装置
CN105872594A (zh) * 2016-03-30 2016-08-17 乐视控股(北京)有限公司 实时码率调节方法、装置及服务端设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005050989A1 (en) * 2003-11-12 2005-06-02 Sony Electronics Inc. Apparatus and method for use in providing dynamic bit rate encording
CN103248877A (zh) * 2013-05-14 2013-08-14 重庆讯美电子有限公司 一种动态调整码率的解码方法及系统
CN103269458A (zh) * 2013-05-16 2013-08-28 杭州巨峰科技有限公司 一种针对窄带网络情况下视频传输的调节控制方法
CN103501429A (zh) * 2013-10-22 2014-01-08 中国农业银行股份有限公司 一种基于动态码率的数据编码方法和装置
CN103686221A (zh) * 2013-12-31 2014-03-26 北京大洋润博科技有限公司 一种适应公用无线网络实现音视频流畅播出的方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660491A (zh) * 2021-08-10 2021-11-16 杭州网易智企科技有限公司 编码方法、编码装置、存储介质及电子设备
CN113660491B (zh) * 2021-08-10 2024-05-07 杭州网易智企科技有限公司 编码方法、编码装置、存储介质及电子设备
CN114390320A (zh) * 2022-02-18 2022-04-22 百果园技术(新加坡)有限公司 数据编码码率自适应调节方法、装置、设备和存储介质
CN114390320B (zh) * 2022-02-18 2024-02-13 百果园技术(新加坡)有限公司 数据编码码率自适应调节方法、装置、设备和存储介质

Also Published As

Publication number Publication date
CN106254875A (zh) 2016-12-21

Similar Documents

Publication Publication Date Title
WO2018058711A1 (zh) 一种带宽自适应控制系统及方法
WO2018058700A1 (zh) 一种编码器及控制方法
US20100124275A1 (en) System and method for dynamically encoding multimedia streams
US9826260B2 (en) Video encoding device and video encoding method
US9049340B2 (en) Method and apparatus for adjusting site bandwidth, conferencing terminal, and media control server
JP4265609B2 (ja) ビデオ会議装置、装置、ビデオ会議システム、方法およびこの方法を実行するように適合された命令プログラムを含んだデバイス可読媒体または波形
US8446452B2 (en) Video rate adaptation for congestion control
US11470372B2 (en) Adaptive bitrate adjustment method for multi-user interactive live broadcast
EP1777969A1 (en) Adaptive video transmission with variable frame rate
CN101919212A (zh) 用于通过分组网络流传送媒体的自适应比特率管理
US9071727B2 (en) Video bandwidth optimization
KR20120052336A (ko) 미디어 스트림 내의 디지털 오디오 샘플들에 대한 적응 이득 제어
JP3730974B2 (ja) メディア伝送方法及びその送信装置
CN101971629A (zh) 用于适配视频信号的目标速率的设备和方法
CN111741248B (zh) 一种数据传输方法、装置、终端设备和存储介质
CN104394484A (zh) 一种无线实时流媒体传输方法
WO2010045826A1 (zh) 流媒体业务中获取关键帧的方法、系统及用户设备
WO2018058701A1 (zh) 一种基于丢包率的控制设备及方法
US20160277468A1 (en) Adapting Encoded Bandwidth
JP4768250B2 (ja) 送信装置、受信装置、送受信装置、送信方法及び伝送システム
CN114339445A (zh) 实时视频流自适应协调系统及方法
US20160277467A1 (en) Adapting Encoded Bandwidth
Lottermann et al. Bit rate estimation for H. 264/AVC video encoding based on temporal and spatial activities
US8514329B2 (en) Jitter estimation for MPEG receivers
US10097609B1 (en) Method and system for dynamically adjusting a data rate of a video stream

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: 16917448

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: 16917448

Country of ref document: EP

Kind code of ref document: A1