[go: up one dir, main page]

CN112087635B - Image coding control method, device, equipment and computer readable storage medium - Google Patents

Image coding control method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112087635B
CN112087635B CN202010771938.9A CN202010771938A CN112087635B CN 112087635 B CN112087635 B CN 112087635B CN 202010771938 A CN202010771938 A CN 202010771938A CN 112087635 B CN112087635 B CN 112087635B
Authority
CN
China
Prior art keywords
frame
image
network delay
average value
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010771938.9A
Other languages
Chinese (zh)
Other versions
CN112087635A (en
Inventor
许龙龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
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 Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202010771938.9A priority Critical patent/CN112087635B/en
Publication of CN112087635A publication Critical patent/CN112087635A/en
Application granted granted Critical
Publication of CN112087635B publication Critical patent/CN112087635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • 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/28Flow control; Congestion control in relation to timing considerations
    • H04L47/283Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]
    • 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/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本申请提供一种图像编码控制方法、装置、设备及计算机可读存储介质,涉及图像处理技术领域,能够解决图像编码时延较长的问题。具体技术方案为:统计预设数量帧图像中每一帧图像的网络时延;根据每一帧图像的网络时延计算预设数量帧图像的网络时延的平均值;判断网络时延的平均值是否大于预设阈值;当网络时延的平均值大于预设阈值时,根据预设规则确定丢帧数M;将当前未开始编码的连续M帧图像丢弃。能够在编码前确定出丢帧数量并在编码前丢弃相应数量的图像,从而可以缓解网络压力,缩短图像编码时延,也降低了CPU的编码负荷。

The present application provides an image coding control method, device, equipment and computer-readable storage medium, which relates to the field of image processing technology and can solve the problem of long image coding delay. The specific technical solution is: counting the network delay of each frame of a preset number of frames; calculating the average network delay of a preset number of frames according to the network delay of each frame; judging whether the average network delay is greater than a preset threshold; when the average network delay is greater than the preset threshold, determining the number of lost frames M according to preset rules; discarding the continuous M frames of images that are not currently encoded. The ability to determine the number of lost frames before encoding and discard a corresponding number of images before encoding can relieve network pressure, shorten image encoding delay, and reduce the encoding load of the CPU.

Description

