Emergency high-definition video visualization method
By dynamically adjusting bandwidth strategies and intelligent optimization algorithms, the bandwidth allocation of emergency networks is optimized, and the problem of insufficient utilization of emergency command network resources is solved, the efficiency of emergency response and video call quality is improved, and the efficient utilization of emergency networks is achieved.
Patent Information
- Application Number
- CN202411371029.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2044-09-29
AI Technical Summary
In the prior art, the emergency command network cannot maximize the utilization bandwidth, resulting in reduced emergency processing efficiency and quality, and the inability to effectively allocate network resources to meet the needs of multiple parties.
By obtaining high-definition video tasks transmitted by users, analyzing task priorities and emergencies, dynamically adjusting bandwidth strategies and rotation training scheduling algorithms are adopted, network bandwidth allocation is optimized, ensuring the timely execution of high-authority tasks and reasonable queueing of non-high-authority tasks, and using intelligence The optimization algorithm adjusts the bandwidth proportion to achieve optimal bandwidth allocation.
The efficiency and quality of video calls for emergency command have been improved, the emergency network is maximized, key video information is ensured, and the efficiency and accuracy of emergency response have been improved.
Smart Images

Figure CN119324904A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of data processing, and in particular relates to a high-definition video visualization method for emergency use. Background Art
[0002] The emergency command center is a command center that has the ability to ensure public safety and deal with public emergencies, prevent and reduce public emergencies and the damage they cause to the greatest extent, protect the safety of life and property of the public, maintain national security and social stability, and promote the comprehensive, coordinated and sustainable development of the economy and society. In an emergency, in addition to the emergency command center, there may be other emergency response departments, other units or other individuals who 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 business type, which not only fails to maximize the use of emergency networks for emergency response, but also may lead to poor emergency command networks, reducing the efficiency and quality of emergency response. Summary of the invention
[0003] The present invention provides an emergency high-definition video visualization method to solve the technical problems existing in the prior art.
[0004] A high-definition video visualization method for emergency use, comprising: Obtaining high-definition video tasks transmitted by users; wherein the high-definition video tasks include video clarity and user priority pre-set 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 level corresponding to the high-definition video task; wherein the emergency situation includes an emergency situation that must be executed immediately or a non-urgent situation that does not have to be executed immediately; 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 using a first dynamic bandwidth adjustment strategy according to the video definition; When the emergency situation corresponding to the high-definition video task is not urgent and does not need to be executed immediately, the high-definition video task is executed using a round-robin scheduling algorithm and a second dynamic bandwidth adjustment strategy to complete the high-definition video visual process.
[0005] Further, 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: Analyze the HD video task and determine the user priority corresponding to the HD video task; the higher the user priority, the higher the user's video call authority and the more important it is; 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 does not have to be executed immediately.
[0006] Further, 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 using a first dynamic bandwidth adjustment strategy according to the video definition, including: When the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, determining the high-definition video task as a high-authority task; According to the video definition of the high-authority task, a table lookup matching method is used to determine the minimum bandwidth and maximum bandwidth for video calls under this video definition; Remove the tasks that are urgent and must be executed immediately from the HD video tasks being executed, and obtain the target HD video task; The target HD video tasks are sorted in ascending order of user priority, and based on the sorting, the bandwidth allocation corresponding to the target HD video tasks is set to the corresponding minimum bandwidth one by one, until the remaining bandwidth of the current network meets the maximum bandwidth of the high-authority task, and the high-authority task is executed immediately; When 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-authority task, then determine whether the remaining bandwidth of the current network meets the minimum bandwidth of the high-authority task. If so, execute the high-authority task immediately, otherwise perform further processing; 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-authority task, and the high-authority task is executed immediately.
[0007] Further, when the emergency situation corresponding to the high-definition video task is not urgent and does not have to be executed immediately, the high-definition video task is executed using a round-robin scheduling algorithm and a second dynamic bandwidth adjustment strategy, including: When the emergency situation corresponding to the high-definition video task is not urgent and does not need to be executed immediately, the user priority corresponding to the high-definition video task is used as its initial execution priority in the task queuing queue; The execution priority in the task queue is increased by one every clock cycle to update the execution priority. Obtain the remaining bandwidth of the current network in real time, and determine whether the remaining bandwidth of the current network meets the minimum bandwidth corresponding to the HD video task at the front of the task queue. If so, execute the HD video task at the front of the task queue, otherwise repeat this step; After executing the HD video task that is at the front of the task queue, the second dynamic bandwidth adjustment strategy is used to adjust the bandwidth allocation corresponding to the HD video task being executed in real time to achieve optimal bandwidth allocation.
[0008] Furthermore, a 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: For the high-definition video task being executed, determine whether the high-definition video task is a high-authority task, if so, adjust the bandwidth allocation corresponding to the high-authority task to its corresponding maximum bandwidth, otherwise determine the high-definition video task as a target high-definition video task; Determine the remaining bandwidth of the current network, and build constraints corresponding to each target HD video task based on the remaining bandwidth of the current network; Construct a bandwidth optimization objective function, initialize the bandwidth ratio of each target HD video task, determine the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings; Taking the maximum bandwidth optimization objective function as the goal, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm, multiple different bandwidth weight encodings are updated to obtain the optimal bandwidth weight encoding; According to the optimal bandwidth ratio encoding, the bandwidth allocation corresponding to the high-definition video task is adjusted in real time.
[0009] Furthermore, the remaining bandwidth of the current network is determined, and based on the remaining bandwidth of the current network, the constraints corresponding to each target high-definition video task are constructed, including: Determine the remaining bandwidth of the current network; Construct the first constraint: the sum of bandwidth allocations corresponding to all target HD video tasks is less than or equal to the remaining bandwidth of the current network; The second constraint is constructed: for any target HD video task, its bandwidth allocation is between its minimum bandwidth and maximum bandwidth.
[0010] Furthermore, a bandwidth optimization objective function is constructed, and the bandwidth proportion of each target high-definition video task is initialized, the bandwidth proportion encoding is determined, and multiple different bandwidth proportion encodings are obtained, including: Constructing 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; Based on user priority, the bandwidth allocation satisfaction functions of all target HD video tasks are weighted summed to obtain the bandwidth optimization objective function. The bandwidth ratio of each target high-definition video task is randomly initialized in the interval (0, 1), the bandwidth ratio encoding is obtained, and multiple different bandwidth ratio encodings are obtained.
[0011] Furthermore, taking the maximum bandwidth optimization objective function as the goal, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm, multiple different bandwidth weight encodings are updated to obtain the optimal bandwidth weight encoding, including: Set the iteration counter T=1; The bandwidth optimization objective function is used to obtain the function value of each bandwidth weight coding, and the function value is used as the fitness of the bandwidth weight coding; According to the adaptability of bandwidth weight coding, the optimal bandwidth weight coding is determined; According to the optimal bandwidth weight coding, the bandwidth weight coding is updated by using a particle swarm algorithm to obtain an updated bandwidth weight coding; Determine whether the updated bandwidth ratio recoding satisfies the constraint condition. If so, determine the number of iterations. Otherwise, set the excess dimension to the value that most recently satisfies the constraint condition. Determine 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 weight coding based on the updated bandwidth weight coding and output it. Otherwise, increase the count value of the iteration counter by one and return to the step of obtaining the fitness of the bandwidth weight coding.
[0012] Furthermore, it also includes: When executing a high-definition video task that is not a high-authority task, set a high-definition video viewing time threshold for each high-authority video task. When the continuous execution time of the high-definition video task is equal to or greater than the high-definition video viewing time threshold, the high-definition video task is terminated, otherwise the high-definition video task continues to be executed.
[0013] Furthermore, when the high-definition video task being executed is actively interrupted by the user, the high-definition video tasks in the task queuing queue are executed one by one.
[0014] The present invention provides a high-definition video visualization method for emergency use. The method optimizes network bandwidth allocation and adjusts video quality in real time to cope with high dynamic scenes and bandwidth limitation problems in emergency situations. In addition to ensuring that emergency commanders can conduct video calls in a timely and stable manner, the emergency network can be utilized to the maximum extent so that all parts can 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
[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0016] Figure 1 The present invention provides a flowchart of a high-definition video visualization method for emergency use.
[0017] The above drawings have shown clear embodiments of the present invention, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0018] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0019] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0020] like Figure 1 As shown, an embodiment of the present invention provides a high-definition video visualization method for emergency use, comprising: S101, obtaining a high-definition video task transmitted by a user; wherein the high-definition video task includes video clarity and a user priority preset by a manager; It is worth noting that although the embodiment of the present invention is mainly to achieve the optimization of the high-definition video visual process, the high-definition video task can also be replaced by other communication tasks so that emergency departments or individuals can use the emergency network to communicate, thereby improving the efficiency of the use of the emergency network while ensuring emergency command, and providing network services to more departments or individuals.
[0021] Optionally, for each video definition, a required minimum bandwidth and a maximum bandwidth are set, which can be used as a basis for network optimization.
[0022] S102, parsing the high-definition video task, and determining the emergency situation corresponding to the high-definition video task according to the user priority level corresponding to the high-definition video task; wherein the emergency situation includes an emergency situation that must be executed immediately or a non-urgent situation that does not have to be executed immediately; For example, the emergency situations corresponding to the emergency command department should be urgent and must be executed immediately to ensure the efficiency and quality of the emergency process.
[0023] S103, 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 using a first dynamic bandwidth adjustment strategy according to the video definition; The first dynamic bandwidth adjustment strategy refers to a strategy that can run high-definition video tasks normally and ensure that emergency command is carried out in a timely manner.
[0024] S104: When the emergency situation corresponding to the high-definition video task is not urgent and does not need to be executed immediately, a round-robin scheduling algorithm and a second dynamic bandwidth adjustment strategy are used to execute the high-definition video task to complete the high-definition video visual process.
[0025] The use of a round-robin scheduling algorithm and a second dynamic bandwidth adjustment strategy to execute high-definition video tasks can ensure the effective execution of each high-definition video task and maximize the use of the emergency network.
[0026] The present invention provides a high-definition video visualization method for emergency use. The method optimizes network bandwidth allocation and adjusts video quality in real time to cope with high dynamic scenes and bandwidth limitation problems in emergency situations. In addition to ensuring that emergency commanders can conduct video calls in a timely and stable manner, the emergency network can be utilized to the maximum extent so that all parts can 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.
[0027] 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: Analyze the HD video task and determine the user priority corresponding to the HD video task; the higher the user priority, the higher the user's video call authority and the more important it is; 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 does not have to be executed immediately.
[0028] 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 using a first dynamic bandwidth adjustment strategy according to the video definition, including: When the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, determining the high-definition video task as a high-authority task; According to the video definition of the high-authority task, a table lookup matching method is used to determine the minimum bandwidth and maximum bandwidth for video calls under this video definition; Remove the tasks that are urgent and must be executed immediately from the HD video tasks being executed, and obtain the target HD video task; The target HD video tasks are sorted in ascending order of user priority, and based on the sorting, the bandwidth allocation corresponding to the target HD video tasks is set to the corresponding minimum bandwidth one by one, until the remaining bandwidth of the current network meets the maximum bandwidth of the high-authority task, and the high-authority task is executed immediately; When 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-authority task, then determine whether the remaining bandwidth of the current network meets the minimum bandwidth of the high-authority task. If so, execute the high-authority task immediately, otherwise perform further processing; 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-authority task, and the high-authority task is executed immediately.
[0029] By using the first dynamic bandwidth adjustment strategy, the rapid execution of high-authority tasks can be effectively guaranteed, thereby ensuring the efficiency and quality of the emergency command process.
[0030] In an embodiment of the present invention, when the emergency situation corresponding to the high-definition video task is not urgent and does not have to be executed immediately, a round-robin scheduling algorithm and a second dynamic bandwidth adjustment strategy are used to execute the high-definition video task, including: When the emergency situation corresponding to the high-definition video task is not urgent and does not need to be executed immediately, the user priority corresponding to the high-definition video task is used as its initial execution priority in the task queuing queue; The execution priority in the task queue is increased by one every clock cycle to update the execution priority. Obtain the remaining bandwidth of the current network in real time, and determine whether the remaining bandwidth of the current network meets the minimum bandwidth corresponding to the HD video task at the front of the task queue. If so, execute the HD video task at the front of the task queue, otherwise repeat this step; After executing the HD video task that is at the front of the task queue, the second dynamic bandwidth adjustment strategy is used to adjust the bandwidth allocation corresponding to the HD video task being executed in real time to achieve optimal bandwidth allocation.
[0031] 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, thereby achieving a balance between high priority and low priority.
[0032] In the embodiment 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: For the high-definition video task being executed, determine whether the high-definition video task is a high-authority task, if so, adjust the bandwidth allocation corresponding to the high-authority task to its corresponding maximum bandwidth, otherwise determine the high-definition video task as a target high-definition video task; Determine the remaining bandwidth of the current network, and build constraints corresponding to each target HD video task based on the remaining bandwidth of the current network; Construct a bandwidth optimization objective function, initialize the bandwidth ratio of each target HD video task, determine the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings; Taking the maximum bandwidth optimization objective function as the goal, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm, multiple different bandwidth weight encodings are updated to obtain the optimal bandwidth weight encoding; According to the optimal bandwidth ratio encoding, the bandwidth allocation corresponding to the high-definition video task is adjusted in real time.
[0033] In the embodiment of the present invention, the remaining bandwidth of the current network is determined, and based on the remaining bandwidth of the current network, the constraint conditions corresponding to each target high-definition video task are constructed, including: Determine the remaining bandwidth of the current network; Construct the first constraint: the sum of bandwidth allocations corresponding to all target HD video tasks is less than or equal to the remaining bandwidth of the current network; The second constraint is constructed: for any target HD video task, its bandwidth allocation is between its minimum bandwidth and maximum bandwidth.
[0034] In an embodiment of the present invention, a bandwidth optimization objective function is constructed, and the bandwidth proportion of each target high-definition video task is initialized, the bandwidth proportion encoding is determined, and a plurality of different bandwidth proportion encodings are obtained, including: Constructing 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; Based on user priority, the bandwidth allocation satisfaction function of all target HD video tasks is weighted and summed, and the bandwidth optimization objective function is obtained as follows: f = ; Optionally, an embodiment of the present invention provides a bandwidth optimization objective function, which may be:
[0035] in, represents the bandwidth optimization objective function, Indicates i The weight of the target HD video task being executed, i=1,2,...,I, where I represents the total number of target HD video tasks, represents a natural constant, represents the constant coefficient, c i Indicates i The average value of the minimum and maximum bandwidths corresponding to the target HD video tasks being executed, B i Indicates i The bandwidth allocation for the target HD video task being executed.
[0036] An embodiment of the present invention provides a weight acquisition method, 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.
[0037] The bandwidth optimization objective function provided by the embodiment of the present invention can allow high-definition video tasks with higher user priority to have more bandwidth allocation, thereby ensuring that users with higher user priority have higher video viewing efficiency and quality.
[0038] The bandwidth ratio of each target high-definition video task is randomly initialized in the interval (0, 1), the bandwidth ratio encoding is obtained, and multiple different bandwidth ratio encodings are obtained.
[0039] After the bandwidth ratio is encoded, it needs to be decoded to determine the bandwidth allocation corresponding to each HD video task, which can include: For the bandwidth weight coding, the bandwidth weight coding is summed to obtain the total weight; For each element corresponding to the high-definition video task in the bandwidth weight encoding, the element value is divided by the total weight to obtain the bandwidth allocation ratio value; The bandwidth allocation ratio is multiplied by the remaining bandwidth of the current network to obtain the bandwidth allocation corresponding to the high-definition video task.
[0040] The bandwidth allocation method can not only convert bandwidth allocation into a mathematical problem that can be solved continuously, but also meet the first constraint condition and reduce the complexity of the algorithm.
[0041] In the embodiment of the present invention, the maximum bandwidth optimization objective function is taken as the goal, and according to the constraint conditions corresponding to each target high-definition video task, a plurality of different bandwidth weight codings are updated by using an intelligent optimization algorithm to obtain the optimal bandwidth weight coding, including: Set the iteration counter T=1; The bandwidth optimization objective function is used to obtain the function value of each bandwidth weight coding, and the function value is used as the fitness of the bandwidth weight coding; According to the adaptability of bandwidth weight coding, the optimal bandwidth weight coding is determined; According to the optimal bandwidth weight coding, the bandwidth weight coding is updated by using a particle swarm algorithm to obtain an updated bandwidth weight coding; Determine whether the updated bandwidth ratio recoding satisfies the constraint condition. If so, determine the number of iterations. Otherwise, set the excess dimension to the value that most recently satisfies the constraint condition. For example, when the bandwidth allocation corresponding to a high-definition video task is less than its minimum bandwidth, the corresponding element in the bandwidth ratio encoding is gradually increased (e.g., increased 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, similar processing is performed, except that the element value is gradually reduced.
[0042] Determine 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 weight coding based on the updated bandwidth weight coding and output it. Otherwise, increase the count value of the iteration counter by one and return to the step of obtaining the fitness of the bandwidth weight coding.
[0043] In an embodiment of the present invention, it also includes: When executing a high-definition video task that is not a high-authority task, set a high-definition video viewing time threshold for each high-authority video task. When the continuous execution time of the high-definition video task is equal to or greater than the high-definition video viewing time threshold, the high-definition video task is terminated, otherwise the high-definition video task continues to be executed.
[0044] Except for emergency command, other parts or individuals can cancel tasks, so these tasks are non-essential tasks. In order to achieve coordinated use of the emergency network by all parties, the execution time of each video task can be set. After a certain period of execution, the occupation of the task will be terminated, thereby improving the comprehensive utilization efficiency of the emergency network by all parties and avoiding long-term network occupation.
[0045] In the embodiment of the present invention, when the high-definition video task being executed is actively interrupted by the user, the high-definition video tasks in the task queuing queue are executed one by one.
[0046] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may 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.) containing computer-usable program code.
[0047] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0048] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0049] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0050] A person of ordinary skill in the art can understand that all or part of the steps in realizing the above-mentioned facts and methods can be completed by instructing the relevant hardware through a program, and the program involved or the program described 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 derived, and the storage medium can be ROM / RAM, a disk, an optical disk, etc.
[0051] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A high-definition video visualization method for emergency use, characterized in that: include: Obtaining high-definition video tasks transmitted by users; wherein the high-definition video tasks include video clarity and user priority pre-set 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 level corresponding to the high-definition video task; wherein the emergency situation includes an emergency situation that must be executed immediately or a non-urgent situation that does not have to be executed immediately; 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 using a first dynamic bandwidth adjustment strategy according to the video definition; When the emergency situation corresponding to the high-definition video task is not urgent and does not need to be executed immediately, the high-definition video task is executed using a round-robin scheduling algorithm and a second dynamic bandwidth adjustment strategy to complete the high-definition video visual process.
2. The high-definition video visualization method for emergency use according to claim 1, characterized in that: Analyze the HD video task and determine the emergency situation corresponding to the HD video task according to the user priority corresponding to the HD video task, including: Analyze the HD video task and determine the user priority corresponding to the HD video task; the higher the user priority, the higher the user's video call authority and the more important it is; 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 does not have to be executed immediately.
3. The method for high-definition video visualization for emergency use according to claim 1, characterized in that: 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 using a first dynamic bandwidth adjustment strategy according to the video definition, including: When the emergency situation corresponding to the high-definition video task is urgent and must be executed immediately, determining the high-definition video task as a high-authority task; According to the video definition of the high-authority task, a table lookup matching method is used to determine the minimum bandwidth and maximum bandwidth for video calls under this video definition; Remove the tasks that are urgent and must be executed immediately from the HD video tasks being executed, and obtain the target HD video task; The target HD video tasks are sorted in ascending order of user priority, and based on the sorting, the bandwidth allocation corresponding to the target HD video tasks is set to the corresponding minimum bandwidth one by one, until the remaining bandwidth of the current network meets the maximum bandwidth of the high-authority task, and the high-authority task is executed immediately; When 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-authority task, then determine whether the remaining bandwidth of the current network meets the minimum bandwidth of the high-authority task. If so, execute the high-authority task immediately, otherwise perform further processing; 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-authority task, and the high-authority task is executed immediately.
4. The method for high-definition video visualization for emergency use according to claim 3, characterized in that: When the emergency situation corresponding to the high-definition video task is not urgent and does not need to be executed immediately, the high-definition video task is executed using a round-robin scheduling algorithm and a second dynamic bandwidth adjustment strategy, including: When the emergency situation corresponding to the high-definition video task is not urgent and does not need to be executed immediately, the user priority corresponding to the high-definition video task is used as its initial execution priority in the task queuing queue; The execution priority in the task queue is increased by one every clock cycle to update the execution priority. Obtain the remaining bandwidth of the current network in real time, and determine whether the remaining bandwidth of the current network meets the minimum bandwidth corresponding to the HD video task at the front of the task queue. If so, execute the HD video task at the front of the task queue, otherwise repeat this step; After executing the HD video task that is at the front of the task queue, the second dynamic bandwidth adjustment strategy is used to adjust the bandwidth allocation corresponding to the HD video task being executed in real time to achieve optimal bandwidth allocation.
5. The method for high-definition video visualization for emergency use according to claim 4, characterized in that: 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: For the high-definition video task being executed, determine whether the high-definition video task is a high-authority task, if so, adjust the bandwidth allocation corresponding to the high-authority task to its corresponding maximum bandwidth, otherwise determine the high-definition video task as a target high-definition video task; Determine the remaining bandwidth of the current network, and build constraints corresponding to each target HD video task based on the remaining bandwidth of the current network; Construct a bandwidth optimization objective function, initialize the bandwidth ratio of each target HD video task, determine the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings; Taking the maximum bandwidth optimization objective function as the goal, according to the constraint conditions corresponding to each target high-definition video task, and using an intelligent optimization algorithm, multiple different bandwidth weight encodings are updated to obtain the optimal bandwidth weight encoding; According to the optimal bandwidth ratio encoding, the bandwidth allocation corresponding to the high-definition video task is adjusted in real time.
6. The method for high-definition video visualization for emergency use according to claim 5, characterized in that: Determine the remaining bandwidth of the current network, and based on the remaining bandwidth of the current network, construct the constraints corresponding to each target HD video task, including: Determine the remaining bandwidth of the current network; Construct the first constraint: the sum of bandwidth allocations corresponding to all target HD video tasks is less than or equal to the remaining bandwidth of the current network; The second constraint is constructed: for any target HD video task, its bandwidth allocation is between its minimum bandwidth and maximum bandwidth.
7. The method for high-definition video visualization for emergency use according to claim 6, characterized in that: Construct a bandwidth optimization objective function, initialize the bandwidth ratio of each target HD video task, determine the bandwidth ratio encoding, and obtain multiple different bandwidth ratio encodings, including: Constructing 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; Based on user priority, the bandwidth allocation satisfaction functions of all target HD video tasks are weighted summed to obtain the bandwidth optimization objective function. The bandwidth ratio of each target high-definition video task is randomly initialized in the interval (0, 1), the bandwidth ratio encoding is obtained, and multiple different bandwidth ratio encodings are obtained.
8. The high-definition video visualization method for emergency use according to claim 7, characterized in that: Taking the maximum bandwidth optimization objective function as the goal, according to the constraints corresponding to each target high-definition video task, and using an intelligent optimization algorithm, multiple different bandwidth weight encodings are updated to obtain the optimal bandwidth weight encoding, including: Set the iteration counter T=1; The bandwidth optimization objective function is used to obtain the function value of each bandwidth weight coding, and the function value is used as the fitness of the bandwidth weight coding; According to the adaptability of bandwidth weight coding, the optimal bandwidth weight coding is determined; According to the optimal bandwidth weight coding, the bandwidth weight coding is updated by using a particle swarm algorithm to obtain an updated bandwidth weight coding; Determine whether the updated bandwidth ratio recoding satisfies the constraint condition. If so, determine the number of iterations. Otherwise, set the excess dimension to the value that most recently satisfies the constraint condition. Determine 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 weight coding based on the updated bandwidth weight coding and output it. Otherwise, increase the count value of the iteration counter by one and return to the step of obtaining the fitness of the bandwidth weight coding.
9. The method for high-definition video visualization for emergency use according to claim 1, characterized in that: Also includes: When executing a high-definition video task that is not a high-authority task, set a high-definition video viewing time threshold for each high-authority video task. When the continuous execution time of the high-definition video task is equal to or greater than the high-definition video viewing time threshold, the high-definition video task is terminated, otherwise the high-definition video task continues to be executed.
10. The method for high-definition video visualization for emergency use according to claim 1, characterized in that: When 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.
Citation Information
Patent Citations
Video monitoring and playback service realization methods and equipment
CN102325251A
Bandwidth allocation method and base station
CN106714318A
Method for adjusting code rate based on parameters such as bandwidth, priority and no operation time
CN111586350A
Internet of Vehicles resource allocation method based on video content priorities
CN112616131A
Multi-service multi-network converged communication scheduling method and system, medium, terminal and application
CN114422447A