Bit rate adjustment method, device, equipment and storage medium

By obtaining audio and video frame rate information in real time and calculating frame intervals, and determining the code rate adjustment strategy, the problem of unreal-time adjustment of code rate in the existing technology of audio and video transmission is solved, and the stability and user experience of audio and video transmission are improved.

CN119767058APending Publication Date: 2025-04-04SHENZHEN RENDERBUS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411754245.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The prior art cannot adjust the bit rate in real time in audio and video transmission, resulting in a degradation in audio and video quality and poor user experience, especially in the case of network congestion and bandwidth fluctuations.

Method used

By obtaining the frame rate information of the received audio and video, the first frame interval between the current frame and the previous frame is determined and the second frame interval between the next frame and the current frame is predicted. The code rate adjustment strategy is determined based on these intervals, and the transmission code rate of the audio and video is adjusted in real time.

Benefits of technology

It realizes the stability and quality of audio and video transmission, improves the user experience, and adapts to changes in network conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119767058A_ABST
    Figure CN119767058A_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for adjusting bit rate, which belongs to the field of communication transmission, and the method includes: obtaining frame rate information of received audio and video, the frame rate information including the frame rate at each time point; according to the frame rate information, determining the first frame interval between the current frame and the previous frame, and predicting the second frame interval between the next frame and the current frame; according to the first frame interval and the second frame interval, determining the bit rate adjustment strategy, and adjusting the transmission bit rate of the audio and video according to the bit rate adjustment strategy. The present application can accurately determine the first frame interval and the second frame interval according to the frame rate information of the currently received audio and video, and then determine the bit rate adjustment strategy in real time according to the frame interval, and adjust the transmission bit rate of the audio and video according to the bit rate adjustment strategy, so as to ensure the stability and quality of audio and video transmission, thereby greatly improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication transmission technology, and in particular to a method, device, equipment and storage medium for adjusting a bit rate. Background Art

[0002] With the popularization and development of the Internet, audio and video transmission has become an indispensable part of people's daily life. However, the instability of the network has brought a series of challenges to audio and video transmission, such as network congestion and bandwidth fluctuations, which will lead to the degradation of audio and video quality, data loss and freezes.

[0003] In order to solve the above series of problems, the bit rate of video transmission is basically adjusted based on the client type. However, this adjustment method also has large errors and cannot adjust the bit rate in real time, resulting in the audio and video not always being in the best playback state, which greatly affects the user's audio and video viewing experience.

[0004] Therefore, how to automatically adjust the bit rate of audio and video transmission to ensure the stability and quality of transmission and thus improve the user experience is a problem that needs to be solved urgently. Summary of the invention

[0005] The main purpose of this application is to provide a method, device, equipment and storage medium for adjusting bit rate, aiming to ensure the stability and quality of audio and video transmission.

[0006] In a first aspect, the present application provides a method for adjusting a bit rate, the method for adjusting a bit rate comprising the following steps:

[0007] Obtaining frame rate information of the received audio and video, wherein the frame rate information includes the frame rate at each time point;

[0008] Determine, according to the frame rate information, a first frame interval between a current frame and a previous frame, and predict a second frame interval between a next frame and the current frame;

[0009] A bit rate adjustment strategy is determined according to the first frame interval and the second frame interval, and the transmission bit rate of the audio and video is adjusted according to the bit rate adjustment strategy.

[0010] In a second aspect, the present application further provides a bit rate adjustment device, the bit rate adjustment device comprising an acquisition module, a determination module and an adjustment module, wherein:

[0011] The acquisition module is used to acquire frame rate information of the received audio and video, wherein the frame rate information includes the frame rate at each time point;

[0012] The determination module is used to determine a first frame interval between a current frame and a previous frame, and predict a second frame interval between a next frame and the current frame according to the frame rate information;

[0013] The determining module is further configured to determine a bit rate adjustment strategy according to the first frame interval and the second frame interval;

[0014] The adjustment module is used to adjust the transmission bit rate of the audio and video according to the bit rate adjustment strategy.

[0015] In a third aspect, the present application also provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the bit rate adjustment method as described above are implemented.

[0016] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the bit rate adjustment method as described above are implemented.

