Multi-channel video previewing method and device for video monitoring client

By monitoring the number of hardware resources consumption and playback screens at the video surveillance client, and automatically switching the playback mode, the problem of excessive resource consumption during multi -video stream data processing is solved, and the efficiency of video playback and the improvement of user experience.

CN119342173APending Publication Date: 2025-01-21E SURFING VISION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411444395.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

In the video surveillance system, clients will face excessive resource consumption when processing multi-video streaming data, resulting in lag in operation, poor video playback or even crashes.

Method used

By setting up hardware resource consumption pressure indexes and playback screen quantity indexes on the video surveillance client, and adjusting the threshold according to the data monitored by real -time monitoring, the playback mode is automatically switched, and from the main code flow to the i -frame playback mode to reduce resource consumption.

Benefits of technology

It has significantly improved the efficiency of video playback, avoids stuttering caused by excessive resource consumption, and ensures the quality requirements of the quality of the quality in different playback scenarios, which greatly improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342173A_ABST
    Figure CN119342173A_ABST
Patent Text Reader

Abstract

The invention relates to a multi-channel video previewing method and device for a video monitoring client, and belongs to the technical field of video previewing, and the method comprises the steps: setting a hardware resource consumption pressure index and a playing picture number index at the video monitoring client; respectively adjusting a hardware resource consumption pressure index threshold value and a playing picture number index threshold value according to the real-time hardware resource consumption pressure index and the playing picture number; judging the size of a hardware resource consumption pressure index and a hardware resource consumption pressure index threshold value as well as the size of a playing picture number index and a playing picture number index threshold value; and automatically switching the playing mode of the video monitoring client according to the judgment result. According to the invention, by dynamically monitoring the hardware resource consumption of the video monitoring client and the number of played pictures and matching an intelligent strategy, the video playing efficiency is improved remarkably, the playing lagging caused by excessive resource consumption is avoided, the picture quality requirements in different playing scenes are ensured, and the user experience is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of video preview, and in particular relates to a method and device for multi-channel video preview of a video monitoring client. Background Art

[0002] With the widespread application of video surveillance systems and technological advances, the use of high-definition video streams has become increasingly common. In video surveillance systems, clients usually need to receive and display real-time video streams from multiple cameras. However, in this multi-channel video preview scenario, clients often face the problem of excessive resource consumption, resulting in PC running lags, video playback being unsmooth, or even crashes. Therefore, for video surveillance clients, processing multi-video stream data has become a challenge, especially when multiple channel video streams need to be displayed simultaneously. How to efficiently manage these video streams and ensure the stability and smoothness of the system has become an urgent problem to be solved.

[0003] In the prior art, the client's processing pressure is often reduced by pulling sub-streams, that is, obtaining video streams with lower resolution or lower bit rate. However, in actual applications, due to the limitations of front-end devices or access protocol constraints, not every video channel can obtain sub-streams, which makes this solution difficult to be universal. Summary of the invention

[0004] In view of the above shortcomings of the prior art, the purpose of the invention is to provide a method and device for multi-channel video preview of a video surveillance client. By dynamically monitoring the hardware resource consumption and the number of playback images of the video surveillance client and matching intelligent strategies, a significant improvement in video playback efficiency is achieved. This not only avoids playback freezes caused by excessive resource consumption, but also ensures image quality requirements in different playback scenarios, greatly improving the user experience.

[0005] A first aspect of the present invention provides a method for previewing multi-channel videos on a video surveillance client, comprising:

[0006] Set the hardware resource consumption pressure index and playback screen quantity index on the video surveillance client;

[0007] According to the real-time hardware resource consumption pressure index and the number of playback images, the hardware resource consumption pressure index threshold and the playback image number index threshold are adjusted respectively;

[0008] Determine the magnitude of the hardware resource consumption pressure index and the hardware resource consumption pressure index threshold and the playback screen quantity index and the playback screen quantity index threshold to obtain a determination result;