Image coding control method, device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of image processing, and in particular, to an image encoding control method, apparatus, device, and computer readable storage medium.
Background
At present, in the process of encoding and decoding graphic images, image acquisition is usually performed at a fixed frame rate, and after the acquired images are encoded, the images are waiting for transmission in a buffer. In the transmission process, whether the coded image in the buffer memory needs to be discarded or not is judged according to the network time delay.
For all images, since whether discarding is needed is judged after encoding is completed, image encoding delay is increased, and encoding resources of a CPU (Central Processing Unit ) are wasted.
Disclosure of Invention
The embodiment of the application provides an image coding control method, an image coding control device, image coding control equipment and a computer readable storage medium, which can solve the problem of long image coding time delay. The technical scheme is as follows:
According to a first aspect of an embodiment of the present application, there is provided an image encoding control method, including:
counting the network time delay of each frame of image in the preset number of frame of images;
Calculating the average value of the network delays of the preset number of frame images according to the network delay of each frame image;
judging whether the average value of the network time delay is larger than a preset threshold value or not;
When the average value of the network time delay is larger than the preset threshold value, determining a frame loss number M according to a preset rule, wherein M is an integer;
consecutive M-frame images that are not currently beginning to be encoded are discarded.
In one embodiment, the determining the frame loss number M according to the preset rule includes:
and determining the frame loss number M according to the difference value between the average value of the network time delay and the preset threshold value.
In one embodiment, the determining the frame loss number M according to the difference between the average value of the network delay and the preset threshold value includes:
determining a frame loss number M according to a first formula, wherein the first formula is as follows: m= [ (T Average of -A)/(t Acquisition of +t Encoding ) ];
wherein T Average of is an average value of network delay, a is a preset threshold, T Acquisition of is an average time length required for acquiring one frame of image, and T Encoding is an average time length required for encoding one frame of image.
In one embodiment, the determining the frame loss number M according to the difference between the average value of the network delay and the preset threshold value includes:
determining the frame loss number M according to a second formula, wherein the second formula is as follows:
M=[(T Average of -A)/(t Acquisition of +t Encoding )]+1;
wherein T Average of is an average value of network delay, a is a preset threshold, T Acquisition of is an average time length required for acquiring one frame of image, and T Encoding is an average time length required for encoding one frame of image.
In one embodiment, the method further comprises:
Detecting a setting operation for setting a preset number;
And determining the preset quantity according to the setting operation.
According to the image coding control method provided by the embodiment of the application, the network time delay of each frame of images in the preset number of frame images is counted in real time in the image transmission process, the average value of the network time delays of the preset number of frame images is calculated, when the average value is larger than a preset threshold value, the frame loss number M is determined according to a preset rule, and the continuous M frame images which are not coded at present are discarded. The method can determine the frame loss number before encoding and discard the corresponding number of images before encoding, thereby relieving the network pressure, shortening the image encoding time delay and reducing the encoding load of the CPU.
According to a second aspect of an embodiment of the present application, there is provided an image encoding control apparatus including:
The statistics module is used for counting the network time delay of each frame of images in the preset number of frames of images;
The calculation module is used for calculating the average value of the network time delays of the preset number of frame images according to the network time delay of each frame image;
the first determining module is used for judging whether the average value of the network time delay is larger than a preset threshold value, and determining the number of lost frames M according to a preset rule when the average value of the network time delay is larger than the preset threshold value, wherein M is an integer;
And the frame discarding module is used for discarding continuous M frame images which are not started to be encoded currently.
In one embodiment, the first determining module is specifically configured to determine the frame loss number M according to a difference between the average value of the network delay and the preset threshold.
In one embodiment, the first determining module is specifically configured to determine the frame loss number M according to a first formula, where the first formula is: m= [ (T Average of -A)/(t Acquisition of +t Encoding ) ];
wherein T Average of is an average value of network delay, a is a preset threshold, T Acquisition of is an average time length required for acquiring one frame of image, and T Encoding is an average time length required for encoding one frame of image.
In one embodiment, the first determining module is specifically configured to determine the frame loss number M according to a second formula, where the second formula is:
M=[(T Average of -A)/(t Acquisition of +t Encoding )]+1;
wherein T Average of is an average value of network delay, a is a preset threshold, T Acquisition of is an average time length required for acquiring one frame of image, and T Encoding is an average time length required for encoding one frame of image.
In one embodiment, the apparatus further comprises:
the detection module is used for detecting setting operation for setting the preset quantity;
and the second determining module is used for determining the preset quantity according to the setting operation.
According to the image coding control device provided by the embodiment of the application, the network time delay of each frame image in the preset number of frame images is counted by the counting module, the calculating module calculates the average value of the network time delays of the preset number of frame images, and when the average value is judged to be larger than the preset threshold value, the first determining module determines the frame loss number M according to the preset rule, and the frame loss module discards the continuous M frame images which are not coded currently. The method can determine the frame loss number before encoding and discard the corresponding number of images before encoding, thereby relieving the network pressure, shortening the image encoding time delay and reducing the encoding load of the CPU.
According to a third aspect of embodiments of the present application, there is provided an image encoding control apparatus including a processor and a memory having stored therein at least one computer instruction loaded and executed by the processor to implement the steps performed in the image encoding control method as described above.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored therein at least one computer instruction loaded and executed by a processor to implement the steps performed in the image encoding control method as described above.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart of an image coding control method according to an embodiment of the present application;
FIG. 2 is a flowchart of a specific image coding control method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an image encoding control device according to an embodiment of the present application;
Fig. 4 is a schematic structural diagram of another image encoding control device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an image encoding control apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
An embodiment of the present application provides an image encoding control method, as shown in fig. 1, which may include the following steps:
step 101: and counting the network time delay of the preset number of frame images.
In the image transmission process, the network time delay of each frame image in the preset number of frame images which are transmitted recently is counted in real time. Specifically, the network delay of a frame of image is equal to the difference between the time stamp of the image received by the receiving end and the time stamp of the image when the image is sent by the sending end.
Step 102: and calculating the average value of the network time delays of the preset number of frame images.
And counting to obtain the network delay of each frame of image in the preset number of frame images which are transmitted recently, and calculating the average value of the network delay of the preset number of frame images according to the counted network delay of each frame of image. If the preset number is N, continuously counting the network delay of each of the N frames of images, and then calculating the average value of the network delays of the N frames of images.
Step 103: and judging whether the average value is larger than a preset threshold value.
After calculating the average value of the network time delays of the preset number of frame images, judging whether the average value of the network time delays is larger than a preset threshold value, if so, executing step 104, otherwise, turning to step 101 to continue counting.
Step 104: and determining the frame loss number M according to a preset rule.
When the average value of network time delays of the preset number of frame images is larger than a preset threshold value, determining the number of lost frames M according to a preset rule, wherein M is an integer. For example, the frame loss number M may be determined according to a difference between an average value of network delays and a preset threshold. In one embodiment, the difference and the ratio of the average time required to capture a frame of image to the sum of the average time required to encode a frame of image may be used to obtain the frame loss number M.
Step 105: consecutive M-frame images that are not currently beginning to be encoded are discarded.
After determining the frame loss number M, the continuous M frame images which are not currently coded are directly discarded, and then the step 101 is transferred to continue the statistics of network delay. In this step, no discarding is performed for the image that has started transmission or encoding, and the subsequent processing is still normally performed, and only the consecutive M-frame images that have not started encoding are discarded.
According to the image coding control method provided by the embodiment of the application, the network time delay of each frame of images in the preset number of frame images is counted in real time in the image transmission process, the average value of the network time delays of the preset number of frame images is calculated, when the average value is larger than a preset threshold value, the frame loss number M is determined according to a preset rule, and the continuous M frame images which are not coded at present are discarded. The method can determine the frame loss number before encoding and discard the corresponding number of images before encoding, thereby relieving the network pressure, shortening the image encoding time delay and reducing the encoding load of the CPU.
Based on the image coding control method provided in the embodiment corresponding to fig. 1, another embodiment of the present application provides a specific image coding control method, where the method may be applied to a video image coding end device, for example, the video image coding end device may be a terminal device or a network server. Referring to fig. 2, the image encoding control method provided in this embodiment may include the following steps:
step 201: and counting the network time delay of the preset number of frame images.
In the image transmission process, the network delay average value of each frame image in the preset number of frame images which are transmitted recently is counted in real time. The preset number can be set according to actual needs, for example, 10 frames, 20 frames, 30 frames, and the like. The network delay of a frame of image refers to the difference between the time stamp of the image received by the receiving end and the time stamp of the image when the image is sent by the sending end.
In one embodiment, a preset number of setting functions may be provided, specifically, the method may be implemented as follows: detecting a setting operation for setting a preset number; a preset number is determined according to the setting operation. For example, a user may be provided with a setting interface for setting a preset number, and the user may input the preset number, such as 10 frames, 20 frames, 30 frames, etc., according to the interface prompt; or the preset number of the shortcut keys can be set.
Step 202: and calculating the average value of the network time delays of the preset number of frame images.
And counting to obtain the network delay of each frame of images in the preset number of frames of images which are transmitted recently, and calculating the average value of the network delay of the preset number of frames of images according to the network delay of each frame of images. If the preset number is N, continuously counting the network delay of each of the N frames of images, and then calculating the average value of the network delays of the N frames of images.
Specifically, the network delay average value T Average of of the continuous N-frame image can be obtained by calculation according to the following calculation formula:
Wherein t x is the network delay of the x-th frame image, x is an integer greater than 0 and less than or equal to N, Wherein Rt x represents a time stamp of transmission of the x-th frame image to the receiving end, and St x represents a time stamp of transmission of the x-th frame image at the transmitting end.
Step 203: and judging whether the average value is larger than a preset threshold value.
Judging whether the average value of the network time delays of the counted preset number of frame images is larger than a preset threshold value, if so, executing step 204, otherwise, turning to step 201 to continue counting.
In the step, comparing the calculated average value of the network time delays of the preset number of frame images with a preset threshold value, and judging whether the average value is larger than the preset threshold value. The preset threshold is a preset value, which can be set empirically, for example, can be set to 100ms, 90ms, 80ms, etc., or can be set to other values. The higher the preset threshold value is set, the higher the tolerance to the delay is indicated, and thus, the setting of the preset threshold value can be dependent on the use scenario.
In one embodiment, a preset threshold setting function may be provided, specifically, the method may be implemented as follows: detecting a setting operation for setting a preset threshold; a preset threshold is determined according to the setting operation. For example, a user may be provided with a setting interface for setting a preset threshold, and the user may input the preset threshold according to the interface prompt, such as setting to 100ms, 90ms, 80ms, etc.; or the preset threshold value can be set by a shortcut key of the preset threshold value.
Step 204: and determining the frame loss number M according to the difference value between the average value of the network time delay and the preset threshold value.
Assuming that the average value of the network delay obtained by statistics is T Average of , the number of frames lost M may be calculated by the following first formula or by the following second formula.
Wherein, the first formula is: m= [ (T Average of -A)/(t Acquisition of +t Encoding ) ];
The second formula is: m= [ (T Average of -A)/(t Acquisition of +t Encoding ) ]+1;
in the above formula, T Average of represents an average value of network delay, a represents a preset threshold, T Acquisition of is an average time length required for capturing one frame of image, T Encoding is an average time length required for encoding one frame of image, and both T Acquisition of and T Encoding can be set according to empirical values. Wherein the symbol [ ] represents a rounded symbol, i.e., [ (T Average of -A)/(t Acquisition of +t Encoding ) ] is equal to (T Average of -A)/(t Acquisition of +t Encoding ) the integer portion of the result.
Step 205: consecutive M-frame images that are not currently beginning to be encoded are discarded.
After determining the number M of lost frames, the continuous M frame images which are not started to be encoded at present are directly discarded, and then the step 101 is transferred to continue the statistics of network delay.
In this step, consecutive M-frame images that have not been started to be encoded at present are directly discarded, and at the same time, no discarding is performed for images that have been started to be transmitted or encoded, and the subsequent processing is normally performed, and what is discarded is consecutive M-frame images that have not been started to be encoded.
According to the image coding control method provided by the embodiment of the application, the network time delay of each frame of images in the preset number of frame images is counted in real time in the image transmission process, the average value of the network time delays of the preset number of frame images is calculated, when the average value is larger than a preset threshold value, the frame loss number M is determined according to the difference value between the average value of the network time delays and the preset threshold value, and then the continuous M frame images which are not coded at present are discarded. The method can determine the frame loss number before encoding and discard the corresponding number of images before encoding, thereby relieving the network pressure, shortening the image encoding time delay and reducing the encoding load of the CPU.
Based on the image coding control method described in the above-described embodiments corresponding to fig. 1 and fig. 2, the following is an embodiment of the apparatus of the present application, which may be used to execute the method embodiment of the present application.
An embodiment of the present application provides an image encoding control device, as shown in fig. 3, the image encoding control device 30 includes: a statistics module 301, a computation module 302, a first determination module 303, and a frame dropping module 304. Wherein,
The statistics module 301 is configured to count a network delay of each frame image in a preset number of frame images;
the calculating module 302 is configured to calculate an average value of network delays of a preset number of frame images according to the network delay of each frame image obtained by the statistics module 301;
The first determining module 303 is configured to determine whether the average value of the network delay calculated by the calculating module 302 is greater than a preset threshold, and determine a frame loss number M according to a preset rule when the average value of the network delay is greater than the preset threshold, where M is an integer;
the frame discarding module 304 is configured to discard consecutive M-frame images that are not currently started to be encoded.
In one embodiment, the first determining module 303 is specifically configured to determine the frame loss number M according to a difference between an average value of the network delay and the preset threshold.
In one embodiment, the first determining module 303 is specifically configured to determine the frame loss number M according to a first formula: m= [ (T Average of -A)/(t Acquisition of +t Encoding ) ];
wherein T Average of is an average value of network time delay, a is a preset threshold, T Acquisition of is an average time length required for acquiring one frame of image, and T Encoding is an average time length required for encoding one frame of image.
In one embodiment, the first determining module 303 is specifically configured to determine the frame loss number M according to a second formula, where the second formula is:
M=[(T Average of -A)/(t Acquisition of +t Encoding )]+1;
wherein T Average of is an average value of network time delay, a is a preset threshold, T Acquisition of is an average time length required for acquiring one frame of image, and T Encoding is an average time length required for encoding one frame of image.
In one embodiment, as shown in fig. 4, the image encoding control apparatus further includes a detection module 305 and a second determination module 306. Wherein,
The detection module 305 is configured to detect a setting operation for setting a preset number;
the second determining module 306 is configured to determine the preset number according to the setting operation detected by the detecting module 305.
According to the image coding control device provided by the embodiment of the application, the network time delay of each frame of images in the preset number of frame images is counted in real time in the image transmission process through the counting module, the calculating module calculates the average value of the network time delays of the preset number of frame images, when the first determining module judges that the average value is larger than the preset threshold value, the frame loss number M is determined according to the preset rule, and the frame loss module discards continuous M frame images which are not coded currently. The method can determine the frame loss number before encoding and discard the corresponding number of images before encoding, thereby relieving the network pressure, shortening the image encoding time delay and reducing the encoding load of the CPU.
Referring to fig. 5, an embodiment of the present application further provides an image encoding control apparatus 50, where the image encoding control apparatus 50 includes a memory 501 and a processor 502, at least one computer instruction is stored in the memory 501, and the processor 502 is configured to load and execute the at least one computer instruction to implement the image encoding control method described in the corresponding embodiment of fig. 1 or fig. 2.
Based on the image encoding control method described in the above-described embodiments corresponding to fig. 1 and 2, the embodiments of the present application also provide a computer readable storage medium, for example, a non-transitory computer readable storage medium may be a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the image coding control method described in the above embodiments corresponding to fig. 1 and fig. 2, which are not described herein.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (6)

