CN112351250B - Coding parameter adjustment method, device and equipment and storage medium - Google Patents

Coding parameter adjustment method, device and equipment and storage medium Download PDF

Info

Publication number
CN112351250B
CN112351250B CN202011133531.XA CN202011133531A CN112351250B CN 112351250 B CN112351250 B CN 112351250B CN 202011133531 A CN202011133531 A CN 202011133531A CN 112351250 B CN112351250 B CN 112351250B
Authority
CN
China
Prior art keywords
network traffic
network
traffic
period
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011133531.XA
Other languages
Chinese (zh)
Other versions
CN112351250A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202011133531.XA priority Critical patent/CN112351250B/en
Publication of CN112351250A publication Critical patent/CN112351250A/en
Application granted granted Critical
Publication of CN112351250B publication Critical patent/CN112351250B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention provides a coding parameter adjusting method, a device, equipment and a storage medium, which can enable electronic equipment to more reasonably utilize network traffic. The method is applied to the electronic equipment and comprises the following steps: obtaining first network traffic consumed in a current traffic consumption statistical period; predicting second network traffic consumed by the electronic device in a specified time period according to the first network traffic, wherein the specified time period comprises the current traffic consumption statistical period; and under the condition that the second network traffic exceeds a preset third network traffic, the third network traffic is the upper limit of the network traffic which is allowed to be consumed by the electronic equipment in the appointed time period, and the current coding parameters of the electronic equipment are adjusted according to the first network traffic and the third network traffic so as to control the network traffic which is consumed by the electronic equipment in the appointed time period not to exceed the third network traffic.

Description

Coding parameter adjustment method, device and equipment and storage medium
Technical Field
The present invention relates to the field of video monitoring technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting coding parameters.
Background
For some electronic devices, such as NVR (collectively Network Video Recorder, i.e. network video recorder) and video camera, a mobile communication module is provided, through which network communication is performed with an external platform. Taking NVR as an example, external platforms to be communicated include a monitoring server, a camera, a mobile terminal, and the like. The mobile communication module may include a 4G module applying a 4G communication technology and/or a 5G module applying a 5G communication technology.
However, the above network communication consumes network traffic. For the electronic device, the electronic device has a corresponding package traffic range in each designated time period (such as monthly, weekly, etc.), and once the consumed network traffic exceeds the upper limit of the package traffic range corresponding to the designated time period when the designated time period is not finished, the problem that the network cannot be used/has network failure/network interruption is caused by arrears, so that the electronic device cannot be called remotely.
Disclosure of Invention
In view of this, the present invention provides a method, apparatus, device and storage medium for adjusting coding parameters, which can make electronic devices more reasonably utilize network traffic.
The first aspect of the present invention provides a coding parameter adjustment method, which is applied to an electronic device, and includes:
Obtaining first network traffic consumed in a current traffic consumption statistical period;
predicting second network traffic consumed by the electronic device in a specified time period according to the first network traffic, wherein the specified time period comprises the current traffic consumption statistical period;
and under the condition that the second network traffic exceeds a preset third network traffic, the third network traffic is the upper limit of the network traffic which is allowed to be consumed by the electronic equipment in the appointed time period, and the current coding parameters of the electronic equipment are adjusted according to the first network traffic and the third network traffic so as to control the network traffic which is consumed by the electronic equipment in the appointed time period not to exceed the third network traffic.
According to one embodiment of the present invention, predicting, according to the first network traffic, the second network traffic consumed by the electronic device in a specified period of time during which the current traffic consumption statistics period is located includes:
obtaining fourth network traffic consumed in the specified time period when the current traffic consumption statistics period ends;
predicting a fifth network flow consumed in a first duration according to the first network flow, wherein the first duration is as follows: a duration from a point in time when the current flow consumption statistics period ends to a point in time when the specified period ends;
And determining the second network traffic according to the fourth network traffic and the fifth network traffic.
In accordance with one embodiment of the present invention,
the first time period includes: n flow consumption statistics periods; n is greater than or equal to 1;
the predicting the fifth network traffic consumed in the first duration according to the first network traffic includes:
determining a product of the N and the first network traffic as the fifth network traffic.
According to one embodiment of the present invention, adjusting the current coding parameters of the electronic device according to the first network traffic and the third network traffic includes:
predicting a sixth network traffic consumed by the electronic device when performing a specified operation in each subsequent traffic consumption statistics period according to the third network traffic and the specified network traffic in the obtained first network traffic; the appointed network flow is the network flow consumed by the electronic equipment when the appointed operation is executed in the current flow consumption statistical period; the subsequent statistics of each flow consumption period is within the specified time period;
determining a target coding parameter when the electronic equipment executes the specified operation according to the sixth network flow;
And adjusting the coding parameters which correspond to the specified operation and are configured by the electronic equipment according to the target coding parameters.
In accordance with one embodiment of the present invention,
the specified operation is at least one of a preview operation and a playback operation.
In accordance with one embodiment of the present invention,
the specified operation is a preview operation;
the determining, according to the sixth network traffic, a target encoding parameter when the electronic device performs the specified operation includes:
predicting a target operation duration of the electronic device for executing the operation of the same type as the specified operation in each subsequent flow consumption statistical period according to the obtained operation duration of the electronic device for executing the specified operation in the second duration; the second duration is: a duration from a point in time at which the specified time period starts to a point in time at which the current flow consumption statistics period ends;
and determining the target coding parameter according to the ratio of the sixth network flow to the target operation duration.
In accordance with one embodiment of the present invention,
the target coding parameters include: the electronic equipment performs a target code rate for encoding data when performing a specified operation in each subsequent flow consumption statistical period;
The electronic equipment is provided with a plurality of data transmission channels; the adjusting the coding parameters configured by the electronic device and corresponding to the specified operation according to the target coding parameters includes:
and determining a target channel code rate corresponding to each data transmission channel in the electronic equipment according to the target code rate, and respectively adjusting the current channel code rate which is configured by each data transmission channel in the electronic equipment and corresponds to the specified operation to be the corresponding target channel code rate.
According to an embodiment of the present invention, after the current channel code rates corresponding to the specified operations, in which the respective data transmission channels have been configured, in the electronic device are respectively adjusted to the corresponding target channel code rates, the method further includes:
and for each data transmission channel in the electronic equipment, searching a target channel frame rate and a target channel resolution corresponding to a target channel code rate corresponding to the data transmission channel in a corresponding relation of the code rate-frame rate-resolution of the local record, and respectively adjusting the configured current channel frame rate and the configured current channel resolution of the data transmission channel corresponding to the designated operation into the target channel frame rate and the target channel resolution.
A second aspect of the present invention provides an encoding parameter adjusting apparatus, which is applied to an electronic device, including:
the first network traffic obtaining module is used for obtaining the first network traffic consumed in the current traffic consumption statistical period;
a second network traffic prediction module, configured to predict, according to the first network traffic, a second network traffic consumed by the electronic device in a specified time period, where the specified time period includes the current traffic consumption statistical period;
and the coding parameter adjustment module is used for adjusting the current coding parameters of the electronic equipment according to the first network traffic and the third network traffic when the second network traffic exceeds a preset third network traffic, wherein the third network traffic is the upper limit of the network traffic which is allowed to be consumed by the electronic equipment in the appointed time period, so as to control the network traffic consumed by the electronic equipment in the appointed time period not to exceed the third network traffic.
According to one embodiment of the present invention, the second network traffic prediction module predicts, according to the first network traffic, a second network traffic consumed by the electronic device in a specified period of time in which the current traffic consumption statistics period is located, and specifically is configured to:
Obtaining fourth network traffic consumed in the specified time period when the current traffic consumption statistics period ends;
predicting a fifth network flow consumed in a first duration according to the first network flow, wherein the first duration is as follows: a duration from a point in time when the current flow consumption statistics period ends to a point in time when the specified period ends;
and determining the second network traffic according to the fourth network traffic and the fifth network traffic.
In accordance with one embodiment of the present invention,
the first time period includes: n flow consumption statistics periods; n is greater than or equal to 1;
the second network traffic prediction module predicts a fifth network traffic consumed in a first duration according to the first network traffic, and is specifically configured to:
determining a product of the N and the first network traffic as the fifth network traffic.
According to an embodiment of the present invention, the encoding parameter adjustment module is specifically configured to:
predicting a sixth network traffic consumed by the electronic device when performing a specified operation in each subsequent traffic consumption statistics period according to the third network traffic and the specified network traffic in the obtained first network traffic; the appointed network flow is the network flow consumed by the electronic equipment when the appointed operation is executed in the current flow consumption statistical period; the subsequent statistics of each flow consumption period is within the specified time period;
Determining a target coding parameter when the electronic equipment executes the specified operation according to the sixth network flow;
and adjusting the coding parameters which correspond to the specified operation and are configured by the electronic equipment according to the target coding parameters.
In accordance with one embodiment of the present invention,
the specified operation is at least one of a preview operation and a playback operation.
In accordance with one embodiment of the present invention,
the specified operation is a preview operation;
the encoding parameter adjustment module is specifically configured to, when determining, according to the sixth network traffic, a target encoding parameter when the electronic device performs the specified operation:
predicting a target operation duration of the electronic device for executing the operation of the same type as the specified operation in each subsequent flow consumption statistical period according to the obtained operation duration of the electronic device for executing the specified operation in the second duration; the second duration is: a duration from a point in time at which the specified time period starts to a point in time at which the current flow consumption statistics period ends;
and determining the target coding parameter according to the ratio of the sixth network flow to the target operation duration.
In accordance with one embodiment of the present invention,
the target coding parameters include: the electronic equipment performs a target code rate for encoding data when performing a specified operation in each subsequent flow consumption statistical period;
the electronic equipment is provided with a plurality of data transmission channels; the encoding parameter adjustment module is specifically configured to, when adjusting the encoding parameter configured by the electronic device and corresponding to the specified operation according to the target encoding parameter:
and determining a target channel code rate corresponding to each data transmission channel in the electronic equipment according to the target code rate, and respectively adjusting the current channel code rate which is configured by each data transmission channel in the electronic equipment and corresponds to the specified operation to be the corresponding target channel code rate.
According to an embodiment of the present invention, after the coding parameter adjustment module adjusts the current channel code rates corresponding to the specified operations, which have been configured for each data transmission channel in the electronic device, to the corresponding target channel code rates, the coding parameter adjustment module is further configured to:
and for each data transmission channel in the electronic equipment, searching a target channel frame rate and a target channel resolution corresponding to a target channel code rate corresponding to the data transmission channel in a corresponding relation of the code rate-frame rate-resolution of the local record, and respectively adjusting the configured current channel frame rate and the configured current channel resolution of the data transmission channel corresponding to the designated operation into the target channel frame rate and the target channel resolution.
A third aspect of the invention provides an electronic device comprising a processor and a memory; the memory stores a program that can be called by the processor; wherein the processor implements the coding parameter adjustment method as described in the foregoing embodiments when executing the program.
A fourth aspect of the present invention provides a machine-readable storage medium having stored thereon a program which, when executed by a processor, implements a coding parameter adjustment method as described in the foregoing embodiments.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, based on the first network traffic consumed in the current traffic consumption statistics period, the second network traffic consumed by the electronic equipment in the appointed time period where the current traffic consumption statistics period is located can be predicted, and when the second network traffic exceeds the preset third network traffic, namely, the upper limit of the network traffic allowed to be consumed by the electronic equipment in the appointed time period, the problem that if the data to be transmitted is continuously encoded according to the configured current encoding parameters of the electronic equipment, the actually consumed network traffic of the electronic equipment in the appointed time period exceeds the upper limit of the network traffic, the network cannot be used/failed/interrupted due to arrears is solved, so that the current encoding parameters of the electronic equipment are adjusted according to the first network traffic and the third network traffic, the network traffic consumed by the electronic equipment in the appointed time period is controlled not to exceed the third network traffic, the electronic equipment can be more reasonably utilized, the problem that the network problem caused by arrears is avoided, and the problem that the electronic equipment cannot be remotely invoked is avoided.
Drawings
FIG. 1 is a flowchart of a coding parameter adjustment method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a coding parameter adjustment method according to another embodiment of the present invention;
FIG. 3 is a block diagram illustrating an encoding parameter adjusting apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various devices, these information should not be limited by these terms. These terms are only used to distinguish one device from another of the same type. For example, a first device could also be termed a second device, and, similarly, a second device could also be termed a first device, without departing from the scope of the present invention. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
In order to make the description of the present invention clearer and more concise, some technical terms of the present invention are explained below:
the 4G communication technology is a fourth generation mobile information system, is a better improvement on the 3G technology, has a greater advantage compared with the 3G communication technology, and combines the WLAN technology and the 3G communication technology well, so that the transmission speed of images is faster, and the quality and the image of the transmitted images are clearer.
The 5G communication technology is a fifth Generation mobile communication technology (English: 5th Generation mobile networks or 5th Generation wireless systems, 5th-Generation, 5G or 5G technology for short) which is the latest Generation cellular mobile communication technology, and is an extension following 4G (LTE-A, wiMax), 3G (UMTS, LTE) and 2G (GSM) systems.
The following describes the coding parameter adjustment method according to the embodiments of the present invention in more detail, but the method is not limited thereto.
In one embodiment, referring to fig. 1, a coding parameter adjustment method is applied to an electronic device, and the method may include the steps of:
s100: obtaining first network traffic consumed in a current traffic consumption statistical period;
s200: predicting second network traffic consumed by the electronic device in a specified time period according to the first network traffic, wherein the specified time period comprises the current traffic consumption statistical period;
s300: and under the condition that the second network traffic exceeds a preset third network traffic, the third network traffic is the upper limit of the network traffic which is allowed to be consumed by the electronic equipment in the appointed time period, and the current coding parameters of the electronic equipment are adjusted according to the first network traffic and the third network traffic so as to control the network traffic which is consumed by the electronic equipment in the appointed time period not to exceed the third network traffic.
In the embodiment of the invention, the execution main body of the coding parameter adjustment method is electronic equipment. The electronic device may be provided with a mobile communication module for implementing network communication, and the mobile communication module may be, for example, a 4G module and/or a 5G module, which is not limited to this, and may be other modules such as a 3G module.
The electronic device may be, for example, an NVR, but not limited to, but may be any other device that needs to perform network communication through a mobile communication module, such as a camera device. In the following embodiments, an electronic device is described as an NVR, that is, the electronic device may have a basic video recording, storing and forwarding function, a remote preview function based on network communication, a remote playback function, and the like, which, of course, should not be limited thereto.
The electronic device may obtain package traffic information for the mobile communication module in advance, where the package traffic information includes, for example, a third network traffic, and the third network traffic is an upper limit of network traffic that the electronic device is allowed to consume in a specified period of time. The specified period of time may be, for example, one month, one week, or the like, depending on the time that the visible flow is restricted to use.
Specifically, the package flow information may be obtained when the electronic device is first powered on, and may be input by a user, or may be obtained from a vendor platform corresponding to the mobile communication module. For example, in the first power-on process, a flow management interface may be displayed; the user may input package traffic information (e.g., third network traffic corresponding to a specified time period) according to the guidance of the traffic management interface, or may automatically obtain package traffic information from the carrier platform by the electronic device after the automatic obtaining option is selected. Of course, if automatic acquisition from the carrier platform fails, the user may be prompted to enter package traffic information.
Optionally, coding parameters to be adjusted can be set in the flow management interface, for example, the coding parameters can include code rate, frame rate, resolution, etc., multiple selection modes can be adopted, and the code rate can be selected and can not be cancelled in default. If only the code rate is selected, the electronic equipment adjusts the code rate subsequently; if other coding parameters are selected in addition to the code rate, the electronic device may then adjust for the other coding parameters as well. The other coding parameters may be adjusted in combination with the image optimization effect.
In addition, a flow limiting option can be set in the flow management interface, and under the condition that the flow limiting option is selected, the electronic equipment can automatically adjust coding parameters according to the use condition of the network flow later so as to restrict the use of the network flow by the electronic equipment.
Of course, the flow management interface is not limited to be displayed in the first power-on process, and after the power-on, the user can open the flow management interface through a menu, so that the user can modify corresponding options, such as package flow information, under the condition of subsequently replacing the flow packages.
The network traffic in the embodiment of the present invention refers to the network traffic consumed by mobile communication, that is, the network traffic consumed by network communication through the mobile communication module, such as the 4G network traffic and the 5G network traffic.
In step S100, a first network traffic consumed in a current traffic consumption statistics period is obtained.
The flow consumption statistical period may be, for example, one day, and the current flow consumption statistical period is, accordingly, the current day. I.e. the first network traffic is the network traffic consumed by the electronic device for network communication in the current traffic consumption statistics period.
In this way, the electronic device may execute the encoding parameter adjustment method according to the embodiment of the present invention with a day period, and the step S100 may be executed when the statistical time of the current traffic consumption statistical period arrives. The statistical time may be, for example, 24 points per day, and the current traffic consumption statistical period may be, for example, the time of day from 24 points yesterday to 24 points today, and the above-described axis S100 is executed when the 24 points today are reached.
The first network traffic may be obtained by two methods: in the first mode, the network traffic consumed by the electronic device at the end of the current traffic consumption statistics period may be acquired from the operator and recorded locally, and the difference between the network traffic acquired this time (the network traffic consumed by the day today) and the network traffic acquired last time (the network traffic consumed by the day of the year, for example) may be calculated as the first network traffic. In a second manner, traffic consumed during a current traffic consumption statistics period may be counted locally at the electronic device (e.g., by a kernel or application). Of course, the method of acquiring the first network traffic is not limited thereto.
In step S200, predicting a second network traffic consumed by the electronic device in a specified time period according to the first network traffic, where the specified time period includes the current traffic consumption statistical period.
The specified time period may be, for example, a time period of one month including the current traffic consumption statistical period, for example, the current traffic consumption statistical period is, for example, from 0 point of 7 th month 15 in 2020 to 24 point of 15 th month 7 in 2020, and the specified time period may be, for example, the whole month time period from 0 point of 1 th month 7 in 2020 to 24 point of 31 th month 7 in 2020. Correspondingly, the second network traffic consumed by the electronic device in the specified time period is the network traffic which can be used in the whole month from 0 point of 7 th month 1 st day in 2020 to 24 points of 31 th month 7 th in 2020. Of course, this is merely an example for easy understanding, and the present invention is not limited thereto.
In one example, the specified time period includes K traffic consumption statistics periods; in step S200, when predicting, according to the first network traffic, the second network traffic consumed by the electronic device in the specified period of time in which the current traffic consumption statistics period is located, the product of the first network traffic and K may be determined as the second network traffic.
In another example, in step S200, the predicting, according to the first network traffic, the second network traffic consumed by the electronic device in the specified period of time in which the current traffic consumption statistics period is located may include the following steps:
s201: obtaining fourth network traffic consumed in the specified time period when the current traffic consumption statistics period ends;
s202: predicting a fifth network flow consumed in a first duration according to the first network flow, wherein the first duration is as follows: a duration from a point in time when the current flow consumption statistics period ends to a point in time when the specified period ends;
s203: and determining the second network traffic according to the fourth network traffic and the fifth network traffic.
Taking a given period of time as an example in a month including a current traffic consumption statistical period, the current traffic consumption statistical period is from 0 point of 7 th month 15 in 2020 to 24 point of 7 th month 15 in 2020, and the fourth network traffic is the network traffic consumed by the electronic device in the period from 0 point of 7 th month 1 to 24 point of 7 th month 15 in 2020. The fourth network traffic may also be obtained from an operator platform or obtained by automatic statistics of the electronic device, which is not limited in particular.
Accordingly, the first duration may be a duration of a period from 24 th day of 7 months 15 in 2020 to 24 th day of 31 months 7 in 2020, and the fifth network traffic is a predicted network traffic that may be consumed by the electronic device in the period from 24 th day of 7 months 15 in 2020 to 24 th day of 31 months 31 in 2020.
Optionally, the first time length includes: n flow consumption statistics periods; n is greater than or equal to 1; the predicting the fifth network traffic consumed in the first duration according to the first network traffic includes: determining a product of the N and the first network traffic as the fifth network traffic.
Stated another way, for example, for a given period of time for a total of C days, where the current flow consumption statistics period is day D, then N is effectively equal to the difference between C and D. Then the fifth network traffic is: (C-D) Xn, wherein Xn is the first network traffic. Of course, other operation modes are also possible, for example, fine tuning can be performed based on the product of N and the first network traffic.
And on the basis of determining the fourth network traffic and the fifth network traffic, predicting the second network traffic consumed by the electronic equipment in the appointed time period. For example, the sum of the fourth network traffic and the fifth network traffic may be determined as the second network traffic, i.e. the second network traffic is (C-D) ×xn+xt, xt being the fourth network traffic. Of course, other operation modes are also possible, for example, fine tuning can be performed based on the sum of the fourth network traffic and the fifth network traffic.
In this example, the fourth network traffic is the actual consumed network traffic, the fifth network traffic is the estimated network traffic, and the two network traffic are combined to determine the second network traffic, which may be closer to the actual traffic usage than the pure estimation.
It will be appreciated that the two ways of determining the second network traffic described above are only preferred and should not be taken as limiting.
In step S300, when the second network traffic exceeds a preset third network traffic, the third network traffic is an upper limit of the network traffic allowed to be consumed by the electronic device in the specified time period, and the current coding parameters of the electronic device are adjusted according to the first network traffic and the third network traffic, so as to control the network traffic consumed by the electronic device in the specified time period not to exceed the third network traffic.
Assuming that the third network traffic in the current package traffic information is Y, the second network traffic is (C-D) ×xn+xt, if (C-D) ×xn+xt is greater than Y, it is considered that the data is continuously encoded according to the current encoding parameter configured by the electronic device and the encoded data is transmitted, the third network traffic in the specified period of time will not meet the subsequent network communication requirement of the electronic device, and a phenomenon that the network traffic usage exceeds the upper limit of the allowed consumed network traffic is highly likely to occur, and further, the electronic device cannot be remotely invoked due to the arrears and the halts of the electronic device, so that the current encoding parameter of the electronic device needs to be adjusted.
The current coding parameters of the electronic equipment can be adjusted according to the first network traffic and the third network traffic so as to control the network traffic consumed by the electronic equipment in the specified time period not to exceed the third network traffic. Since the second network traffic currently exceeds the preset third network traffic, the adjustment of the current encoding parameter is intended to reduce the network traffic that the electronic device needs to consume for a first time period (i.e., the duration from the point in time when the current traffic consumption statistics period ends to the point in time when the specified period ends).
In the following, a more specific example will be described to describe the coding parameter adjustment method according to the embodiment of the present invention, referring to fig. 2, first, a third network traffic (for example, may be acquired when the electronic device is started up or when a user instruction is received) may be acquired, where the third network traffic is an upper limit of network traffic that is allowed to be consumed by the electronic device in the specified period of time; then, when the statistical time of the current flow consumption statistical period arrives, for example, when the statistical time arrives at 24 days of 7 months and 15 days in 2020, obtaining a first network flow consumed in the current flow consumption statistical period, and predicting a second network flow consumed by the electronic device in a specified time period in which the current flow consumption statistical period is located according to the first network flow, for example, predicting a network flow consumed in the whole month of 2020, 7 months and 7 months according to the network flow consumed in the whole day of 15 days in 2020; then, checking whether the second network flow exceeds a preset third network flow, if not, waiting for the arrival of the statistical moment of the next flow consumption statistical period; and if so, adjusting the current coding parameters of the electronic equipment according to the first network flow and the third network flow, and waiting for the arrival of the statistical moment of the next flow consumption statistical period.
In the embodiment of the invention, based on the first network traffic consumed in the current traffic consumption statistics period, the second network traffic consumed by the electronic equipment in the appointed time period where the current traffic consumption statistics period is located can be predicted, and when the second network traffic exceeds the preset third network traffic, namely, the upper limit of the network traffic allowed to be consumed by the electronic equipment in the appointed time period, the problem that if the data to be transmitted is continuously encoded according to the configured current encoding parameters of the electronic equipment, the actually consumed network traffic of the electronic equipment in the appointed time period exceeds the upper limit of the network traffic, the network cannot be used/failed/interrupted due to arrears is solved, so that the current encoding parameters of the electronic equipment are adjusted according to the first network traffic and the third network traffic, the network traffic consumed by the electronic equipment in the appointed time period is controlled not to exceed the third network traffic, the electronic equipment can be more reasonably utilized, the problem that the network problem caused by arrears is avoided, and the problem that the electronic equipment cannot be remotely invoked is avoided.
The current NVR does not adopt any means to adjust the coding parameters, nor does it consider how to reasonably utilize network traffic to avoid arrearages. If the network problem caused by arrears occurs in the NVR, the use experience of a user is not only affected, but also the NVR is generally placed in a place which is difficult to reach by maintenance personnel, and when a fault which cannot be called remotely is caused by the network problem, the maintenance personnel cannot confirm what fault is specifically generated in the NVR through remote communication, and more manpower is required to check the cause of the fault.
The embodiment of the invention can be applied to NVR to control the NVR to adaptively adjust the coding parameters according to the service condition of the network traffic so as to more reasonably utilize the network traffic, and avoid the network problem caused by arrearage, thereby avoiding the problem that the network problem cannot be called remotely.
In one embodiment, in step S300, adjusting the current coding parameter of the electronic device according to the first network traffic and the third network traffic may include the following steps:
s301: predicting a sixth network traffic consumed by the electronic device when performing a specified operation in each subsequent traffic consumption statistics period according to the third network traffic and the specified network traffic in the obtained first network traffic; the appointed network flow is the network flow consumed by the electronic equipment when the appointed operation is executed in the current flow consumption statistical period; the subsequent statistics of each flow consumption period is within the specified time period;
s302: determining a target coding parameter when the electronic equipment executes the specified operation according to the sixth network flow;
s303: and adjusting the coding parameters which correspond to the specified operation and are configured by the electronic equipment according to the target coding parameters.
Optionally, the specified operation is at least one of a preview operation and a playback operation. The preview operation may refer to an operation of transmitting a video stream for preview to an external device, and the playback operation may refer to an operation of transmitting a video stream for playback to an external device.
When the electronic device performs these operations, it needs to encode the video stream according to the configured encoding parameters, and send the encoded video stream to the external device, where the encoding parameters determine the size of the data amount of the video stream to be sent. Therefore, by adjusting the coding parameters, the amount of data transmitted, and thus the consumed network traffic, can be adjusted.
Taking the designated operation as the preview operation as an example, the sixth network traffic consumed by the electronic device when the designated operation is executed in each subsequent traffic consumption statistics period is the network traffic consumed by the electronic device when the preview operation is executed in each subsequent traffic consumption statistics period.
Optionally, taking the designating operation as the preview operation as an example, in step S301, predicting, according to the third network traffic and the designated network traffic in the obtained first network traffic, a sixth network traffic consumed by the electronic device when performing the designating operation in each subsequent traffic consumption statistics period may include the following steps:
S3011: determining a seventh network flow which is remained and can be consumed by the electronic equipment in each flow consumption statistical period after the electronic equipment according to the third network flow and the fourth network flow which is obtained and consumed in the appointed time period when the current flow consumption statistical period is ended;
s3012: predicting eighth network traffic consumed by the electronic device when performing operations other than the specified operation in each subsequent traffic consumption statistics period according to the specified network traffic;
s3013: and determining the sixth network traffic according to the seventh network traffic and the eighth network traffic.
In step S3011, a ratio of a difference between the third network traffic and the fourth network traffic to N, where N is the number of subsequent traffic consumption statistics periods (i.e., the number of traffic consumption statistics periods included in the first period) may be determined as the seventh network traffic. Taking a given period of time as an example of a month in which the current traffic consumption statistics period is located, the current traffic consumption statistics period is from 0 point in the year 2020, 7, 15, and 24 points in the year 2020, 7, 15, and 24 points in the year 2020, and the seventh network traffic is the ratio of the remaining consumable network traffic to the remaining days in the period (i.e., the first duration) from 24 points in the year 2020, 7, 15, and 24 points in the year 2020, 7, 31.
For example, the third network traffic is Y, the fourth network traffic is Xt, N is (C-D), and the seventh network traffic is (Y-Xt)/(C-D).
In step S3012, in the case where the specified operation is a preview operation, other operations may include, for example, a playback operation, a network protocol operation, and an unknown operation that brings about unknown traffic loss. Network protocol operations may refer to operations necessary for some network communications performed in compliance with a network protocol, such as operations to establish a communication connection, and the like.
The electronic device may count the network traffic consumed when executing the preview operation, the playback operation, and the network protocol operation, and may not count the unknown traffic loss caused by the unknown operation, but may be determined according to the network traffic consumed when executing the preview operation, the playback operation, and the network protocol operation.
For example, assuming that the network traffic consumed by the electronic device when performing the specified operation in the current traffic consumption statistics period (i.e., the specified network traffic) is X1, the network traffic consumed by the electronic device when performing the playback operation is Xp, and the network traffic consumed by the electronic device when performing the network protocol operation is Xc, in combination with the first network traffic consumed by the electronic device in the current traffic consumption statistics period, the network traffic b consumed by the electronic device when performing the unknown operation in the current traffic consumption statistics period can be calculated by the following formula:
Xn=xl+xp+xc+b, since Xl, xp, xc, xn is known, the value of b can be obtained.
Then the predicted eighth network traffic may be, for example, (xp+xc+b). Accordingly, in step S3013, a sixth network traffic may be determined according to the seventh network traffic and the eighth network traffic, for example, the seventh network traffic may be (Y-Xt)/(C-D), and the sixth network traffic may be (Y-Xt)/(C-D) - (xp+xc+b).
Of course, the above is just one way of determining the sixth network traffic, and other ways are possible, such as:
the electronic device may count the network traffic X1' consumed when the specified operation is performed in each previous traffic consumption statistics period, the network traffic Xp ' consumed when the playback operation is performed, the network traffic Xc ' consumed when the network protocol operation is performed, and calculate the network traffic b ' consumed when the unknown operation is performed in each previous traffic consumption statistics period in combination with the network traffic Xn ' consumed in each previous traffic consumption statistics period; respectively counting the network flows Xp ', xc ', b ' in each period according to a set counting algorithm, wherein the counting result is used as the network flow Xp-, consumed when playback operation is executed, the network flow Xc-, consumed when network protocol operation is executed and the network flow b-, consumed when unknown operation is executed in each flow consumption counting period; on the basis of this, in step S3013, the sixth network traffic may be (Y-Xt)/(C-D) - (Xp) - (Xc) - (b-).
Alternatively, the statistical algorithm may be, for example, a mean algorithm or a weighted average algorithm, which is not limited in particular.
In step S302, a target encoding parameter when the electronic device executes the specified operation is determined according to the sixth network traffic.
In case the network traffic that is consumable during each traffic consumption statistics period (i.e. the sixth network traffic) has been determined afterwards, the target encoding parameters at which the electronic device performs the specified operation can be determined accordingly.
Optionally, taking the designating operation as a preview operation, in step S302, the determining, according to the sixth network traffic, the target encoding parameter when the electronic device performs the designating operation may include the following steps:
s3021: predicting a target operation duration of the electronic device for executing the operation of the same type as the specified operation in each subsequent flow consumption statistical period according to the obtained operation duration of the electronic device for executing the specified operation in the second duration; the second duration is: a duration from a point in time at which the specified time period starts to a point in time at which the current flow consumption statistics period ends;
s3023: and determining the target coding parameter according to the ratio of the sixth network flow to the target operation duration.
Taking the code rate as an example of the coding parameter, the relation between the code rate and the network traffic can be expressed by the formula: tl (m+a) =xl, where M is the code rate when the specified operation is performed in the current traffic consumption statistics period, T1 is the operation duration when the specified operation is performed in the current traffic consumption statistics period, X1 is the network traffic consumed when the specified operation is performed in the current traffic consumption statistics period, and given T1 and M, X1, the constant a may be obtained, where the constant a represents invalid data to be transmitted per second when the specified operation is performed, that is, the transmission loss traffic is generally more stable, so it may be represented by a constant.
In the case of solving the constant a, and predicting that the target operation duration of the electronic device for executing the operation of the same type as the specified operation in each subsequent traffic consumption statistical period is (Tl-), the target code rate may be, for example: ((Y-Xt)/(C-D) - (Xp-) - (Xc-) - (b-))/(Tl-) -a.
Of course, since there is fluctuation in the network traffic usage, the target code rate may be slightly adjusted based on ((Y-Xt)/(C-D) - (Xp) - (Xc) - (b-)/(Tl-) -a, for example, subtracting the setting constant again, so as to avoid the problem that the follow-up arrears still occur due to fluctuation.
In step S303, the encoding parameters configured by the electronic device and corresponding to the specified operation are adjusted according to the target encoding parameters.
Taking the code rate as an example, the first code rate, corresponding to the specified operation, of the electronic device, which has been configured, may be adjusted to the determined target code rate.
In one embodiment, the target encoding parameters include: the electronic device encodes data at a target code rate for performing a specified operation in each subsequent traffic consumption statistics period.
The electronic device has a plurality of data transmission channels. For example, an electronic device has L data transmission channels, L being greater than 1. More specifically, L may be 8 or 16, etc., which is not limited specifically, and depends on the actual situation of the electronic device.
Accordingly, in step S303, the adjusting, according to the target encoding parameter, the encoding parameter configured by the electronic device and corresponding to the specified operation includes:
and determining a target channel code rate corresponding to each data transmission channel in the electronic equipment according to the target code rate, and respectively adjusting the current channel code rate which is configured by each data transmission channel in the electronic equipment and corresponds to the specified operation to be the corresponding target channel code rate.
In the case of an electronic device having a plurality of data transmission channels, the calculated target code rate is the sum of the channel code rates used for all the data transmission channels, and when the code rate is adjusted, the adjustment needs to be performed for each data transmission channel.
Alternatively, the ratio of the target code rate to L may be determined as the target channel code rate corresponding to each data transmission channel. In other words, the code rate of each data transmission channel is set to be the same.
Of course, the target channel code rate corresponding to each data transmission channel in the electronic device can be determined according to the size of the data volume actually transmitted, for example, when the data volume required to be transmitted in a certain data transmission channel is larger, the corresponding target channel code rate can be higher.
In one embodiment, after the adjusting the current channel code rates of the data transmission channels in the electronic device, which correspond to the specified operations, are respectively adjusted to the corresponding target channel code rates, the method further includes:
s304: and for each data transmission channel in the electronic equipment, searching a target channel frame rate and a target channel resolution corresponding to a target channel code rate corresponding to the data transmission channel in a corresponding relation of the code rate-frame rate-resolution of the local record, and respectively adjusting the configured current channel frame rate and the configured current channel resolution of the data transmission channel corresponding to the designated operation into the target channel frame rate and the target channel resolution.
The corresponding relation of the code rate, the frame rate and the resolution can be preset in the electronic equipment, and in the corresponding relation, the frame rate and the resolution corresponding to the code rate can enable the visual effect of the transmitted video stream to be better, for example, the visual effect of the video stream to be smoother, clearer and the like under the condition of coding based on the code rate. Of course, the frame rate and resolution corresponding to the code stream are not limited in particular, and may be configured according to actual situations.
After determining a target channel code rate corresponding to a certain data transmission channel, determining a matched target channel frame rate and target channel resolution, namely, the target channel frame rate and target channel resolution corresponding to the target channel code rate in a locally recorded code rate-frame rate-resolution corresponding relationship, and respectively adjusting the current channel frame rate and the current channel resolution of the configured data transmission channel corresponding to the specified operation into the target channel frame rate and the target channel resolution, so that the visual effect of the video stream transmitted subsequently is better.
The present invention also provides an encoding parameter adjusting apparatus applied to an electronic device, referring to fig. 3, the encoding parameter adjusting apparatus 100 may include:
A first network traffic obtaining module 101, configured to obtain a first network traffic consumed in a current traffic consumption statistics period;
a second network traffic prediction module 102, configured to predict, according to the first network traffic, a second network traffic consumed by the electronic device in a specified time period, where the specified time period includes the current traffic consumption statistical period;
and the encoding parameter adjustment module 103 is configured to adjust, when the second network traffic exceeds a preset third network traffic, the third network traffic being an upper limit of network traffic allowed to be consumed by the electronic device in the specified time period, a current encoding parameter of the electronic device according to the first network traffic and the third network traffic, so as to control the network traffic consumed by the electronic device in the specified time period not to exceed the third network traffic.
In one embodiment, the second network traffic prediction module predicts, according to the first network traffic, a second network traffic consumed by the electronic device in a specified period of time in which the current traffic consumption statistics period is located, specifically for:
obtaining fourth network traffic consumed in the specified time period when the current traffic consumption statistics period ends;
Predicting a fifth network flow consumed in a first duration according to the first network flow, wherein the first duration is as follows: a duration from a point in time when the current flow consumption statistics period ends to a point in time when the specified period ends;
and determining the second network traffic according to the fourth network traffic and the fifth network traffic.
In one embodiment of the present invention, in one embodiment,
the first time period includes: n flow consumption statistics periods; n is greater than or equal to 1;
the second network traffic prediction module predicts a fifth network traffic consumed in a first duration according to the first network traffic, and is specifically configured to:
determining a product of the N and the first network traffic as the fifth network traffic.
In one embodiment, the encoding parameter adjustment module adjusts the current encoding parameter of the electronic device according to the first network traffic and the third network traffic, and is specifically configured to:
predicting a sixth network traffic consumed by the electronic device when performing a specified operation in each subsequent traffic consumption statistics period according to the third network traffic and the specified network traffic in the obtained first network traffic; the appointed network flow is the network flow consumed by the electronic equipment when the appointed operation is executed in the current flow consumption statistical period; the subsequent statistics of each flow consumption period is within the specified time period;
Determining a target coding parameter when the electronic equipment executes the specified operation according to the sixth network flow;
and adjusting the coding parameters which correspond to the specified operation and are configured by the electronic equipment according to the target coding parameters.
In one embodiment of the present invention, in one embodiment,
the specified operation is at least one of a preview operation and a playback operation.
In one embodiment of the present invention, in one embodiment,
the specified operation is a preview operation;
the encoding parameter adjustment module is specifically configured to, when determining, according to the sixth network traffic, a target encoding parameter when the electronic device performs the specified operation:
predicting a target operation duration of the electronic device for executing the operation of the same type as the specified operation in each subsequent flow consumption statistical period according to the obtained operation duration of the electronic device for executing the specified operation in the second duration; the second duration is: a duration from a point in time at which the specified time period starts to a point in time at which the current flow consumption statistics period ends;
and determining the target coding parameter according to the ratio of the sixth network flow to the target operation duration.
In one embodiment of the present invention, in one embodiment,
The target coding parameters include: the electronic equipment performs a target code rate for encoding data when performing a specified operation in each subsequent flow consumption statistical period;
the electronic equipment is provided with a plurality of data transmission channels; the encoding parameter adjustment module is specifically configured to, when adjusting the encoding parameter configured by the electronic device and corresponding to the specified operation according to the target encoding parameter:
and determining a target channel code rate corresponding to each data transmission channel in the electronic equipment according to the target code rate, and respectively adjusting the current channel code rate which is configured by each data transmission channel in the electronic equipment and corresponds to the specified operation to be the corresponding target channel code rate.
In one embodiment, after the encoding parameter adjustment module adjusts the current channel code rates corresponding to the specified operations, which have been configured for each data transmission channel in the electronic device, to the corresponding target channel code rates, the encoding parameter adjustment module is further configured to:
and for each data transmission channel in the electronic equipment, searching a target channel frame rate and a target channel resolution corresponding to a target channel code rate corresponding to the data transmission channel in a corresponding relation of the code rate-frame rate-resolution of the local record, and respectively adjusting the configured current channel frame rate and the configured current channel resolution of the data transmission channel corresponding to the designated operation into the target channel frame rate and the target channel resolution.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements.
The invention also provides an electronic device, which comprises a processor and a memory; the memory stores a program that can be called by the processor; wherein the processor implements the coding parameter adjustment method as described in the foregoing embodiments when executing the program.
The embodiment of the coding parameter adjusting device can be applied to electronic equipment. Taking software implementation as an example, the device in a logic sense is formed by reading corresponding computer program instructions in a nonvolatile memory into a memory by a processor of an electronic device where the device is located for operation. In terms of hardware, as shown in fig. 4, fig. 4 is a hardware structure diagram of an electronic device where the encoding parameter adjusting apparatus 100 according to an exemplary embodiment of the present invention is located, and in addition to the processor 510, the memory 530, the interface 520, and the nonvolatile memory 540 shown in fig. 4, the electronic device where the apparatus 100 is located in the embodiment may further include other hardware according to the actual functions of the electronic device, which will not be described herein.
The present invention also provides a machine-readable storage medium having stored thereon a program which, when executed by a processor, implements the encoding parameter adjustment method as described in the foregoing embodiments.
The present invention may take the form of a computer program product embodied on one or more storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Machine-readable storage media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of machine-readable storage media include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by the computing device.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the invention.

Claims (9)

1. A coding parameter adjustment method, wherein the method is applied to an electronic device, and comprises:
obtaining first network traffic consumed in a current traffic consumption statistical period;
predicting second network traffic consumed by the electronic device in a specified time period according to the first network traffic, wherein the specified time period comprises the current traffic consumption statistical period;
when the second network traffic exceeds a preset third network traffic, the third network traffic is the upper limit of the network traffic which is allowed to be consumed by the electronic equipment in the appointed time period, and the current coding parameters of the electronic equipment are adjusted according to the first network traffic and the third network traffic so as to control the network traffic consumed by the electronic equipment in the appointed time period not to exceed the third network traffic;
wherein the adjusting the current coding parameters of the electronic device according to the first network traffic and the third network traffic includes:
Predicting a sixth network traffic consumed by the electronic device when performing a specified operation in each subsequent traffic consumption statistics period according to the third network traffic and the specified network traffic in the obtained first network traffic; the appointed network flow is the network flow consumed by the electronic equipment when the appointed operation is executed in the current flow consumption statistical period; the subsequent statistics of each flow consumption period is within the specified time period;
determining a target coding parameter when the electronic equipment executes the specified operation according to the sixth network flow;
and adjusting the coding parameters which correspond to the specified operation and are configured by the electronic equipment according to the target coding parameters.
2. The encoding parameter adjustment method of claim 1, wherein predicting, from the first network traffic, a second network traffic consumed by the electronic device during a specified period of time in which the current traffic consumption statistics period is located, comprises:
obtaining fourth network traffic consumed in the specified time period when the current traffic consumption statistics period ends;
predicting a fifth network flow consumed in a first duration according to the first network flow, wherein the first duration is as follows: a duration from a point in time when the current flow consumption statistics period ends to a point in time when the specified period ends;
And determining the second network traffic according to the fourth network traffic and the fifth network traffic.
3. The coding parameter adjustment method of claim 2, wherein,
the first time period includes: n flow consumption statistics periods; n is greater than or equal to 1;
the predicting the fifth network traffic consumed in the first duration according to the first network traffic includes:
determining a product of the N and the first network traffic as the fifth network traffic.
4. The coding parameter adjustment method of claim 1, wherein,
the specified operation is a preview operation;
the determining, according to the sixth network traffic, a target encoding parameter when the electronic device performs the specified operation includes:
predicting a target operation duration of the electronic device for executing the operation of the same type as the specified operation in each subsequent flow consumption statistical period according to the obtained operation duration of the electronic device for executing the specified operation in the second duration; the second duration is: a duration from a point in time at which the specified time period starts to a point in time at which the current flow consumption statistics period ends;
and determining the target coding parameter according to the ratio of the sixth network flow to the target operation duration.
5. The coding parameter adjustment method of claim 1, wherein,
the target coding parameters include: the electronic equipment performs a target code rate for encoding data when performing a specified operation in each subsequent flow consumption statistical period;
the electronic equipment is provided with a plurality of data transmission channels; the adjusting the coding parameters configured by the electronic device and corresponding to the specified operation according to the target coding parameters includes:
and determining a target channel code rate corresponding to each data transmission channel in the electronic equipment according to the target code rate, and respectively adjusting the current channel code rate which is configured by each data transmission channel in the electronic equipment and corresponds to the specified operation to be the corresponding target channel code rate.
6. The encoding parameter adjusting method as set forth in claim 5, wherein after the current channel code rates corresponding to the specified operations, for which the respective data transmission channels in the electronic device have been configured, are respectively adjusted to the corresponding target channel code rates, the method further comprises:
and for each data transmission channel in the electronic equipment, searching a target channel frame rate and a target channel resolution corresponding to a target channel code rate corresponding to the data transmission channel in a corresponding relation of the code rate-frame rate-resolution of the local record, and respectively adjusting the configured current channel frame rate and the configured current channel resolution of the data transmission channel corresponding to the designated operation into the target channel frame rate and the target channel resolution.
7. An encoding parameter adjusting apparatus, wherein the apparatus is applied to an electronic device, and comprises:
the first network traffic obtaining module is used for obtaining the first network traffic consumed in the current traffic consumption statistical period;
a second network traffic prediction module, configured to predict, according to the first network traffic, a second network traffic consumed by the electronic device in a specified time period, where the specified time period includes the current traffic consumption statistical period;
the coding parameter adjustment module is configured to, when the second network traffic exceeds a preset third network traffic, adjust a current coding parameter of the electronic device according to the first network traffic and the third network traffic if the third network traffic is an upper limit of the network traffic that the electronic device is allowed to consume in the specified time period, so as to control the network traffic consumed by the electronic device in the specified time period not to exceed the third network traffic;
the coding parameter adjustment module is specifically configured to predict a sixth network traffic consumed by the electronic device when performing a specified operation in each subsequent traffic consumption statistics period according to the third network traffic and the obtained specified network traffic in the first network traffic; the appointed network flow is the network flow consumed by the electronic equipment when the appointed operation is executed in the current flow consumption statistical period; the subsequent statistics of each flow consumption period is within the specified time period; determining a target coding parameter when the electronic equipment executes the specified operation according to the sixth network flow; and adjusting the coding parameters which correspond to the specified operation and are configured by the electronic equipment according to the target coding parameters.
8. An electronic device, comprising a processor and a memory; the memory stores a program that can be called by the processor; wherein the processor, when executing the program, implements the coding parameter adjustment method according to any one of claims 1 to 6.
9. A machine readable storage medium having stored thereon a program which, when executed by a processor, implements the encoding parameter adjustment method of any one of claims 1-6.
CN202011133531.XA 2020-10-21 2020-10-21 Coding parameter adjustment method, device and equipment and storage medium Active CN112351250B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011133531.XA CN112351250B (en) 2020-10-21 2020-10-21 Coding parameter adjustment method, device and equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011133531.XA CN112351250B (en) 2020-10-21 2020-10-21 Coding parameter adjustment method, device and equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112351250A CN112351250A (en) 2021-02-09
CN112351250B true CN112351250B (en) 2023-05-26

Family

ID=74359538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011133531.XA Active CN112351250B (en) 2020-10-21 2020-10-21 Coding parameter adjustment method, device and equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112351250B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11899585B2 (en) 2021-12-24 2024-02-13 Western Digital Technologies, Inc. In-kernel caching for distributed cache
US11934663B2 (en) 2022-01-10 2024-03-19 Western Digital Technologies, Inc. Computational acceleration for distributed cache
US11797379B2 (en) 2022-02-04 2023-10-24 Western Digital Technologies, Inc. Error detection and data recovery for distributed cache

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595965A (en) * 2013-11-18 2014-02-19 青岛大学 Mobile video monitoring method based on video traffic control
CN107087136A (en) * 2017-04-19 2017-08-22 宇龙计算机通信科技(深圳)有限公司 Internet video call method, terminal and computer-readable recording medium
CN107770746A (en) * 2017-09-30 2018-03-06 广东欧珀移动通信有限公司 Data processing method and device, computer equipment, computer-readable recording medium
CN107800651A (en) * 2017-10-31 2018-03-13 广东欧珀移动通信有限公司 Closing application program method, apparatus, storage medium and electronic equipment
CN108965602A (en) * 2018-07-24 2018-12-07 努比亚技术有限公司 Application program display methods, mobile terminal and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10263916B2 (en) * 2012-12-03 2019-04-16 Hewlett Packard Enterprise Development Lp System and method for message handling in a network device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595965A (en) * 2013-11-18 2014-02-19 青岛大学 Mobile video monitoring method based on video traffic control
CN107087136A (en) * 2017-04-19 2017-08-22 宇龙计算机通信科技(深圳)有限公司 Internet video call method, terminal and computer-readable recording medium
CN107770746A (en) * 2017-09-30 2018-03-06 广东欧珀移动通信有限公司 Data processing method and device, computer equipment, computer-readable recording medium
CN107800651A (en) * 2017-10-31 2018-03-13 广东欧珀移动通信有限公司 Closing application program method, apparatus, storage medium and electronic equipment
CN108965602A (en) * 2018-07-24 2018-12-07 努比亚技术有限公司 Application program display methods, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN112351250A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN112351250B (en) Coding parameter adjustment method, device and equipment and storage medium
US10271112B2 (en) System and method for dynamic adaptive video streaming using model predictive control
CN111628847B (en) Data transmission method and device
EP2865148B1 (en) Dynamic media throttling based on data quotas
US11277273B2 (en) Computer network service providing system including self adjusting volume enforcement functionality
US8230061B2 (en) Network resource management with prediction
ITTO20090486A1 (en) DYNAMIC CONTROLLER OF INDEPENDENT TRANSMISSION SPEED FROM THE GROUP OF IMAGES
CN105594182A (en) Improved request cancellation method for media streaming
EP3900264A1 (en) Methods and nodes for in-advance qos prediction notification
JP2008187688A (en) Communication control device, and communication system
US9479551B2 (en) Content distribution system, cache server, and content distribution method
US8774031B1 (en) Network capacity forecasting and maintenance
US9794125B2 (en) Data transfer in mobile networks
WO2013080419A1 (en) Traffic management device, system, method, and non-transitory computer-readable medium containing program
EP1883246B1 (en) Video Encoder with Adaptive Frame Skipping
EP3366060B1 (en) Allocating radio resources in a cellular network
US20200053314A1 (en) Dynamic rate adaptation across multiple video sources
CN115396244B (en) Bandwidth scheduling management method, device, electronic equipment and storage medium
CN114158104B (en) Network selection method, device, terminal and storage medium
US20190058798A1 (en) Telecommunication service subscription integration system
CN111510715B (en) Video processing method, system, computer device and storage medium
US8791981B2 (en) Bit rate control apparatus and method thereof
KR102101507B1 (en) Method and Apparatus for Lossless Network Video Transmission
US11736306B1 (en) System, method, and computer program for using artificial intelligence for online charging
JP6747173B2 (en) Information processing device, information processing method, and program

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