[0009] The playback mode of the video surveillance client is automatically switched according to the judgment result.

[0010] Furthermore, in the above-mentioned method for multi-channel video preview on a video surveillance client, setting a hardware resource consumption pressure index on the video surveillance client includes:

[0011] Set the CPU usage, memory usage, and network bandwidth usage of the video surveillance client;

[0012] The hardware resource consumption pressure index is set by the following formula:

[0013] CRPI=ω1×CPU_Usage+ω2×Memory_Usage+ω3×Network_Bandwidth_Usage

[0014] Among them, ω1, ω2, and ω3 represent the weight coefficients of the CPU usage, memory usage, and network bandwidth usage of the video surveillance client, respectively. CPU_Usage represents the CPU usage of the video surveillance client, Memory_Usage represents the memory usage of the video surveillance client, Network_Bandwidth_Usage represents the network bandwidth usage of the video being played by the video surveillance client, and CRPI represents the hardware resource consumption pressure index.

[0015] Furthermore, in the above-mentioned method for previewing multi-channel videos on a video surveillance client, adjusting the threshold of the hardware resource consumption pressure index according to the real-time hardware resource consumption pressure index is adjusted by the following formula:

[0016] T CRPI =B+C·(RR avg )

[0017] Among them, B represents the baseline threshold of the hardware resource consumption pressure index, C represents the hardware resource consumption weight factor, R represents the current hardware resource consumption level, and R avg Indicates the historical average hardware resource consumption level, T CRPI Indicates the hardware resource consumption pressure index threshold.

[0018] Furthermore, in the above-mentioned method for previewing multi-channel videos on a video surveillance client, adjusting the playback screen quantity index threshold according to the playback screen quantity is adjusted by the following formula:

[0019] T SFI =D+S·(NM)

[0020] Among them, D represents the baseline threshold of the number of playback pictures, S represents the weight factor of the number of pictures, which determines the degree of influence of the change of the number of pictures on the threshold, N represents the number of pictures currently played, and M represents the recommended maximum number of pictures. The recommended maximum number of pictures is the number of pictures that the video surveillance client can stably process without starting the I-frame playback mode.

[0021] Furthermore, in the above-mentioned method for previewing multi-channel videos on a video surveillance client, the playback mode of the video surveillance client is automatically switched according to the judgment result, including:

[0022] When the judgment result is that the hardware resource consumption pressure index is greater than or equal to the hardware resource consumption pressure index threshold;

[0023] Or, when the playback picture quantity index is greater than or equal to the playback picture quantity index threshold, the video surveillance client automatically switches to the I frame playback mode.

[0024] Furthermore, in the above-mentioned method for previewing multi-channel videos on a video surveillance client, the playback mode of the video surveillance client is automatically switched according to the judgment result, including:

[0025] When the judgment result is that the hardware resource consumption pressure index is less than the hardware resource consumption pressure index threshold;

[0026] Or, when the playback picture quantity index is less than the playback picture quantity index threshold, the video surveillance client automatically switches to the main stream playback mode.

[0027] Furthermore, the above-mentioned method for multi-channel video preview of a video surveillance client further includes:

[0028] When the video surveillance client screen is in I-frame playback mode, it automatically switches to main stream playback mode upon receiving a user selection operation;

[0029] When the video surveillance client screen is in I-frame playback mode, it automatically switches to main stream playback mode when receiving the user's operation to switch to full-screen mode, and automatically switches back to I-frame playback mode when exiting full-screen mode;

[0030] When the hardware resource consumption pressure index CRPI is less than or equal to the hardware resource consumption pressure index threshold, when the video surveillance client receives a switch operation for the number of visible pictures, if the number of visible pictures after the switch is less than the number of actual playback pictures, the hidden pictures are automatically switched to I-frame playback mode.

[0031] The second aspect of the present invention further provides a device for multi-channel video preview of a video surveillance client, comprising:

[0032] Setting module: used to set the hardware resource consumption pressure index and playback screen quantity index on the video surveillance client;

