A high-definition video visual method for emergency
By optimizing the bandwidth allocation of emergency networks and adjusting video quality, the problem of low emergency network utilization is solved, ensuring the timeliness and effectiveness of emergency commands, and improving the efficiency and accuracy of emergency responses.
Patent Information
- Application Number
- CN202411371029.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2044-09-29
AI Technical Summary
In the prior art, the bandwidth allocation of emergency networks cannot be maximized, resulting in poor emergency command networks and reducing emergency processing efficiency and quality.
By obtaining user priorities and emergencies for high-definition video tasks, dynamic adjustment of bandwidth policies and rotation training scheduling algorithms are adopted to optimize network bandwidth allocation to ensure the rapid execution of high-privilege tasks and the balanced processing of low-privilege tasks.
It realizes timely and stable video calls for emergency command, maximizes the use of emergency networks, and improves the efficiency and accuracy of emergency response.
Smart Images

Figure CN119324904B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and particularly relates to a high-definition video visualization method for emergency use. Background Art
[0002] The emergency command center is a command center with the ability to ensure public safety and handle emergencies. It can prevent and reduce emergencies and their damages to the greatest extent, protect the lives and property safety of the public, maintain national security and social stability, and promote the all-round, coordinated and sustainable development of the economic society. In an emergency, in addition to the emergency command center, there may often be some other emergency response departments, other units or other individuals that need to occupy network bandwidth. Therefore, it is necessary to reasonably allocate network bandwidth to provide emergency network services for multiple parties. However, in the prior art, network bandwidth is often allocated according to service types, which not only fails to maximize the use of the emergency network for emergency handling, but may also lead to poor emergency command network, reducing the efficiency and quality of emergency handling. Summary of the Invention
[0003] The present invention provides a high-definition video visualization method for emergency use to solve the technical problems existing in the prior art.
[0004] A high-definition video visualization method for emergency use includes:
[0005] Obtaining a high-definition video task transmitted by a user; wherein, the high-definition video task includes video clarity and user priority preset by a manager;
[0006] Analyzing the high-definition video task, and determining the emergency corresponding to the high-definition video task according to the user priority corresponding to the high-definition video task; wherein, the emergency includes urgent and must be executed immediately or non-urgent and not necessarily executed immediately;
[0007] When the emergency corresponding to the high-definition video task is urgent and must be executed immediately, the high-definition video task is immediately executed according to the first dynamic bandwidth adjustment strategy based on the video clarity;
[0008] When the emergency corresponding to the high-definition video task is non-urgent and not necessarily executed immediately, the high-definition video task is executed by using a round-robin scheduling algorithm and a second dynamic bandwidth adjustment strategy to complete the high-definition video visualization process.
[0009] Further, analyzing the high-definition video task, and determining the emergency corresponding to the high-definition video task according to the user priority corresponding to the high-definition video task includes:
[0010] Parse the high-definition video task to determine the user priority corresponding to the high-definition video task; among them, the higher the user priority, the higher the user's video call permission, and the more important it is.
[0011] Determine whether the user priority corresponding to the high-definition video task is greater than a preset user priority threshold. If so, determine that the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately; otherwise, determine that the emergency situation corresponding to the high-definition video task is not urgent and not required to be executed immediately.
[0012] Further, when the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, then immediately execute the high-definition video task according to the video clarity using the first dynamic bandwidth adjustment strategy, including:
[0013] When the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, determine that the high-definition video task is a high-priority task.
[0014] According to the video clarity of the high-priority task, use the look-up table matching method to determine the minimum bandwidth and the maximum bandwidth for video calls at this video clarity.
[0015] Remove the tasks with the emergency situation being urgent and must be executed immediately from the high-definition video tasks being executed to obtain the target high-definition video tasks.
[0016] Sort the target high-definition video tasks in ascending order of user priority, and based on the sorting, set the bandwidth allocation corresponding to the target high-definition video tasks to their corresponding minimum bandwidths one by one until the remaining bandwidth of the current network meets the maximum bandwidth of the high-priority task, and then immediately execute the high-priority task.
[0017] After the bandwidth allocations of all target high-definition video tasks are reduced to the minimum, if the remaining bandwidth of the current network does not meet the maximum bandwidth of the high-priority task, then determine whether the remaining bandwidth of the current network meets the minimum bandwidth of the high-priority task. If so, immediately execute the high-priority task; otherwise, perform further processing.
[0018] Based on the sorting, terminate the target high-definition video tasks one by one until the remaining bandwidth of the current network meets the minimum bandwidth of the high-priority task, and then immediately execute the high-priority task.
[0019] Further, when the emergency situation corresponding to the high-definition video task is not urgent and not required to be executed immediately, then use the round-robin scheduling algorithm and the second dynamic bandwidth adjustment strategy to execute the high-definition video task, including:
[0020] When the emergency situation corresponding to the high-definition video task is not urgent and not required to be executed immediately, the user priority corresponding to the high-definition video task is used as its initial execution priority in the task queue;
[0021] Every clock cycle, increment the execution priority in the task queue by one to update the execution priority;
[0022] Real-time obtain the remaining bandwidth of the current network, and determine whether the remaining bandwidth of the current network meets the minimum bandwidth corresponding to the highest-priority high-definition video task in the task queue. If so, execute the highest-priority high-definition video task in the task queue; otherwise, repeat this step;
[0023] After executing the highest-priority high-definition video task in the task queue, use the second dynamic bandwidth adjustment strategy to adjust the bandwidth allocation corresponding to the high-definition video task being executed in real time to achieve optimal bandwidth allocation.
[0024] Furthermore, using the second dynamic bandwidth adjustment strategy to adjust the bandwidth allocation corresponding to the high-definition video task being executed in real time includes:
[0025] For the high-definition video task being executed, determine whether the high-definition video task is a high-privilege task. If so, adjust the bandwidth allocation corresponding to the high-privilege task to its corresponding maximum bandwidth; otherwise, determine the high-definition video task as the target high-definition video task;
[0026] Determine the remaining bandwidth of the current network, and based on the remaining bandwidth of the current network, construct the constraint conditions corresponding to each target high-definition video task;
[0027] Construct a bandwidth optimization objective function, initialize the bandwidth ratio corresponding to each target high-definition video task, determine the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings;
[0028] With the goal of maximizing the bandwidth optimization objective function, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm to update multiple different bandwidth ratio encodings to obtain the optimal bandwidth ratio encoding;
[0029] According to the optimal bandwidth ratio encoding, adjust the bandwidth allocation corresponding to the high-definition video task in real time.
[0030] Furthermore, determining the remaining bandwidth of the current network, and based on the remaining bandwidth of the current network, constructing the constraint conditions corresponding to each target high-definition video task includes:
[0031] Determine the remaining bandwidth of the current network;
[0032] Construct the first constraint condition: The sum of the bandwidth allocations corresponding to all target high-definition video tasks is less than or equal to the remaining bandwidth of the current network;
[0033] Construct the second constraint condition: For any target high-definition video task, its bandwidth allocation is between its minimum bandwidth and maximum bandwidth.
[0034] Furthermore, construct a bandwidth optimization objective function, initialize the bandwidth ratio of each target high-definition video task, determine the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings, including:
[0035] Construct a bandwidth allocation satisfaction function; where the bandwidth allocation satisfaction function is used to characterize the degree to which the bandwidth allocation is close to the maximum bandwidth;
[0036] Based on the user priority, perform a weighted sum of the bandwidth allocation satisfaction functions of all target high-definition video tasks to obtain the bandwidth optimization objective function;
[0037] Randomly initialize the bandwidth ratio of each target high-definition video task in the interval (0, 1) to obtain the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings.
[0038] Furthermore, aiming at maximizing the bandwidth optimization objective function, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm to update multiple different bandwidth ratio encodings to obtain the optimal bandwidth ratio encoding, including:
[0039] Set the iteration counter T = 1;
[0040] Use the bandwidth optimization objective function to obtain the function value of each bandwidth ratio encoding, and use this function value as the fitness of the bandwidth ratio encoding;
[0041] Determine the optimal bandwidth ratio encoding according to the fitness of the bandwidth ratio encoding;
[0042] According to the optimal bandwidth ratio encoding, use the particle swarm algorithm to update the bandwidth ratio encoding to obtain the updated bandwidth ratio encoding;
[0043] Judge whether the updated bandwidth ratio encoding satisfies the constraint conditions. If so, judge the number of iterations. Otherwise, set the out-of-limit dimension to the value that recently satisfied the constraint conditions;
[0044] Judge whether the count value of the iteration counter is greater than or equal to the preset maximum number of iterations. If so, re-determine the optimal bandwidth ratio encoding according to the updated bandwidth ratio encoding and output it. Otherwise, increment the count value of the iteration counter by one, and return to the step of obtaining the fitness of the bandwidth ratio encoding.
[0045] Further, it further includes:
[0046] When performing a high-definition video task for a non-high-privilege task, a high-definition video visible time threshold is set for each high-definition video task. When the continuous execution time of the high-definition video task is equal to or greater than the high-definition video visible time threshold, the high-definition video task ends; otherwise, the high-definition video task continues to be executed.
[0047] Further, after the high-definition video task being executed is actively interrupted by the user, the high-definition video tasks in the task queue are executed one by one.
[0048] A high-definition video visualization method for emergency provided by the present invention optimizes network bandwidth allocation and adjusts video quality in real time to cope with high-dynamic scenarios and bandwidth limitation problems in emergency situations. Besides ensuring that emergency command can conduct video calls in a timely and stable manner, it can also maximize the utilization of the emergency network, enabling all parts to participate in emergency handling. This method can ensure that key video information in emergency command and on-site operations is clearly visible, thereby improving the efficiency and accuracy of emergency response. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.
[0050] Figure 1 It is a flowchart of a high-definition video visualization method for emergency provided by an embodiment of the present invention.
[0051] Through the above accompanying drawings, specific embodiments of the present invention have been shown, and there will be more detailed descriptions hereinafter. These accompanying drawings and written descriptions are not intended to limit the scope of the inventive concept in any way, but to illustrate the concept of the present invention to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0052] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0053] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0054] As Figure 1 shown, an embodiment of the present invention provides a high-definition video visualization method for emergency, including:
[0055] S101. Obtain the high-definition video task transmitted by the user; wherein, the high-definition video task includes video clarity and user priority preset by the management personnel.
[0056] It should be noted that although the embodiments of the present invention are mainly for optimizing the visual process of high-definition videos, the high-definition video task can also be replaced with other communication tasks, so that the emergency department or individual can use the emergency network for communication, improving the usage efficiency of the emergency network during the emergency command process and providing network services for more departments or individuals.
[0057] Optionally, for each video clarity, the required minimum bandwidth and maximum bandwidth are set, and network optimization can be carried out based on this.
[0058] S102. Analyze the high-definition video task, and determine the emergency situation corresponding to the high-definition video task according to the user priority corresponding to the high-definition video task; wherein, the emergency situation includes urgent and must be executed immediately or non-urgent and not necessarily executed immediately.
[0059] For example, the emergency situation corresponding to the emergency command part should be urgent and must be executed immediately to ensure the efficiency and quality of the emergency process.
[0060] S103. When the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, immediately execute the high-definition video task according to the video clarity using the first dynamic bandwidth adjustment strategy.
[0061] The first dynamic bandwidth adjustment strategy refers to a strategy that can run the high-definition video task normally and can ensure the timely emergency command.
[0062] S104. When the emergency situation corresponding to the high-definition video task is non-urgent and not necessarily executed immediately, execute the high-definition video task using the round-robin scheduling algorithm and the second dynamic bandwidth adjustment strategy to complete the high-definition video visual process.
[0063] Executing the high-definition video task using the round-robin scheduling algorithm and the second dynamic bandwidth adjustment strategy can ensure the effective execution of each high-definition video task and can maximize the utilization of the emergency network.
[0064] An emergency high-definition video visualization method provided by the present invention optimizes network bandwidth allocation and adjusts video quality in real time to address high-dynamic scenarios and bandwidth limitations in emergency situations. In addition to ensuring timely and stable video calls for emergency command, it can maximize the utilization of emergency networks, enabling all parts to participate in emergency handling. This method can ensure that key video information in emergency command and on-site operations is clearly visible, thereby improving the efficiency and accuracy of emergency response.
[0065] In an embodiment of the present invention, the high-definition video task is parsed, and the emergency situation corresponding to the high-definition video task is determined according to the user priority corresponding to the high-definition video task, including:
[0066] Parse the high-definition video task to determine the user priority corresponding to the high-definition video task; among them, the higher the user priority, the higher the user's video call permission, and the more important it is;
[0067] Judge whether the user priority corresponding to the high-definition video task is greater than a preset user priority threshold. If so, determine that the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately; otherwise, determine that the emergency situation corresponding to the high-definition video task is not urgent and not necessarily executed immediately.
[0068] In an embodiment of the present invention, when the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, the high-definition video task is immediately executed according to the first dynamic bandwidth adjustment strategy according to the video clarity, including:
[0069] When the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, determine that the high-definition video task is a high-priority task;
[0070] According to the video clarity of the high-priority task, use the look-up table matching method to determine the minimum bandwidth and maximum bandwidth for video calls at this video clarity;
[0071] Remove the tasks in the currently executing high-definition video tasks whose emergency situations are urgent and must be executed immediately to obtain the target high-definition video tasks;
[0072] Sort the target high-definition video tasks in ascending order of user priority, and based on the sorting, set the bandwidth allocation corresponding to the target high-definition video tasks to their corresponding minimum bandwidths one by one until the remaining bandwidth of the current network meets the maximum bandwidth of the high-priority task, and immediately execute the high-priority task;
[0073] After the bandwidth allocation for all target high-definition video tasks is minimized, if the remaining bandwidth of the current network does not meet the maximum bandwidth of high-priority tasks, it is determined whether the remaining bandwidth of the current network meets the minimum bandwidth of high-priority tasks. If so, the high-priority tasks are immediately executed; otherwise, further processing is performed.
[0074] Based on the sorting, the target high-definition video tasks are terminated one by one until the remaining bandwidth of the current network meets the minimum bandwidth of the high-priority tasks, and the high-priority tasks are immediately executed.
[0075] Through the above first dynamic bandwidth adjustment strategy, the rapid execution of high-priority tasks can be effectively guaranteed, thus ensuring the efficiency and quality of the emergency command process.
[0076] In the embodiments of the present invention, when the emergency situation corresponding to the high-definition video task is not urgent and not immediately executable, the round-robin scheduling algorithm and the second dynamic bandwidth adjustment strategy are used to execute the high-definition video task, including:
[0077] When the emergency situation corresponding to the high-definition video task is not urgent and not immediately executable, the user priority corresponding to the high-definition video task is used as its initial execution priority in the task queue.
[0078] Every clock cycle, the execution priority in the task queue is incremented by one to update the execution priority.
[0079] The remaining bandwidth of the current network is obtained in real time, and it is determined whether the remaining bandwidth of the current network meets the minimum bandwidth corresponding to the high-definition video task ranked first in the task queue. If so, the high-definition video task ranked first in the task queue is executed; otherwise, this step is repeated.
[0080] After executing the high-definition video task ranked first in the task queue, the second dynamic bandwidth adjustment strategy is used to adjust the bandwidth allocation corresponding to the high-definition video task being executed in real time to achieve optimal bandwidth allocation.
[0081] Through the above round-robin scheduling algorithm, high-priority users can have faster execution efficiency, and low-priority users can also have the possibility of being executed, thus achieving the balance between high priority and low priority.
[0082] In the embodiments of the present invention, the second dynamic bandwidth adjustment strategy is used to adjust the bandwidth allocation corresponding to the high-definition video task being executed in real time, including:
[0083] For the currently executing high-definition video task, determine whether the high-definition video task is a high-privilege task. If so, adjust the bandwidth allocation corresponding to the high-privilege task to its corresponding maximum bandwidth; otherwise, determine the high-definition video task as the target high-definition video task.
[0084] Determine the remaining bandwidth of the current network, and based on the remaining bandwidth of the current network, construct the constraint conditions corresponding to each target high-definition video task.
[0085] Construct a bandwidth optimization objective function, initialize the bandwidth ratio of each target high-definition video task, determine the bandwidth ratio coding, and obtain multiple different bandwidth ratio codings.
[0086] With the goal of maximizing the bandwidth optimization objective function, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm to update multiple different bandwidth ratio codings to obtain the optimal bandwidth ratio coding.
[0087] According to the optimal bandwidth ratio coding, adjust the bandwidth allocation corresponding to the high-definition video task in real time.
[0088] In the embodiment of the present invention, determining the remaining bandwidth of the current network and constructing the constraint conditions corresponding to each target high-definition video task based on the remaining bandwidth of the current network includes:
[0089] Determine the remaining bandwidth of the current network;
[0090] Construct the first constraint condition: the sum of the bandwidth allocations corresponding to all target high-definition video tasks is less than or equal to the remaining bandwidth of the current network;
[0091] Construct the second constraint condition: for any one target high-definition video task, its bandwidth allocation is between its minimum bandwidth and maximum bandwidth.
[0092] In the embodiment of the present invention, constructing a bandwidth optimization objective function, initializing the bandwidth ratio of each target high-definition video task, determining the bandwidth ratio coding, and obtaining multiple different bandwidth ratio codings includes:
[0093] Construct a bandwidth allocation satisfaction function; wherein, the bandwidth allocation satisfaction function is used to characterize the degree to which the bandwidth allocation is close to the maximum bandwidth.
[0094] Based on the user priority, perform a weighted sum of the bandwidth allocation satisfaction functions of all target high-definition video tasks to obtain the bandwidth optimization objective function as: f = ;
[0095] Optionally, the embodiment of the present invention provides a bandwidth optimization objective function, which can be:
[0096]
[0097] Among them, represents the bandwidth optimization objective function, represents the i weight of the i-th target high-definition video task being executed, where i = 1, 2,..., I, and I represents the total number of target high-definition video tasks, represents the natural constant, represents the constant coefficient, c i represents the average value of the minimum bandwidth and the maximum bandwidth corresponding to the i-th target high-definition video task being executed, i B i represents the i bandwidth allocation of the i-th target high-definition video task being executed.
[0098] An embodiment of the present invention provides a method for obtaining weights, which may include: summing up the user priorities of the target high-definition video tasks being executed, and then for each target high-definition video task, dividing the user priority of the target high-definition video task by the sum to obtain the weight of the target high-definition video task.
[0099] The bandwidth optimization objective function provided by the embodiment of the present invention enables high-definition video tasks with higher user priorities to have more bandwidth allocations, ensuring that users with higher user priorities have higher video viewing efficiency and quality.
[0100] Taking the interval (0, 1), randomly initialize the bandwidth ratio of each target high-definition video task to obtain the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings.
[0101] After the bandwidth ratio encoding, it needs to be decoded to determine the bandwidth allocation corresponding to each high-definition video task, which may include:
[0102] For the bandwidth ratio encoding, sum up the bandwidth ratio encoding to obtain the total ratio;
[0103] For each element corresponding to a high-definition video task in the bandwidth ratio encoding, divide the element value by the total ratio to obtain the bandwidth allocation ratio value;
[0104] Multiply the bandwidth allocation ratio value by the remaining bandwidth of the current network to obtain the bandwidth allocation corresponding to the high-definition video task.
[0105] This bandwidth allocation method can not only convert the bandwidth allocation into a mathematical problem that can be continuously solved, but also meet the first constraint condition, reducing the complexity of the algorithm.
[0106] In an embodiment of the present invention, aiming at maximizing the bandwidth optimization objective function, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm to update multiple different bandwidth ratio encodings to obtain an optimal bandwidth ratio encoding, including:
[0107] Set the iteration counter T = 1;
[0108] Use the bandwidth optimization objective function to obtain the function value of each bandwidth ratio encoding, and use this function value as the fitness of the bandwidth ratio encoding;
[0109] Determine the optimal bandwidth ratio encoding according to the fitness of the bandwidth ratio encoding;
[0110] According to the optimal bandwidth ratio encoding, use the particle swarm algorithm to update the bandwidth ratio encoding to obtain the updated bandwidth ratio encoding;
[0111] Judge whether the updated bandwidth ratio encoding meets the constraint conditions. If so, judge the number of iterations. Otherwise, set the out-of-limit dimension to the value that recently met the constraint conditions;
[0112] For example: when the bandwidth allocation corresponding to a high-definition video task is less than its minimum bandwidth, gradually increase the corresponding element in the bandwidth ratio encoding (e.g., increase by 0.01 or 0.001 each time) until the bandwidth allocation corresponding to the high-definition video task is equal to or greater than its minimum bandwidth; when the bandwidth allocation exceeds the upper limit, perform similar processing, except that the element value is gradually decreased.
[0113] Judge whether the count value of the iteration counter is greater than or equal to the preset maximum number of iterations. If so, re-determine the optimal bandwidth ratio encoding according to the updated bandwidth ratio encoding and output it. Otherwise, increment the count value of the iteration counter by one and return to the step of obtaining the fitness of the bandwidth ratio encoding.
[0114] In an embodiment of the present invention, it further includes:
[0115] When executing a high-definition video task of a non-high-privilege task, set a high-definition video visible time threshold for each high-definition video task. When the continuous execution time of the high-definition video task is equal to or greater than the high-definition video visible time threshold, end the high-definition video task. Otherwise, continue to execute the high-definition video task.
[0116] Except for emergency command, other parts or individuals are tasks that can be cancelled. Therefore, these tasks are non-essential tasks. In order to realize the coordinated use of the emergency network by all parties, the execution time of each video task can be set. After executing for a certain time, end the occupation of the task, improve the comprehensive use efficiency of the emergency network by all parties, and avoid the situation of occupying the network for a long time.
[0117] In an embodiment of the present invention, after the currently executing high-definition video task is actively interrupted by the user, the high-definition video tasks in the task queue are executed one by one.
[0118] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take 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.
[0119] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0120] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0122] Those of ordinary skill in the art can understand that all or part of the steps in implementing the above facts and methods can be completed by instructing relevant hardware through a program. The program involved or the said program can be stored in a computer-readable storage medium. When the program is executed, it includes the following steps: At this time, the corresponding method steps are introduced. The storage medium can be ROM / RAM, magnetic disk, optical disk, etc.
[0123] The specific embodiments described above have further elaborated on the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A high-definition video visual method for emergency use, characterized in that, Including: Obtain the high-definition video task transmitted by the user; wherein, the high-definition video task includes video clarity and user priority preset by the administrator; Analyze the high-definition video task, and determine the emergency situation corresponding to the high-definition video task according to the user priority corresponding to the high-definition video task; wherein, the emergency situation includes urgent and must be executed immediately or not urgent and not necessarily executed immediately; When the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, then immediately execute the high-definition video task according to the video clarity by using the first dynamic bandwidth adjustment strategy; When the emergency situation corresponding to the high-definition video task is not urgent and not necessarily executed immediately, then use the round-robin scheduling algorithm and the second dynamic bandwidth adjustment strategy to execute the high-definition video task to complete the high-definition video visual process; When the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, then immediately execute the high-definition video task according to the video clarity by using the first dynamic bandwidth adjustment strategy, including: When the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, determine that the high-definition video task is a high-privilege task; According to the video clarity of the high-privilege task, use the look-up table matching method to determine the minimum bandwidth and the maximum bandwidth for video call under this video clarity; Remove the tasks with the emergency situation of urgent and must be executed immediately from the high-definition video tasks being executed to obtain the target high-definition video tasks; Sort the target high-definition video tasks in ascending order according to the user priority, and based on the sorting, set the bandwidth allocation corresponding to the target high-definition video tasks to their corresponding minimum bandwidth one by one until the remaining bandwidth of the current network meets the maximum bandwidth of the high-privilege task, and immediately execute the high-privilege task; After the bandwidth allocation of all target high-definition video tasks is reduced to the minimum, if the remaining bandwidth of the current network does not meet the maximum bandwidth of the high-privilege task, then judge whether the remaining bandwidth of the current network meets the minimum bandwidth of the high-privilege task. If so, immediately execute the high-privilege task, otherwise perform further processing; Based on the sorting, terminate the target high-definition video tasks one by one until the remaining bandwidth of the current network meets the minimum bandwidth of the high-privilege task, and immediately execute the high-privilege task; When the emergency situation corresponding to the high-definition video task is not urgent and not necessarily executed immediately, then use the round-robin scheduling algorithm and the second dynamic bandwidth adjustment strategy to execute the high-definition video task, including: When the emergency situation corresponding to the high-definition video task is not urgent and not necessarily executed immediately, use the user priority corresponding to the high-definition video task as its initial execution priority in the task queue; Every time a clock cycle passes, increment the execution priority in the task queue by one to update the execution priority; Real-time obtain the remaining bandwidth of the current network, and judge whether the remaining bandwidth of the current network meets the minimum bandwidth corresponding to the high-definition video task ranked first in the task queue. If so, execute the high-definition video task ranked first in the task queue, otherwise repeat this step; After executing the highest-priority high-definition video task in the task queue, the second dynamic bandwidth adjustment policy is adopted to adjust the bandwidth allocation corresponding to the high-definition video task being executed in real time to achieve optimal bandwidth allocation; Adopting the second dynamic bandwidth adjustment policy to adjust the bandwidth allocation corresponding to the high-definition video task being executed in real time includes: For the high-definition video task being executed, determine whether the high-definition video task is a high-privilege task. If so, adjust the bandwidth allocation corresponding to the high-privilege task to its corresponding maximum bandwidth. Otherwise, determine the high-definition video task as the target high-definition video task; Determine the remaining bandwidth of the current network, and based on the remaining bandwidth of the current network, construct the constraint conditions corresponding to each target high-definition video task; Construct a bandwidth optimization objective function, initialize the bandwidth ratio of each target high-definition video task, determine the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings; Aiming at maximizing the bandwidth optimization objective function, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm to update multiple different bandwidth ratio encodings to obtain the optimal bandwidth ratio encoding; According to the optimal bandwidth ratio encoding, adjust the bandwidth allocation corresponding to the high-definition video task in real time.
2. The high-definition video visual method for emergency use according to claim 1, wherein Parse the high-definition video task, and determine the emergency situation corresponding to the high-definition video task according to the user priority corresponding to the high-definition video task, including: Parse the high-definition video task to determine the user priority corresponding to the high-definition video task; among them, the higher the user priority, the higher the user's video call privilege and the more important it is; Judge whether the user priority corresponding to the high-definition video task is greater than the preset user priority threshold. If so, determine that the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately. Otherwise, determine that the emergency situation corresponding to the high-definition video task is not urgent and not necessarily executed immediately.
3. The high-definition video visual method for emergency use according to claim 1, characterized in that, Determine the remaining bandwidth of the current network, and based on the remaining bandwidth of the current network, construct the constraint conditions corresponding to each target high-definition video task, including: Determine the remaining bandwidth of the current network; Construct the first constraint condition: the sum of the bandwidth allocations corresponding to all target high-definition video tasks is less than or equal to the remaining bandwidth of the current network; Construct the second constraint condition: for any one target high-definition video task, its bandwidth allocation is between its minimum bandwidth and maximum bandwidth.
4. The high-definition video visual method for emergency use according to claim 3, wherein, Construct a bandwidth optimization objective function, initialize the bandwidth ratio of each target high-definition video task, determine the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings, including: Construct a bandwidth allocation satisfaction function; where the bandwidth allocation satisfaction function is used to characterize the degree to which the bandwidth allocation is close to the maximum bandwidth; Based on the user priority, perform a weighted sum of the bandwidth allocation satisfaction functions of all target high-definition video tasks to obtain a bandwidth optimization objective function; Taking the interval (0,1), randomly initialize the bandwidth ratio of each target high-definition video task to obtain a bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings.
5. The high-definition video visual method for emergency use according to claim 4, wherein, With the goal of maximizing the bandwidth optimization objective function, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm to update multiple different bandwidth ratio encodings to obtain the optimal bandwidth ratio encoding, including: Set the iteration counter T = 1; Use the bandwidth optimization objective function to obtain the function value of each bandwidth ratio encoding, and use this function value as the fitness of the bandwidth ratio encoding; Determine the optimal bandwidth ratio encoding according to the fitness of the bandwidth ratio encoding; According to the optimal bandwidth ratio encoding, use the particle swarm algorithm to update the bandwidth ratio encoding to obtain the updated bandwidth ratio encoding; Judge whether the updated bandwidth ratio encoding satisfies the constraint conditions. If so, judge the number of iterations. Otherwise, set the out-of-limit dimension to the value that recently satisfied the constraint conditions; Judge whether the count value of the iteration counter is greater than or equal to the preset maximum number of iterations. If so, re-determine and output the optimal bandwidth ratio encoding according to the updated bandwidth ratio encoding. Otherwise, increment the count value of the iteration counter by one and return to the step of obtaining the fitness of the bandwidth ratio encoding.
6. The high-definition video visual method for emergency use according to claim 1, wherein It also includes: When executing a high-definition video task for a non-high-privilege task, set a high-definition video visible time threshold for each high-definition video task. When the continuous execution time of the high-definition video task is equal to or greater than this high-definition video visible time threshold, end the high-definition video task. Otherwise, continue to execute the high-definition video task.
7. The high-definition video visual method for emergency use according to claim 1, wherein When the currently executing high-definition video task is actively interrupted by the user, then execute each high-definition video task in the task queue one by one.
Citation Information
Patent Citations
Method for adjusting code rate based on parameters such as bandwidth, priority and no operation time
CN111586350A
Power grid emergency communication service bandwidth allocation method and mobile bandwidth allocation equipment
CN117812724A