Video data transmission method, device and system
By acquiring the quality data of video data and network environment data, dynamically adjusting the encoding parameters and transmission rate of video data, the problem of inability to adjust the transmission rate according to the network status and the inability to feedback video quality in real time in the prior art is solved, and efficient, secure and stable transmission of video data is achieved.
Patent Information
- Application Number
- CN202411706965.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-07
AI Technical Summary
In the prior art, video encoder cannot adjust the transmission rate according to network status, and cannot feedback video quality in real time, affecting the transmission efficiency and stability of video data, and has no guarantee of the security of video data.
By obtaining the quality data of the video data to be transmitted and the network environment data, dynamically adjusting the target encoding parameters and transmission rate of the video data to be transmitted, ensuring intelligent optimization of the video data during transmission.
It realizes intelligent optimization in the video data transmission process, flexibly adjusts the transmission strategy according to changes in network conditions, ensures efficient and high-quality transmission of video data, and effectively controls energy consumption and reduces resource waste.
Smart Images

Figure CN119583848A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a method, device and system for transmitting video data. Background Art
[0002] At present, in recent years, with the improvement of image sensor resolution and the development of video coding technology, video monitoring systems can collect real-time video data at any time and any place, and its quality and quantity are growing exponentially. Monitoring video data is irreplaceable due to its importance, such as the retail industry and traffic monitoring, which puts higher requirements on the security, stability, and transmission efficiency of data storage and transmission. In the retail industry and traffic monitoring, video data is often stored in the cloud, and the monitoring center obtains real-time video data through the network. In order to meet the real-time requirements of video data, there are strict requirements on the transmission rate and stability of the network. Taking the retail industry as an example, the monitoring center needs to obtain the video information collected by the camera in real time to ensure real-time interaction between the store and the monitoring center. Once interrupted, it will have a serious impact on the business.
[0003] In related technologies, video encoders usually use H.264 or H.265 standards for encoding, and video data is transmitted through the Transmission Control Protocol / Internet Protocol (TCP / IP). In the retail industry and traffic monitoring, the video encoder encodes the video data in real time and transmits it to the monitoring center through the network. During the transmission process, the video data feeds back the network status in real time, and the monitoring center adjusts the video encoding parameters according to the network status. However, in the retail industry and traffic monitoring, the video encoder can usually only adjust the encoding parameters, but cannot adjust the transmission rate according to the network status, and cannot feed back the video quality in real time during the transmission process, and the security of the video data is not guaranteed.
[0004] Therefore, the problems existing in the related technologies include: the video encoder can only adjust the encoding parameters, but cannot adjust the transmission rate according to the network status, and cannot provide real-time feedback on the video quality during the transmission process, which affects the transmission efficiency and stability of the video data, and does not guarantee the security of the video data. Therefore, there is still a technical problem that the video data cannot be effectively transmitted.
[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0006] The embodiments of the present invention provide a method, device and system for transmitting video data, so as to at least solve the technical problem that video data cannot be effectively transmitted.
[0007] According to one aspect of an embodiment of the present invention, a method for transmitting video data is provided, and the method may include: obtaining quality data of video data to be transmitted, and network environment data, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; determining target encoding parameters of the video data based on the quality data and the network environment data; encoding the video data according to the target encoding parameters to obtain encoded video data; determining a target transmission rate of the encoded video data based on the target encoding parameters and the encoded video data, and transmitting the encoded video data according to the target transmission rate.
[0008] Optionally, before transmitting the encoded video data at the target transmission rate, the method further includes: detecting quality data of the encoded video data to obtain a detection result; and determining whether the video data needs to be re-encoded based on the detection result.
[0009] Optionally, based on the detection result, determine whether the video data needs to be re-encoded, including: in response to the detection result that the quality data does not meet the quality data threshold, adjust the target encoding parameters, and re-encode the video data according to the adjusted target encoding parameters; in response to the detection result that the quality data meets the quality data threshold, there is no need to re-encode the video data, and based on the target encoding parameters and network environment data, adjust the energy consumption data in the process of transmitting the encoded video data.
[0010] Optionally, based on target encoding parameters and network environment data, energy consumption data during transmission of encoded video data is adjusted, including: responding to target encoding parameters and network environment data to meet performance requirements for transmission of encoded video data, and adjusting energy consumption data to reduce.
[0011] Optionally, transmitting the encoded video data according to the target transmission rate includes: encrypting the encoded video data, and transmitting the encrypted video data to the video receiving end according to the target transmission rate.
[0012] Optionally, the network environment data is the network bandwidth of the network environment, wherein the target encoding parameters of the video data are determined based on the quality data and the network environment data, including: obtaining a network bandwidth threshold and a quality data threshold; determining the target encoding parameters based on the quality data, the network bandwidth, the network bandwidth threshold and the quality data threshold.
[0013] Optionally, the video data is encoded according to target encoding parameters to obtain encoded video data, including: in response to the quality data being lower than a quality data threshold, the target encoding parameters are adjusted, and the video data is encoded according to the adjusted target encoding data; in response to the quality data being greater than or equal to the quality data threshold, the video data is encoded according to the target encoding parameters, and the encoded video data is transmitted at a target transmission rate.
[0014] According to another aspect of an embodiment of the present invention, a video data transmission device is also provided, including: an acquisition unit, used to acquire quality data of video data to be transmitted, and network environment data, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; a determination unit, used to determine target encoding parameters of the video data based on the quality data and the network environment data; an encoding unit, used to encode the video data according to the target encoding parameters to obtain encoded video data; a transmission unit, used to determine a target transmission rate of the encoded video data based on the target encoding parameters and the encoded video data, and transmit the encoded video data according to the target transmission rate.
[0015] According to another aspect of an embodiment of the present invention, a video data transmission system is also provided, including: a video encoding module, used to obtain video data to be transmitted, and determine target encoding parameters of the video data according to quality data of the video data and network environment parameters, and encode the video data according to the target encoding parameters to obtain encoded video data, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the process of transmitting the video data; a network transmission module, used to determine a target transmission rate based on the target encoding parameters and the encoded video data, and transmit the encoded video data according to the target transmission rate.
[0016] Optionally, the system also includes: a video quality monitoring module, which is used to detect the quality data of the encoded video data and obtain a detection result, wherein the detection result is used to determine whether the target encoding parameters need to be adjusted; an energy consumption control module, which is used to adjust the energy consumption data during the transmission of the encoded video data based on the encoded video data and network environment data; a security mechanism module, which is used to encrypt the encoded video data and transmit the encrypted video data to the video receiving end according to the target transmission rate.
[0017] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing any one of the above-mentioned video data transmission methods.
[0018] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the above-mentioned video data transmission methods.
[0019] According to another aspect of the embodiment of the present application, a computer program product is also provided. The computer program product includes a computer program, and when the computer program is executed by a processor, the video data transmission method of the embodiment of the present application is implemented.
[0020] In an embodiment of the present invention, quality data of the video data to be transmitted and network environment data are obtained, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; based on the quality data and the network environment data, the target encoding parameters of the video data are determined; according to the target encoding parameters, the video data is encoded to obtain the encoded video data; based on the target encoding parameters and the encoded video data, the target transmission rate of the encoded video data is determined, and the encoded video data is transmitted according to the target transmission rate. In this embodiment, by real-time monitoring of the network environment and video quality, the encoding parameters and transmission rate of the video data are dynamically adjusted, and intelligent optimization in the process of video data transmission is achieved. This optimization strategy can not only flexibly adjust the transmission strategy according to changes in network conditions to ensure efficient and high-quality transmission of video data, but also effectively control energy consumption and reduce resource waste, thereby providing a more reliable and efficient video data transmission solution for scenes such as video monitoring, online education, and telemedicine that require real-time transmission of a large amount of video data. Thereby achieving the technical effect of effectively transmitting video data and solving the technical problem of being unable to effectively transmit video data. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0022] Figure 1 is a flow chart of a method for transmitting video data according to an embodiment of the present invention;
[0023] Figure 2 is a schematic diagram of a video data secure transmission system in a wireless local area network authentication and confidentiality infrastructure network according to an embodiment of the present invention;
[0024] Figure 3 is a flow chart of a method for secure transmission of video data in a wireless local area network authentication and confidentiality infrastructure network according to an embodiment of the present invention;
[0025] Figure 4 is a structural schematic diagram of a video data transmission device according to an embodiment of the present invention;
[0026] Figure 5 4 is a schematic diagram of the structure of a video data transmission system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Example 1
[0030] According to an embodiment of the present invention, an embodiment of a method for transmitting video data is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] Figure 1 is a flow chart of a method for transmitting video data according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0032] Step S102, obtaining quality data of the video data to be transmitted and network environment data.
[0033] In the technical solution provided in step S102 of the embodiment of the present invention, the quality data can be used to indicate the video quality requirement of the video data to be transmitted. The network environment data can be used to indicate the delay degree of the network environment in which the video data is located during the transmission of the video data, which can be the network bandwidth or delay of the network environment.
[0034] In this embodiment, if the quality data to be transmitted needs to be transmitted, the quality data of the video data to be transmitted and the network environment data of the current network environment may be acquired first.
[0035] Optionally, the quality requirement information of the video data to be transmitted and the status information of the current network environment are collected. The above method is crucial for the subsequent dynamic adjustment of encoding parameters and transmission rate, ensuring that the video data meets the quality requirements and adapts to the network environment during transmission, avoiding quality degradation or network resource waste during data transmission.
[0036] Optionally, the quality data reflects the video quality requirements of the video data to be transmitted, including indicators such as clarity, smoothness, and color saturation. These indicators are crucial for application scenarios such as video monitoring and online education, because they directly affect the user experience of the video receiver and the recognizability of the video content. The acquisition of quality data may be achieved through video analysis software or hardware equipment. For example, the resolution, frame rate, bit rate and other information of the original video are analyzed to determine the basic quality attributes of the video; or the expected quality data of the video data is obtained through the video quality standards set by the user, such as the minimum resolution requirement, frame rate requirement, etc.
[0037] Optionally, the network environment data mainly reflects the current status of the network environment during the video data transmission process, including key performance indicators such as network bandwidth, delay, and packet loss rate. These data are important for evaluating network transmission capabilities and predicting possible transmission bottlenecks. Network environment data is usually obtained in real time through network monitoring tools or protocol analyzers. For example, use network monitoring software to detect the availability of the current network bandwidth, or obtain information such as delay and packet loss rate through performance statistics of network devices.
[0038] Optionally, the acquired video data quality requirements and network environment data must be real-time to ensure that subsequent encoding parameter adjustments and transmission rate determinations can be made based on the latest network and video quality information. The accuracy of the data is also critical, as inaccurate data may lead to incorrect encoding parameter or transmission rate selections, which in turn affects the transmission of video data. After acquiring the quality data and network environment data, the system needs to analyze the data to determine the preliminary requirements and possible limitations for video data transmission. For example, a low-bandwidth and high-latency network environment may require a more conservative selection of video encoding parameters to ensure transmission stability and video quality.
[0039] In summary, by collecting the quality requirement information of the video data to be transmitted and the status information of the current network environment, a key data basis is provided for the subsequent dynamic adjustment of video encoding parameters and optimization of transmission rate. This step ensures that subsequent processing can be based on real-time and accurate video quality and network environment data, thereby improving the efficiency, stability and quality of video data transmission.
[0040] Step S104: determining target encoding parameters of the video data based on the quality data and the network environment data.
[0041] In the technical solution provided in the above step S104 of the embodiment of the present invention, the target encoding parameters may include resolution, frame rate, bit rate, etc. That is, the target encoding parameters refer to the parameters set in the video encoding process in order to achieve a specific video quality and adapt to the current network conditions. They mainly include key indicators such as resolution, frame rate, bit rate, etc., which directly affect the size of the video data and the network resources required for transmission.
[0042] In this embodiment, after the quality data of the video data to be transmitted and the network environment data are acquired, the target encoding parameters of the video data may be determined based on the quality data and the network environment data.
[0043] Optionally, target encoding parameters of the video data are determined based on the acquired video data quality requirements and network environment status information. The above process is the core of the entire video data transmission optimization strategy, which ensures that the video data can meet the quality requirements and adapt to the network environment during transmission, achieving efficient and stable transmission.
[0044] Optionally, based on the above data, the system uses an intelligent algorithm or rule base to dynamically determine the target encoding parameters of the video data. This strategy may include: setting the priority of encoding parameters according to the relative importance of video quality and network resources. For example, when network resources are tight, the smoothness of the video (frame rate) may be prioritized, while the clarity (resolution) may be appropriately reduced. The encoding parameters can be dynamically adjusted according to real-time network environment changes. For example, when the network bandwidth increases, the bit rate or frame rate can be increased to improve the video quality; conversely, when the network bandwidth is tight, the bit rate or frame rate is reduced to ensure the transmission of video data. The prediction mechanism of network conditions can also predict the future network environment based on historical network data, and adjust the encoding parameters in advance to cope with possible network fluctuations, thereby achieving smoother video transmission.
[0045] In the embodiment of the present invention, the above method is important in the process of optimizing video data transmission. It dynamically determines the encoding parameters by comprehensively analyzing the quality requirements of the video data and the network environment status to achieve a balance between the quality and efficiency of the video data during transmission. This step can significantly improve the intelligence and adaptability of video data transmission, and is the key to ensuring that the video stream can maintain high-quality transmission under various network conditions.
[0046] Step S106, encoding the video data according to the target encoding parameters to obtain encoded video data.
[0047] In the technical solution provided in the above step S106 of the embodiment of the present invention, after determining the target encoding parameters of the video data based on the quality data and the network environment data, the video data can be encoded according to the target encoding parameters to obtain encoded video data.
[0048] Optionally, the key step of encoding the original video data according to the previously determined target encoding parameters is to ensure that the video data can be properly compressed and formatted before transmission to adapt to specific network conditions and video quality requirements.
[0049] Optionally, the target encoding parameters are determined after considering the video quality requirements and the current network environment status, including but not limited to resolution, frame rate, bit rate, etc. These parameters guide the video encoder on how to process the video data to achieve the established encoding goals. For example, if the target bit rate is low, the encoder will use more efficient compression technology to reduce the size of the video file; if the target frame rate is 30fps, the encoder will ensure that the output video stream is at this rate. Video encoding processing is mainly achieved through compression algorithms, and its goal is to reduce the size of video data for easy transmission on the network. Video data usually contains a lot of redundant information, such as temporal redundancy (similarity between consecutive frames of the same scene), spatial redundancy (similarity between different regions in the same frame) and entropy coding redundancy (predictability of data). The encoder uses this redundant information and uses intra-frame coding (I frame), inter-frame coding (P frame, B frame) and entropy coding techniques to compress the video data and generate encoded video data.
[0050] Optionally, video encoding usually includes the following sub-processes: Preprocessing, which performs preprocessing such as denoising and color space conversion on the original video data to improve the coding efficiency. Frame coding, which selects a suitable coding algorithm (such as H.264, H.265, etc.) according to the target coding parameters to encode the video frame. Intra-frame coding (I frame) does not depend on other frames and is usually used for the start or key frame of the video stream; inter-frame coding (P frame, B frame) uses inter-frame difference technology to only encode the changes between the reference frame and the reference frame, greatly reducing the amount of data transmitted. Entropy coding, which further compresses the encoded data to reduce the number of bits stored and transmitted, usually using technologies such as Huffman coding and arithmetic coding. Encapsulation, which encapsulates the encoded video data into the format required for network transmission to facilitate network transmission.
[0051] Optionally, the encoded video data has a smaller file size and is more suitable for transmission on the network, while maintaining the quality of the video as much as possible. The encoding format of the video data will vary according to the encoding parameters and the selected encoding algorithm. Common encoding formats include H.264, H.265, etc. The encoded video data will be used in the subsequent network transmission step to ensure that the data is effectively transmitted while meeting the video quality and network efficiency.
[0052] Step S108, determining a target transmission rate of the encoded video data based on the target encoding parameters and the encoded video data, and transmitting the encoded video data according to the target transmission rate.
[0053] In the technical solution provided in the above step S108 of the embodiment of the present invention, the target transmission rate may be a suitable transmission rate that meets the current transmission requirement of the video data.
[0054] In this embodiment, after encoding the video data according to the target encoding parameters to obtain the encoded video data, the target transmission rate of the encoded video data can be determined based on the target encoding parameters and the encoded video data. The encoded video data is transmitted according to the target transmission rate.
[0055] Optionally, based on the target encoding parameters and the encoded video data, a target transmission rate is intelligently determined, and the video data is transmitted at this rate.
[0056] Optionally, based on the available bandwidth of the current network environment and the bit rate requirements of the video data, a transmission rate is calculated that can fully utilize network resources and ensure stable transmission of the video stream. During the transmission process, the system continuously monitors the network status and the transmission progress of the video data, and dynamically adjusts the transmission rate according to network fluctuations and video quality feedback to adapt to changes in the network environment while ensuring the smoothness and quality of video transmission. In an unstable or high-latency network environment, the system may choose a transmission rate slightly lower than the video data bit rate requirement, while increasing the transmission of redundant data to improve the transmission stability of the video data and reduce the risk of data loss.
[0057] Optionally, once the target transmission rate is determined, the network transmission module will be responsible for transmitting the encoded video data at this rate. During the transmission process, the system will continuously monitor the network status and video data transmission status to ensure the stability of the transmission rate and the integrity of the video data.
[0058] Optionally, in order to cope with the dynamic changes in the network environment, the network status and video data transmission situation need to be monitored in real time during the transmission process. If the network bandwidth increases, the transmission rate can be appropriately increased to transmit video data at a faster speed; if the network bandwidth decreases, the transmission rate needs to be reduced to avoid network congestion and data packet loss. In addition, if the transmission quality of the video data is lower than expected, it may also be fed back to the encoding module to adjust the encoding parameters again to adapt to the new transmission requirements.
[0059] In step S102 to step S108 of the embodiment of the present invention, quality data of the video data to be transmitted and network environment data are obtained, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; based on the quality data and the network environment data, the target encoding parameters of the video data are determined; according to the target encoding parameters, the video data is encoded to obtain the encoded video data; based on the target encoding parameters and the encoded video data, the target transmission rate of the encoded video data is determined, and the encoded video data is transmitted according to the target transmission rate. In this embodiment, by real-time monitoring of the network environment and video quality, the encoding parameters and transmission rate of the video data are dynamically adjusted, and intelligent optimization in the process of video data transmission is achieved. This optimization strategy can not only flexibly adjust the transmission strategy according to changes in network conditions to ensure efficient and high-quality transmission of video data, but also effectively control energy consumption and reduce resource waste, thereby providing a more reliable and efficient video data transmission solution for scenes such as video monitoring, online education, and telemedicine that require real-time transmission of a large amount of video data. Thereby, the technical effect of effectively transmitting video data is achieved, and the technical problem of being unable to effectively transmit video data is solved.
[0060] The embodiment of the present invention is described in detail below in combination with the above steps.
[0061] As an optional embodiment, before transmitting the encoded video data at the target transmission rate, the method further includes: detecting quality data of the encoded video data to obtain a detection result; and determining whether the video data needs to be re-encoded based on the detection result.
[0062] In this embodiment, the quality data of the encoded video data may be detected to obtain a detection result, and based on the detection result, it may be determined whether the video data needs to be re-encoded.
[0063] Optionally, before transmitting the encoded video data, a quality detection and possible re-encoding process of the encoded video data is added, in order to further ensure the quality and efficiency of video transmission.
[0064] Optionally, after the video data is encoded, the system needs to perform a quality test on the encoded video data to confirm whether the video data meets the expected quality standards. The detection of quality data usually includes the evaluation of indicators such as video clarity, color reproduction, and frame rate stability. The detection of these indicators can be achieved through a video quality assessment algorithm, such as using quality metrics such as PSNR (peak signal-to-noise ratio) and SSIM (structural similarity index) to objectively evaluate the encoded video data and obtain the test results. According to the test results, it is determined whether the encoded video data meets the preset quality threshold. If the quality of the video data is lower than the threshold, it may mean that the video has lost too many details during the encoding process, or some encoding errors have occurred, such as blurred images, color distortion, unstable frame rate, etc.
[0065] Optionally, based on the analysis of the detection results, the system decides whether the video data needs to be re-encoded. If the detection results show that the quality of the video data is lower than expected, the system will provide feedback to the video encoding module, instructing it to re-encode the video data according to the new target encoding parameters to improve the video quality. Re-encoding may involve adjusting parameters such as resolution, bit rate, frame rate, etc. to achieve a better balance between quality and efficiency. If the quality of the video data meets the requirements, the system continues to transmit the video data at the determined target transmission rate without re-encoding processing.
[0066] Optionally, re-encoding is usually performed when the video quality test fails to meet the quality requirements. However, in some cases, even if the video data initially meets the quality requirements, the system may dynamically adjust the encoding parameters according to changes in network conditions and perform encoding again. The re-encoding strategy should take into account factors such as the network environment, the size of the video data, the time and resources required for re-encoding, etc., to ensure efficient transmission of video data while avoiding unnecessary waste of resources.
[0067] Optionally, the re-encoding process of video data is a dynamic link in the entire video transmission optimization process, and is closely integrated with the steps of video encoding parameter determination, video encoding, transmission rate determination, and video data transmission. Through this integrated mechanism, the system can monitor the quality of video data and changes in the network environment in real time, and make corresponding adjustments to the encoding and transmission strategies to ensure that the transmission of video data can maintain high quality and efficiency under various network conditions.
[0068] In summary, adding quality detection and possible re-encoding processes to encoded video data improves the intelligence and adaptability of video transmission, ensuring that video data transmission can be optimized according to changes in the network environment while meeting quality requirements. It is one of the key steps to achieve high-quality video data transmission.
[0069] As an optional embodiment, based on the detection result, determining whether the video data needs to be re-encoded includes: in response to the detection result that the quality data does not meet the quality data threshold, adjusting the target encoding parameters, and re-encoding the video data according to the adjusted target encoding parameters; in response to the detection result that the quality data meets the quality data threshold, there is no need to re-encode the video data, and based on the target encoding parameters and network environment data, adjusting the energy consumption data in the process of transmitting the encoded video data.
[0070] In this embodiment, in the process of determining whether the video data needs to be re-encoded based on the detection result, if the detection result is that the quality data does not meet the quality data threshold, the target encoding parameter can be adjusted, and the video data can be re-encoded according to the adjusted target encoding parameter. If the detection result is that the quality data meets the quality data threshold, there is no need to re-encode the video data, and the energy consumption data in the process of transmitting the encoded video data can be adjusted based on the target encoding parameter and the network data.
[0071] Optionally, the process of determining whether re-encoding is required based on the video data quality detection results, and the strategy of adjusting the energy consumption data when re-encoding is not required, are important components of the video transmission optimization system, which aims to ensure high quality and high efficiency of video data transmission while controlling energy consumption.
[0072] Optionally, the quality of the encoded video data is evaluated according to a video quality detection algorithm. If the detection results indicate that quality indicators such as clarity, color, frame rate, etc. of the video data do not reach a preset quality data threshold, that is, the video quality does not meet the standard, a re-encoding process is triggered.
[0073] Optionally, adjust the target encoding parameters according to the actual quality requirements of the video data and the network environment status. For example, if the video clarity is insufficient, the resolution or bit rate may need to be increased; if the frame rate is unstable, the frame rate parameters may need to be adjusted. The adjustment strategy should comprehensively consider the video quality and network conditions to achieve a balance between video transmission quality and network efficiency.
[0074] Optionally, the video encoding module re-encodes the video data according to the adjusted target encoding parameters. This process is equivalent to restarting the encoding stage, but based on the latest determined encoding parameters, in the hope of achieving better video transmission quality.
[0075] Optionally, after the video data is re-encoded, the video quality detection is performed again to confirm whether the video data reaches the adjusted quality data threshold. If the quality still does not meet the standard, it may be necessary to adjust the encoding parameters again and re-encode until the video data quality meets the requirements.
[0076] Optionally, if the video data quality detection result indicates that the quality data of the video data meets the quality data threshold, that is, it reaches or exceeds the expected quality, the system will no longer re-encode, avoiding unnecessary resource consumption and time delay. It will be transferred to the energy consumption control stage, and the energy consumption data during the video transmission process will be evaluated according to the current target encoding parameters (such as resolution, bit rate, frame rate, etc.) and network environment data (such as bandwidth, delay, etc.), including processor power consumption, network interface power consumption, etc. If the current energy consumption level is higher than the expected or system performance range allowed, the energy consumption control module will dynamically adjust the processor frequency, voltage and network transmission strategy according to the real-time needs of video data transmission to optimize the overall energy consumption. For example, the processor frequency and voltage can be appropriately reduced to reduce power consumption while ensuring that the transmission quality of the video data is not affected.
[0077] Optionally, during the entire video data transmission process, the energy consumption control module will continuously monitor the energy consumption of video data transmission, as well as changes in the network environment and video quality, and dynamically adjust the energy consumption control strategy to achieve high efficiency of video transmission and economical energy consumption.
[0078] As an optional embodiment, based on target encoding parameters and network environment data, the energy consumption data in the process of transmitting encoded video data is adjusted, including: responding to the target encoding parameters and network environment data to meet the performance requirements for transmitting the encoded video data, and adjusting the energy consumption data to reduce it.
[0079] In this embodiment, in the process of adjusting the energy consumption data during the transmission of encoded video data based on target encoding parameters and network environment data, if the target encoding parameters and network environment data meet the performance requirements for the transmission of the encoded video data, the energy consumption data can be adjusted to be reduced.
[0080] Optionally, based on target encoding parameters and network environment data, adjusting the energy consumption data during the transmission of encoded video data, especially when the transmission performance requirements of the video data are met, reducing the energy consumption data is a key strategy for optimizing energy efficiency in system design.
[0081] Optionally, during the video encoding and network transmission stage, the transmission performance of the video data is judged to see whether it meets the preset performance requirements based on the target encoding parameters (including resolution, bit rate, frame rate, etc.) and the real-time monitored network environment data (such as current bandwidth, delay, etc.). This usually means that the video data can be transmitted with appropriate quality and stable rate, and under the current network conditions, the transmission of the video data does not encounter obvious delays or packet loss problems.
[0082] Optionally, once it is confirmed that the transmission performance of the video data meets the requirements, that is, the video quality and network efficiency meet or exceed the preset thresholds under the current conditions, the next step is to consider whether it is possible to reduce energy consumption while maintaining transmission quality and efficiency. The purpose of this step is to further optimize the system's energy consumption, improve energy efficiency, and reduce the impact on the environment on the basis of achieving the expected performance of video data transmission.
[0083] Optionally, after determining that the transmission performance of the video data meets the requirements, the system will intelligently adjust the energy consumption data to reduce energy consumption based on the current energy consumption data and the range allowed by the system performance. Specific adjustment strategies may include: Dynamic Voltage and Frequency Scaling (DVFS), which reduces the operating frequency and voltage of the processor to reduce the power consumption of the processor. This adjustment is performed when transmitting video data, ensuring that the encoding and transmission quality of the video data are not affected. Network transmission strategy optimization, adjusting the network transmission strategy, such as reducing unnecessary data packet retransmissions, optimizing data flow control strategies, etc., to reduce the energy consumption of the network interface. For example, when the network condition is good and the video data transmission is stable, a more efficient transmission protocol can be used or the transmission window size can be adjusted to reduce the energy consumption of data transmission. Thermal management and heat dissipation strategy, optimizing the thermal management strategy of the device, such as adjusting the fan speed, the use of heat sinks, etc., to reduce the increase in energy consumption caused by overheating of the device. During the video data transmission process, if the device temperature monitoring result shows that the temperature is within a safe range, the energy consumption of the heat dissipation component can be appropriately reduced.
[0084] Optionally, during the entire video transmission process, the performance and energy consumption of video data transmission will be continuously monitored. Once it is found that the performance requirements are no longer met or the energy consumption data has reached a limit, the system will automatically adjust the encoding parameters or network transmission strategy to maintain the performance requirements of video data transmission while trying to keep the energy consumption optimized.
[0085] In the embodiment of the present invention, when the video data transmission performance meets the conditions, the energy consumption data is intelligently reduced, thereby achieving dual optimization of video transmission quality and energy efficiency.
[0086] As an optional embodiment, step S108, transmitting the encoded video data according to the target transmission rate, includes: encrypting the encoded video data, and transmitting the encrypted video data to the video receiving end according to the target transmission rate.
[0087] In this embodiment, during the process of transmitting the encoded video data at the target transmission rate, the encoded video data may be encrypted, and the encrypted video may be transmitted to the video receiving end at the target transmission rate.
[0088] Optionally, the encoded video data is encrypted and transmitted securely according to the target transmission rate. The above process combines the efficient transmission of video data with encryption security, and is a key step in building a secure video communication system.
[0089] Optionally, after the video data is encoded, the system will encrypt it to increase the security of data transmission. Encryption usually uses a symmetric encryption algorithm or a public key encryption algorithm. The encryption process converts the video data into ciphertext, which is difficult for unauthorized users to interpret even if the data is intercepted during transmission.
[0090] Optionally, according to the size, transmission rate and security requirements of the video data, select a suitable encryption algorithm for encryption processing. For example, for video streams with high real-time requirements, a symmetric encryption algorithm with a faster encryption speed may be selected; while for video data with extremely high security requirements, a hybrid encryption scheme combining symmetric and asymmetric encryption algorithms may be selected. Before encryption processing, the system needs to generate an encryption key. The generation and management of keys is the core part of encryption technology. It is necessary to ensure the security and uniqueness of the keys to prevent the keys from being accessed or leaked without authorization. Use the selected encryption algorithm and key to encrypt the encoded video data and convert the plaintext video data into ciphertext video data. The encryption process needs to ensure the efficiency and security of encryption while maintaining the video transmission speed.
[0091] Optionally, after the video data encryption process is completed, the network transmission module will transmit the encrypted video data according to the previously determined target transmission rate. The target transmission rate is calculated by an intelligent algorithm based on the encoding parameters of the video data, network bandwidth, delay and other network environment data, aiming to ensure the stability and smoothness of video data transmission. The encrypted video data needs to be encapsulated, that is, necessary header information is added to the data packet, such as the transmission protocol identifier, source address, destination address, serial number, etc., so that the data can be correctly transmitted in the network and decoded at the receiving end.
[0092] Optionally, during the transmission process, the system needs to monitor the network status in real time, dynamically adjust the transmission rate according to the changes in network bandwidth and delay, and ensure that the encrypted video data can be stably transmitted to the video receiving end at the target transmission rate. The encrypted video data is transmitted through the wireless LAN authentication and privacy infrastructure (WLAN Authentication and Privacy Infrastructure, referred to as WAPI) or other secure network protocols, and the network's security mechanisms, such as identity authentication and data encryption, are used to protect the security of the data during transmission and prevent the data from being eavesdropped, tampered with, or unauthorized access. The encrypted video data is transmitted to the video receiving end through the network. After receiving the data, the receiving end uses the same encryption algorithm and key to decrypt the video data, restore it to plaintext video data, and then decode and play it. The decryption and decoding process of the receiving end needs to match the encoding and encryption process of the sending end to ensure that the video data can be correctly interpreted and played.
[0093] In the embodiment of the present invention, the above method not only ensures the efficiency and stability of video data transmission, but also enhances the security of data transmission, providing a more secure and reliable video data transmission solution for application scenarios such as video monitoring, online education, and telemedicine.
[0094] As an optional embodiment, the network environment data is the network bandwidth of the network environment, wherein step S104, based on the quality data and the network environment data, determines the target encoding parameters of the video data, including: obtaining a network bandwidth threshold and a quality data threshold; based on the quality data, the network bandwidth, the network bandwidth threshold and the quality data threshold, determines the target encoding parameters.
[0095] In this embodiment, in the process of determining the target encoding parameters of the video data based on the quality data and the network environment data, the network bandwidth threshold and the quality data threshold can be obtained. The target encoding parameters are determined based on the quality data, the network bandwidth, the network bandwidth threshold and the quality data threshold.
[0096] Optionally, by obtaining the network bandwidth threshold and quality data threshold, and combining the real-time network environment and video quality data to intelligently adjust the encoding parameters, a flexible and economical solution is provided for efficient, stable and high-quality transmission of video data. The above strategy is particularly suitable for scenarios where network conditions change frequently, such as mobile networks, wireless LANs, etc., and helps to optimize the overall performance of the video transmission system and improve the reliability and economy of video communications.
[0097] Optionally, obtain the initial settings: Set the maximum bandwidth threshold B threshold =4Mbps, initial coding parameter R initial =2Mbps, adjustment factor β = 0.5, quality threshold Q threshold =720p resolution.
[0098] Optionally, perform network bandwidth detection. For example, assuming the current network bandwidth is B network =2Mbps.
[0099] Optionally, the dynamically adjusted encoding parameter (target encoding parameter) R can be calculated by the following formula: adjusted :
[0100]
[0101] As an optional embodiment, step S106, encoding the video data according to the target encoding parameters to obtain the encoded video data, includes: in response to the quality data being lower than the quality data threshold, adjusting the target encoding parameters, and encoding the video data according to the adjusted target encoding data; in response to the quality data being greater than or equal to the quality data threshold, encoding the video data according to the target encoding parameters, and transmitting the encoded video data at the target transmission rate.
[0102] In this embodiment, in the process of encoding the video data according to the target encoding parameter, if the quality data is lower than the quality data threshold, the target encoding parameter can be adjusted, and the video data can be encoded according to the adjusted target encoding parameter. If the quality data is greater than or equal to the quality data threshold, the video data can be encoded according to the target encoding parameter, and the encoded video data can be transmitted according to the target transmission rate.
[0103] Optionally, according to the comparison between the quality data of the video data and a preset quality data threshold, the target encoding parameters are dynamically adjusted and the encoding processing is performed to ensure the stability of video data transmission and the maintenance of video quality.
[0104] Optionally, when the video quality data (such as clarity, color reproduction and other indicators) is lower than the preset quality data threshold, the system will trigger the adjustment of the target encoding parameters to improve the video quality. The quality data threshold is usually set based on the specific requirements of the application scenario. For example, in video monitoring applications, 720p resolution may be used as the minimum standard for video quality.
[0105] Optionally, the video quality data monitored in real time is compared with a preset quality data threshold. If the video quality data is lower than the threshold, it means that the video quality does not meet the standard and the target encoding parameters need to be adjusted to improve the video quality. According to the deficiencies in the video quality data, the target encoding parameters are dynamically adjusted, such as increasing the video resolution, increasing the bit rate or frame rate, etc. The video encoding module re-encodes the video data according to the adjusted target encoding parameters to generate new encoded video data. After re-encoding, the system may need to recalculate the target transmission rate to ensure that the transmission performance of the video data matches the adjusted encoding parameters to ensure efficient transmission of the video data.
[0106] Optionally, if the video quality data is greater than or equal to a preset quality data threshold, it means that the current video quality has reached or exceeded the requirements of the system or user. At this time, the system will encode the video data according to the previously determined target encoding parameters and transmit it at the target transmission rate.
[0107] Optionally, the video quality monitoring module continuously monitors the quality data of the video stream. The video quality data is compared with a preset quality data threshold to confirm that the video quality meets the standard. The video encoding module encodes the video data according to the previously determined target encoding parameters to generate encoded video data. The network transmission module transmits the encoded video data to the video receiving end according to the calculated target transmission rate to ensure the stability and smoothness of video data transmission.
[0108] In an embodiment of the present invention, through the above steps, intelligent dynamic adjustment of video data encoding parameters is achieved, and the encoding parameters can be timely improved to improve the video quality when the video quality decreases. At the same time, the encoding parameters are kept stable when the video quality meets the standard, avoiding unnecessary energy consumption and waste of resources. The above strategy not only improves the efficiency of video transmission, but also ensures the consistency of video quality in different network environments, improves user experience and system performance. In application scenarios such as video monitoring, online education, and telemedicine that have strict requirements on video quality, this intelligent encoding parameter adjustment mechanism is particularly important, which helps to optimize the video transmission system and improve the reliability, economy, and security of video communication.
[0109] In an embodiment of the present invention, quality data of the video data to be transmitted and network environment data are obtained, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; based on the quality data and the network environment data, the target encoding parameters of the video data are determined; according to the target encoding parameters, the video data is encoded to obtain the encoded video data; based on the target encoding parameters and the encoded video data, the target transmission rate of the encoded video data is determined, and the encoded video data is transmitted according to the target transmission rate. In this embodiment, by real-time monitoring of the network environment and video quality, the encoding parameters and transmission rate of the video data are dynamically adjusted, and intelligent optimization in the process of video data transmission is achieved. This optimization strategy can not only flexibly adjust the transmission strategy according to changes in network conditions to ensure efficient and high-quality transmission of video data, but also effectively control energy consumption and reduce resource waste, thereby providing a more reliable and efficient video data transmission solution for scenes such as video monitoring, online education, and telemedicine that require real-time transmission of a large amount of video data. Thereby achieving the technical effect of effectively transmitting video data and solving the technical problem of being unable to effectively transmit video data.
[0110] Example 2
[0111] Another optional specific implementation is described in detail below.
[0112] At present, the secure transmission of video data in the WAPI (network environment) environment is being studied. With the widespread application of video monitoring technology in many key industries, such as electricity, transportation, and security, the secure and efficient transmission of video data has become particularly important. These industries are increasingly dependent on video monitoring because they need to monitor and analyze a large amount of video data in real time to ensure safety and operational efficiency. In this context, how to optimize network transmission efficiency and reduce energy consumption while ensuring that video quality is not affected has become a key issue that needs to be solved urgently. This field covers multiple links such as video data acquisition, encoding, transmission, and decoding, as well as related network protocols, data security, and energy consumption control technologies.
[0113] In the related art, the dynamic matching relationship between the network environment and the video encoding parameters is often not fully considered during the video data transmission process. Specifically, traditional methods usually use fixed encoding parameters and transmission rates, and lack the ability to adapt to changes in the network environment. For example, they cannot make real-time adjustments based on bandwidth fluctuations or changes in latency. This lack of flexibility makes it difficult to achieve a balance between energy consumption and video quality, because when the network conditions are poor, energy consumption may have to be increased to ensure video quality; when the network conditions are good, the fixed encoding parameters and transmission rates may cause a waste of network resources.
[0114] In addition, the video data transmission method in the related art is also insufficient in terms of optimization for the characteristics of the WAPI network. As a network technology that emphasizes security, efficiency and stability, the characteristics of the WAPI network have not been fully utilized. This means that in the WAPI network environment, the security, efficiency and stability of video data transmission have not been maximized, thus limiting the overall performance and reliability of the video monitoring system.
[0115] In summary, the relevant technologies have obvious limitations in terms of dynamic adaptability of video data transmission, balance between energy consumption and video quality, and utilization of WAPI network characteristics. These limitations not only affect the performance of video surveillance systems, but also limit their application potential in key industries. The above-mentioned existing technologies still cannot dynamically adjust video encoding parameters to adapt to changes in the network environment, resulting in fluctuations in video quality or network congestion; they fail to effectively match network transmission rates with video encoding parameters, resulting in waste of resources or low transmission efficiency; at the same time, the existing video data transmission methods also lack optimization for WAPI network characteristics, and cannot fully utilize the security and efficiency of WAPI networks, thereby increasing the risk of data leakage and transmission failure.
[0116] Therefore, there is still a technical problem that video data cannot be effectively transmitted. Therefore, developing a video data transmission system that can intelligently adjust video encoding parameters and network transmission rate while making full use of WAPI network characteristics is of great significance for improving the efficiency and reliability of video monitoring systems.
[0117] The present invention proposes a method for secure transmission of video data in a WAPI network, which achieves a balance between energy consumption and video quality and improves network utilization efficiency by intelligently adjusting video encoding parameters and network transmission rate. Specifically, the scheme dynamically adjusts video encoding parameters and network transmission rate by real-time monitoring of network environment, video quality requirements and energy consumption, and introduces the security mechanism of the WAPI network to optimize the transmission efficiency and energy consumption of video data while ensuring data security. Thus, the technical effect of effectively transmitting video data is achieved, and the technical problem of being unable to effectively transmit video data is solved.
[0118] The method is further described below.
[0119] In this embodiment, Figure 22 is a schematic diagram of a video data secure transmission system in a WAPI network according to an embodiment of the present invention, the system may include a video encoding module 201, an energy consumption control module 202, a network transmission module 203, a WAPI security mechanism module 204, and a video quality monitoring module 205. The above modules cooperate with each other to jointly realize intelligent transmission, energy consumption control and security of video data.
[0120] Alternatively, if Figure 2 As shown, the video encoding module 201 is responsible for receiving the original video data and performing compression encoding according to the current target encoding parameters of the system to adapt to network transmission. The selection of encoding parameters will be affected by the feedback of the network transmission module 203 and the video quality monitoring module 205. The encoding module needs to be able to quickly respond to parameter adjustments to generate coded video data that meets the requirements. The energy consumption control module 202 continuously monitors the energy consumption of the video encoding module 201 and the network transmission module 203. According to the actual needs of video data transmission and the current energy consumption level, the energy consumption control module 202 dynamically adjusts the operating frequency and voltage of the processor, as well as the working state of the network transmission module 203, to achieve the goal of minimizing energy consumption while ensuring video quality and transmission efficiency. The network transmission module 203 is responsible for transmitting the encoded video data to the video receiving end through the WAPI network. This module will calculate the appropriate transmission rate based on the encoded video data provided by the video encoding module 201 and the encryption information of the WAPI security mechanism module 204. At the same time, the network transmission module will feed back network environment data (such as bandwidth, delay) to the video encoding module 201 and the energy consumption control module 202 so that they can dynamically adjust the encoding parameters and energy consumption control strategy according to the network conditions.
[0121] Alternatively, if Figure 2 As shown, the WAPI security mechanism module 204 provides security for video data transmission, including data encryption and identity authentication. Before video data transmission, the WAPI security mechanism module encrypts the video data and provides encryption keys and authentication information to the network transmission module 203. The implementation of encryption and authentication strategies helps prevent data from being eavesdropped, tampered with, or unauthorized access during transmission, thereby ensuring the security of video data.
[0122] Optionally, the video quality monitoring module 205 is responsible for real-time monitoring of the quality of the video data. It decodes and evaluates the encoded video data to determine whether the video quality reaches a preset threshold. If the video quality is lower than the threshold, the video quality monitoring module sends a signal to the video encoding module 201 to adjust the encoding parameters to improve the video quality. At the same time, the video quality monitoring module also feeds back the video quality evaluation results to the energy consumption control module 202 to assist it in optimizing energy consumption control while ensuring video quality.
[0123] Through the mutual cooperation between the above modules, the video data security transmission system of the embodiment of the present invention can intelligently adapt to changes in the network environment, optimize the encoding and transmission of video data, protect data security and control energy consumption, and realize efficient, safe and economical operation of video data transmission. This cooperation mechanism can significantly improve the user experience and system performance in application fields such as video monitoring, online education, and telemedicine, and is a key technology for realizing intelligent video communication.
[0124] Figure 3 is a flow chart of a method for securely transmitting video data in a WAPI network according to an embodiment of the present invention. Figure 3 As shown, the method may include the following steps:
[0125] Step S301, collecting video data.
[0126] In this embodiment, video data is collected and transmitted to a video encoding module. The video encoding module is responsible for encoding the original video data to reduce the amount of data and improve transmission efficiency. During the encoding process, appropriate encoding algorithms and parameters, such as H.264, H.265, etc., can be selected according to actual needs to adapt to different application scenarios and device performance.
[0127] Step S302: encode the video data.
[0128] In this embodiment, the video encoding module dynamically adjusts encoding parameters according to the network environment and video quality requirements. The parameters include resolution, frame rate, bit rate, etc., which can be flexibly adjusted according to parameters such as network bandwidth, delay, and video quality requirements.
[0129] Optionally, initially set: Set the maximum bandwidth threshold B threshold =4Mbps, initial coding parameter R initial =2Mbps, adjustment factor β = 0.5, quality threshold Q threshold =720p resolution. Network bandwidth detection: Assume that the current network bandwidth is B network =2Mbps.
[0130] Optionally, the dynamically adjusted encoding parameter R is calculated adjusted :
[0131]
[0132] Optionally, video quality assessment: Assume that the current video quality is below the quality threshold Q threshold (i.e. lower than 720p resolution).
[0133] Optionally, adjust the encoding parameters according to the video quality requirements: appropriately increase the encoding parameters to improve the quality, for example, increase to Radjusted =1.6Mbps.
[0134] Optionally, apply new encoding parameters: the video encoding module according to R adjusted =1.6Mbps for video encoding.
[0135] Through the above method, the video encoding module can dynamically adjust the encoding parameters according to the real-time network environment and video quality requirements to ensure the smoothness and quality of video transmission.
[0136] Step S303: Transmit the encoded video data via a network.
[0137] In this embodiment, the network transmission module calculates the appropriate transmission rate based on the adjusted encoding parameters and video data. This module is responsible for transmitting the encoded video data to the receiving end through the network, and adjusting the transmission rate in real time according to parameters such as network bandwidth and delay to ensure the real-time and stability of the video data.
[0138] Optionally, the current video encoding module has adjusted the encoding parameters to 1.6 Mbps according to the network environment and video quality requirements, and the video data has been encoded. The network transmission module then needs to calculate a suitable transmission rate according to the encoding parameters and the video data.
[0139] Optionally, obtaining encoding parameters: the network transmission module obtains current encoding parameters from the video encoding module, that is, the bit rate is 1.6 Mbps.
[0140] Optionally, network bandwidth evaluation: the network transmission module continues to monitor the current network bandwidth. Assume that the current network bandwidth is still 2Mbps (this value will change continuously in actual applications, and this parameter is used as an example).
[0141] Optionally, calculate a suitable transmission rate: The network transmission module calculates a suitable transmission rate. Since the bit rate of the encoded video data is 1.6Mbps and the current network bandwidth is 2Mbps, theoretically, data can be sent at a rate close to 1.6Mbps, while leaving a certain bandwidth margin to cope with network fluctuations. Therefore, the network transmission module will select a transmission rate slightly lower than 1.6Mbps but stable, such as 1.5Mbps, to ensure the real-time and stability of the video data.
[0142] Optionally, adjust the transmission rate in real time: During the transmission process, the network transmission module will continuously monitor the network status and adjust the transmission rate in real time according to the changes in network bandwidth. If the network bandwidth increases, the transmission rate can be increased accordingly; if the network bandwidth decreases, the transmission rate needs to be reduced to avoid network congestion and data loss.
[0143] Optionally, sending video data: Finally, the network transmission module sends the encoded video data to the receiving end at the calculated appropriate rate.
[0144] Step S304: monitor the video quality of the video data during network transmission.
[0145] In this embodiment, the video quality monitoring module monitors the video quality in real time and adjusts the encoding parameters according to the monitoring result feedback. The module monitors the video quality in real time by detecting the clarity, smoothness and other indicators of the video data, and fine-tunes the encoding parameters according to the monitoring results to further improve the video quality.
[0146] Optionally, decoding video data: the video quality monitoring module first decodes the received video data to obtain original video content.
[0147] Optionally, quality assessment: using a video quality assessment algorithm, the video quality monitoring module performs quality assessment on the decoded video. Assume that the assessment result is that the video clarity is slightly lower than a preset threshold, but the fluency is good.
[0148] Optionally, feedback is used to adjust encoding parameters: Based on the evaluation results, the video quality monitoring module generates a feedback signal to instruct the video encoding module to appropriately increase encoding parameters to improve video clarity. For example, the bit rate can be fine-tuned from 1.6Mbps to 1.7Mbps while keeping other encoding parameters unchanged.
[0149] Optionally, new encoding parameters are applied: after receiving the feedback signal, the video encoding module re-encodes the video data according to the new encoding parameters and sends the re-encoding to the network transmission module for transmission.
[0150] Step S305, determining whether the video quality meets the requirements.
[0151] In this embodiment, it can be determined whether the video quality meets the standard. If so, step S306 can be executed. Otherwise, step S308 can be executed.
[0152] Step S306, controlling the energy consumption during the video data transmission process.
[0153] In this embodiment, the energy consumption control module controls the overall energy consumption according to the dynamic adjustment results of video encoding and network transmission. The energy consumption control module continuously monitors the energy consumption data of the video encoding module and the network transmission module, including processor power consumption, network interface power consumption, etc. According to the energy consumption data and system performance requirements, the energy consumption control module dynamically adjusts the processor frequency and voltage (DVFS technology) to reduce energy consumption. For example, if the current video transmission is stable and the quality meets the standard, the energy consumption control module may reduce the operating frequency and voltage of the processor to reduce power consumption. Under the premise of ensuring video quality and transmission stability, the energy consumption control module optimizes the overall energy consumption by continuously adjusting and optimizing parameters such as processor frequency, voltage, and network transmission rate.
[0154] Step S307: Execute the WAPI security mechanism.
[0155] In this embodiment, a WAPI security mechanism module is set to encrypt and transmit video data and authenticate identity. This module uses the security mechanism of the WAPI network to encrypt video data to ensure the security of data during transmission; at the same time, through the identity authentication mechanism, it prevents illegal users from accessing and tampering with data. During the transmission process, the above steps can be repeated until the video transmission is completed. That is, the system will make real-time adjustments according to changes in the network environment, video quality requirements, and energy consumption to achieve appropriate transmission effects and energy consumption control.
[0156] Step S308: adjusting the encoding parameters.
[0157] In this embodiment, if it is determined that the video quality does not meet the standard, the encoding parameters can be adjusted to re-encode the video data.
[0158] In an embodiment of the present invention, quality data of the video data to be transmitted and network environment data are obtained, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; based on the quality data and the network environment data, the target encoding parameters of the video data are determined; according to the target encoding parameters, the video data is encoded to obtain the encoded video data; based on the target encoding parameters and the encoded video data, the target transmission rate of the encoded video data is determined, and the encoded video data is transmitted according to the target transmission rate. In this embodiment, by real-time monitoring of the network environment and video quality, the encoding parameters and transmission rate of the video data are dynamically adjusted, and intelligent optimization in the process of video data transmission is achieved. This optimization strategy can not only flexibly adjust the transmission strategy according to changes in network conditions to ensure efficient and high-quality transmission of video data, but also effectively control energy consumption and reduce resource waste, thereby providing a more reliable and efficient video data transmission solution for scenes such as video monitoring, online education, and telemedicine that require real-time transmission of a large amount of video data. Thereby achieving the technical effect of effectively transmitting video data and solving the technical problem of being unable to effectively transmit video data.
[0159] Example 3
[0160] The embodiment of the present invention provides a video data transmission device. It should be noted that the video data transmission device of the embodiment of the present invention can be used to perform Figure 1 The video data transmission method provided by the embodiment of the present invention is described below.
[0161] Figure 4 is a schematic diagram of a video data transmission device according to an embodiment of the present invention. Figure 4 As shown, the device may include: an acquisition unit 402 , a determination unit 404 , an encoding unit 406 and a transmission unit 408 .
[0162] The acquisition unit 402 is used to acquire quality data of the video data to be transmitted and network environment data, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the process of transmitting the video data.
[0163] The determination unit 404 is used to determine the target encoding parameters of the video data based on the quality data and the network environment data.
[0164] The encoding unit 406 is used to encode the video data according to the target encoding parameters to obtain encoded video data.
[0165] The transmission unit 408 is used to determine a target transmission rate of the encoded video data based on the target encoding parameters and the encoded video data, and transmit the encoded video data according to the target transmission rate.
[0166] The video data transmission device provided by the embodiment of the present invention obtains the quality data of the video data to be transmitted and the network environment data through the acquisition unit 402, wherein the network environment data is used to indicate the delay degree of the network environment in which the video data is located during the transmission of the video data; the target encoding parameters of the video data are determined based on the quality data and the network environment data through the determination unit 404; the video data is encoded according to the target encoding parameters through the encoding unit 406 to obtain the encoded video data; the target transmission rate of the encoded video data is determined based on the target encoding parameters and the encoded video data through the transmission unit 408, and the encoded video data is transmitted according to the target transmission rate. Thus, the technical effect of effectively transmitting the video data is achieved, and the technical problem of not being able to effectively transmit the video data is solved.
[0167] The video data transmission device may further include a processor and a memory. The above units are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0168] The processor includes a kernel, and the kernel retrieves the corresponding program unit from the memory. One or more kernels can be set to control the same device type of devices to be shut down to perform graceful shutdown by adjusting kernel parameters.
[0169] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0170] The processor contains a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the work efficiency of traders can be improved by adjusting the kernel parameters.
[0171] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0172] Example 4
[0173] Figure 5 is a schematic diagram of a video data transmission system according to an embodiment of the present invention. Figure 5 As shown, the system may include: a video encoding module 502 and a network transmission module 504 .
[0174] The video encoding module 502 is used to obtain the video data to be transmitted, and determine the target encoding parameters of the video data according to the quality data of the video data and the network environment parameters, and encode the video data according to the target encoding parameters to obtain the encoded video data, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data.
[0175] The network transmission module 504 is used to determine a target transmission rate based on the target encoding parameters and the encoded video data, and transmit the encoded video data according to the target transmission rate.
[0176] Optionally, the system also includes: a video quality monitoring module 506, which is used to detect the quality data of the encoded video data and obtain a detection result, wherein the detection result is used to determine whether the target encoding parameters need to be adjusted; an energy consumption control module 508, which is used to adjust the energy consumption data during the transmission of the encoded video data based on the encoded video data and the network environment data; a security mechanism module 510, which is used to encrypt the encoded video data and transmit the encrypted video data to the video receiving end according to the target transmission rate.
[0177] The video data transmission system provided by the embodiment of the present invention obtains the video data to be transmitted through the video encoding module 502, and determines the target encoding parameters of the video data according to the quality data of the video data and the network environment parameters, and encodes the video data according to the target encoding parameters to obtain the encoded video data, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; the network transmission module 504 determines the target transmission rate based on the target encoding parameters and the encoded video data, and transmits the encoded video data according to the target transmission rate. Thus, the technical effect of effectively transmitting the video data is achieved, and the technical problem of not being able to effectively transmit the video data is solved.
[0178] Example 5
[0179] According to an embodiment of the present invention, a computer-readable storage medium is further provided, on which a program is stored. When the program is executed by a processor, the method for transmitting video data is implemented.
[0180] Implementation 6
[0181] According to an embodiment of the present invention, a processor is further provided. The processor is used to run a program, wherein the method for transmitting video data is executed when the program is run.
[0182] Example 7
[0183] An embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor executes the above steps of the embodiment of the present invention.
[0184] Example 8
[0185] The embodiment of the present application further provides a computer program product. Optionally, in this embodiment, the computer program product may include a computer program, and when the computer program is executed by a processor, the video data transmission method of the embodiment of the present application is implemented.
[0186] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0187] The present invention also provides a computer program product, which, when executed on a data processing device, is suitable for the program of the above steps in the embodiment of the present invention.
[0188] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0189] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0190] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0191] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0192] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0193] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0194] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0195] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0196] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0197] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for transmitting video data, characterized in that: include: Acquire quality data of the video data to be transmitted and network environment data, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; Determining target encoding parameters of the video data based on the quality data and the network environment data; According to the target encoding parameters, the video data is encoded to obtain encoded video data; Based on the target encoding parameters and the encoded video data, a target transmission rate of the encoded video data is determined, and the encoded video data is transmitted according to the target transmission rate.
2. The transmission method according to claim 1, characterized in that: Before transmitting the encoded video data according to the target transmission rate, the method further includes: Detecting the quality data of the encoded video data to obtain a detection result; Based on the detection result, it is determined whether the video data needs to be re-encoded.
3. The transmission method according to claim 2, characterized in that: Determining whether the video data needs to be re-encoded based on the detection result includes: In response to the detection result that the quality data does not meet the quality data threshold, adjusting the target encoding parameter, and re-encoding the video data according to the adjusted target encoding parameter; In response to the detection result that the quality data meets the quality data threshold, the energy consumption data in the process of transmitting the encoded video data is adjusted based on the target encoding parameters and the network environment data without re-encoding the video data.
4. The transmission method according to claim 3, characterized in that: Based on the target encoding parameter and the network environment data, adjusting the energy consumption data during the transmission of the encoded video data includes: In response to the target encoding parameters and the network environment data, the energy consumption data is adjusted to be reduced to meet the performance requirements for transmitting the encoded video data.
5. The transmission method according to claim 1, characterized in that: Transmitting the encoded video data according to the target transmission rate includes: The encoded video data is encrypted, and the encrypted video data is transmitted to a video receiving end according to the target transmission rate.
6. The transmission method according to claim 1, characterized in that: The network environment data is a network bandwidth of the network environment, wherein, based on the quality data and the network environment data, determining a target encoding parameter of the video data comprises: Get network bandwidth threshold and quality data threshold; The target encoding parameter is determined based on the quality data, the network bandwidth, the network bandwidth threshold, and the quality data threshold.
7. The transmission method according to claim 6, characterized in that: The step of encoding the video data according to the target encoding parameter to obtain encoded video data includes: In response to the quality data being lower than the quality data threshold, adjusting the target encoding parameter, and encoding the video data according to the adjusted target encoding data; In response to the quality data being greater than or equal to the quality data threshold, encoding the video data according to the target encoding parameter, and transmitting the encoded video data according to the target transmission rate.
8. A video data transmission device, characterized in that: include: An acquisition unit, used to acquire quality data of the video data to be transmitted and network environment data, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; a determining unit, configured to determine a target encoding parameter of the video data based on the quality data and the network environment data; An encoding unit, configured to perform encoding processing on the video data according to the target encoding parameter to obtain encoded video data; A transmission unit is used to determine a target transmission rate of the encoded video data based on the target encoding parameters and the encoded video data, and transmit the encoded video data according to the target transmission rate.
9. A video data transmission system, characterized in that: include: A video encoding module, used to obtain video data to be transmitted, and determine target encoding parameters of the video data according to quality data of the video data and network environment parameters, and encode the video data according to the target encoding parameters to obtain encoded video data, wherein the network environment data is used to indicate the degree of delay of the network environment in which the video data is located during the transmission of the video data; The network transmission module is used to determine a target transmission rate based on the target encoding parameters and the encoded video data, and transmit the encoded video data according to the target transmission rate.
10. The transmission system according to claim 9, characterized in that: The system further comprises: A video quality monitoring module, used to detect the quality data of the encoded video data to obtain a detection result, wherein the detection result is used to determine whether the target encoding parameter needs to be adjusted; An energy consumption control module, configured to adjust energy consumption data during transmission of the encoded video data based on the encoded video data and the network environment data; The security mechanism module is used to encrypt the encoded video data and transmit the encrypted video data to the video receiving end according to the target transmission rate.
Citation Information
Patent Citations
Video encoding method and device, electronic equipment and readable storage medium
CN111741305A
Video coding adjustment method and device, storage medium and electronic equipment
CN114466194A
Video data transmission method and device
CN115767149A
Video data transmission method, device and equipment
CN116095324A
Multi-Channel Video Communication Method And System
US20110090949A1
Cited By
Video data transmission method and device, storage medium and electronic equipment
CN120455784A