[0033] Adjustment module: used to adjust the hardware resource consumption pressure index threshold and the playback screen number index threshold respectively according to the real-time hardware resource consumption pressure index and the playback screen number;

[0034] A judgment module: used to judge the size of the hardware resource consumption pressure index and the hardware resource consumption pressure index threshold and the playback screen quantity index and the playback screen quantity index threshold to obtain a judgment result;

[0035] Switching module: used to automatically switch the playback mode of the video surveillance client according to the judgment results.

[0036] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor and a memory;

[0037] The processor is used to execute any of the above methods for multi-channel video preview on a video surveillance client by calling a program or instruction stored in the memory.

[0038] In a fourth aspect of the present invention, a computer-readable storage medium is further proposed, wherein the computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute any of the above methods for multi-channel video preview of a video surveillance client.

[0039] The beneficial effects of the present invention are as follows: the present invention sets the hardware resource consumption pressure index and the playback screen number index on the video monitoring client; adjusts the hardware resource consumption pressure index threshold and the playback screen number index threshold according to the real-time hardware resource consumption pressure index and the playback screen number; judges the size of the hardware resource consumption pressure index and the hardware resource consumption pressure index threshold and the playback screen number index and the playback screen number index threshold; automatically switches the playback mode of the video monitoring client according to the judgment result. The present invention significantly improves the video playback efficiency by dynamically monitoring the hardware resource consumption and the number of playback screens of the video monitoring client and matching intelligent strategies, avoids playback jams caused by excessive resource consumption, ensures the image quality requirements in different playback scenarios, and greatly improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0041] Figure 1A method diagram of multi-channel video preview on a video surveillance client provided by an embodiment of the present invention;

[0042] Figure 2 A device diagram of a multi-channel video preview of a video surveillance client provided by an embodiment of the present invention;

[0043] Figure 3 A schematic block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0045] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0046] In the description of the present invention, the terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be internal communication between two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0047] 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, 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. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0048] The present invention proposes a method, device, electronic device and storage medium for multi-channel video preview of a video surveillance client, which achieves a significant improvement in video playback efficiency by dynamically monitoring the hardware resource consumption and the number of playback images of the video surveillance client and matching intelligent strategies, which not only avoids playback freezes caused by excessive resource consumption, but also ensures image quality requirements in different playback scenarios, greatly improving user experience. Before introducing the embodiments of the present invention, the professional terms involved in the present invention are first introduced.

[0049] PC (Personal Computer): The hardware environment for running the video surveillance client.

[0050] CRPI (Comprehensive Resource Stress Index): is an index that evaluates the current resource consumption level of the client. It is a weighted average of CPU utilization, memory usage, and network bandwidth usage. It is used to reflect the different degrees of impact of different resource pressures on video playback quality.

[0051] SFI (Screen Frame Index): It is used to measure the number of frames played by the client at the same time. When the number of frames played by the client exceeds the threshold T SFI , triggers I frame playback mode.

[0052] DTA (Dynamic Threshold Adjustment): used to adjust the threshold T according to the real-time comprehensive resource consumption and the number of playback images. CRPI and T SFI .

[0053] Method Embodiment

[0054] Figure 1 A method diagram of multi-channel video preview on a video surveillance client provided by an embodiment of the present invention.

[0055] In the first aspect of the present invention, a method for previewing multi-channel videos on a video surveillance client is proposed, combining Figure 1 , including four steps from S1 to S4:

[0056] S1: Set the hardware resource consumption pressure index and the playback screen quantity index on the video surveillance client.

[0057] Specifically, in an embodiment of the present invention, a method for setting a hardware resource consumption pressure index CRPI on a video surveillance client is described in detail below. The hardware resource consumption pressure index is used to evaluate the current resource consumption level of the client. The playback picture number index SFI and the hardware resource consumption pressure index CRPI are used to control the maximum number of channels currently played by the video surveillance client using the main code stream. When the number of channels on the air is less than or equal to the maximum number of channels played by the main code stream, all main code streams are previewed. When the number of channels on the air is greater than the maximum number of channels played by the main code stream, I frame preview is dynamically adapted to be used in whole or in part.

