CN111953938B - Monitoring video alternate uploading method and system - Google Patents
Monitoring video alternate uploading method and system Download PDFInfo
- Publication number
- CN111953938B CN111953938B CN202010758309.2A CN202010758309A CN111953938B CN 111953938 B CN111953938 B CN 111953938B CN 202010758309 A CN202010758309 A CN 202010758309A CN 111953938 B CN111953938 B CN 111953938B
- Authority
- CN
- China
- Prior art keywords
- application terminal
- monitoring video
- uploading
- monitoring
- priority level
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 288
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000012163 sequencing technique Methods 0.000 claims description 19
- 230000006835 compression Effects 0.000 claims description 8
- 238000007906 compression Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 6
- 230000011218 segmentation Effects 0.000 claims description 6
- 238000012856 packing Methods 0.000 claims description 5
- 230000000737 periodic effect Effects 0.000 claims description 2
- 238000004806 packaging method and process Methods 0.000 claims 1
- 230000005540 biological transmission Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2181—Source of audio or video content, e.g. local disk arrays comprising remotely distributed storage units, e.g. when movies are replicated over a plurality of video servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23103—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion using load balancing strategies, e.g. by placing or distributing content on different disks, different memories or different servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4335—Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
The invention provides a method and a system for alternately uploading monitoring videos, which are different from the prior art that all monitoring videos are synchronously uploaded to a non-stop application terminal in a simultaneous and parallel mode, the uploading priority levels of the monitoring videos of all application terminals are determined and updated according to respective operation performance parameters and operation task loads of different application terminals, and corresponding monitoring video data are independently uploaded to the application terminal with the highest uploading priority level at the same time in an alternate mode, so that each application terminal can receive the monitoring video data at the highest efficiency, and the uploading efficiency and the uploading safety of the monitoring videos are improved.
Description
Technical Field
The invention relates to the technical field of video monitoring, in particular to a monitoring video alternate uploading method and system.
Background
At present, the blockchain technology has been gradually popularized in different fields, and one main application of the blockchain technology is to construct a video monitoring evidence storage platform based on a blockchain, which guarantees the authenticity, availability and security of a monitoring video by using the blockchain evidence storage technology. In actual operation, the monitoring video recorded by the camera can be sent to different application terminals for subsequent processing in different modes, but different application terminals generally perform calculation of other operation task data while receiving the uploaded monitoring video, which can occupy a part of the operation capability of the application terminals, and the operation capability of the application terminals can affect the process speed of uploading the monitoring video.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a surveillance video alternate uploading method and a surveillance video alternate uploading system, wherein the surveillance video alternate uploading method and the surveillance video alternate uploading system are used for shooting a preset surveillance scene to record to obtain continuous surveillance videos, converting the surveillance videos into a plurality of surveillance video data packets to be stored, determining initial surveillance video uploading priority levels of all application terminals according to respective operational performance parameters and real-time operational task loads of each application terminal in the application terminals, updating the initial surveillance video uploading priority levels, and uploading the surveillance video data packets to the application terminal with the highest uploading priority level in an alternate mode according to the updating result; therefore, the method and the system for alternately uploading the monitoring videos are different from the prior art that all the monitoring videos are synchronously uploaded to the non-stop application terminals in a simultaneous and parallel mode, the uploading priority levels of the monitoring videos of all the application terminals are determined and updated according to respective operation performance parameters and operation task loads of different application terminals, and corresponding monitoring video data are independently uploaded to the application terminal with the highest uploading priority level at the same time in an alternate mode, so that each application terminal can receive the monitoring video data at the highest efficiency, and the uploading efficiency and the uploading safety of the monitoring videos are improved.
The invention provides a monitoring video alternate uploading method which is characterized by comprising the following steps:
step S1, instructing the monitoring camera to shoot a preset monitoring scene so as to record and obtain a continuous monitoring video, and converting the monitoring video into a plurality of monitoring video data packets for storage;
step S2, determining initial monitoring video uploading priority levels of all application terminals according to respective operation performance parameters and real-time operation task loads of each application terminal in a plurality of application terminals;
step S3, updating the uploading priority level of the initial monitoring video, and uploading the monitoring video data packets to the application terminal with the highest uploading priority level respectively in a rotation mode according to the updating result;
further, in the step S1, the instructing the monitoring camera to shoot a preset monitoring scene so as to record and obtain a continuous monitoring video, and converting the monitoring video into a plurality of monitoring video data packets for storage specifically includes,
step S101, instructing the monitoring camera to periodically scan and shoot the preset monitoring scene, so as to record and obtain a continuous 360-degree panoramic monitoring video related to the preset monitoring scene;
step S102, according to the recording time axis of the 360-degree panoramic monitoring video and a preset time interval, segmenting the 360-degree panoramic monitoring video into a plurality of monitoring sub-videos;
step S103, performing fidelity compression on each section of the monitoring sub-video respectively, so as to convert the plurality of sections of the monitoring sub-video into a plurality of monitoring video data packets;
step S104, storing the plurality of monitoring video data packets into a video data packet queue according to the recording time sequence corresponding to each section of the monitoring sub-video;
further, in the step S2, determining the initial monitoring video uploading priority levels of all the application terminals according to the respective operation performance parameters and the real-time operation task load of each of the plurality of application terminals specifically includes,
step S201, calculating to obtain the average operation time required by each application terminal to process and complete the real-time operation task data volume according to the average operation speed and the real-time operation task data volume of each application terminal;
step S202, determining initial monitoring video uploading priority levels of all the application terminals according to the respective average operation time of each application terminal, wherein when the average operation time of a certain application terminal is shorter, the monitoring video uploading priority level is higher;
further, in the step S3, the updating the initial monitoring video uploading priority level, and according to the updating result, respectively uploading the monitoring video data packets to the application terminal with the highest uploading priority level in a rotating manner specifically includes,
step S301, constructing a corresponding application terminal operation time consumption calculation model according to the operation task data volume increasing trend of each application terminal and the operation speed change trend of each application terminal;
step S302, updating the initial monitoring video uploading priority level periodically and determining the application terminal with the highest uploading priority level periodically according to the calculation result of the application terminal operation time consumption calculation model aiming at each application terminal;
step S303, uploading the plurality of monitoring video data packets to the application terminal with the highest uploading priority level in a rotation mode until each application terminal receives all the monitoring video data packets;
further, in the step S301, according to the trend of increasing the data amount of the operation task of each application terminal and the trend of changing the operation speed of each application terminal, constructing a corresponding calculation model of the operation time consumption of the application terminal specifically includes,
firstly, acquiring basic parameters of each application terminal, and determining idle stable parameters of each application terminal according to the following formula (1):
in the above formula (1), AiIndicating idle stability parameters of the ith application terminal, wherein i is 1, 2 and 3 … N, N indicates the total number of application terminals, L1, L2, L3 and L4 are preset adjustment coefficients of the application terminals, the sum of L1, L2, L3 and L4 is 1, L1, L2, L3 and L4 all take values between 0 and 1, and VPiIndicates the overall utilization rate, FP, of the CPU of the ith application terminaliDisk writing speed and optimal disk writing speed of ith application terminalRatio of disk writing speeds, IMiRepresents the memory utilization rate, ZP, of the ith application terminaliIndicating the ratio, ID, between the hard disk capacity of the ith application terminal and the optimal hard disk capacityiRepresenting the utilization rate of the average read-write speed of the disk, MP, of the ith application terminaliRepresents the ratio of the network bandwidth of the ith application terminal to the optimal network bandwidth, INiIndicating the utilization rate of the average bandwidth of the ith application terminal;
secondly, determining the available weight corresponding to each application terminal according to the following formula (2):
in the above formula (2), KiRepresenting the available weight of the ith application terminal, DiRepresents a preset stability factor of the ith application terminal, and i is 1, 2, 3 … N, DjPre-set stability factor, VP, representing the jth application terminaljRepresents the ratio of the CPU processing rate of the jth application terminal to the optimal processing rate of the application terminal, FPjRepresents the ratio of the disk writing speed of the jth application terminal to the optimal disk writing speed, ZPjRepresents the ratio between the hard disk capacity of the jth application terminal and the optimal hard disk capacity, MPjRepresents the ratio of the network bandwidth of the jth application terminal to the optimal network bandwidth, AjAn idle stability parameter indicating the jth application terminal, and j is 1, 2, 3 … N;
and thirdly, determining the application terminal with the maximum available weight value as the application terminal with the maximum operation speed.
The invention also provides a monitoring video alternate uploading system, which is characterized in that:
the monitoring video alternate uploading system comprises a monitoring video recording and storing execution module, an application terminal initialization sequencing module, an application terminal updating sequencing module and a video data alternate uploading module; wherein,
the monitoring video recording and storing execution module is used for indicating the monitoring camera to shoot a preset monitoring scene so as to record and obtain continuous monitoring videos, and converting the monitoring videos into a plurality of monitoring video data packets for storage;
the application terminal initialization sequencing module is used for determining the initial monitoring video uploading priority level of all the application terminals according to the respective operation performance parameters and the real-time operation task load of each of the application terminals;
the application terminal updating and sequencing module is used for updating the uploading priority level of the initial monitoring video;
the video data rotation uploading module is used for uploading the monitoring video data packets to the application terminal with the highest uploading priority level in a rotation mode according to the updating result;
further, the monitoring video recording and storing execution module comprises a monitoring video recording execution sub-module, a monitoring video segmentation sub-module, a monitoring video packing sub-module and a monitoring video storing execution sub-module; wherein,
the monitoring video recording execution submodule is used for instructing the monitoring camera to periodically scan and shoot the preset monitoring scene, so that a continuous 360-degree panoramic monitoring video related to the preset monitoring scene is recorded and obtained;
the monitoring video segmentation sub-module is used for segmenting the 360-degree panoramic monitoring video into a plurality of monitoring sub-videos according to a recording time axis of the 360-degree panoramic monitoring video and a preset time interval;
the monitoring video packing submodule is used for respectively carrying out fidelity compression on each section of monitoring sub-video so as to convert the plurality of sections of monitoring sub-videos into a plurality of monitoring video data packets;
the monitoring video storage execution submodule is used for storing the monitoring video data packets into a video data packet queue according to the recording time sequence corresponding to each monitoring sub-video;
further, the application terminal initialization sequencing module comprises an application terminal operation time calculation sub-module and an application terminal initial uploading priority level determination sub-module; wherein,
the application terminal operation time calculation submodule is used for calculating and obtaining the average operation time required by each application terminal for processing and finishing the real-time operation task data volume according to the average operation speed and the real-time operation task data volume of each application terminal;
the application terminal initial uploading priority level determining submodule is used for determining initial monitoring video uploading priority levels of all application terminals according to respective average operation time of each application terminal, wherein when the average operation time of a certain application terminal is shorter, the monitoring video uploading priority level of the certain application terminal is higher;
further, the application terminal updating and sequencing module comprises an application terminal operation time consumption calculation model building submodule and an uploading priority level regular updating submodule; wherein,
the application terminal operation time-consuming calculation model building submodule is used for building a corresponding application terminal operation time-consuming calculation model according to the operation task data volume increasing trend of each application terminal and the operation speed changing trend of each application terminal;
the uploading priority level regular updating submodule is used for regularly updating the uploading priority level of the initial monitoring video and regularly determining the application terminal with the highest uploading priority level according to the calculation result of the application terminal operation time consumption calculation model aiming at each application terminal;
the video data rotation uploading module further uploads the monitoring video data packets to the application terminal with the highest uploading priority level in a rotation mode until each application terminal receives all the monitoring video data packets.
Compared with the prior art, the monitoring video alternate uploading method and the system obtain continuous monitoring videos by shooting the preset monitoring scene and recording the continuous monitoring videos, convert the monitoring videos into a plurality of monitoring video data packets to be stored, determine initial monitoring video uploading priority levels of all application terminals according to respective operation performance parameters and real-time operation task loads of each application terminal in the plurality of application terminals, finally update the initial monitoring video uploading priority levels, and respectively upload the monitoring video data packets to the application terminal with the highest uploading priority level in an alternate mode according to the updating result; therefore, the method and the system for alternately uploading the monitoring videos are different from the prior art that all the monitoring videos are synchronously uploaded to the non-stop application terminals in a simultaneous and parallel mode, the uploading priority levels of the monitoring videos of all the application terminals are determined and updated according to respective operation performance parameters and operation task loads of different application terminals, and corresponding monitoring video data are independently uploaded to the application terminal with the highest uploading priority level at the same time in an alternate mode, so that each application terminal can receive the monitoring video data at the highest efficiency, and the uploading efficiency and the uploading safety of the monitoring videos are improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a monitoring video rotation uploading method provided by the present invention.
Fig. 2 is a schematic structural diagram of a surveillance video rotation uploading system provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a monitoring video rotation uploading method according to an embodiment of the present invention. The monitoring video alternate uploading method comprises the following steps:
step S1, instructing the monitoring camera to shoot a preset monitoring scene so as to record and obtain a continuous monitoring video, and converting the monitoring video into a plurality of monitoring video data packets for storage;
step S2, determining initial monitoring video uploading priority levels of all application terminals according to respective operation performance parameters and real-time operation task loads of each application terminal in a plurality of application terminals;
and step S3, updating the initial monitoring video uploading priority level, and uploading the monitoring video data packets to the application terminal with the highest uploading priority level in a rotation manner according to the updated result.
The monitoring video alternate uploading method is based on the fact that when the load of an operation task of an application terminal such as a smart phone, a server or a virtual computer is small, the application terminal can receive uploaded monitoring video data at a high speed, and the monitoring video uploading priority levels of all the application terminals are determined and updated, so that the monitoring video data are only uploaded to the application terminal with the highest uploading priority level at the same time, all the application terminals can obtain relatively equal and efficient monitoring video data uploading opportunities, mutual crosstalk of the uploaded data among different application terminals is avoided, and the efficiency and the safety of the monitoring video uploading are improved.
Preferably, in step S1, the instructing the monitoring camera to shoot the preset monitoring scene so as to record and obtain a continuous monitoring video, and converting the monitoring video into a plurality of monitoring video data packets for storage specifically includes,
step S101, instructing the monitoring camera to periodically scan and shoot the preset monitoring scene, so as to record and obtain a continuous 360-degree panoramic monitoring video related to the preset monitoring scene;
step S102, according to the recording time axis of the 360-degree panoramic monitoring video and a preset time interval, segmenting the 360-degree panoramic monitoring video into a plurality of monitoring sub-videos;
step S103, performing fidelity compression on each section of the monitoring sub-video respectively, and converting the sections of the monitoring sub-video into a plurality of monitoring video data packets;
and step S104, storing the plurality of monitoring video data packets into a video data packet queue according to the recording time sequence corresponding to each section of the monitoring sub-video.
The 360-degree panoramic monitoring video obtained by recording is segmented and subjected to fidelity compression to obtain a plurality of corresponding monitoring video data packets, so that the video data volume uploaded at a single time can be greatly reduced, the uploading efficiency and safety are improved, and the situations of data uploading blockage and data uploading leakage are avoided.
Preferably, in step S2, the determining the initial surveillance video uploading priority levels for all the application terminals according to the respective computation performance parameters and real-time computation task loads of each of the application terminals specifically includes,
step S201, calculating to obtain the average operation time required by each application terminal to process and complete the real-time operation task data volume according to the average operation speed and the real-time operation task data volume of each application terminal;
step S202, according to the respective average operation time of each application terminal, determining the initial monitoring video uploading priority level of all the application terminals, wherein when the average operation time of a certain application terminal is shorter, the monitoring video uploading priority level is higher.
The efficiency of the application terminals for receiving the uploaded monitoring video data is in positive correlation with the surplus computing capacity, so that the initial monitoring video uploading priority level is determined according to the average computing speed and the real-time computing task data of each application terminal, and the optimal determination of the uploading level of each application terminal can be guaranteed to the maximum extent.
Preferably, in the step S3, updating the initial surveillance video uploading priority level, and according to the updated result, uploading the surveillance video packets to the application terminal with the highest uploading priority level in a rotating manner respectively includes,
step S301, constructing a corresponding application terminal operation time consumption calculation model according to the operation task data volume increasing trend of each application terminal and the operation speed change trend of each application terminal;
step S302, updating the uploading priority level of the initial monitoring video periodically and determining the application terminal with the highest uploading priority level periodically according to the calculation result of the application terminal operation time consumption calculation model aiming at each application terminal;
step S303, upload the plurality of monitoring video data packets to the application terminal having the highest upload priority level in a rotation manner until each application terminal receives all monitoring video data packets.
The operation task data volume of each application terminal is dynamically changed, so that the redundant operation capacity of each application terminal is also dynamically changed, and the target application terminal for uploading the monitoring video data each time can be ensured to have the highest priority level by updating the initial monitoring video uploading priority level, so that the overall uploading efficiency of all the monitoring video data is further improved.
Preferably, in step S301, according to the trend of increasing the data amount of the operation task of each application terminal and the trend of changing the operation speed of each application terminal, constructing a corresponding calculation model of the operation time consumption of the application terminal specifically includes,
firstly, acquiring basic parameters of each application terminal, and determining idle stable parameters of each application terminal according to the following formula (1):
in the above formula (1), AiIndicating idle stability parameters of the ith application terminal, wherein i is 1, 2 and 3 … N, N indicates the total number of application terminals, L1, L2, L3 and L4 are preset adjustment coefficients of the application terminals, the sum of L1, L2, L3 and L4 is 1, L1, L2, L3 and L4 all take values between 0 and 1, and VPiIndicates the overall utilization rate, FP, of the CPU of the ith application terminaliIndicating the ratio of the disk writing speed of the ith application terminal to the optimal disk writing speed, IMiRepresents the memory utilization rate, ZP, of the ith application terminaliIndicating the ratio, ID, between the hard disk capacity of the ith application terminal and the optimal hard disk capacityiRepresenting the utilization rate of the average read-write speed of the disk, MP, of the ith application terminaliRepresents the ratio of the network bandwidth of the ith application terminal to the optimal network bandwidth, INiIndicating the utilization rate of the average bandwidth of the ith application terminal;
secondly, determining the available weight corresponding to each application terminal according to the following formula (2):
in the above formula (2), KiRepresenting the available weight of the ith application terminal, DiRepresents a preset stability factor of the ith application terminal, and i is 1, 2, 3 … N, DjPre-set stability factor, VP, representing the jth application terminaljRepresents the ratio of the CPU processing rate of the jth application terminal to the optimal processing rate of the application terminal, FPjRepresents the ratio of the disk writing speed of the jth application terminal to the optimal disk writing speedValue, ZPjRepresents the ratio between the hard disk capacity of the jth application terminal and the optimal hard disk capacity, MPjRepresents the ratio of the network bandwidth of the jth application terminal to the optimal network bandwidth, AjAn idle stability parameter indicating the jth application terminal, and j is 1, 2, 3 … N;
and thirdly, determining the application terminal with the maximum available weight value as the application terminal with the maximum operation speed.
In the process, the current use condition of each application terminal is also considered while the CPU performance of all the application terminals, the disk writing speed, the hard disk size, the network transmission rate and other application terminal hardware are considered, so that the optimal application terminal under the current condition is selected as the transmission terminal, the video is transmitted to the terminal, and the video transmission sales volume is increased; meanwhile, in the process, an additional judgment mechanism is not required, so that the labor cost can be reduced, the adopted calculation is simple, the calculation speed can be increased, too much time is consumed when the usable weight of each application terminal is waited to be calculated in the transmission process, and the control speed can be increased in a large area.
Fig. 2 is a schematic structural diagram of a monitoring video rotation uploading system according to an embodiment of the present invention. The monitoring video alternate uploading system comprises a monitoring video recording and storing execution module, an application terminal initialization sequencing module, an application terminal updating sequencing module and a video data alternate uploading module; wherein,
the monitoring video recording and storing execution module is used for indicating the monitoring camera to shoot a preset monitoring scene so as to record and obtain a continuous monitoring video and convert the monitoring video into a plurality of monitoring video data packets for storage;
the application terminal initialization sequencing module is used for determining the initial monitoring video uploading priority level of all the application terminals according to the respective operation performance parameters and the real-time operation task load of each of the application terminals;
the application terminal updating and sequencing module is used for updating the uploading priority level of the initial monitoring video;
the video data rotation uploading module is used for uploading the plurality of monitoring video data packets to the application terminal with the highest uploading priority level in a rotation mode according to the updating result.
The monitoring video alternate uploading system is based on the fact that when the load of an operation task of an application terminal such as a smart phone, a server or a virtual computer is small, the application terminal can receive uploaded monitoring video data at a high speed, and the monitoring video uploading priority levels of all the application terminals are determined and updated, so that the monitoring video data are only uploaded to the application terminal with the highest uploading priority level at the same time, all the application terminals can obtain relatively equal and efficient monitoring video data uploading opportunities, mutual crosstalk of the uploaded data among different application terminals is avoided, and the efficiency and the safety of monitoring video uploading are improved.
Preferably, the monitoring video recording and storing execution module comprises a monitoring video recording execution submodule, a monitoring video segmentation submodule, a monitoring video packing submodule and a monitoring video storing execution submodule; wherein,
the monitoring video recording execution submodule is used for indicating the monitoring camera to carry out periodic scanning shooting on the preset monitoring scene so as to record and obtain a continuous 360-degree panoramic monitoring video related to the preset monitoring scene;
the monitoring video segmentation sub-module is used for segmenting the 360-degree panoramic monitoring video into a plurality of monitoring sub-videos according to a recording time axis of the 360-degree panoramic monitoring video and a preset time interval;
the monitoring video packing submodule is used for respectively carrying out fidelity compression on each section of monitoring sub-video so as to convert the plurality of sections of monitoring sub-videos into a plurality of monitoring video data packets;
the monitoring video storage execution submodule is used for storing the monitoring video data packets into a video data packet queue according to the recording time sequence corresponding to each section of the monitoring sub-video.
The 360-degree panoramic monitoring video obtained by recording is segmented and subjected to fidelity compression to obtain a plurality of corresponding monitoring video data packets, so that the video data volume uploaded at a single time can be greatly reduced, the uploading efficiency and safety are improved, and the situations of data uploading blockage and data uploading leakage are avoided.
Preferably, the application terminal initialization sequencing module comprises an application terminal operation time calculation sub-module and an application terminal initial uploading priority level determination sub-module; wherein,
the application terminal operation time calculation submodule is used for calculating and obtaining the average operation time required by each application terminal for processing and finishing the real-time operation task data volume according to the average operation speed and the real-time operation task data volume of each application terminal;
the application terminal initial uploading priority level determining submodule is used for determining initial monitoring video uploading priority levels of all application terminals according to respective average operation time of each application terminal, wherein when the average operation time of a certain application terminal is shorter, the monitoring video uploading priority level is higher.
The efficiency of the application terminals for receiving the uploaded monitoring video data is in positive correlation with the surplus computing capacity, so that the initial monitoring video uploading priority level is determined according to the average computing speed and the real-time computing task data of each application terminal, and the optimal determination of the uploading level of each application terminal can be guaranteed to the maximum extent.
Preferably, the application terminal updating and sequencing module comprises an application terminal operation time consumption calculation model building submodule and an uploading priority level regular updating submodule; wherein,
the application terminal operation time-consuming calculation model construction sub-module is used for constructing a corresponding application terminal operation time-consuming calculation model according to the operation task data volume increasing trend of each application terminal and the operation speed variation trend of each application terminal;
the uploading priority level regular updating submodule is used for regularly updating the uploading priority level of the initial monitoring video and regularly determining the application terminal with the highest uploading priority level according to the calculation result of the application terminal operation time-consuming calculation model aiming at each application terminal;
the video data rotation uploading module also uploads the plurality of monitoring video data packets to the application terminal with the highest uploading priority level in a rotation mode until each application terminal receives all the monitoring video data packets.
The operation task data volume of each application terminal is dynamically changed, so that the redundant operation capacity of each application terminal is also dynamically changed, and the target application terminal for uploading the monitoring video data each time can be ensured to have the highest priority level by updating the initial monitoring video uploading priority level, so that the overall uploading efficiency of all the monitoring video data is further improved.
As can be seen from the content of the above embodiment, the surveillance video alternative uploading method and system obtains continuous surveillance videos by shooting a preset surveillance scene and recording the surveillance videos, converts the surveillance videos into a plurality of surveillance video data packets for storage, determines initial surveillance video uploading priority levels of all application terminals according to respective operational performance parameters and real-time operational task loads of each of the application terminals, updates the initial surveillance video uploading priority levels, and uploads the plurality of surveillance video data packets to the application terminal with the highest uploading priority level in an alternative manner according to the update result; therefore, the method and the system for alternately uploading the monitoring videos are different from the prior art that all the monitoring videos are synchronously uploaded to the non-stop application terminals in a simultaneous and parallel mode, the uploading priority levels of the monitoring videos of all the application terminals are determined and updated according to respective operation performance parameters and operation task loads of different application terminals, and corresponding monitoring video data are independently uploaded to the application terminal with the highest uploading priority level at the same time in an alternate mode, so that each application terminal can receive the monitoring video data at the highest efficiency, and the uploading efficiency and the uploading safety of the monitoring videos are improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (6)
1. The monitoring video alternate uploading method is characterized by comprising the following steps:
step S1, instructing the monitoring camera to shoot a preset monitoring scene so as to record and obtain a continuous monitoring video, and converting the monitoring video into a plurality of monitoring video data packets for storage;
step S2, determining initial monitoring video uploading priority levels of all application terminals according to respective operation performance parameters and real-time operation task loads of each application terminal in a plurality of application terminals;
step S3, updating the uploading priority level of the initial monitoring video, and uploading the monitoring video data packets to the application terminal with the highest uploading priority level respectively in a rotation mode according to the updating result;
in step S2, determining the initial monitoring video uploading priority levels of all the application terminals according to the respective operation performance parameters and the real-time operation task load of each of the plurality of application terminals specifically includes:
step S201, calculating to obtain the average operation time required by each application terminal to process and complete the real-time operation task data volume according to the average operation speed and the real-time operation task data volume of each application terminal;
step S202, determining initial monitoring video uploading priority levels of all the application terminals according to the respective average operation time of each application terminal, wherein when the average operation time of a certain application terminal is shorter, the monitoring video uploading priority level is higher;
in step S3, the updating the initial monitoring video upload priority level, and uploading the monitoring video data packets to the application terminal having the highest upload priority level in an alternate manner according to the updated result specifically includes:
updating the uploading priority level of the initial monitoring video regularly and determining the application terminal with the highest uploading priority level regularly; and uploading the plurality of monitoring video data packets to the application terminal with the highest uploading priority level individually in a rotation mode until each application terminal receives all the monitoring video data packets.
2. The surveillance video rotation uploading method as claimed in claim 1, wherein:
in step S1, instructing the monitoring camera to shoot a preset monitoring scene, so as to record and obtain a continuous monitoring video, and converting the monitoring video into a plurality of monitoring video data packets for storage specifically includes,
step S101, instructing the monitoring camera to periodically scan and shoot the preset monitoring scene, so as to record and obtain a continuous 360-degree panoramic monitoring video related to the preset monitoring scene;
step S102, according to the recording time axis of the 360-degree panoramic monitoring video and a preset time interval, segmenting the 360-degree panoramic monitoring video into a plurality of monitoring sub-videos;
step S103, performing fidelity compression on each section of the monitoring sub-video respectively, so as to convert the plurality of sections of the monitoring sub-video into a plurality of monitoring video data packets;
and step S104, storing the plurality of monitoring video data packets into a video data packet queue according to the recording time sequence corresponding to each section of the monitoring sub-video.
3. The surveillance video rotation uploading method as claimed in claim 1, wherein:
the periodically updating the initial monitoring video uploading priority level and the periodically determining the application terminal with the highest uploading priority level specifically include:
constructing a corresponding application terminal operation time consumption calculation model according to the operation task data volume increasing trend of each application terminal and the operation speed variation trend of each application terminal;
and updating the initial monitoring video uploading priority level periodically and determining the application terminal with the highest uploading priority level periodically according to the calculation result of the application terminal calculation time-consuming calculation model aiming at each application terminal.
4. The monitoring video rotation uploading system is characterized in that:
the monitoring video alternate uploading system comprises a monitoring video recording and storing execution module, an application terminal initialization sequencing module, an application terminal updating sequencing module and a video data alternate uploading module; wherein,
the monitoring video recording and storing execution module is used for indicating the monitoring camera to shoot a preset monitoring scene so as to record and obtain continuous monitoring videos, and converting the monitoring videos into a plurality of monitoring video data packets for storage;
the application terminal initialization sequencing module is used for determining the initial monitoring video uploading priority level of all the application terminals according to the respective operation performance parameters and the real-time operation task load of each of the application terminals;
the application terminal updating and sequencing module is used for updating the uploading priority level of the initial monitoring video;
the video data rotation uploading module is used for uploading the monitoring video data packets to the application terminal with the highest uploading priority level in a rotation mode according to the updating result;
the application terminal initialization sequencing module comprises an application terminal operation time calculation submodule and an application terminal initial uploading priority level determination submodule; wherein,
the application terminal operation time calculation submodule is used for calculating and obtaining the average operation time required by each application terminal for processing and finishing the real-time operation task data volume according to the average operation speed and the real-time operation task data volume of each application terminal;
the application terminal initial uploading priority level determining submodule is used for determining initial monitoring video uploading priority levels of all application terminals according to respective average operation time of each application terminal, wherein when the average operation time of a certain application terminal is shorter, the monitoring video uploading priority level of the certain application terminal is higher;
wherein, the application terminal update sequencing module is used for updating the initial monitoring video uploading priority level, and comprises: the application terminal updating and sorting module periodically updates the initial monitoring video uploading priority level and periodically determines the application terminal with the highest uploading priority level;
the video data rotation uploading module is used for uploading the monitoring video data packets to the application terminal with the highest uploading priority level in a rotation mode according to the updating result, and comprises: and uploading the plurality of monitoring video data packets to the application terminal with the highest uploading priority level individually in a rotation mode until each application terminal receives all the monitoring video data packets.
5. The surveillance video rotation upload system of claim 4, wherein:
the monitoring video recording and storing execution module comprises a monitoring video recording execution submodule, a monitoring video segmentation submodule, a monitoring video packaging submodule and a monitoring video storing execution submodule; wherein,
the monitoring video recording execution submodule is used for instructing the monitoring camera to periodically scan and shoot the preset monitoring scene, so that a continuous 360-degree panoramic monitoring video related to the preset monitoring scene is recorded and obtained;
the monitoring video segmentation sub-module is used for segmenting the 360-degree panoramic monitoring video into a plurality of monitoring sub-videos according to a recording time axis of the 360-degree panoramic monitoring video and a preset time interval;
the monitoring video packing submodule is used for respectively carrying out fidelity compression on each section of monitoring sub-video so as to convert the plurality of sections of monitoring sub-videos into a plurality of monitoring video data packets;
and the monitoring video storage execution submodule is used for storing the monitoring video data packets into a video data packet queue according to the recording time sequence corresponding to each monitoring sub-video.
6. The surveillance video rotation upload system of claim 4, wherein:
the application terminal updating and sequencing module comprises an application terminal operation time consumption calculation model building submodule and an uploading priority level periodic updating submodule; wherein,
the application terminal operation time-consuming calculation model building submodule is used for building a corresponding application terminal operation time-consuming calculation model according to the operation task data volume increasing trend of each application terminal and the operation speed changing trend of each application terminal;
the uploading priority level regular updating submodule is used for regularly updating the initial monitoring video uploading priority level and regularly determining the application terminal with the highest uploading priority level according to the calculation result of the application terminal operation time consumption calculation model aiming at each application terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010758309.2A CN111953938B (en) | 2020-07-31 | 2020-07-31 | Monitoring video alternate uploading method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010758309.2A CN111953938B (en) | 2020-07-31 | 2020-07-31 | Monitoring video alternate uploading method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111953938A CN111953938A (en) | 2020-11-17 |
CN111953938B true CN111953938B (en) | 2021-06-22 |
Family
ID=73338963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010758309.2A Active CN111953938B (en) | 2020-07-31 | 2020-07-31 | Monitoring video alternate uploading method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111953938B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105681717A (en) * | 2016-03-04 | 2016-06-15 | 广州星唯信息科技有限公司 | Bus monitoring video distributed storage method and system |
CN106326008A (en) * | 2016-08-23 | 2017-01-11 | 成都卡莱博尔信息技术股份有限公司 | Monitoring method for cluster system |
CN106506665A (en) * | 2016-11-18 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of load-balancing method of distributed video monitoring system and platform |
CN109922318A (en) * | 2019-03-22 | 2019-06-21 | 重庆紫光华山智安科技有限公司 | A kind of multi-channel video transmission dispatching method, device, storage medium and electric terminal |
US10587844B2 (en) * | 2015-02-17 | 2020-03-10 | Innodep Co., Ltd. | Image analysis system for analyzing dynamically allocated camera image, integrated control system including same, and operation method therefor |
CN111427660A (en) * | 2020-03-19 | 2020-07-17 | 北京奇艺世纪科技有限公司 | Scheduling method and device for uploading machine |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9443556B2 (en) * | 2009-07-01 | 2016-09-13 | E-Plate Limited | Video acquisition and compilation system and method of assembling and distributing a composite video |
-
2020
- 2020-07-31 CN CN202010758309.2A patent/CN111953938B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10587844B2 (en) * | 2015-02-17 | 2020-03-10 | Innodep Co., Ltd. | Image analysis system for analyzing dynamically allocated camera image, integrated control system including same, and operation method therefor |
CN105681717A (en) * | 2016-03-04 | 2016-06-15 | 广州星唯信息科技有限公司 | Bus monitoring video distributed storage method and system |
CN106326008A (en) * | 2016-08-23 | 2017-01-11 | 成都卡莱博尔信息技术股份有限公司 | Monitoring method for cluster system |
CN106506665A (en) * | 2016-11-18 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of load-balancing method of distributed video monitoring system and platform |
CN109922318A (en) * | 2019-03-22 | 2019-06-21 | 重庆紫光华山智安科技有限公司 | A kind of multi-channel video transmission dispatching method, device, storage medium and electric terminal |
CN111427660A (en) * | 2020-03-19 | 2020-07-17 | 北京奇艺世纪科技有限公司 | Scheduling method and device for uploading machine |
Also Published As
Publication number | Publication date |
---|---|
CN111953938A (en) | 2020-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111756646B (en) | Network transmission control method, device, computer equipment and storage medium | |
CN109144719B (en) | Collaborative unloading method based on Markov decision process in mobile cloud computing system | |
WO2022222906A1 (en) | Bandwidth predictor configuration and service adjusting methods and device | |
CN115242800B (en) | Game theory-based mobile edge computing resource optimization method and device | |
CN113992945A (en) | Multi-server multi-user video analysis task unloading method based on game theory | |
CN111211984B (en) | Method and device for optimizing CDN network and electronic equipment | |
CN112783807A (en) | Model calculation method and system | |
CN111953938B (en) | Monitoring video alternate uploading method and system | |
CN116017003A (en) | Self-adaptive VR360 video-on-demand method and system based on multiple artificial intelligence methods | |
CN114064394A (en) | Safety monitoring method and device based on edge calculation and terminal equipment | |
CN113938394A (en) | Monitoring service bandwidth allocation method and device, electronic equipment and storage medium | |
CN116074323B (en) | Edge computing node selection method, device, computer equipment and medium | |
CN111580943A (en) | Task scheduling method oriented to multi-hop unloading in low-delay edge calculation | |
CN114301911B (en) | Task management method and system based on edge-to-edge coordination | |
CN115314717A (en) | Video transmission method, video transmission device, electronic equipment and computer-readable storage medium | |
CN114039931A (en) | Method, device, equipment and medium for controlling data transmission | |
CN115842928A (en) | Video code rate switching method and device, computer equipment and storage medium | |
CN110290556A (en) | A kind of balancing resource load dispatching method based on the optimum control calculus of variations | |
CN115375530B (en) | Multi-GPU collaborative rendering method, system, device and storage medium | |
CN116870462B (en) | Game data rendering method and device | |
CN118214887B (en) | Video coding method | |
CN116112740B (en) | Video playing method and device, electronic equipment and storage medium | |
CN112637567B (en) | Multi-node edge computing device-based cloud data uploading method and system | |
CN111953898B (en) | Method and system for recording and transmitting monitoring video | |
CN112601009B (en) | Method and system for realizing ISCSI storage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |