Data coding method and device based on dynamic code rate
A technology of data encoding and dynamic bit rate, applied in the field of data encoding based on dynamic bit rate, can solve the problems of occupying large network bandwidth, affecting the fluency and real-time performance of monitoring pictures, and unable to meet the requirements of high-definition video monitoring, so as to ensure the process performance. and real-time effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] see figure 2 , which is a flowchart of a data encoding method based on a dynamic code rate disclosed in Embodiment 1 of the present invention, the method includes the following steps:
[0040] Step 201: Before encoding the data, obtain the current bit rate of the network bandwidth;
[0041] The bit rate of the network bandwidth can reflect the network status and change dynamically as the network status changes. When the network is busy, the bit rate of the network bandwidth is low, and when the network is idle, the bit rate of the network bandwidth is high.
[0042] In the technical solution of the present invention, before encoding the data, the current bit rate of the network bandwidth can be acquired regularly.
[0043] Step 202: Adjust the current encoding bit rate according to the current bit rate of the network bandwidth, wherein the higher the current bit rate of the network bandwidth, the higher the current encoding bit rate, and the lower the current bit rat...
Embodiment 2
[0051] This embodiment provides a specific implementation method for adjusting the coding bit rate according to the bit rate of the network bandwidth. see image 3 , which is a flow chart of a data encoding method based on a dynamic code rate disclosed in Embodiment 2 of the present invention, the method includes the following steps:
[0052] Step 301: Before encoding the data, obtain the current bit rate of the network bandwidth;
[0053] Step 302: Calculate the ratio between the current coding rate and the current bit rate of the network bandwidth;
[0054] Step 303: judging whether the ratio is equal to a preset threshold, if yes, proceed to step 304, otherwise, proceed to step 305;
[0055] Step 304: Keep the current coding rate and end the process;
[0056] Step 305: judging whether the ratio is greater than the preset threshold, if yes, go to step 306, otherwise, go to step 307;
[0057] Step 306: reduce the current coding rate, and end the process;
[0058] Step 307:...
Embodiment 3
[0064] Corresponding to the foregoing data encoding method based on a dynamic code rate, an embodiment of the present invention further provides a data encoding device based on a dynamic code rate. see Figure 4 , which is a structural diagram of a data encoding device based on a dynamic code rate disclosed in Embodiment 3 of the present invention, the device includes: an acquisition unit 401 , a code rate adjustment unit 402 and an encoding unit 403 . The internal structure and connection relationship of the device will be further introduced below in conjunction with the working principle of the device.
[0065] An acquisition unit 401, configured to acquire the current bit rate of the network bandwidth before encoding the data;
[0066] The code rate adjustment unit 402 is configured to adjust the current encoding code rate according to the current bit rate of the network bandwidth, wherein the higher the current bit rate of the network bandwidth is, the higher the current ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 