1.一种图像编码控制方法,其特征在于,所述方法包括:1. A method for controlling image coding, characterized in that the method comprises: 统计预设数量帧图像中每一帧图像的网络时延;Count the network delay of each frame of a preset number of frames; 根据所述每一帧图像的网络时延计算所述预设数量帧图像的网络时延的平均值;Calculate the average value of the network delay of the preset number of frames of image according to the network delay of each frame of image; 判断所述网络时延的平均值是否大于预设阈值;Determine whether the average value of the network delay is greater than a preset threshold; 当所述网络时延的平均值大于所述预设阈值时,根据所述网络时延的平均值和所述预设阈值之间的差值确定丢帧数M,所述M为整数;When the average value of the network delay is greater than the preset threshold, determining the number of lost frames M according to the difference between the average value of the network delay and the preset threshold, where M is an integer; 将当前未开始编码的连续M帧图像丢弃;Discard the M consecutive frames of images that have not yet started to be encoded; 所述根据所述网络时延的平均值和所述预设阈值之间的差值确定丢帧数M包括:The determining the number of lost frames M according to the difference between the average value of the network delay and the preset threshold value comprises: 根据第一公式确定丢帧数M,所述第一公式为:M=[(T平均-A)/(t采集+t编码)];Determine the number of lost frames M according to a first formula, wherein the first formula is: M=[( Taverage -A)/( tacquisition + tencoding )]; 其中,所述T平均为网络时延的平均值,所述A为预设阈值,所述t采集为采集一帧图像所需要的平均时长,t编码为编码一帧图像所需要的平均时长;Wherein, Taverage is the average value of network delay, A is a preset threshold, tcollect is the average time required to collect one frame of image, and tencode is the average time required to encode one frame of image; 或者,根据第二公式确定丢帧数M,所述第二公式为:Alternatively, the number of lost frames M is determined according to a second formula, where the second formula is: M=[(T平均-A)/(t采集+t编码)]+1;M = [( Taverage -A)/( tacquisition + tencoding )]+1; 其中,所述T平均为网络时延的平均值,所述A为预设阈值,所述t采集为采集一帧图像所需要的平均时长,t编码为编码一帧图像所需要的平均时长。Among them, the T average is the average value of the network delay, A is a preset threshold, t capture is the average time required to capture a frame of image, and t encoding is the average time required to encode a frame of image. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 检测用于对预设数量进行设置的设置操作;detecting a setting operation for setting a preset quantity; 根据所述设置操作确定所述预设数量。The preset number is determined according to the setting operation. 3.一种图像编码控制装置,其特征在于,包括:3. An image coding control device, comprising: 统计模块,用于统计预设数量帧图像中每一帧图像的网络时延;A statistics module, used to count the network delay of each frame of a preset number of frames; 计算模块,用于根据所述每一帧图像的网络时延计算所述预设数量帧图像的网络时延的平均值;A calculation module, used for calculating an average value of the network delay of the preset number of frames of images according to the network delay of each frame of image; 第一确定模块,用于判断所述网络时延的平均值是否大于预设阈值,当所述网络时延的平均值大于所述预设阈值时,根据所述网络时延的平均值和所述预设阈值之间的差值确定丢帧数M,所述M为整数;a first determination module, configured to determine whether the average value of the network delay is greater than a preset threshold value, and when the average value of the network delay is greater than the preset threshold value, determine the number of lost frames M according to the difference between the average value of the network delay and the preset threshold value, where M is an integer; 弃帧模块,用于将当前未开始编码的连续M帧图像丢弃;A frame discarding module is used to discard the M consecutive frames of images that have not yet started to be encoded; 所述第一确定模块,具体用于根据第一公式确定丢帧数M,所述第一公式为:M=[(T平均-A)/(t采集+t编码)];The first determination module is specifically used to determine the number of lost frames M according to a first formula, wherein the first formula is: M=[( Taverage -A)/( tacquisition + tencoding )]; 其中,所述T平均为网络时延的平均值,所述A为预设阈值,所述t采集为采集一帧图像所需要的平均时长,t编码为编码一帧图像所需要的平均时长;Wherein, Taverage is the average value of network delay, A is a preset threshold, tcollect is the average time required to collect one frame of image, and tencode is the average time required to encode one frame of image; 或者,根据第二公式确定丢帧数M,所述第二公式为:Alternatively, the number of lost frames M is determined according to a second formula, where the second formula is: M=[(T平均-A)/(t采集+t编码)]+1;M = [( Taverage -A)/( tacquisition + tencoding )]+1; 其中,所述T平均为网络时延的平均值,所述A为预设阈值,所述t采集为采集一帧图像所需要的平均时长,t编码为编码一帧图像所需要的平均时长。Among them, the T average is the average value of the network delay, A is a preset threshold, t capture is the average time required to capture a frame of image, and t encoding is the average time required to encode a frame of image. 4.根据权利要求3所述的装置,其特征在于,所述装置还包括:4. The device according to claim 3, characterized in that the device further comprises: 检测模块,用于检测用于对预设数量进行设置的设置操作;A detection module, used for detecting a setting operation for setting a preset quantity; 第二确定模块,用于根据所述设置操作确定所述预设数量。The second determining module is used to determine the preset number according to the setting operation. 5.一种图像编码控制设备,其特征在于,所述图像编码控制设备包括处理器和存储器,所述存储器中存储有至少一条计算机指令,所述指令由所述处理器加载并执行以实现权利要求1或2所述的图像编码控制方法中所执行的步骤。5. An image coding control device, characterized in that the image coding control device includes a processor and a memory, the memory stores at least one computer instruction, and the instruction is loaded and executed by the processor to implement the steps performed in the image coding control method described in claim 1 or 2. 6.一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条计算机指令,所述指令由处理器加载并执行以实现权利要求1或2所述的图像编码控制方法中所执行的步骤。6. A computer-readable storage medium, characterized in that at least one computer instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the steps performed in the image encoding control method described in claim 1 or 2.
CN202010771938.9A 2020-08-04 2020-08-04 Image coding control method, device, equipment and computer readable storage medium Active CN112087635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010771938.9A CN112087635B (en) 2020-08-04 2020-08-04 Image coding control method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010771938.9A CN112087635B (en) 2020-08-04 2020-08-04 Image coding control method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112087635A CN112087635A (en) 2020-12-15
CN112087635B true CN112087635B (en) 2024-11-19