[0017] The present application provides a method, device, equipment and storage medium for adjusting bit rate. The present application obtains the frame rate information of the received audio and video, and the frame rate information includes the frame rate at each time point; then, according to the frame rate information, determines the first frame interval between the current frame and the previous frame, and predicts the second frame interval between the next frame and the current frame; then, according to the first frame interval and the second frame interval, determines the bit rate adjustment strategy, and adjusts the transmission bit rate of the audio and video according to the bit rate adjustment strategy. The present application can accurately determine the first frame interval and the second frame interval according to the frame rate information of the currently received audio and video, and then determines the bit rate adjustment strategy in real time according to the frame interval, and adjusts the transmission bit rate of the audio and video according to the bit rate adjustment strategy, so as to ensure the stability and quality of the audio and video transmission, thereby greatly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 A schematic diagram of a flow chart of a method for adjusting a bit rate provided in an embodiment of the present application;

[0020] Figure 2 for Figure 1 A schematic flow chart of sub-steps of a method for adjusting the bit rate in FIG.

[0021] Figure 3 A schematic block diagram of a bit rate adjustment device provided in an embodiment of the present application;

[0022] Figure 4 for Figure 3 A schematic block diagram of a submodule of a device for adjusting a bit rate in FIG.

[0023] Figure 5 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application.

[0024] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0027] With the popularization and development of the Internet, audio and video transmission has become an indispensable part of people's daily lives. However, the instability of the network has brought a series of challenges to audio and video transmission, such as network congestion and bandwidth fluctuations, which will lead to the degradation of audio and video quality, data loss and freezes. At present, the bit rate of video transmission is basically adjusted based on the type of client, but this adjustment method also has large errors and cannot adjust the bit rate in real time, resulting in the audio and video not being in the best playback state all the time, which greatly affects the user's experience of watching audio and video.

[0028] To solve the above problems, the embodiments of the present application provide a method, device, equipment and storage medium for adjusting the bit rate. The method for adjusting the bit rate includes obtaining the frame rate information of the received audio and video, wherein the frame rate information includes the frame rate at each time point; determining the first frame interval between the current frame and the previous frame according to the frame rate information, and predicting the second frame interval between the next frame and the current frame; determining the bit rate adjustment strategy according to the first frame interval and the second frame interval, and adjusting the transmission bit rate of the audio and video according to the bit rate adjustment strategy.

[0029] The bit rate adjustment method can be applied to a terminal device, which can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device.

[0030] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0031] Please refer to Figure 1 , Figure 1 A flowchart of a method for adjusting a bit rate provided in an embodiment of the present application is provided.

[0032] like Figure 1 As shown, the bit rate adjustment method includes steps S101 to S103.

[0033] Step S101: Obtain frame rate information of the received audio and video, where the frame rate information includes the frame rate at each time point.

[0034] The frame rate information includes the frame rate at each time point. The audio and video include but are not limited to 720p audio and video, 1080p audio and video, 2k audio and video, and 4k audio and video, etc.

[0035] It should be noted that the transmission end for sending audio and video can be set according to actual conditions, and the embodiment of the present invention does not specifically limit this. For example, the transmission end can be a server, etc.

[0036] In some embodiments, the frame rate of the acquired audio and video at each time point is monitored in real time to obtain the frame rate information of the audio and video.

[0037] Step S102: determining a first frame interval between a current frame and a previous frame according to the frame rate information, and predicting a second frame interval between a next frame and the current frame.

[0038] In some embodiments, the first frame rate of the current frame is obtained, and the unit is divided by the first frame rate to obtain the current frame interval; the second frame rate of the previous frame is obtained, and the unit is divided by the second frame rate to obtain the previous frame interval, and the current frame interval and the previous frame interval are averaged to obtain the first frame interval between the current frame and the previous frame.

[0039] In some embodiments, the frame interval of each frame in a preset time period is obtained, the frame intervals of each frame are averaged, and the average frame interval in the preset time period is obtained, and the average frame interval is used as the second frame interval between the next frame and the current frame. By performing the average calculation on the frame intervals of each frame, the second frame interval between the next frame and the current frame can be accurately predicted.

[0040] In some embodiments, the frame interval of each frame in a preset time period is obtained, and the frame interval of the next frame is predicted for each frame through a Kalman filter algorithm to obtain a second frame interval.

