CN113315773A - Code rate adjusting method and device, electronic equipment and storage medium - Google Patents

Code rate adjusting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113315773A
CN113315773A CN202110597481.9A CN202110597481A CN113315773A CN 113315773 A CN113315773 A CN 113315773A CN 202110597481 A CN202110597481 A CN 202110597481A CN 113315773 A CN113315773 A CN 113315773A
Authority
CN
China
Prior art keywords
quality parameter
code rate
congestion coefficient
determining
updated
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.)
Granted
Application number
CN202110597481.9A
Other languages
Chinese (zh)
Other versions
CN113315773B (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110597481.9A priority Critical patent/CN113315773B/en
Publication of CN113315773A publication Critical patent/CN113315773A/en
Application granted granted Critical
Publication of CN113315773B publication Critical patent/CN113315773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/70Media network packetisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/637Control signals issued by the client directed to the server or network components
    • H04N21/6373Control signals issued by the client directed to the server or network components for rate control, e.g. request to the server to modify its transmission rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a code rate adjusting method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a first quality parameter of a channel connected with a server according to a preset period; after the first quality parameter is obtained each time, determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate; and adjusting an encoding strategy according to the target code rate. And the electronic equipment determines the corresponding relation between each second quality parameter and the code rate in advance, determines the target code rate corresponding to the first quality parameter according to the corresponding relation after acquiring the first quality parameter of the channel connected with the server, and then adjusts the coding strategy according to the target code rate. The code rate adjusting method provided by the embodiment of the invention realizes that the code rates corresponding to the channels with different quality parameters are also different, thereby providing a scheme for adaptively adjusting the code rates according to the channel quality parameters.

Description

Code rate adjusting method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for adjusting a code rate, an electronic device, and a storage medium.
Background
In the prior art, when an electronic device sends streaming media data to a server, the electronic device transmits the streaming media data according to a set uplink code rate. Because the channel quality between the electronic device and the server may change, when the channel quality between the electronic device and the server is good, the electronic device may smoothly send streaming media data to the server, but when the channel quality between the electronic device and the server is poor, the channel has no capability of satisfying the set uplink code rate to transmit the streaming media data, and the streaming media data is still transmitted based on the set uplink code rate in the prior art, which may cause the problems that the streaming media data may drop frames, and the streaming media data dropping frames may be visually felt as the blocking of the streaming media data for a user. At present, there is no scheme for adaptively adjusting the code rate to ensure the smoothness of streaming media data.
Disclosure of Invention
The embodiment of the invention provides a code rate adjusting method, a code rate adjusting device, electronic equipment and a storage medium, which are used for providing a scheme for adaptively adjusting code rates so as to ensure the smoothness of streaming media data.
The embodiment of the invention provides a code rate adjusting method, which comprises the following steps:
acquiring a first quality parameter of a channel connected with a server according to a preset period;
after the first quality parameter is obtained each time, determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate;
and adjusting an encoding strategy according to the target code rate.
Further, after each time the first quality parameter is obtained, before determining a target code rate corresponding to the first quality parameter according to a predetermined correspondence between each second quality parameter and the code rate, the method further includes:
determining a variation value of a first quality parameter obtained currently and a first quality parameter obtained in a previous period;
judging whether the change value exceeds a preset first threshold value, if so, performing the subsequent predetermined corresponding relation between each second quality parameter and the code rate, and determining the target code rate corresponding to the first quality parameter; if not, the coding strategy is not adjusted.
Further, the determining, according to the predetermined correspondence between each second quality parameter and a code rate, a target code rate corresponding to the first quality parameter includes:
determining candidate code rates corresponding to the first quality parameters according to the predetermined corresponding relation between each second quality parameter and the code rate;
determining a candidate congestion coefficient corresponding to the first quality parameter according to the corresponding relation between each second quality parameter and the congestion coefficient, which is determined in advance;
and taking the product of the candidate code rate and the candidate congestion coefficient as a target code rate.
Further, before determining the candidate congestion coefficient corresponding to the first quality parameter according to the predetermined correspondence between each second quality parameter and the congestion coefficient, the method further includes:
when a congestion coefficient updating instruction is received, acquiring a second quality parameter and a corresponding updated congestion coefficient carried in the congestion coefficient updating instruction; and replacing the congestion coefficient corresponding to the second quality parameter with the updated congestion coefficient.
Further, when a congestion coefficient update instruction is received, acquiring the congestion coefficient update instruction carrying the second quality parameter and the corresponding updated congestion coefficient includes:
when the change values of the data quantity sent in two adjacent set time lengths exceed a preset second threshold value, determining that a congestion coefficient updating instruction is received, and determining the ratio of the data quantity sent in the current unit time length to the code rate corresponding to the second quality parameter as an updated congestion coefficient; or when a congestion coefficient updating instruction sent by other electronic equipment in a preset area is received, acquiring the congestion coefficient updating instruction carrying the second quality parameter and the corresponding updated congestion coefficient.
Further, after the ratio of the data amount sent in the current unit time length to the code rate corresponding to the second quality parameter is determined as the updated congestion coefficient, the method further includes:
and carrying the updated congestion coefficient and the corresponding second quality parameter in a congestion coefficient updating instruction, and sending the congestion coefficient updating instruction to other electronic equipment in the preset area.
In another aspect, an embodiment of the present invention provides a code rate adjustment apparatus, where the apparatus includes:
the acquisition module is used for acquiring a first quality parameter of a channel connected with a server according to a preset period;
the determining module is used for determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate after each time of obtaining the first quality parameter;
and the adjusting module is used for adjusting the coding strategy according to the target code rate.
Further, the apparatus further comprises:
the judging module is used for determining the change value of the first quality parameter obtained at present and the first quality parameter obtained in the previous period; judging whether the change value exceeds a preset first threshold value, and if so, triggering the determining module; if not, the coding strategy is not adjusted.
Further, the determining module is specifically configured to determine, according to a predetermined correspondence between each second quality parameter and a code rate, a candidate code rate corresponding to the first quality parameter; determining a candidate congestion coefficient corresponding to the first quality parameter according to the corresponding relation between each second quality parameter and the congestion coefficient, which is determined in advance; and taking the product of the candidate code rate and the candidate congestion coefficient as a target code rate.
Further, the apparatus further comprises:
the updating module is used for acquiring a congestion coefficient updating instruction carrying a second quality parameter and a corresponding updated congestion coefficient when receiving the congestion coefficient updating instruction; and replacing the congestion coefficient corresponding to the second quality parameter with the updated congestion coefficient.
Further, the updating module is specifically configured to determine that a congestion coefficient updating instruction is received when the change value of the data amount sent within two adjacent set time lengths exceeds a preset second threshold, and determine a ratio of the data amount sent within the current unit time length to the code rate corresponding to the second quality parameter as an updated congestion coefficient; or when a congestion coefficient updating instruction sent by other electronic equipment in a preset area is received, acquiring the congestion coefficient updating instruction carrying the second quality parameter and the corresponding updated congestion coefficient.
Further, the apparatus further comprises:
and the sending module is used for carrying the updated congestion coefficient and the corresponding second quality parameter in a congestion coefficient updating instruction and sending the congestion coefficient updating instruction to other electronic equipment in the preset area.
In another aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing any of the above method steps when executing a program stored in the memory.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the above.
The embodiment of the invention provides a code rate adjusting method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a first quality parameter of a channel connected with a server according to a preset period; after the first quality parameter is obtained each time, determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate; and adjusting an encoding strategy according to the target code rate.
The technical scheme has the following advantages or beneficial effects:
in the embodiment of the invention, the corresponding relation between each second quality parameter and the code rate is predetermined in the electronic equipment, after the first quality parameter of the channel connected with the server is obtained, the target code rate corresponding to the first quality parameter is determined according to the corresponding relation, and then the coding strategy is adjusted according to the target code rate. The code rate adjusting method provided by the embodiment of the invention realizes that the code rates corresponding to the channels with different quality parameters are also different, thereby providing a scheme for adaptively adjusting the code rates according to the channel quality parameters.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a code rate adjustment process according to an embodiment of the present invention;
FIG. 2 is a frame diagram of rate adjustment according to an embodiment of the present invention;
FIG. 3 is a flow chart of code rate adjustment according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a code rate adjustment apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
fig. 1 is a schematic diagram of a code rate adjustment process provided in an embodiment of the present invention, where the process includes the following steps:
s101: acquiring a first quality parameter of a channel connected with a server according to a preset period;
s102: after the first quality parameter is obtained each time, determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate;
s103: and adjusting an encoding strategy according to the target code rate.
The code rate adjusting method provided by the embodiment of the invention is applied to electronic equipment, and the electronic equipment can be terminal equipment such as a PC (personal computer), a tablet computer and image acquisition equipment.
The electronic device acquires a first quality parameter of a channel connected with a server according to a preset period, wherein the preset period can be 1 second, 2 seconds and the like. The quality parameters of the channel include signal received power RSRP and signal to noise ratio SINR. In the embodiment of the present invention, the quality parameter of the channel connected to the server, which is obtained according to the preset period, is referred to as a first quality parameter.
The electronic equipment stores the corresponding relation between each second quality parameter and the code rate, wherein the first quality parameter of the channel connected with the service end and acquired according to the preset period is contained in each second quality parameter, and after the first quality parameter is acquired each time, the target code rate corresponding to the first quality parameter is determined according to the corresponding relation between each second quality parameter and the code rate, which is predetermined. And then adjusting the coding strategy according to the target code rate.
In the embodiment of the invention, the corresponding relation between each second quality parameter and the code rate is predetermined in the electronic equipment, after the first quality parameter of the channel connected with the server is obtained, the target code rate corresponding to the first quality parameter is determined according to the corresponding relation, and then the coding strategy is adjusted according to the target code rate. The code rate adjusting method provided by the embodiment of the invention realizes that the code rates corresponding to the channels with different quality parameters are also different, thereby providing a scheme for adaptively adjusting the code rates according to the channel quality parameters.
Example 2:
in order to reduce power consumption of code rate adjustment, on the basis of the foregoing embodiment, in an embodiment of the present invention, after each obtaining of the first quality parameter, before determining a target code rate corresponding to the first quality parameter according to a predetermined correspondence between each second quality parameter and a code rate, the method further includes:
determining a variation value of a first quality parameter obtained currently and a first quality parameter obtained in a previous period;
judging whether the change value exceeds a preset first threshold value, if so, performing the subsequent predetermined corresponding relation between each second quality parameter and the code rate, and determining the target code rate corresponding to the first quality parameter; if not, the coding strategy is not adjusted.
In the embodiment of the present invention, after the first quality parameter is obtained each time, the variation values of the currently obtained first quality parameter and the first quality parameter obtained in the previous period are determined, where the variation values of the first quality parameter include a variation value of RSRP and a variation value of SINR. Storing a preset first threshold corresponding to an RSRP and a preset first threshold corresponding to an SINR in the electronic device, obviously, the preset first threshold corresponding to the RSRP and the preset first threshold corresponding to the SINR are different, and when any one of a variation value of the RSRP and a variation value of the SINR exceeds the preset first threshold, performing a subsequent predetermined correspondence relationship between each second quality parameter and a code rate, respectively, and determining a target code rate corresponding to the first quality parameter; otherwise, no adjustment of the encoding strategy is made.
According to the embodiment of the invention, when the channel quality parameter is detected to be changed greatly, the code rate is adjusted, otherwise, the code rate is not adjusted, and the power consumption caused by code rate adjustment is reduced on the basis of realizing self-adaptive code rate adjustment according to the channel quality parameter.
Example 3:
in order to make the code rate adjustment more accurate, on the basis of the foregoing embodiments, in an embodiment of the present invention, the determining, according to a predetermined correspondence between each second quality parameter and a code rate, a target code rate corresponding to the first quality parameter includes:
determining candidate code rates corresponding to the first quality parameters according to the predetermined corresponding relation between each second quality parameter and the code rate;
determining a candidate congestion coefficient corresponding to the first quality parameter according to the corresponding relation between each second quality parameter and the congestion coefficient, which is determined in advance;
and taking the product of the candidate code rate and the candidate congestion coefficient as a target code rate.
In the embodiment of the present invention, the electronic device stores a predetermined correspondence between each second quality parameter and a congestion coefficient. And then determining the code rate corresponding to the first quality parameter as a candidate code rate according to the predetermined corresponding relation between each second quality parameter and the code rate. And according to the predetermined corresponding relation between each second quality parameter and the congestion coefficient, determining the congestion coefficient corresponding to the first quality parameter as a candidate congestion coefficient, and taking the product of the candidate code rate and the candidate congestion coefficient as a target code rate. Thereby making the determined target code rate more accurate.
In the embodiment of the present invention, each electronic device in the preset area maintains a corresponding relationship table, where the corresponding relationship table includes a corresponding relationship between each second quality parameter and a code rate, and a corresponding relationship between each second quality parameter and a congestion coefficient. The correspondence table maintained by each electronic device in the preset area is the same. The preset area may be an area covered by the base station, or a cell covered by the base station.
In this embodiment of the present invention, before determining the candidate congestion coefficient corresponding to the first quality parameter according to the predetermined correspondence between each second quality parameter and the congestion coefficient, the method further includes:
when a congestion coefficient updating instruction is received, acquiring a second quality parameter and a corresponding updated congestion coefficient carried in the congestion coefficient updating instruction; and replacing the congestion coefficient corresponding to the second quality parameter with the updated congestion coefficient.
Before determining a candidate congestion coefficient corresponding to the first quality parameter according to a predetermined corresponding relationship between each second quality parameter and a congestion coefficient, the electronic device first determines whether a congestion coefficient update instruction is received, wherein the congestion coefficient update instruction carries the second quality parameter and a corresponding updated congestion coefficient, if so, the updated congestion coefficient is used for replacing the congestion coefficient corresponding to the second quality parameter, and then, the electronic device performs a subsequent step of determining the candidate congestion coefficient corresponding to the first quality parameter according to the predetermined corresponding relationship between each second quality parameter and the congestion coefficient.
In the embodiment of the present invention, when a congestion coefficient update instruction is received, acquiring a congestion coefficient update instruction that carries a second quality parameter and a corresponding updated congestion coefficient includes:
when the change values of the data quantity sent in two adjacent set time lengths exceed a preset second threshold value, determining that a congestion coefficient updating instruction is received, and determining the ratio of the data quantity sent in the current unit time length to the code rate corresponding to the second quality parameter as an updated congestion coefficient; or when a congestion coefficient updating instruction sent by other electronic equipment in a preset area is received, acquiring the congestion coefficient updating instruction carrying the second quality parameter and the corresponding updated congestion coefficient.
The electronic device obtains the amount of data transmitted for each set length of time, which may be 1 second, 2 seconds, etc. And then judging whether the change values of the data quantity sent in two adjacent set time lengths exceed a preset second threshold value, if so, determining that a congestion coefficient updating instruction is received, and determining the ratio of the data quantity sent in the current unit time length to the code rate corresponding to the second quality parameter as the updated congestion coefficient. Or when a congestion coefficient updating instruction sent by other electronic equipment in a preset area is received, acquiring the congestion coefficient updating instruction carrying the second quality parameter and the corresponding updated congestion coefficient.
In this embodiment of the present invention, after determining a ratio between a data amount sent in a current unit time length and a code rate corresponding to the second quality parameter as the updated congestion coefficient, the method further includes:
and carrying the updated congestion coefficient and the corresponding second quality parameter in a congestion coefficient updating instruction, and sending the congestion coefficient updating instruction to other electronic equipment in the preset area.
The congestion coefficient updating instruction can be sent to other electronic equipment in the preset area in a broadcasting mode, or the congestion coefficient updating instruction is sent to the central platform through the UU interface and then forwarded to other electronic equipment by the central platform.
Fig. 2 is a frame diagram for adjusting a code rate according to an embodiment of the present invention, as shown in fig. 2, a cellular network (mobile network) channel environment is complex and has strong time-varying characteristics, a base station may adjust a scheduling policy (including changing MCS modulation and coding policy, real-time bandwidth RB number, and the like) for an electronic device (terminal) by monitoring a fading condition of an uplink channel quality parameter of the electronic device, which affects an uplink code rate, and for a TDD operating mode, an uplink channel and a downlink channel use a same frequency band, that is, the uplink channel and the downlink channel have symmetry (also called reciprocity), so that the terminal may approximately determine an uplink channel condition by monitoring a downlink channel quality parameter, and the uplink channel quality parameter affects the uplink code rate, so that a certain relationship exists between the downlink channel quality parameter of the terminal and the uplink code rate in the TDD operating mode. Considering that various influences such as multipath fading or frequency offset are different under different application scenarios, such as different conditions of suburbs, urban areas, buildings, factory buildings, and the like, the corresponding relationship between the downlink channel quality parameters and the uplink code rate is actually different for different scenarios, but if a fixed usage scenario, such as that in an office building, can be specified, the corresponding relationship between the terminal downlink channel quality parameters (RSRP, SINR) and the uplink code rate under the condition of no resource competition can be obtained through advanced measurement or simulation.
By measuring the corresponding relation between the channel quality parameters (RSRP and SINR) and the uplink code rate of a certain fixed application scene (such as a building) under a certain TDD working frequency band in advance, the maximum uplink code rate of the current electronic equipment can be estimated according to the corresponding relation when the change of the channel quality parameters exceeds a preset threshold, so that the bandwidth detection effect is achieved, the terminal is helped to adjust the streaming media coding strategy in time, the maximum uplink code rate can be directly estimated according to the monitored channel quality parameters for the terminal which does not start the service, the coding strategy is directly adjusted before the service is started, and the phenomenon that the code stream is jammed just started is avoided, and the user experience is influenced.
The method can estimate the ideal bandwidth of the uplink without considering the resource competition, that is, the network is not congested, but when the number of accessed terminals is too large or the uplink code rate requirement of each terminal is too large, the network is likely to be congested, and at this time, the base station cannot allocate the ideal bandwidth to the individual terminal, and the uplink rate of the terminal is limited.
The channel congestion occurrence is comprehensively sensed and the congestion coefficient is calculated by monitoring the channel quality parameters and counting the data volume sent in one second. And when the data volume sent in the last second is found to be reduced and exceeds a preset threshold, judging whether the channel quality parameter is changed or not, if the channel quality parameter is not changed, judging that the network is congested, and estimating the current congestion coefficient under the channel quality parameter according to the ratio of the data volume sent in the last second to the code rate corresponding to the current channel quality parameter. And multiplying the code rate corresponding to the current channel quality parameter by the congestion coefficient to estimate the maximum uplink code rate of the current terminal under the congestion condition.
Fig. 3 is a flow chart of code rate adjustment according to an embodiment of the present invention, which illustrates the following steps:
under a TDD working mode, under a certain fixed frequency band and a fixed application scene, testing or simulating in advance to obtain the uplink code rate corresponding to the terminal under different channel quality parameters (RSRP/SINR) under the condition that a single base station has no resource competition, and obtaining the relation between the channel quality parameters and the uplink code rate under the condition that no resource competition exists.
The terminal periodically monitors the change of the channel quality parameter, when the channel quality parameter obviously changes, the maximum ideal uplink code rate value under the condition of no resource competition can be obtained by mapping according to the real-time RSRP and SINR values, and then the maximum ideal uplink code rate value can be estimated by multiplying the maximum ideal uplink code rate value by the congestion coefficient maintained under the corresponding channel condition. And informing the streaming media to adjust a coding strategy according to the latest estimated uplink throughput capacity, changing the code rate and improving the user experience.
And if the channel quality parameter is not changed, counting the data volume sent in the last second in real time, if the change value of the data volume sent in the last second and the data volume sent in the previous second exceeds a preset threshold, indicating that the network is congested, calculating a network congestion coefficient under the current channel quality parameter according to the ratio of the data volume sent in the last second and the code rate corresponding to the current channel quality parameter, and maintaining and updating the network congestion coefficient into a corresponding relation.
And after the congestion is sensed, the updated congestion coefficient and the corresponding channel condition are sent to the central platform through the UU interface, and then are forwarded to other terminals by the center or are broadcast to other terminals in a D2D direct connection mode. Therefore, other terminals in the preset area can be helped to perfect the corresponding relation table of the channel quality parameters, the code rate and the congestion coefficient, when the channel quality parameters of other terminals in the preset area are changed or the service is just started, the uplink bandwidth condition can be directly and quickly estimated according to the corresponding relation table, the appropriate code stream can be timely adjusted and matched, and the user experience is improved.
After the terminal senses that the congestion condition changes, the current latest uplink throughput capacity is estimated again through mapping, the streaming media is informed to adjust the coding strategy according to the latest estimated uplink throughput capacity, the code rate is changed, and the user experience degree is improved.
Example 4:
fig. 4 is a schematic structural diagram of a code rate adjustment device according to an embodiment of the present invention, where the device includes:
an obtaining module 41, configured to obtain a first quality parameter of a channel connected to a server according to a preset period;
a determining module 42, configured to determine, after each time the first quality parameter is obtained, a target code rate corresponding to the first quality parameter according to a predetermined correspondence between each second quality parameter and a code rate;
and an adjusting module 43, configured to adjust a coding strategy according to the target code rate.
The device further comprises:
the judging module 44 is configured to determine a variation value between the currently acquired first quality parameter and the first quality parameter acquired in the previous period; judging whether the variation value exceeds a preset first threshold value, and if so, triggering the determining module 42; if not, the coding strategy is not adjusted.
The determining module 42 is specifically configured to determine, according to a predetermined correspondence between each second quality parameter and a code rate, a candidate code rate corresponding to the first quality parameter; determining a candidate congestion coefficient corresponding to the first quality parameter according to the corresponding relation between each second quality parameter and the congestion coefficient, which is determined in advance; and taking the product of the candidate code rate and the candidate congestion coefficient as a target code rate.
The device further comprises:
an updating module 45, configured to, when a congestion coefficient updating instruction is received, obtain a congestion coefficient updated instruction that carries a second quality parameter and a corresponding updated congestion coefficient; and replacing the congestion coefficient corresponding to the second quality parameter with the updated congestion coefficient.
The updating module 45 is specifically configured to determine that a congestion coefficient updating instruction is received when the change value of the data amount sent within two adjacent set time lengths exceeds a preset second threshold, and determine a ratio of the data amount sent within the current unit time length to the code rate corresponding to the second quality parameter as an updated congestion coefficient; or when a congestion coefficient updating instruction sent by other electronic equipment in a preset area is received, acquiring the congestion coefficient updating instruction carrying the second quality parameter and the corresponding updated congestion coefficient.
The device further comprises:
a sending module 46, configured to carry the updated congestion coefficient and the corresponding second quality parameter in a congestion coefficient update instruction, and send the congestion coefficient and the corresponding second quality parameter to other electronic devices in the preset area.
Example 5:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 5, including: the system comprises a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302 and the memory 303 complete mutual communication through the communication bus 304;
the memory 303 has stored therein a computer program which, when executed by the processor 301, causes the processor 301 to perform the steps of:
acquiring a first quality parameter of a channel connected with a server according to a preset period;
after the first quality parameter is obtained each time, determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate;
and adjusting an encoding strategy according to the target code rate.
Based on the same inventive concept, the embodiment of the present invention further provides an electronic device, and because the principle of the electronic device for solving the problem is similar to the code rate adjustment method, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
The electronic device provided by the embodiment of the invention can be a desktop computer, a portable computer, a smart phone, a tablet computer, a Personal Digital Assistant (PDA), a network side device and the like.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 302 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
When the processor executes the program stored in the memory in the embodiment of the invention, the first quality parameter of the channel connected with the server is acquired according to a preset period; after the first quality parameter is obtained each time, determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate; and adjusting an encoding strategy according to the target code rate. And the electronic equipment determines the corresponding relation between each second quality parameter and the code rate in advance, determines the target code rate corresponding to the first quality parameter according to the corresponding relation after acquiring the first quality parameter of the channel connected with the server, and then adjusts the coding strategy according to the target code rate. The code rate adjusting method provided by the embodiment of the invention realizes that the code rates corresponding to the channels with different quality parameters are also different, thereby providing a scheme for adaptively adjusting the code rates according to the channel quality parameters.
Example 6:
on the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, in which a computer program executable by an electronic device is stored, and when the program is run on the electronic device, the electronic device is caused to execute the following steps:
acquiring a first quality parameter of a channel connected with a server according to a preset period;
after the first quality parameter is obtained each time, determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate;
and adjusting an encoding strategy according to the target code rate.
Based on the same inventive concept, embodiments of the present invention further provide a computer-readable storage medium, and since a principle of solving a problem when a processor executes a computer program stored in the computer-readable storage medium is similar to a code rate adjustment method, implementation of the computer program stored in the computer-readable storage medium by the processor may refer to implementation of the method, and repeated details are not repeated.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memory such as floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc., optical memory such as CDs, DVDs, BDs, HVDs, etc., and semiconductor memory such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs), etc.
The computer readable storage medium provided in the embodiment of the present invention stores a computer program, and when the computer program is executed by a processor, the computer program implements obtaining a first quality parameter of a channel connected to a server according to a preset period; after the first quality parameter is obtained each time, determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate; and adjusting an encoding strategy according to the target code rate. And the electronic equipment determines the corresponding relation between each second quality parameter and the code rate in advance, determines the target code rate corresponding to the first quality parameter according to the corresponding relation after acquiring the first quality parameter of the channel connected with the server, and then adjusts the coding strategy according to the target code rate. The code rate adjusting method provided by the embodiment of the invention realizes that the code rates corresponding to the channels with different quality parameters are also different, thereby providing a scheme for adaptively adjusting the code rates according to the channel quality parameters.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (14)