[0058] The playback screen quantity index SFI is used to measure the number of screens played simultaneously by the video surveillance client. The playback screen quantity index SFI is strongly related to the hardware configuration of the video surveillance client's environment, as well as the bitstream type. The setting of the maximum value of the playback screen quantity index SFI needs to comprehensively consider the size of the video bitstream to be previewed, access bandwidth, processor, memory, storage (hard disk / solid state drive), graphics card, etc. The default options are 16-channel, 25-channel, and 36-channel. The accurate setting of the playback screen quantity index SFI can be obtained through manual testing to obtain the limit value, or a default value can be selected and the video surveillance client can give adjustment suggestions based on dynamic monitoring.

[0059] S2: adjusting the hardware resource consumption pressure index threshold and the playback screen number index threshold respectively according to the real-time hardware resource consumption pressure index and the playback screen number.

[0060] Specifically, in the embodiment of the present invention, the hardware resource consumption pressure index threshold T is adjusted according to the real-time hardware resource consumption pressure index and the number of playback images. CRPI and playback screen quantity index threshold T SFI The method is described in detail below, by adjusting the hardware resource consumption pressure index threshold T CRPI and playback screen quantity index threshold T SFI To adapt to different hardware environments and numbers of playback channels of video surveillance clients.

[0061] S3: Determine the magnitude of the hardware resource consumption pressure index and the hardware resource consumption pressure index threshold, and the playback screen quantity index and the playback screen quantity index threshold to obtain a determination result.

[0062] Specifically, in the embodiment of the present invention, the hardware resource consumption pressure index and the hardware resource consumption pressure index threshold as well as the playback screen quantity index and the playback screen quantity index threshold are compared to obtain a judgment result.

[0063] S4: Automatically switch the playback mode of the video surveillance client according to the judgment result.

[0064] Specifically, in an embodiment of the present invention, automatic switching of the playback mode of the video surveillance client according to the judgment result includes: when the judgment result is that the hardware resource consumption pressure index is greater than or equal to the hardware resource consumption pressure index threshold; or, the playback screen number index is greater than or equal to the playback screen number index threshold, the video surveillance client automatically switches to the I frame playback mode; when the judgment result is that the hardware resource consumption pressure index is less than the hardware resource consumption pressure index threshold; or, the playback screen number index is less than the playback screen number index threshold, the video surveillance client automatically switches to the main code stream playback mode.

[0065] Furthermore, in the above-mentioned method for multi-channel video preview on a video surveillance client, setting a hardware resource consumption pressure index on the video surveillance client includes:

[0066] Set the CPU usage, memory usage, and network bandwidth usage of the video surveillance client;

[0067] The hardware resource consumption pressure index is set by the following formula:

[0068] CRPI=ω1×CPU_Usage+ω2×Memory_Usage+ω3×Network_Bandwidth_Usage

[0069] Wherein, ω1, ω2, and ω3 represent the weight coefficients of the CPU usage, memory usage, and network bandwidth usage of the video surveillance client, respectively; CPU_Usage represents the CPU usage of the video surveillance client; Memory_Usage represents the memory usage of the video surveillance client; Network_Bandwidth_Usage represents the network bandwidth usage of the video being played by the video surveillance client; and CRPI represents the hardware resource consumption pressure index.

[0070] Here, ω1, ω2, and ω3 can be adjusted according to actual application scenarios to reflect the different degrees of influence of different resources on video playback quality.

[0071] Furthermore, in the above-mentioned method for previewing multi-channel videos on a video surveillance client, adjusting the threshold of the hardware resource consumption pressure index according to the real-time hardware resource consumption pressure index is adjusted by the following formula:

[0072] T CRPI =B+C·(RR avg )