[0041] Step S103: determine a bit rate adjustment strategy according to the first frame interval and the second frame interval, and adjust the transmission bit rate of the audio and video according to the bit rate adjustment strategy.

[0042] The bitrate adjustment strategies include bitrate reduction strategy, bitrate increase strategy and bitrate retention strategy.

[0043] In some embodiments, Figure 2 As shown, step S103 includes sub-steps S1031 to S1033.

[0044] Sub-step S1031, obtaining a preset first weight parameter and a preset second weight parameter.

[0045] Among them, the preset first weight parameter and the preset second weight parameter can be set according to actual conditions, and the present invention does not make any specific limitations on this. For example, the preset first weight parameter can be set to 0.6, and the preset second weight parameter can be set to 1.1.

[0046] In some embodiments, obtaining a preset first weight parameter and a preset second weight parameter can effectively improve the accuracy of adjusting the bit rate adjustment strategy.

[0047] Sub-step S1032: multiply the first frame interval by the preset first weight parameter and the preset second weight parameter respectively to obtain a third frame interval and a fourth frame interval.

[0048] In some embodiments, the first frame interval is multiplied by a preset first weight parameter to obtain a third frame interval; the first frame interval is multiplied by a preset second weight parameter to obtain a fourth frame interval. The third frame interval and the fourth frame interval can be accurately obtained by multiplying the first frame interval by the preset first weight parameter and the preset second weight parameter, respectively.

[0049] Sub-step S1033: determining a bit rate adjustment strategy according to the second frame interval, the third frame interval and the fourth frame interval.

[0050] In some embodiments, if the second frame interval is greater than the third frame interval, the rate adjustment strategy is determined to be a rate reduction strategy; if the second frame interval is less than the fourth frame interval, the rate adjustment strategy is determined to be a rate increase strategy, and the third frame interval is greater than the fourth frame interval. According to the second frame interval, the third frame interval and the fourth frame interval, the rate adjustment strategy can be accurately determined.

[0051] In some embodiments, if the bit rate adjustment strategy is a bit rate reduction strategy, a first bit rate adjustment parameter and a current bit rate are obtained, and a target bit rate is determined according to the first bit rate adjustment parameter and the current bit rate. The current bit rate is adjusted by the first bit rate adjustment parameter, so that the bit rate can be adjusted accurately.

[0052] It should be noted that the first bit rate adjustment parameter can be set according to actual conditions, and the embodiment of the present invention does not specifically limit this. For example, the first bit rate adjustment parameter can be set to 0.6.

[0053] In some embodiments, according to the first bit rate adjustment parameter and the current bit rate, the target bit rate may be determined by performing a multiplication operation on the first bit rate adjustment parameter and the current bit rate to obtain the target bit rate.

[0054] In some embodiments, if the bit rate adjustment strategy is a bit rate increase strategy, a second bit rate adjustment parameter is obtained, and the target bit rate is determined according to the second bit rate adjustment parameter and the target bit rate. The second bit rate adjustment parameter can be set according to actual conditions, and the embodiment of the present invention does not specifically limit this. For example, the second bit rate adjustment parameter can be set to 1.1.

[0055] In some embodiments, after determining the target bit rate of the audio and video, the transmission bit rate of the audio and video is adjusted to the target bit rate. By adjusting the bit rate of the audio and video to the target bit rate, the transmission bit rate of the audio and video can be adjusted in real time, greatly improving the user experience.

[0056] In some embodiments, if the second frame interval is greater than the third frame interval and the second frame interval is less than the fifth frame interval, the transmission bit rate of the audio and video is not adjusted. The fifth frame interval can be set according to actual conditions, for example, the fifth frame interval can be set to 0.1 milliseconds. When the network is congested but the frame interval is small, the bit rate does not need to be adjusted, and the stability of the audio and video quality can also be guaranteed.

[0057] In some embodiments, the current delay of the current network is determined; if the current delay is greater than or equal to the preset delay, the bit rate adjustment strategy is determined to be a bit rate reduction strategy, and the transmission bit rate of the audio and video is adjusted according to the bit rate reduction strategy. Among them, the preset delay can be set according to actual conditions, and the embodiment of the present invention does not specifically limit this. When the delay is high, the bit rate is adjusted to ensure audio and video playback.

[0058] In some embodiments, the current delay of the current network may be determined by: sending a delay detection request to the transmission end of the audio and video, and receiving a delay detection response sent by the transmission end; and determining the current delay of the current network according to a first time of sending the delay detection request and a second time of receiving the delay detection response. By sending a delay detection request to the transmission end, the current delay of the current network can be accurately obtained based on the time difference between the first time of sending and the second time of receiving the delay detection response.

[0059] The bit rate adjustment method provided in the above embodiment obtains the frame rate information of the received audio and video, and the frame rate information includes the frame rate at each time point; then, based on the frame rate information, determines the first frame interval between the current frame and the previous frame, and predicts the second frame interval between the next frame and the current frame; then, based on the first frame interval and the second frame interval, determines the bit rate adjustment strategy, and adjusts the transmission bit rate of the audio and video according to the bit rate adjustment strategy. The present application can accurately determine the first frame interval and the second frame interval based on the frame rate information of the currently received audio and video, and then determines the bit rate adjustment strategy in real time based on the frame interval, and adjusts the transmission bit rate of the audio and video according to the bit rate adjustment strategy, thereby ensuring the stability and quality of the audio and video transmission, thereby greatly improving the user experience.

[0060] See also Figure 3 , Figure 3 A schematic block diagram of a bit rate adjustment device provided in an embodiment of the present application.

[0061] like Figure 3 As shown, the bit rate adjustment device 200 includes an acquisition module 210, a determination module 220 and an adjustment module 230, wherein:

[0062] The acquisition module 210 is used to acquire frame rate information of the received audio and video, wherein the frame rate information includes the frame rate at each time point;

[0063] The determination module 220 is used to determine a first frame interval between a current frame and a previous frame, and predict a second frame interval between a next frame and the current frame according to the frame rate information;

[0064] The determination module 220 is further configured to determine a bit rate adjustment strategy according to the first frame interval and the second frame interval;

[0065] The adjustment module 230 is used to adjust the transmission bit rate of the audio and video according to the bit rate adjustment strategy.

[0066] In some embodiments, Figure 4 As shown, the adjustment module 230 includes an acquisition submodule 231, a generation submodule 232 and a determination submodule 233, wherein:

[0067] The sub-acquisition module 231 is used to acquire a preset first weight parameter and a preset second weight parameter;

[0068] The generating submodule 232 is used to perform multiplication operation on the first frame interval with the preset first weight parameter and the preset second weight parameter respectively to obtain a third frame interval and a fourth frame interval;

[0069] The determination submodule 233 is used to determine a bit rate adjustment strategy according to the second frame interval, the third frame interval and the fourth frame interval.

[0070] In some embodiments, the determining submodule 233 is further used to:

[0071] If the second frame interval is greater than the third frame interval, determining that the bit rate adjustment strategy is a bit rate reduction strategy;

[0072] If the second frame interval is smaller than the fourth frame interval, it is determined that the bit rate adjustment strategy is a bit rate increase strategy, and the third frame interval is larger than the fourth frame interval.

[0073] In some embodiments, the determining submodule 233 is further used to:

[0074] If the bit rate adjustment strategy is a bit rate reduction strategy, obtaining a first bit rate adjustment parameter and a current bit rate, and determining a target bit rate according to the first bit rate adjustment parameter and the current bit rate; or,

[0075] If the bit rate adjustment strategy is a bit rate increase strategy, obtaining a second bit rate adjustment parameter, and determining a target bit rate according to the second bit rate adjustment parameter and the current bit rate;

[0076] The transmission bit rate of the audio and video is adjusted to the target bit rate.

[0077] In some embodiments, the bit rate adjustment device 200 is further used for:

[0078] If the second frame interval is greater than the third frame interval and the second frame interval is less than the fifth frame interval, the transmission bit rate of the audio and video is not adjusted.

[0079] In some embodiments, the bit rate adjustment device 200 is further used for:

[0080] Determining a current delay of the current network;

[0081] If the current delay is greater than or equal to the preset delay, the bit rate adjustment strategy is determined to be a bit rate reduction strategy, and the transmission bit rate of the audio and video is adjusted according to the bit rate reduction strategy.

[0082] In some embodiments, the bit rate adjustment device 200 is further used for:

[0083] Sending a delay detection request to the transmission end of the audio and video, and receiving a delay detection response sent by the transmission end;

[0084] The current delay of the current network is determined according to a first time of sending the delay detection request and a second time of receiving the delay detection response.

[0085] It should be noted that those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-mentioned bit rate adjustment device can refer to the corresponding process in the above-mentioned bit rate adjustment method embodiment, and will not be repeated here.

[0086] See also Figure 5 , Figure 5 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application.

[0087] like Figure 5 As shown, the terminal device 300 includes a processor 302 and a memory 303 connected via a system bus 301, wherein the memory 303 may include a storage medium and an internal memory.

[0088] The storage medium may store a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor 302 may execute any one of the bit rate adjustment methods.

[0089] The processor 302 is used to provide computing and control capabilities to support the operation of the entire terminal device.

[0090] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute any one of the bit rate adjustment methods.

[0091] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the terminal device to which the scheme of the present application is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0092] It should be understood that the processor 302 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0093] In one embodiment, the processor 302 is used to run a computer program stored in the memory to implement the following steps:

[0094] Obtaining frame rate information of the received audio and video, wherein the frame rate information includes the frame rate at each time point;

[0095] Determine, according to the frame rate information, a first frame interval between a current frame and a previous frame, and predict a second frame interval between a next frame and the current frame;

[0096] A bit rate adjustment strategy is determined according to the first frame interval and the second frame interval, and the transmission bit rate of the audio and video is adjusted according to the bit rate adjustment strategy.

[0097] In one embodiment, when the processor 302 implements the determining of the bit rate adjustment strategy according to the first frame interval and the second frame interval, it is configured to implement:

[0098] Obtaining a preset first weight parameter and a preset second weight parameter;

[0099] Multiplying the first frame interval by the preset first weight parameter and the preset second weight parameter respectively to obtain a third frame interval and a fourth frame interval;

[0100] A rate adjustment strategy is determined according to the second frame interval, the third frame interval, and the fourth frame interval.

[0101] In one embodiment, when the processor 302 implements the determining of the bit rate adjustment strategy according to the second frame interval, the third frame interval, and the fourth frame interval, it is configured to implement:

[0102] If the second frame interval is greater than the third frame interval, determining that the bit rate adjustment strategy is a bit rate reduction strategy;

[0103] If the second frame interval is smaller than the fourth frame interval, it is determined that the bit rate adjustment strategy is a bit rate increase strategy, and the third frame interval is larger than the fourth frame interval.

[0104] In one embodiment, when the processor 302 adjusts the transmission bit rate of the audio and video according to the bit rate adjustment strategy, it is used to implement:

[0105] If the bit rate adjustment strategy is a bit rate reduction strategy, obtaining a first bit rate adjustment parameter and a current bit rate, and determining a target bit rate according to the first bit rate adjustment parameter and the current bit rate; or,

[0106] If the bit rate adjustment strategy is a bit rate increase strategy, obtaining a second bit rate adjustment parameter, and determining a target bit rate according to the second bit rate adjustment parameter and the current bit rate;

[0107] The transmission bit rate of the audio and video is adjusted to the target bit rate.

[0108] In one embodiment, the processor 302 is further configured to implement:

[0109] If the second frame interval is greater than the third frame interval and the second frame interval is less than the fifth frame interval, the transmission bit rate of the audio and video is not adjusted.

[0110] In one embodiment, the processor 302 is further configured to implement:

[0111] Determining a current delay of the current network;

[0112] If the current delay is greater than or equal to the preset delay, the bit rate adjustment strategy is determined to be a bit rate reduction strategy, and the transmission bit rate of the audio and video is adjusted according to the bit rate reduction strategy.

[0113] In one embodiment, the processor 302, when implementing the determining of the current delay of the current network, is configured to implement:

[0114] Sending a delay detection request to the transmission end of the audio and video, and receiving a delay detection response sent by the transmission end;

[0115] The current delay of the current network is determined according to a first time of sending the delay detection request and a second time of receiving the delay detection response.