1. A method for adjusting a code rate, the method comprising:
acquiring a first quality parameter of a channel connected with a server according to a preset period;
after the first quality parameter is obtained each time, determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate;
and adjusting an encoding strategy according to the target code rate.
2. The method of claim 1, wherein after obtaining the first quality parameter each time, before determining a target code rate corresponding to the first quality parameter according to a predetermined correspondence between each second quality parameter and a code rate, the method further comprises:
determining a variation value of a first quality parameter obtained currently and a first quality parameter obtained in a previous period;
judging whether the change value exceeds a preset first threshold value, if so, performing the subsequent predetermined corresponding relation between each second quality parameter and the code rate, and determining the target code rate corresponding to the first quality parameter; if not, the coding strategy is not adjusted.
3. The method of claim 1, wherein the determining the target code rate corresponding to the first quality parameter according to the predetermined correspondence relationship between each second quality parameter and the code rate comprises:
determining candidate code rates corresponding to the first quality parameters according to the predetermined corresponding relation between each second quality parameter and the code rate;
determining a candidate congestion coefficient corresponding to the first quality parameter according to the corresponding relation between each second quality parameter and the congestion coefficient, which is determined in advance;
and taking the product of the candidate code rate and the candidate congestion coefficient as a target code rate.
4. The method according to claim 3, wherein before determining the candidate congestion coefficient corresponding to the first quality parameter according to the predetermined correspondence between each second quality parameter and the congestion coefficient, the method further comprises:
when a congestion coefficient updating instruction is received, acquiring a second quality parameter and a corresponding updated congestion coefficient carried in the congestion coefficient updating instruction; and replacing the congestion coefficient corresponding to the second quality parameter with the updated congestion coefficient.
5. The method of claim 4, wherein when receiving a congestion coefficient update instruction, acquiring the second quality parameter and the corresponding updated congestion coefficient carried in the congestion coefficient update instruction comprises:
when the change values of the data quantity sent in two adjacent set time lengths exceed a preset second threshold value, determining that a congestion coefficient updating instruction is received, and determining the ratio of the data quantity sent in the current unit time length to the code rate corresponding to the second quality parameter as an updated congestion coefficient; or when a congestion coefficient updating instruction sent by other electronic equipment in a preset area is received, acquiring the congestion coefficient updating instruction carrying the second quality parameter and the corresponding updated congestion coefficient.
6. The method of claim 5, wherein after determining a ratio of the amount of data transmitted in the current unit time length to the code rate corresponding to the second quality parameter as the updated congestion coefficient, the method further comprises:
and carrying the updated congestion coefficient and the corresponding second quality parameter in a congestion coefficient updating instruction, and sending the congestion coefficient updating instruction to other electronic equipment in the preset area.
7. An apparatus for adjusting a code rate, the apparatus comprising:
the acquisition module is used for acquiring a first quality parameter of a channel connected with a server according to a preset period;
the determining module is used for determining a target code rate corresponding to the first quality parameter according to the corresponding relation between each predetermined second quality parameter and the code rate after each time of obtaining the first quality parameter;
and the adjusting module is used for adjusting the coding strategy according to the target code rate.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the judging module is used for determining the change value of the first quality parameter obtained at present and the first quality parameter obtained in the previous period; judging whether the change value exceeds a preset first threshold value, and if so, triggering the determining module; if not, the coding strategy is not adjusted.
9. The apparatus of claim 7, wherein the determining module is specifically configured to determine, according to a predetermined correspondence between each second quality parameter and a code rate, a candidate code rate corresponding to the first quality parameter; determining a candidate congestion coefficient corresponding to the first quality parameter according to the corresponding relation between each second quality parameter and the congestion coefficient, which is determined in advance; and taking the product of the candidate code rate and the candidate congestion coefficient as a target code rate.
10. The apparatus of claim 9, wherein the apparatus further comprises:
the updating module is used for acquiring a congestion coefficient updating instruction carrying a second quality parameter and a corresponding updated congestion coefficient when receiving the congestion coefficient updating instruction; and replacing the congestion coefficient corresponding to the second quality parameter with the updated congestion coefficient.
11. The apparatus according to claim 10, wherein the updating module is specifically configured to determine that a congestion coefficient update instruction is received when a change value of the data amount sent within two adjacent set time lengths exceeds a preset second threshold, and determine a ratio of the data amount sent within a current unit time length to a code rate corresponding to the second quality parameter as the updated congestion coefficient; or when a congestion coefficient updating instruction sent by other electronic equipment in a preset area is received, acquiring the congestion coefficient updating instruction carrying the second quality parameter and the corresponding updated congestion coefficient.
12. The apparatus of claim 11, wherein the apparatus further comprises:
and the sending module is used for carrying the updated congestion coefficient and the corresponding second quality parameter in a congestion coefficient updating instruction and sending the congestion coefficient updating instruction to other electronic equipment in the preset area.
13. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 6 when executing a program stored in the memory.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1-6.
CN202110597481.9A 2021-05-31 2021-05-31 Code rate adjusting method and device, electronic equipment and storage medium Active CN113315773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110597481.9A CN113315773B (en) 2021-05-31 2021-05-31 Code rate adjusting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110597481.9A CN113315773B (en) 2021-05-31 2021-05-31 Code rate adjusting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113315773A true CN113315773A (en) 2021-08-27
CN113315773B CN113315773B (en) 2022-08-12