[0073] Among them, B represents the baseline threshold of the hardware resource consumption pressure index, C represents the hardware resource consumption weight factor, R represents the current hardware resource consumption level, and R avgIndicates the historical average hardware resource consumption level, T CRPI Indicates the hardware resource consumption pressure index threshold.

[0074] Specifically, in the embodiment of the present invention, T CRPI It is the dynamic threshold of the hardware resource consumption of the video surveillance client that triggers the I-frame playback mode.

[0075] Furthermore, in the above-mentioned method for previewing multi-channel videos on a video surveillance client, adjusting the playback screen quantity index threshold according to the playback screen quantity is adjusted by the following formula:

[0076] T SFI =D+S·(NM)

[0077] Among them, D represents the baseline threshold of the number of playback pictures, S represents the weight factor of the number of pictures, which determines the degree of influence of the change of the number of pictures on the threshold, N represents the number of pictures currently played, and M represents the recommended maximum number of pictures. The recommended maximum number of pictures is the number of pictures that the video surveillance client can stably process without starting the I-frame playback mode.

[0078] Specifically, in the embodiment of the present invention, T SFI It is the playback screen quantity index threshold that triggers I-frame playback mode.

[0079] Furthermore, in the above-mentioned method for previewing multi-channel videos on a video surveillance client, the playback mode of the video surveillance client is automatically switched according to the judgment result, including:

[0080] When the judgment result is that the hardware resource consumption pressure index is greater than or equal to the hardware resource consumption pressure index threshold;

[0081] Or, when the playback picture quantity index is greater than or equal to the playback picture quantity index threshold, the video surveillance client automatically switches to the I frame playback mode.

[0082] Specifically, in the embodiment of the present invention, once the hardware resource consumption pressure index CRPI reaches or exceeds the threshold value T CRPI , the video surveillance client will automatically switch to I-frame playback mode; or, once the playback screen number index SFI reaches or exceeds the threshold T SFI , the video surveillance client will automatically switch to I-frame playback mode to obtain a better preview effect.

[0083] Furthermore, in the above-mentioned method for previewing multi-channel videos on a video surveillance client, the playback mode of the video surveillance client is automatically switched according to the judgment result, including:

[0084] When the judgment result is that the hardware resource consumption pressure index is less than the hardware resource consumption pressure index threshold;

[0085] Or, when the playback picture quantity index is less than the playback picture quantity index threshold, the video surveillance client automatically switches to the main stream playback mode.

[0086] Specifically, in the embodiment of the present invention, once the hardware resource consumption pressure index CRPI is less than the threshold value T CRPI , the video surveillance client will automatically switch to I-frame playback mode, or once the playback screen number index SFI is less than the threshold T SFI , the video surveillance client will automatically switch to the main stream playback mode to obtain a better preview effect.

[0087] Furthermore, the above-mentioned method for multi-channel video preview of a video surveillance client further includes:

[0088] When the video surveillance client screen is in I-frame playback mode, it automatically switches to main stream playback mode upon receiving a user selection operation.

[0089] Specifically, in an embodiment of the present invention, when the video surveillance client screen is in the I-frame playback mode, upon receiving a selection operation from the user, it automatically switches to the main code stream playback mode, that is, a single-screen selection of a specific scene playback mode is switched. If a selection operation is received by the user's left mouse button, the video surveillance client screen in the I-frame playback mode automatically switches to the main code stream playback mode, and the playback modes of other screens remain unchanged, thereby ensuring that the screen currently being focused on by the user has the best preview effect.

[0090] When the video surveillance client screen is in I-frame playback mode, it automatically switches to main stream playback mode when receiving the user's operation to switch to full-screen mode, and automatically switches back to I-frame playback mode when exiting full-screen mode.

[0091] Specifically, in an embodiment of the present invention, when the video surveillance client screen is in I-frame playback mode, upon receiving an operation from the user to switch to full-screen mode, it automatically switches to main stream playback mode, and upon exiting full-screen mode, it automatically switches back to I-frame playback mode, which is a single-screen full-screen specific scene playback mode switch.