[0116] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the terminal device described above can refer to the corresponding process in the aforementioned bit rate adjustment method embodiment, which will not be repeated here.

[0117] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the bit rate adjustment method of the present application.

[0118] The computer-readable storage medium may be an internal storage unit of the terminal device described in the foregoing embodiment, such as a hard disk or memory of the terminal device. The computer-readable storage medium may be non-volatile or volatile. The computer-readable storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc., equipped on the terminal device.

[0119] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0120] It should also be understood that the term "and / or" used in the present specification refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0121] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application.

Claims

1. A method for adjusting a bit rate, characterized in that: Applied to a terminal device, the method comprises: Obtaining frame rate information of the received audio and video, wherein the frame rate information includes the frame rate at each time point; Determine, according to the frame rate information, a first frame interval between a current frame and a previous frame, and predict a second frame interval between a next frame and the current frame; A bit rate adjustment strategy is determined according to the first frame interval and the second frame interval, and the transmission bit rate of the audio and video is adjusted according to the bit rate adjustment strategy.

2. The method for adjusting the bit rate according to claim 1, wherein: The determining the bit rate adjustment strategy according to the first frame interval and the second frame interval includes: Obtaining a preset first weight parameter and a preset second weight parameter; Multiplying the first frame interval by the preset first weight parameter and the preset second weight parameter respectively to obtain a third frame interval and a fourth frame interval; A rate adjustment strategy is determined according to the second frame interval, the third frame interval, and the fourth frame interval.

3. The method for adjusting the bit rate according to claim 2, wherein: The determining the bit rate adjustment strategy according to the second frame interval, the third frame interval, and the fourth frame interval includes: If the second frame interval is greater than the third frame interval, determining that the bit rate adjustment strategy is a bit rate reduction strategy; If the second frame interval is smaller than the fourth frame interval, it is determined that the bit rate adjustment strategy is a bit rate increase strategy, and the third frame interval is larger than the fourth frame interval.

4. The method for adjusting the bit rate according to claim 3, wherein: The adjusting the transmission bit rate of the audio and video according to the bit rate adjustment strategy includes: If the bit rate adjustment strategy is a bit rate reduction strategy, obtaining a first bit rate adjustment parameter and a current bit rate, and determining a target bit rate according to the first bit rate adjustment parameter and the current bit rate; or, If the bit rate adjustment strategy is a bit rate increase strategy, obtaining a second bit rate adjustment parameter, and determining a target bit rate according to the second bit rate adjustment parameter and the current bit rate; The transmission bit rate of the audio and video is adjusted to the target bit rate.

5. The method for adjusting the bit rate according to claim 3, wherein: The method further comprises: If the second frame interval is greater than the third frame interval and the second frame interval is less than the fifth frame interval, the transmission bit rate of the audio and video is not adjusted.

6. The method for adjusting the bit rate according to any one of claims 1 to 4, characterized in that: The method further comprises: Determining a current delay of the current network; If the current delay is greater than or equal to the preset delay, the bit rate adjustment strategy is determined to be a bit rate reduction strategy, and the transmission bit rate of the audio and video is adjusted according to the bit rate reduction strategy.

7. The method for adjusting the bit rate according to claim 6, wherein: The determining of the current delay of the current network includes: Sending a delay detection request to the transmission end of the audio and video, and receiving a delay detection response sent by the transmission end; The current delay of the current network is determined according to a first time of sending the delay detection request and a second time of receiving the delay detection response.

8. A bit rate adjustment device, characterized in that: The bit rate adjustment device includes an acquisition module, a determination module and an adjustment module, wherein: The acquisition module is used to acquire frame rate information of the received audio and video, wherein the frame rate information includes the frame rate at each time point; The determination module is used to determine a first frame interval between a current frame and a previous frame, and predict a second frame interval between a next frame and the current frame according to the frame rate information; The determining module is further configured to determine a bit rate adjustment strategy according to the first frame interval and the second frame interval; The adjustment module is used to adjust the transmission bit rate of the audio and video according to the bit rate adjustment strategy.

9. A terminal device, characterized in that: The terminal device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the bit rate adjustment method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the bit rate adjustment method according to any one of claims 1 to 7 are implemented.