Family

ID=77376147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110597481.9A Active CN113315773B (en) 2021-05-31 2021-05-31 Code rate adjusting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113315773B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257880A (en) * 2022-01-10 2022-03-29 百果园技术(新加坡)有限公司 Code rate strategy selection method and device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016050145A1 (en) * 2014-09-30 2016-04-07 阿里巴巴集团控股有限公司 Method and apparatus for adjusting encoding parameters
WO2017140230A1 (en) * 2016-02-15 2017-08-24 中兴通讯股份有限公司 Method and device for adjusting target code rate
CN109040801A (en) * 2018-07-19 2018-12-18 北京达佳互联信息技术有限公司 Media code rate by utilizing adaptive approach, device, computer equipment and storage medium
CN109036444A (en) * 2018-08-21 2018-12-18 京信通信系统(中国)有限公司 Speech encoding rate method of adjustment, device, computer storage medium and equipment
CN110149167A (en) * 2019-05-05 2019-08-20 Oppo广东移动通信有限公司 Method and device for dynamically adjusting codes, mobile terminal and storage medium
CN110290428A (en) * 2019-06-26 2019-09-27 腾讯科技(深圳)有限公司 A kind of jamming control method, device, terminal and storage medium
WO2019242620A1 (en) * 2018-06-21 2019-12-26 深圳市道通智能航空技术有限公司 Data transmission control method, information sending end, receiving end and aircraft image transmission system
CN111010576A (en) * 2019-12-18 2020-04-14 腾讯科技(深圳)有限公司 Data processing method and related equipment
CN111246209A (en) * 2020-01-20 2020-06-05 北京字节跳动网络技术有限公司 Adaptive encoding method, apparatus, electronic device, and computer storage medium
CN111491201A (en) * 2020-04-08 2020-08-04 深圳市昊一源科技有限公司 Method for adjusting video code stream and video frame loss processing method
CN112422356A (en) * 2019-08-22 2021-02-26 腾讯科技(深圳)有限公司 Method and device for determining network state

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016050145A1 (en) * 2014-09-30 2016-04-07 阿里巴巴集团控股有限公司 Method and apparatus for adjusting encoding parameters
WO2017140230A1 (en) * 2016-02-15 2017-08-24 中兴通讯股份有限公司 Method and device for adjusting target code rate
WO2019242620A1 (en) * 2018-06-21 2019-12-26 深圳市道通智能航空技术有限公司 Data transmission control method, information sending end, receiving end and aircraft image transmission system
CN109040801A (en) * 2018-07-19 2018-12-18 北京达佳互联信息技术有限公司 Media code rate by utilizing adaptive approach, device, computer equipment and storage medium
WO2020015678A1 (en) * 2018-07-19 2020-01-23 北京达佳互联信息技术有限公司 Media code rate self-adaptation method and apparatus, computer device, and storage medium
CN109036444A (en) * 2018-08-21 2018-12-18 京信通信系统(中国)有限公司 Speech encoding rate method of adjustment, device, computer storage medium and equipment
CN110149167A (en) * 2019-05-05 2019-08-20 Oppo广东移动通信有限公司 Method and device for dynamically adjusting codes, mobile terminal and storage medium
CN110290428A (en) * 2019-06-26 2019-09-27 腾讯科技(深圳)有限公司 A kind of jamming control method, device, terminal and storage medium
CN112422356A (en) * 2019-08-22 2021-02-26 腾讯科技(深圳)有限公司 Method and device for determining network state
CN111010576A (en) * 2019-12-18 2020-04-14 腾讯科技(深圳)有限公司 Data processing method and related equipment
CN111246209A (en) * 2020-01-20 2020-06-05 北京字节跳动网络技术有限公司 Adaptive encoding method, apparatus, electronic device, and computer storage medium
CN111491201A (en) * 2020-04-08 2020-08-04 深圳市昊一源科技有限公司 Method for adjusting video code stream and video frame loss processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257880A (en) * 2022-01-10 2022-03-29 百果园技术(新加坡)有限公司 Code rate strategy selection method and device, electronic equipment and storage medium
CN114257880B (en) * 2022-01-10 2023-11-17 百果园技术(新加坡)有限公司 Code rate policy selection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113315773B (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN106330757B (en) Flow control method and device
CN108092755B (en) Parameter adjusting method and device
JP6201031B2 (en) Adaptive use of receiver diversity
CN104471983A (en) Method and apparatus for network traffic offloading
CN110062450B (en) Method, device and equipment for saving energy consumption of 5G base station and readable storage medium
CN101617244A (en) The improved load that is used for the wireless network sub-district is estimated
CN108174413B (en) Parameter adjusting method and device
CN104968013A (en) Method, equipment and system for adjusting feedback cycle of channel quality indicator (CQI)
US9307428B2 (en) Estimating available cell capacity based on monitored network data
CN113315773B (en) Code rate adjusting method and device, electronic equipment and storage medium
US20180376355A1 (en) Service optimization processing method, device, and system
EP3366060B1 (en) Allocating radio resources in a cellular network
CN108768589B (en) Method and device for adjusting initial MCS configuration
CN111769900A (en) Method and device for scheduling channel state information reference signal
CN113453145B (en) Method for predicting air interface state and wireless coverage equipment
CN113542215B (en) Method and related device for improving streaming media transmission performance
CN107347196B (en) Method and device for determining cell congestion
CN111355557B (en) Method and device for adjusting Modulation and Coding Scheme (MCS)
CN103096481A (en) Distribution method and device of packet data information channels
JP4565444B2 (en) Power allocation apparatus and method for packet data service in a mobile communication system {PowerAllocationApparatus and MethodforPacketDataServicesInMobileCommunicationSystems}
CN108174414B (en) Parameter adjusting method and device
JP6142195B2 (en) Wireless communication system, wireless base station, wireless communication method, and program
KR20190031766A (en) Apparatus and method for adjusting mobile resource
CN115297536B (en) Power control method, device and storage medium
CN112671693B (en) Video data compression method, device, storage medium and base station

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