[0092] When the hardware resource consumption pressure index CRPI is less than or equal to the hardware resource consumption pressure index threshold, when the video surveillance client receives a switch operation for the number of visible pictures, if the number of visible pictures after the switch is less than the number of actual playback pictures, the hidden pictures are automatically switched to I-frame playback mode.

[0093] Specifically, in the embodiment of the present invention, when the hardware resource consumption pressure index CRPI is less than or equal to the hardware resource consumption pressure index threshold, when the video monitoring client receives the switching operation of the number of visible pictures, if the number of visible pictures after the switching is less than the number of actual playing pictures, the hidden pictures are automatically switched to the I-frame playback mode, which is the switching of the specific scene playback mode of the visible picture, in exchange for the best preview effect of the visible picture part, and the consumption of PC hardware resources by the video monitoring client is reduced, providing smooth guarantee for the user to operate other applications. Otherwise, the original playback mode is maintained.

[0094] Device Embodiment

[0095] Figure 2 A diagram of a device for multi-channel video preview of a video surveillance client provided by an embodiment of the present invention.

[0096] In a second aspect of the present invention, a device for multi-channel video preview of a video surveillance client is also proposed, combining Figure 2 ,include:

[0097] The setting module 21 is used to set the hardware resource consumption pressure index and the playback screen quantity index on the video surveillance client.

[0098] Specifically, in the embodiment of the present invention, the setting module 21 sets the hardware resource consumption pressure index CRPI on the video surveillance client, the hardware resource consumption pressure index is used to evaluate the current resource consumption level of the client, the playback picture number index SFI and the hardware resource consumption pressure index CRPI are used to control the maximum number of channels currently used for main stream playback by the video surveillance client, when the number of channels on the air is less than or equal to the maximum number of channels for main stream playback, all main stream previews are used, and when the number of channels on the air is greater than the maximum number of channels for main stream playback, I frame previews are dynamically adapted to be used in whole or in part.

[0099] The playback screen quantity index SFI is used to measure the number of screens played simultaneously by the video surveillance client. The playback screen quantity index SFI is strongly related to the hardware configuration of the video surveillance client's environment, as well as the bitstream type. The setting of the maximum value of the playback screen quantity index SFI needs to comprehensively consider the size of the video bitstream to be previewed, access bandwidth, processor, memory, storage, graphics card, etc. The default options are 16-channel, 25-channel, and 36-channel. The accurate setting of the playback screen quantity index SFI can be obtained through manual testing to obtain the limit value, or a default value can be selected and the video surveillance client can give adjustment suggestions based on dynamic monitoring.

[0100] The adjustment module 22 is used to adjust the hardware resource consumption pressure index threshold and the playback screen number index threshold according to the real-time hardware resource consumption pressure index and the playback screen number.

[0101] Specifically, in the embodiment of the present invention, the adjustment module 22 adjusts the hardware resource consumption pressure index threshold value T according to the real-time hardware resource consumption pressure index and the number of playback pictures. CRPI and playback screen quantity index threshold T SFI The method is described in detail below, by adjusting the hardware resource consumption pressure index threshold T CRPI and playback screen quantity index threshold T SFI To adapt to different hardware environments and numbers of playback channels of video surveillance clients.

[0102] The judgment module 23 is used to judge the size of the hardware resource consumption pressure index and the hardware resource consumption pressure index threshold and the playback screen quantity index and the playback screen quantity index threshold to obtain a judgment result.

[0103] Specifically, in the embodiment of the present invention, the judgment module 23 obtains the judgment result by comparing the hardware resource consumption pressure index with the hardware resource consumption pressure index threshold and the playback screen quantity index with the playback screen quantity index threshold.

[0104] The switching module 24 is used to automatically switch the playback mode of the video surveillance client according to the judgment result.