Family

ID=73735765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010771938.9A Active CN112087635B (en) 2020-08-04 2020-08-04 Image coding control method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112087635B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302140B (en) * 2021-11-30 2023-11-03 山东云海国创云计算装备产业创新中心有限公司 Pre-frame-loss method, system, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6031584A (en) * 1997-09-26 2000-02-29 Intel Corporation Method for reducing digital video frame frequency while maintaining temporal smoothness
CN101715129A (en) * 2009-12-24 2010-05-26 四川长虹电器股份有限公司 Video decoding method
CN110572695A (en) * 2019-08-07 2019-12-13 苏州科达科技股份有限公司 media data encoding and decoding methods and electronic equipment
CN112087627A (en) * 2020-08-04 2020-12-15 西安万像电子科技有限公司 Image coding control method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7660512B2 (en) * 2003-10-16 2010-02-09 Microsoft Corporation Systems and methods for managing frame rates during multimedia playback
CN102368823A (en) * 2011-06-28 2012-03-07 上海盈方微电子有限公司 Video framedropping strategy based on grading mechanism
CN102724489A (en) * 2012-04-20 2012-10-10 苏州汉辰数字科技有限公司 Method for reducing video coding time delay
CN103475902B (en) * 2013-09-06 2017-04-19 同观科技(深圳)有限公司 Video coding and network transmission method and video forwarding server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6031584A (en) * 1997-09-26 2000-02-29 Intel Corporation Method for reducing digital video frame frequency while maintaining temporal smoothness
CN101715129A (en) * 2009-12-24 2010-05-26 四川长虹电器股份有限公司 Video decoding method
CN110572695A (en) * 2019-08-07 2019-12-13 苏州科达科技股份有限公司 media data encoding and decoding methods and electronic equipment
CN112087627A (en) * 2020-08-04 2020-12-15 西安万像电子科技有限公司 Image coding control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112087635A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN112087627B (en) Image coding control method, device, equipment and storage medium
CN106067847B (en) A kind of voice data transmission method and device
CN107342848B (en) Self-adaptive code stream transmission method, device and equipment
US9030565B2 (en) Method, apparatus, and system for evaluating video quality
WO2014029315A1 (en) Method and device for obtaining video encoding compression quality
CN111741249B (en) Network congestion detection method and device
CN112087635B (en) Image coding control method, device, equipment and computer readable storage medium
CN115378832B (en) Congestion detection method and device, stream media transmission system, electronic equipment and medium
CN113038178A (en) Video frame transmission control method and device
WO2017173817A1 (en) Computing method and apparatus for video display quality
CN117793422A (en) Picture pushing method, device, equipment and storage medium
CN110233856B (en) Message processing method and device and computer readable storage medium
CN113364698B (en) Bandwidth estimation method, system, electronic device and storage medium
CN107566795A (en) A kind of method, apparatus and system for improving real-time pictures fluency
CN112311690B (en) AI-based congestion control method, device, equipment and medium
CN111447253B (en) Buffer management method, system, device and storage medium
CN1947428B (en) Method of and system for video fast update
CN111953612A (en) Data transmission control method and device
CN114302140B (en) Pre-frame-loss method, system, equipment and computer readable storage medium
CN112584141B (en) Image processing method and device
JP4733071B2 (en) Video quality estimation method and apparatus
CN111432441B (en) Audio data transmitting method and device and computer readable storage medium
KR20150100100A (en) DATA processing improvement device and method thereof
CN111541897A (en) Data transmission method and device
CN111682980A (en) A kind of image coding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant