Video transmission power consumption determination method and apparatus, device, and storage medium
Patent Information
- Application Number
- CN202510438815.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2026-10-16
AI Technical Summary
[0004]本申请的主要目的在于提供一种视频传输功耗确定方法、装置、设备及存储介质,旨在解决现有技术无法实现对视频传输场景下的传输功耗的确定的技术问题
[0043] One or more technical solutions proposed in this application have at least the following technical effects: After detecting that a connection has been established between a split-type intelligent device and a target terminal, a video transmission scenario is simulated; video transmission parameters and the total transmission test duration under the video transmission scenario are obtained, and the total number of transmissions is determined based on the video transmission parameters and the total transmission test duration; when the current number of transmissions of the split-type intelligent device equals the total number of transmissions, the power consumption of the split-type intelligent device for video transmission is determined based on the initial power consumption and the target power consumption. Through the above method, when the conditions for establishing a connection between the split-type intelligent device and the target terminal are met, a video transmission scenario under actual business conditions is simulated. After obtaining the video transmission parameters, the number of video transmissions performed by the split-type intelligent device is determined by combining the total test duration required for power consumption determination. When the current number of transmissions equals the total number of transmissions, video transmission is stopped, and the power consumption of video transmission is determined based on the difference between the initial power consumption and the target power consumption, thereby enabling the determination of transmission power consumption under video transmission scenarios.
Smart Images

Figure CN122933465A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart device technology, and in particular to a method, apparatus, device and storage medium for determining video transmission power consumption. Background Technology
[0002] With the continuous development of augmented reality technology, modular smart devices have become the mainstream form of smart devices, such as modular smart glasses. These devices typically have limited battery current, therefore, power consumption must be a key factor to consider during use. To reduce power consumption, it is necessary to analyze the power consumption of modular smart devices in different scenarios. The analysis results show that the overall power consumption of modular smart devices is relatively high in video live streaming and streaming scenarios. To accurately pinpoint the source of high power consumption, it is necessary to further determine the power consumption of each sub-scenario, such as the video transmission scenario. However, the above method can only determine the overall power consumption of the entire scenario, which includes, but is not limited to, video acquisition, video encoding, and video transmission scenarios, and is not applicable to individual video transmission scenarios. Therefore, the above method cannot determine the transmission power consumption in video transmission scenarios.
[0003] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0004] The main objective of this application is to provide a method, apparatus, device, and storage medium for determining video transmission power consumption, aiming to solve the technical problem that the prior art cannot determine the transmission power consumption in video transmission scenarios.
[0005] To achieve the above objectives, this application proposes a method for determining video transmission power consumption, the method comprising:
[0006] After detecting that the split-type smart device has established a connection with the target terminal, a simulated video transmission scenario is executed.
[0007] Obtain the video transmission parameters and total transmission test duration under the video transmission scenario, and determine the total number of transmissions based on the video transmission parameters and the total transmission test duration;
[0008] When the current number of transmissions of the split-type smart device equals the total number of transmissions, the power consumption of the split-type smart device for video transmission is determined based on the initial power consumption and the target power consumption.
[0009] In one embodiment, the step of simulating a video transmission scenario after detecting that a connection has been established between the split-type smart device and the target terminal includes:
[0010] After detecting that the split-type smart device has established a connection with the target terminal, the entire video transmission process in historical business scenarios is obtained.
[0011] The entire video transmission process is layered based on a service layering strategy.
[0012] Each layer of the video transmission process is equipped with an independent running thread, and a layered scene simulation model is constructed based on the running results of the independent running threads;
[0013] The video transmission scenario is simulated based on the hierarchical scenario simulation model.
[0014] In one embodiment, the step of simulating a video transmission scenario based on the hierarchical scene simulation model includes:
[0015] Upon receiving a scenario simulation request, control the access of the layered scenario simulation model;
[0016] The scenario simulation request is parsed, and the scenario simulation requirements are determined based on the parsing results.
[0017] Set the key points and path for video transmission simulation according to the scenario simulation requirements;
[0018] Based on the hierarchical scene simulation model, a video transmission scene is simulated according to the key points of video transmission simulation and the video transmission simulation path.
[0019] In one embodiment, the step of determining the total number of transmissions based on the video transmission parameters and the total transmission test duration includes:
[0020] The current frame rate is obtained based on the video transmission parameters;
[0021] The total number of transmissions is calculated based on the current frame rate and the total duration of the transmission test.
[0022] In one embodiment, the step of determining the power consumption of the split-type smart device for video transmission based on the initial power consumption and the target power consumption when the current number of transmissions of the split-type smart device equals the total number of transmissions includes:
[0023] Determine the transmission interval between adjacent video frames and the video block to be transmitted based on the video transmission parameters.
[0024] When controlling the split-type intelligent device to transmit each of the video blocks to be transmitted according to the transmission interval time, the current transmission count of the split-type intelligent device is counted in real time.
[0025] When the current number of transmissions of the split-type smart device equals the total number of transmissions, video transmission is stopped, and the target power consumption is obtained by the power consumption management module based on the first power consumption acquisition request.
[0026] The difference between the initial power consumption and the target power consumption is calculated to obtain the power consumption of the split-type smart device for video transmission.
[0027] In one embodiment, the step of determining the transmission interval time between adjacent video frames and the video block to be transmitted based on video transmission parameters includes:
[0028] The current frame rate and current bit rate are obtained based on the video transmission parameters;
[0029] Calculate the transmission interval time between adjacent video frames based on the current frame rate;
[0030] Calculate the specifications of a single frame of video based on the current frame rate and the current bit rate, and request a fixed storage unit that matches the specifications.
[0031] The single-frame video is randomly stored in the fixed storage unit to generate a video block to be transmitted.
[0032] In one embodiment, after the steps of obtaining the video transmission parameters and the total transmission test duration in the video transmission scenario, the method further includes:
[0033] While controlling the split-type intelligent device to transmit each video block to be transmitted according to the transmission interval, the current moment is recorded in real time;
[0034] Calculate the current transmission time based on the current time and the initial time;
[0035] When the current transmission time equals the total transmission test duration, video transmission is stopped, and the current power consumption is obtained by the power management module based on the second power consumption acquisition request.
[0036] The difference between the initial power consumption and the current power consumption is calculated to obtain the power consumption of the split-type smart device for video transmission.
[0037] Furthermore, to achieve the above objectives, this application also proposes a video transmission power consumption determination device, which includes:
[0038] The simulation module is used to simulate video transmission scenarios after a connection is established between the split-type smart device and the target terminal.
[0039] The acquisition module is used to acquire the video transmission parameters and the total transmission test duration under the video transmission scenario, and determine the total number of transmissions based on the video transmission parameters and the total transmission test duration.
[0040] A determining module is used to determine the power consumption of the split-type smart device for video transmission based on the initial power consumption and the target power consumption when the current number of transmissions of the split-type smart device equals the total number of transmissions.
[0041] In addition, to achieve the above objectives, this application also proposes a video transmission power consumption determination device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the video transmission power consumption determination method as described above.
[0042] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the video transmission power consumption determination method described above.
[0043] One or more technical solutions proposed in this application have at least the following technical effects: After detecting that a connection has been established between a split-type intelligent device and a target terminal, a video transmission scenario is simulated; video transmission parameters and the total transmission test duration under the video transmission scenario are obtained, and the total number of transmissions is determined based on the video transmission parameters and the total transmission test duration; when the current number of transmissions of the split-type intelligent device equals the total number of transmissions, the power consumption of the split-type intelligent device for video transmission is determined based on the initial power consumption and the target power consumption. Through the above method, when the conditions for establishing a connection between the split-type intelligent device and the target terminal are met, a video transmission scenario under actual business conditions is simulated. After obtaining the video transmission parameters, the number of video transmissions performed by the split-type intelligent device is determined by combining the total test duration required for power consumption determination. When the current number of transmissions equals the total number of transmissions, video transmission is stopped, and the power consumption of video transmission is determined based on the difference between the initial power consumption and the target power consumption, thereby enabling the determination of transmission power consumption under video transmission scenarios. Attached Figure Description
[0044] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0045] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 This is a flowchart illustrating an embodiment of the video transmission power consumption determination method of this application.
[0047] Figure 2 This is a flowchart illustrating Embodiment 2 of the video transmission power consumption determination method of this application.
[0048] Figure 3 This is a schematic diagram of the module structure of the video transmission power consumption determination device according to an embodiment of this application;
[0049] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the video transmission power consumption determination method in this application embodiment.
[0050] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0051] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or transmission power consumption determination device capable of performing the above functions. The following description uses a transmission power consumption determination device as an example to illustrate this embodiment and the subsequent embodiments.
[0052] Based on this, embodiments of this application provide a method for determining video transmission power consumption, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the video transmission power consumption determination method of this application.
[0053] In this embodiment, the video transmission power consumption determination method includes steps S10 to S30:
[0054] Step S10: After detecting that the split-type smart device has established a connection with the target terminal, simulate a video transmission scenario.
[0055] It should be noted that the split-type smart device is limited by battery power and does not contain a display component. This split-type smart device can be a split-type AR glasses, and the target terminal can be a computer, mobile phone, etc. The connection between the split-type smart device and the target terminal can be established by network, Bluetooth, etc., and the protocol packets used can be User Datagram Protocol (UDP), Transmission Control Protocol (TCP), etc.
[0056] It is understandable that the video transmission scenario refers to the scenario in which a split-type intelligent device is used to transmit video to a target terminal in actual business operations. Since the split-type intelligent device directly performs video acquisition and video encoding when running in actual business operations, it is impossible to separate the video transmission link from the whole process, and therefore it is impossible to determine the video transmission power consumption. Based on this, in order to determine the transmission power consumption in the video transmission scenario, the goal is to determine the video transmission power consumption by simulating the video transmission scenario.
[0057] Further, step S10 includes: after detecting that the split-type smart device has established a connection with the target terminal, obtaining the entire video transmission process under historical business scenarios; dividing the entire video transmission process into layers based on a business layering strategy; equipping each layer of the video transmission process with an independent running thread, and constructing a layered scenario simulation model based on the running results of the independent running thread; and simulating the video transmission scenario based on the layered scenario simulation model.
[0058] It should be understood that in historical business scenarios, the entire video transmission process includes, but is not limited to, video acquisition, video encoding, and video transmission. To accurately and efficiently simulate video transmission scenarios, the entire video transmission process is layered based on a business layering strategy, and each layer is equipped with an independent running thread. Each layer's video transmission process can be implemented by triggering the execution of these independent threads. After execution, the results of these independent threads will involve parameters such as the input, output, and parameter flow of each video transmission process. At this point, a layered scenario simulation model is constructed by combining the identification information of each layer's video transmission process. This layered scenario simulation model is used to simulate different scenarios within the entire video transmission process. In this embodiment, the prediction is used to simulate video transmission scenarios where video transmission power consumption is determined.
[0059] Furthermore, the step of simulating a video transmission scenario based on the hierarchical scene simulation model includes: upon receiving a scene simulation request, controlling the hierarchical scene simulation model to access; parsing the scene simulation request and determining the scene simulation requirements based on the request parsing result; setting video transmission simulation key points and video transmission simulation paths according to the scene simulation requirements; and simulating a video transmission scenario based on the hierarchical scene simulation model, according to the video transmission simulation key points and the video transmission simulation paths.
[0060] Understandably, to effectively improve the efficiency of determining video transmission power consumption and avoid consuming computing resources, upon receiving a scene simulation request, indicating a need for scene simulation, a hierarchical scene simulation model is accessed. Based on the request parsing results, the scene simulation requirements are determined; for example, if a video transmission scene needs to be simulated, key points and paths for video transmission simulation are set. These key points include, but are not limited to, the simulation start point, simulation end point, and multiple intermediate points. The key points and paths are then input into the hierarchical scene simulation model, which simulates and outputs the video transmission scene. This allows for further determination of the transmission power consumption within the video transmission scene.
[0061] Step S20: Obtain the video transmission parameters and total transmission test duration under the video transmission scenario, and determine the total number of transmissions based on the video transmission parameters and the total transmission test duration.
[0062] It is understandable that video transmission parameters refer to the parameters used in video transmission scenarios. These video transmission parameters include, but are not limited to, the current frame rate and the current bit rate. The total transmission test duration refers to the total time required to determine the transmission power consumption in the video transmission scenario. After obtaining the video transmission parameters in the video transmission scenario, the total number of transmissions is determined by combining them with the total transmission test duration.
[0063] Furthermore, the step of determining the total number of transmissions based on the video transmission parameters and the total transmission test duration includes: obtaining the current frame rate based on the video transmission parameters; and calculating the total number of transmissions based on the current frame rate and the total transmission test duration.
[0064] It should be understood that the current frame rate represents the number of consecutive frames displayed per second. After obtaining the current frame rate, the total number of transmissions is calculated by combining it with the total transmission test duration, specifically as follows:
[0065] times = T·Frame.
[0066] Where times represents the total number of transmissions, T represents the total duration of the transmission test, and Frame represents the current frame rate.
[0067] Furthermore, after the steps of obtaining the video transmission parameters and the total transmission test duration in the video transmission scenario, the method further includes: recording the current time in real time while controlling the split-type intelligent device to transmit each video block to be transmitted according to the transmission interval; calculating the current transmission time based on the current time and the initial time; stopping video transmission when the current transmission time equals the total transmission test duration, and obtaining the current power consumption based on the power management module according to the second power consumption acquisition request; and calculating the difference between the initial power consumption and the current power consumption to obtain the power consumption of the split-type intelligent device for video transmission.
[0068] It is understood that the dimensions for determining whether to stop video transmission in this embodiment include the number of transmissions and the duration. Taking the duration dimension as an example, the current transmission time is calculated based on the current time and the initial time, and it is determined whether the current transmission time is equal to the total transmission test duration. If not, after the interval between transmissions, another video block to be transmitted is transmitted. If so, it indicates that the transmission power consumption determination condition has been met, and no further video transmission is needed. At this time, a second power consumption acquisition request is sent to the power management module so that the power management module can determine and feedback the current power consumption based on the second power consumption acquisition request. Before starting video transmission, an initial power consumption is requested from the power management module. At this time, the difference between the initial power consumption and the current power consumption is calculated to obtain the power consumption of the split smart device for video transmission.
[0069] Step S30: When the current number of transmissions of the split-type smart device equals the total number of transmissions, determine the power consumption of the split-type smart device for video transmission based on the initial power consumption and the target power consumption.
[0070] It should be understood that after obtaining the current number of transmissions of the split-type smart device, it is determined whether the current number of transmissions equals the total number of transmissions. If so, it indicates that the transmission power consumption determination condition has been met; otherwise, after the transmission interval time, another video block to be transmitted is transmitted. The target power consumption refers to the power consumption determined and fed back by the power management module based on the first power consumption acquisition request. At this time, the difference between the initial power consumption and the target power consumption is calculated to obtain the power consumption of the split-type smart device for video transmission. This embodiment is applicable not only to scenarios involving split-type smart devices and target terminals but also to other similar scenarios.
[0071] This embodiment simulates a video transmission scenario after detecting a connection established between a split-type smart device and a target terminal. It acquires the video transmission parameters and total transmission test duration under this scenario, and determines the total number of transmissions based on these parameters and duration. When the current number of transmissions by the split-type smart device equals the total number of transmissions, the power consumption of the split-type smart device during video transmission is determined based on the initial power consumption and the target power consumption. Through this method, when the conditions for establishing a connection between the split-type smart device and the target terminal are met, a video transmission scenario under actual business conditions is simulated. After acquiring the video transmission parameters, the number of video transmissions by the split-type smart device is determined by combining the total test duration required for power consumption determination. When the current number of transmissions equals the total number of transmissions, video transmission is stopped, and the power consumption of video transmission is determined based on the difference between the initial power consumption and the target power consumption. This enables the determination of transmission power consumption under video transmission scenarios.
[0072] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 Step S30 includes steps S301 to S304:
[0073] Step S301: Determine the transmission interval time between adjacent video frames and the video block to be transmitted based on the video transmission parameters.
[0074] It should be noted that the transmission interval time refers to the time interval between transmitting adjacent video frames, and the video block to be transmitted refers to the video block that needs to be transmitted from the split smart device to the target terminal. This video block to be transmitted can be generated based on a single frame of video and a fixed storage unit.
[0075] Further, step S301 includes: obtaining the current frame rate and current bit rate according to the video transmission parameters; calculating the transmission interval time between adjacent video frames according to the current frame rate; calculating the specifications of a single frame video according to the current frame rate and the current bit rate, and requesting a fixed storage unit consistent with the specifications; randomly storing the single frame video into the fixed storage unit to generate a video block to be transmitted.
[0076] It should be understood that after obtaining the current frame rate based on the video transmission parameters, the transmission interval between adjacent video frames is calculated as follows:
[0077] deltaT = 1 / Frame.
[0078] Where deltaT represents the transmission interval between adjacent video frames, and Frame represents the current frame rate.
[0079] It is understandable that the specification represents the size of a single frame of video. After obtaining the current frame rate and current bitrate based on the video transmission parameters, the specification of a single frame of video is calculated, specifically as follows:
[0080] Size=Rate·1024·1024 / 8 / Frame.
[0081] Here, Size represents the specifications of a single frame of video, Rate represents the current bitrate, and Frame represents the current frame rate.
[0082] It should be noted that, in order to reduce the fragmentation of single-frame video, after calculating the specifications of a single-frame video, a fixed storage unit with the same specifications is requested. This fixed storage unit can be a buffer, and the single-frame video is randomly stored in the fixed storage unit. After the fixed storage unit is full of single-frame video, a video block to be transmitted is generated.
[0083] Step S302: When controlling the split-type intelligent device to transmit each of the video blocks to be transmitted according to the transmission interval time, the current transmission count of the split-type intelligent device is counted in real time.
[0084] Understandably, after determining the transmission interval, the control unit transmits each video block to be transmitted according to the transmission interval. For example, after transmitting the first video block to be transmitted, the second video block to be transmitted is transmitted after waiting for the transmission interval.
[0085] Step S303: When the current number of transmissions of the split-type smart device equals the total number of transmissions, stop transmitting video and obtain the target power consumption based on the first power consumption acquisition request by the power consumption management module.
[0086] It should be understood that when the current number of transmissions of the split-type smart device equals the total number of transmissions, it indicates that the transmission power consumption determination condition has been met. At this time, the split-type smart device is controlled to stop transmitting video and send a first power consumption acquisition request to the power management module. For the power management module, after receiving the first power consumption acquisition request, it determines and feeds back the target power consumption.
[0087] Step S304: Calculate the difference between the initial power consumption and the target power consumption to obtain the power consumption of the split-type smart device for video transmission.
[0088] It is understandable that after obtaining the target power consumption, the difference between the initial power consumption and the target power consumption is calculated to obtain the power consumption of the split smart device for video transmission. For example, if the initial power consumption is GH1 and the target power consumption is GH2, then the power consumption of the split smart device for video transmission is gh = GH2 - GH1.
[0089] This embodiment determines the transmission interval time between adjacent video frames and the video blocks to be transmitted based on video transmission parameters. While controlling the split-type intelligent device to transmit each video block according to the transmission interval time, the current transmission count of the split-type intelligent device is counted in real time. When the current transmission count of the split-type intelligent device equals the total transmission count, video transmission is stopped, and the target power consumption is obtained based on the first power consumption acquisition request from the power management module. The difference between the initial power consumption and the target power consumption is calculated to obtain the power consumption of the split-type intelligent device for video transmission. Through the above method, after determining the transmission interval time between adjacent video frames based on video transmission parameters, the split-type intelligent device is controlled to transmit the video blocks to be transmitted according to the transmission interval time. The system determines whether to stop video transmission based on the transmission count, i.e., whether the current transmission count of the split-type intelligent device equals the total transmission count. If so, video transmission is stopped, and the difference between the initial power consumption and the target power consumption fed back by the power management module is used as the power consumption of the split-type intelligent device for video transmission, thereby effectively improving the accuracy of determining the video transmission power consumption.
[0090] This application also provides a video transmission power consumption determination device, please refer to... Figure 3 The video transmission power consumption determination device includes:
[0091] The simulation module 10 is used to simulate a video transmission scenario after detecting that the split-type smart device has established a connection with the target terminal.
[0092] The acquisition module 20 is used to acquire the video transmission parameters and the total transmission test duration under the video transmission scenario, and determine the total number of transmissions based on the video transmission parameters and the total transmission test duration.
[0093] The determining module 30 is used to determine the power consumption of the split smart device for video transmission based on the initial power consumption and the target power consumption when the current number of transmissions of the split smart device equals the total number of transmissions.
[0094] This embodiment simulates a video transmission scenario after detecting a connection established between a split-type smart device and a target terminal. It acquires the video transmission parameters and total transmission test duration under this scenario, and determines the total number of transmissions based on these parameters and duration. When the current number of transmissions by the split-type smart device equals the total number of transmissions, the power consumption of the split-type smart device during video transmission is determined based on the initial power consumption and the target power consumption. Through this method, when the conditions for establishing a connection between the split-type smart device and the target terminal are met, a video transmission scenario under actual business conditions is simulated. After acquiring the video transmission parameters, the number of video transmissions by the split-type smart device is determined by combining the total test duration required for power consumption determination. When the current number of transmissions equals the total number of transmissions, video transmission is stopped, and the power consumption of video transmission is determined based on the difference between the initial power consumption and the target power consumption. This enables the determination of transmission power consumption under video transmission scenarios.
[0095] The video transmission power consumption determination device provided in this application, employing the video transmission power consumption determination method described in the above embodiments, can solve the technical problem that the prior art cannot determine the transmission power consumption in video transmission scenarios. Compared with the prior art, the beneficial effects of the video transmission power consumption determination device provided in this application are the same as those of the video transmission power consumption determination method described in the above embodiments, and other technical features in the video transmission power consumption determination device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0096] In one embodiment, the simulation module 10 is further configured to, after detecting that the split-type smart device has established a connection with the target terminal, acquire the entire video transmission process under historical business scenarios; divide the entire video transmission process into layers based on a business layering strategy; equip each layer of the video transmission process with an independent running thread, and construct a layered scenario simulation model based on the running results of the independent running thread; and simulate the video transmission scenario based on the layered scenario simulation model.
[0097] In one embodiment, the simulation module 10 is further configured to, upon receiving a scene simulation request, control the access of the hierarchical scene simulation model; parse the scene simulation request and determine the scene simulation requirements based on the request parsing result; set video transmission simulation key points and video transmission simulation paths according to the scene simulation requirements; and simulate a video transmission scene based on the hierarchical scene simulation model, according to the video transmission simulation key points and the video transmission simulation paths.
[0098] In one embodiment, the acquisition module 20 is further configured to obtain the current frame rate based on the video transmission parameters; and calculate the total number of transmissions based on the current frame rate and the total transmission test duration.
[0099] In one embodiment, the acquisition module 20 is further configured to: record the current time in real time when controlling the split-type smart device to transmit each video block to be transmitted according to the transmission interval; calculate the current transmission time based on the current time and the initial time; stop transmitting video when the current transmission time is equal to the total transmission test duration, and obtain the current power consumption based on the power consumption management module according to the second power consumption acquisition request; calculate the difference between the initial power consumption and the current power consumption to obtain the power consumption of the split-type smart device for video transmission.
[0100] In one embodiment, the determining module 30 is further configured to determine the transmission interval time between adjacent video frames and the video blocks to be transmitted according to the video transmission parameters; when controlling the split-type intelligent device to transmit each of the video blocks to be transmitted according to the transmission interval time, the current transmission count of the split-type intelligent device is counted in real time; when the current transmission count of the split-type intelligent device is equal to the total transmission count, the video transmission is stopped, and the target power consumption is obtained based on the power consumption management module according to the first power consumption acquisition request; the difference between the initial power consumption and the target power consumption is calculated to obtain the power consumption of the split-type intelligent device for video transmission.
[0101] In one embodiment, the determining module 30 is further configured to obtain the current frame rate and the current bit rate according to the video transmission parameters; calculate the transmission interval time between adjacent video frames according to the current frame rate; calculate the specifications of a single frame video according to the current frame rate and the current bit rate, and request a fixed storage unit consistent with the specifications; randomly store the single frame video in the fixed storage unit to generate a video block to be transmitted.
[0102] In one embodiment, the pairing module 30 is further configured to...
[0103] This application provides a video transmission power consumption determination device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the video transmission power consumption determination method in the above embodiment 1.
[0104] The following is for reference. Figure 4The diagram illustrates a structural schematic suitable for implementing the video transmission power consumption determination device in the embodiments of this application. The video transmission power consumption determination device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The video transmission power consumption determination device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0105] like Figure 4 As shown, the video transmission power consumption determination device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in ROM (Read Only Memory) 1002 or a program loaded from storage device 1003 into RAM (Random Access Memory) 1004. RAM 1004 also stores various programs and data required for the operation of the video transmission power consumption determination device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touch screens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the video transmission power consumption determination device to communicate wirelessly or wiredly with other devices to exchange data. While the figure shows video transmission power consumption determination devices with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0106] Specifically, according to the embodiments disclosed in this application, the process described above with reference to the flowcharts can be implemented as a computer software program. This computer program includes program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0107] The video transmission power consumption determination device provided in this application, employing the video transmission power consumption determination method described in the above embodiments, can solve the technical problem that the prior art cannot determine the transmission power consumption in video transmission scenarios. Compared with the prior art, the beneficial effects of the video transmission power consumption determination device provided in this application are the same as those of the video transmission power consumption determination method described in the above embodiments, and other technical features of this video transmission power consumption determination device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0108] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0109] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0110] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the video transmission power consumption determination method in the above embodiments.
[0111] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0112] The aforementioned computer-readable storage medium may be included in the video transmission power consumption determination device; or it may exist independently and not assembled into the video transmission power consumption determination device.
[0113] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0114] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0115] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0116] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described video transmission power consumption determination method. This solves the technical problem that existing technologies cannot determine transmission power consumption in video transmission scenarios. Compared with existing technologies, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the video transmission power consumption determination method provided in the above embodiments, and will not be repeated here.
[0117] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A method for determining video transmission power consumption, characterized in that, The method includes: After detecting that the split-type smart device has established a connection with the target terminal, a simulated video transmission scenario is executed. Obtain the video transmission parameters and total transmission test duration under the video transmission scenario, and determine the total number of transmissions based on the video transmission parameters and the total transmission test duration; When the current number of transmissions of the split-type smart device equals the total number of transmissions, the power consumption of the split-type smart device for video transmission is determined based on the initial power consumption and the target power consumption.
2. The method as described in claim 1, characterized in that, The step of simulating a video transmission scenario after detecting that a connection has been established between the split-type smart device and the target terminal includes: After detecting that the split-type smart device has established a connection with the target terminal, the entire video transmission process in historical business scenarios is obtained. The entire video transmission process is layered based on a service layering strategy. Each layer of the video transmission process is equipped with an independent running thread, and a layered scene simulation model is constructed based on the running results of the independent running threads; The video transmission scenario is simulated based on the hierarchical scenario simulation model.
3. The method as described in claim 2, characterized in that, The step of simulating a video transmission scenario based on the hierarchical scene simulation model includes: Upon receiving a scenario simulation request, control the access of the layered scenario simulation model; The scenario simulation request is parsed, and the scenario simulation requirements are determined based on the parsing results. Set the key points and path for video transmission simulation according to the scenario simulation requirements; Based on the hierarchical scene simulation model, a video transmission scene is simulated according to the key points of video transmission simulation and the video transmission simulation path.
4. The method as described in claim 1, characterized in that, The step of determining the total number of transmissions based on the video transmission parameters and the total transmission test duration includes: The current frame rate is obtained based on the video transmission parameters; The total number of transmissions is calculated based on the current frame rate and the total duration of the transmission test.
5. The method according to any one of claims 1 to 4, characterized in that, The step of determining the power consumption of the split-type smart device for video transmission based on the initial power consumption and the target power consumption when the current transmission count of the split-type smart device equals the total transmission count includes: Determine the transmission interval between adjacent video frames and the video block to be transmitted based on the video transmission parameters. When controlling the split-type intelligent device to transmit each of the video blocks to be transmitted according to the transmission interval time, the current transmission count of the split-type intelligent device is counted in real time. When the current number of transmissions of the split-type smart device equals the total number of transmissions, video transmission is stopped, and the target power consumption is obtained by the power consumption management module based on the first power consumption acquisition request. The difference between the initial power consumption and the target power consumption is calculated to obtain the power consumption of the split-type smart device for video transmission.
6. The method as described in claim 5, characterized in that, The step of determining the transmission interval time between adjacent video frames and the video block to be transmitted based on video transmission parameters includes: The current frame rate and current bit rate are obtained based on the video transmission parameters; Calculate the transmission interval time between adjacent video frames based on the current frame rate; Calculate the specifications of a single frame of video based on the current frame rate and the current bit rate, and request a fixed storage unit that matches the specifications. The single-frame video is randomly stored in the fixed storage unit to generate a video block to be transmitted.
7. The method as described in claim 1, characterized in that, After the steps of obtaining the video transmission parameters and the total transmission test duration in the video transmission scenario, the method further includes: While controlling the split-type intelligent device to transmit each video block to be transmitted according to the transmission interval, the current moment is recorded in real time; Calculate the current transmission time based on the current time and the initial time; When the current transmission time equals the total transmission test duration, video transmission is stopped, and the current power consumption is obtained by the power management module based on the second power consumption acquisition request. The difference between the initial power consumption and the current power consumption is calculated to obtain the power consumption of the split-type smart device for video transmission.
8. A video transmission power consumption determination device, characterized in that, The device includes: The simulation module is used to simulate video transmission scenarios after a connection is established between the split-type smart device and the target terminal. The acquisition module is used to acquire the video transmission parameters and the total transmission test duration under the video transmission scenario, and determine the total number of transmissions based on the video transmission parameters and the total transmission test duration. A determining module is used to determine the power consumption of the split-type smart device for video transmission based on the initial power consumption and the target power consumption when the current number of transmissions of the split-type smart device equals the total number of transmissions.
9. A video transmission power consumption determination device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the video transmission power consumption determination method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the video transmission power consumption determination method as described in any one of claims 1 to 7.