[0105] Specifically, in an embodiment of the present invention, the switching module 24 automatically switches the playback mode of the video surveillance client according to the judgment result, including: when the judgment result is that the hardware resource consumption pressure index is greater than or equal to the hardware resource consumption pressure index threshold; or, the playback screen number index is greater than or equal to the playback screen number index threshold, the video surveillance client automatically switches to the I frame playback mode; when the judgment result is that the hardware resource consumption pressure index is less than the hardware resource consumption pressure index threshold; or, the playback screen number index is less than the playback screen number index threshold, the video surveillance client automatically switches to the main code stream playback mode.

[0106] According to a third aspect of the present invention, an electronic device is provided, comprising: a processor and a memory;

[0107] The processor is used to execute any of the above methods for multi-channel video preview on a video surveillance client by calling a program or instruction stored in the memory.

[0108] In a fourth aspect of the present invention, a computer-readable storage medium is further proposed, wherein the computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute any of the above methods for multi-channel video preview of a video surveillance client.

[0109] Figure 3 It is a schematic block diagram of an electronic device provided by an embodiment of the present invention.

[0110] like Figure 3 As shown, the electronic device includes: at least one processor 301, at least one memory 302 and at least one communication interface 303. The various components in the electronic device are coupled together through a bus system 304. The communication interface 303 is used to transmit information between external devices. It can be understood that the bus system 304 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 304 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 3 Various buses are labeled as bus system 304 .

[0111] It can be understood that the memory 302 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.

[0112] In some implementations, the memory 302 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system and application programs.

[0113] The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. A program that implements any method of the method for multi-channel video preview of a video surveillance client provided in an embodiment of the present invention can be included in the application.

[0114] In an embodiment of the present invention, the processor 301 calls a program or instruction stored in the memory 302, specifically, a program or instruction stored in an application, and the processor 301 is used to execute the steps of each embodiment of a method for multi-channel video preview of a video surveillance client provided in an embodiment of the present invention.

[0115] Set the hardware resource consumption pressure index and playback screen quantity index on the video surveillance client;

[0116] According to the real-time hardware resource consumption pressure index and the number of playback images, the hardware resource consumption pressure index threshold and the playback image number index threshold are adjusted respectively;

[0117] Determine the magnitude of the hardware resource consumption pressure index and the hardware resource consumption pressure index threshold, and the playback screen quantity index and the playback screen quantity index threshold;

[0118] The playback mode of the video surveillance client is automatically switched according to the judgment result.

[0119] Any method in the method for multi-channel video preview of a video surveillance client provided in an embodiment of the present invention can be applied to the processor 301, or implemented by the processor 301. The processor 301 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 301 or an instruction in the form of software. The above processor 301 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0120] The steps of any method in the method for multi-channel video preview of a video surveillance client provided by an embodiment of the present invention can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software units in the decoding processor. The software unit can be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 302, and the processor 301 reads the information in the memory 302 and completes the steps of the method in combination with its hardware.

[0121] Those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.

[0122] Those skilled in the art will appreciate that the description of each embodiment has its own emphasis, and for parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0123] Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

[0124] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for previewing multi-channel videos on a video surveillance client, characterized in that: include: Set the hardware resource consumption pressure index and playback screen quantity index on the video surveillance client; According to the real-time hardware resource consumption pressure index and the number of playback images, the hardware resource consumption pressure index threshold and the playback image number index threshold are adjusted respectively; Determine the magnitude of the hardware resource consumption pressure index and the hardware resource consumption pressure index threshold and the playback screen quantity index and the playback screen quantity index threshold to obtain a determination result; The playback mode of the video surveillance client is automatically switched according to the judgment result.

2. A method for multi-channel video preview of a video surveillance client according to claim 1, characterized in that: The step of setting the hardware resource consumption pressure index on the video surveillance client includes: Set the CPU usage, memory usage, and network bandwidth usage of the video surveillance client; The hardware resource consumption pressure index is set by the following formula: CRPI=ω1×CPU_Usage+ω2×Memory_Usage+ω3×Network_Bandwidth_Usage Among them, ω1, ω2, and ω3 represent the weight coefficients of the CPU usage, memory usage, and network bandwidth usage of the video surveillance client, respectively. CPU_Usage represents the CPU usage of the video surveillance client, Memory_Usage represents the memory usage of the video surveillance client, Network_Bandwidth_Usage represents the network bandwidth usage of the video being played by the video surveillance client, and CRPI represents the hardware resource consumption pressure index.

3. The method for multi-channel video preview of a video surveillance client according to claim 1, characterized in that: The hardware resource consumption pressure index threshold is adjusted according to the real-time hardware resource consumption pressure index by the following formula: T CRPI =B+C·(R-R avg ) Among them, B represents the baseline threshold of the hardware resource consumption pressure index, C represents the hardware resource consumption weight factor, R represents the current hardware resource consumption level, and R avg Indicates the historical average hardware resource consumption level, T CRPI Indicates the hardware resource consumption pressure index threshold.

4. The method for multi-channel video preview of a video surveillance client according to claim 1, characterized in that: Adjusting the playback screen quantity index threshold according to the playback screen quantity is adjusted by the following formula: T SFI =D+S·(N-M) Among them, D represents the baseline threshold of the number of playback pictures, S represents the weight factor of the number of pictures, which determines the degree of influence of the change of the number of pictures on the threshold, N represents the number of pictures currently played, and M represents the recommended maximum number of pictures. The recommended maximum number of pictures is the number of pictures that the video surveillance client can stably process without starting the I-frame playback mode.

5. The method for multi-channel video preview of a video surveillance client according to claim 1, characterized in that: The automatic switching of the playback mode of the video surveillance client according to the judgment result includes: When the judgment result is that the hardware resource consumption pressure index is greater than or equal to the hardware resource consumption pressure index threshold; Or, when the playback picture quantity index is greater than or equal to the playback picture quantity index threshold, the video surveillance client automatically switches to the I frame playback mode.

6. The method for multi-channel video preview of a video surveillance client according to claim 1, characterized in that: The automatic switching of the playback mode of the video surveillance client according to the judgment result includes: When the judgment result is that the hardware resource consumption pressure index is less than the hardware resource consumption pressure index threshold; Or, when the playback picture quantity index is less than the playback picture quantity index threshold, the video surveillance client automatically switches to the main stream playback mode.

7. The method for multi-channel video preview of a video surveillance client according to claim 1, characterized in that: The method further comprises: When the video surveillance client screen is in I-frame playback mode, it automatically switches to main stream playback mode upon receiving a user selection operation; When the video surveillance client screen is in I-frame playback mode, it automatically switches to main stream playback mode when receiving the user's operation to switch to full-screen mode, and automatically switches back to I-frame playback mode when exiting full-screen mode; When the hardware resource consumption pressure index CRPI is less than or equal to the hardware resource consumption pressure index threshold, when the video surveillance client receives a switch operation for the number of visible pictures, if the number of visible pictures after the switch is less than the number of actual playback pictures, the hidden pictures are automatically switched to I-frame playback mode.

8. A device for multi-channel video preview of a video surveillance client, characterized in that: include: Setting module: used to set the hardware resource consumption pressure index and playback screen quantity index on the video surveillance client; Adjustment module: used to adjust the hardware resource consumption pressure index threshold and the playback screen number index threshold respectively according to the real-time hardware resource consumption pressure index and the playback screen number; A judgment module: used to judge the size of the hardware resource consumption pressure index and the hardware resource consumption pressure index threshold and the playback screen quantity index and the playback screen quantity index threshold to obtain a judgment result; Switching module: used to automatically switch the playback mode of the video surveillance client according to the judgment results.

9. An electronic device, characterized in that: include: Processor and memory; The processor is used to execute the method for multi-channel video preview of a video surveillance client as described in any one of claims 1 to 7 by calling the program or instruction stored in the memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute the method for multi-channel video preview of a video surveillance client as described in any one of claims 1 to 7.