A surveillance video encryption system, method and storage medium
By dynamically selecting the encryption method according to the CPU occupancy rate of the user terminal and the monitoring area in the monitoring video encryption system, the balance between encryption strength and decryption speed in the existing technology is solved, and a video surveillance experience with high security and low latency is achieved. .
Patent Information
- Application Number
- CN202310496987.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2043-05-05
AI Technical Summary
When ensuring the security of video, existing surveillance video encryption systems are difficult to balance the decryption speed and user experience, resulting in high encryption strength methods with high computational complexity, affecting the real-time and smoothness of video transmission.
By dynamically selecting the encryption method between the server and the monitoring terminal, selecting an appropriate encryption algorithm based on the CPU occupancy rate of the user terminal and the real-time situation of the monitoring area, ensuring that the lighter encryption method is selected to ensure the decryption speed when the CPU occupancy rate is high. , and use more advanced encryption methods to improve security when CPU usage is low.
It realizes dynamic adjustment of encryption methods while ensuring user experience, improves the security and decryption efficiency of video surveillance, avoids delays or lags caused by excessively complex encryption methods, and saves computing power when unmanned monitoring areas.
Smart Images

Figure CN116527963B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of encryption technology, and in particular to a surveillance video encryption system, method and storage medium. Background Art
[0002] With the maturity of digital video coding technology, video information streams based on video coding can adapt to various bandwidth applications and gradually become an important means for humans to obtain information, such as video conferencing, video surveillance, video calls, etc. In order to effectively resist attacks by hackers or thieves, ensuring the security of videos has also become the key to the development of video transmission services.
[0003] The video information stream is composed of a series of images. On the one hand, in order to achieve a smooth visual effect, a certain number of frames of images must be transmitted per second, so there is a real-time requirement for the encryption system. On the other hand, the image is composed of pixels, and each pixel has color and position information. It has the characteristics of large amount of information and non-concentrated energy, so there is a high efficiency requirement for the encryption system.
[0004] At present, video encryption methods can be divided into two categories according to different encryption strategies: full encryption and selective encryption: full encryption is to encrypt the video data bit by bit as a bit stream. Its advantage is that it has high security and can achieve a high security level, but full encryption is slow and destroys the video encoding format, and the real-time performance of video transmission is poor. Selective encryption is to encrypt key syntax elements in the video encoding process. This method does not destroy the video encoding format and has high encryption efficiency. It has become a commonly used encryption method for protecting video information. Common syntax elements of video selective encryption include: intra-frame prediction mode, motion vector, quantization coefficient, tailing coefficient and non-zero coefficient.
[0005] However, it is difficult to minimize the computational overhead of encryption while ensuring the effectiveness of video encryption. The speed and security of video encryption are mutually constrained, and methods with high encryption strength often have relatively high computational complexity.
[0006] Therefore, it is necessary to overcome this contradiction and design a surveillance video encryption system, method and storage medium that can balance decryption speed and security while ensuring user experience. Summary of the invention
[0007] One of the purposes of the present invention is to provide a surveillance video encryption system that can balance decryption speed and security while ensuring user experience.
[0008] In order to solve the above technical problems, this application provides the following technical solutions:
[0009] A surveillance video encryption system comprises a server, several surveillance terminals and several user terminals;
[0010] The user terminal is used to send a video viewing request to the server and send CPU usage information;
[0011] The server determines the user terminals viewing the same video source according to the received video viewing request, and marks them as the user terminals in the same group; determines whether the highest CPU occupancy rate among the user terminals in the same group exceeds the first threshold, and sends the first encrypted information to the monitoring terminal corresponding to the video source if it exceeds the first threshold; and sends the second encrypted information to the monitoring terminal corresponding to the video source if it does not exceed the first threshold;
[0012] The monitoring terminal is used to pre-process and encode the collected video data of the monitoring area to form an initial video file;
[0013] The monitoring terminal is further configured to select a first encryption method from a preset encryption algorithm library to encrypt the video frame in the video initial file when receiving the first encryption information; and select a second encryption method from a preset encryption algorithm library to encrypt the video frame in the video initial file when receiving the second encryption information;
[0014] The monitoring terminal encapsulates the encrypted video frames into a video transmission file and sends it to the server;
[0015] The server sends the video transmission file to the corresponding user terminal according to the video viewing request.
[0016] The basic scheme principles and beneficial effects are as follows:
[0017] In this solution, we first determine the user terminals that view the same video source and mark them as the same group of user terminals. We select the encryption method based on the user terminal with the highest CPU occupancy rate in the same group of user terminals to ensure that the user terminal with the highest CPU occupancy rate still has a better viewing experience and avoids delays or freezes caused by increased decryption time due to overly complex encryption methods. When the CPU occupancy rate does not exceed the first threshold, a higher level of encryption can be used to achieve higher security.
[0018] In summary, this solution can dynamically select the encryption method according to the situation of the user terminal, thereby improving security while ensuring user experience.
[0019] Furthermore, the user terminal obtains the video transmission file, decrypts the video frames in the video transmission file, and encapsulates the decrypted video frames into a video playback file; the user terminal is also used to decode and play the video playback file.
[0020] Furthermore, the monitoring terminal is also used to select a third encryption method from a preset encryption algorithm library to encrypt the video frames in the video initial file when the first encryption information and the second encryption information are not obtained.
[0021] The monitoring terminal does not obtain the first encryption information and the second encryption information, indicating that no user terminal is currently viewing the monitoring video in real time. The third encryption method with a higher level is used to encrypt the video frames in the initial video file, which is more secure. When a user terminal needs to replay historical videos from the server, since it is not a real-time live broadcast, the requirement for delay will be relatively low. The third encryption method is used, which has less impact on the user's viewing experience during playback.
[0022] Furthermore, the monitoring terminal is also used to identify whether there is a person in the monitoring area according to the video data, and send the identification result to the server;
[0023] The server is also used to determine whether there is a person in the monitoring area according to the recognition result, and if there is a person, send the recognition result to other monitoring terminals belonging to the same monitoring area;
[0024] The monitoring terminal is also used to, when the first encryption information and the second encryption information are not obtained, select the third encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the existing person; and select the first encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the non-existent person.
[0025] Compared with videos of empty scenes without people, videos of people in the monitoring area are relatively more important. If leaked, the impact will be greater. Therefore, the third encryption method is used for encryption. When there are no people in the monitoring area, the first encryption method is used for encryption, which can effectively save encryption and decryption time and save computing power.
[0026] Furthermore, the user terminal is also used to record the decryption time of the video frame under different encryption methods; send the decryption time to the server; the server calculates the average decryption time of different encryption methods; and calculates the evaluation score of each encryption method in the encryption algorithm library according to the average decryption time of different encryption methods and the preset security rating of different encryption methods:
[0027] S=V+aT
[0028] Among them, V is the security rating, the higher the security, the higher the rating, a is the weight coefficient, and T is the average decryption time;
[0029] The server is also used to sort the encryption methods according to the evaluation scores from low to high, and mark the encryption methods as the first encryption method, the second encryption method, the third encryption method... in the order of sorting, and send the marked content to the monitoring terminal.
[0030] Encryption methods are sorted according to average decryption time and preset security ratings to avoid the situation where low security and relatively long decryption time occur when relying solely on security ratings.
[0031] A second object of the present invention is to provide a surveillance video encryption method, comprising the following steps:
[0032] S1. The user terminal sends a video viewing request to the server and sends CPU occupancy information at the same time;
[0033] S2. The server determines the user terminals viewing the same video source according to the received video viewing request and marks them as the user terminals in the same group; determines whether the highest CPU occupancy rate among the user terminals in the same group exceeds the first threshold, and sends the first encrypted information to the monitoring terminal corresponding to the video source if it exceeds the first threshold; and sends the second encrypted information to the monitoring terminal corresponding to the video source if it does not exceed the first threshold;
[0034] S3, the monitoring terminal pre-processes and encodes the collected video data of the monitoring area to form an initial video file;
[0035] S4, when the monitoring terminal receives the first encryption information, selects the first encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file; when receiving the second encryption information, selects the second encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file; when the first encryption information and the second encryption information are not obtained, selects the third encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file;
[0036] S5. The monitoring terminal encapsulates the encrypted video frame into a video transmission file and sends it to the server;
[0037] S6. The server sends the video transmission file to the corresponding user terminal according to the video viewing request;
[0038] S7, the user terminal obtains the video transmission file, decrypts the video frames in the video transmission file; and encapsulates the decrypted video frames into a video playback file;
[0039] S8. The user terminal decodes and plays the video playback file.
[0040] Furthermore, in step S3, the monitoring terminal also identifies whether there is a person in the monitoring area according to the video data, and sends the identification result to the server; the server also determines whether there is a person in the monitoring area according to the identification result, and if there is a person, sends the identification result to other monitoring terminals belonging to the same monitoring area;
[0041] In step S4, when the monitoring terminal has not obtained the first encryption information and the second encryption information, it also selects the third encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the existing person; and selects the first encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the non-existent person.
[0042] Furthermore, in step S7, the user terminal also records the decryption time of the video frame under different encryption methods; sends the decryption time to the server; the server calculates the average decryption time of different encryption methods; and calculates the evaluation score of each encryption method in the encryption algorithm library according to the average decryption time of different encryption methods and the preset security rating of different encryption methods:
[0043] S=V+aT
[0044] Among them, V is the security rating, a is the weight coefficient, and T is the average decryption time;
[0045] The method also includes step S9, in which the server sorts the encryption methods according to the evaluation scores from low to high, and marks the encryption methods as the zeroth encryption method, the first encryption method, the second encryption method, the third encryption method, etc. in the order of sorting, and sends the marked content to the monitoring terminal.
[0046] A third object of the present invention is to provide a storage medium storing a computer program, wherein the computer program implements the steps of the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 A diagram of a surveillance video encryption system according to Embodiment 1. DETAILED DESCRIPTION
[0048] The following is further described in detail through specific implementation methods:
[0049] Embodiment 1
[0050] like Figure 1 As shown, a surveillance video encryption system of this embodiment includes a server, several surveillance terminals and several user terminals.
[0051] The monitoring terminal includes a collection module, a processing module, an encryption module and a first communication module.
[0052] The user terminal includes a second communication module, a performance monitoring module, a decryption module and a playing module.
[0053] The performance monitoring module is used to monitor the current CPU usage of the user terminal;
[0054] The second communication module is used to send a video viewing request to the server and, at the same time, send CPU occupancy information;
[0055] The server is used to determine the user terminals viewing the same video source according to the received video viewing request, and mark them as the user terminals in the same group; determine whether the highest CPU occupancy rate among the user terminals in the same group exceeds a first threshold, and if it exceeds the first threshold, send first encrypted information to the first communication module of the monitoring terminal corresponding to the video source; if it does not exceed the first threshold, send second encrypted information to the first communication module of the monitoring terminal corresponding to the video source; the first threshold is 70%-90%, and is 80% in this embodiment.
[0056] The acquisition module of the monitoring terminal is used to collect video data of the monitoring area;
[0057] The processing module is used to preprocess and encode the video data to form an initial video file; in this embodiment, the preprocessing is to convert the RGB color space of the video data into the YUV color space, and the encoding method adopts H.264 encoding.
[0058] The first communication module is used to send the received first encrypted information or second encrypted information to the encryption module;
[0059] The encryption module is used to select a first encryption method from a preset encryption algorithm library to encrypt the video frame in the video initial file when the first encryption information is obtained; and is also used to select a second encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file when the second encryption information is obtained; and is also used to select a third encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file when the first encryption information and the second encryption information are not obtained;
[0060] The encryption module is also used to encapsulate the encrypted video frames into video transmission files;
[0061] The first communication module is also used to send the video transmission file to the server;
[0062] The server is also used to send the video transmission file to the second communication module of the corresponding user terminal according to the video viewing request;
[0063] The decryption module is used to obtain the video transmission file from the second communication module, decrypt the video frame in the video transmission file, and encapsulate the decrypted video frame into a video playback file; in this embodiment, the video playback file is a .ts file. When decrypting, decryption is performed according to the corresponding encryption method. For example, in an asymmetric encryption method, the encryption module encrypts using a public key, and the decryption module decrypts using a private key.
[0064] The playback module is used to decode and play the video playback file.
[0065] Based on the surveillance video encryption system, this embodiment also provides a surveillance video encryption method, including the following steps:
[0066] S1. The user terminal sends a video viewing request to the server and sends CPU occupancy information at the same time;
[0067] S2. The server determines the user terminals viewing the same video source according to the received video viewing request and marks them as the user terminals in the same group; determines whether the highest CPU occupancy rate among the user terminals in the same group exceeds the first threshold, and sends the first encrypted information to the monitoring terminal corresponding to the video source if it exceeds the first threshold; and sends the second encrypted information to the monitoring terminal corresponding to the video source if it does not exceed the first threshold;
[0068] S3, the monitoring terminal pre-processes and encodes the collected video data of the monitoring area to form an initial video file;
[0069] S4, when the monitoring terminal receives the first encryption information, selects the first encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file; when receiving the second encryption information, selects the second encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file; when the first encryption information and the second encryption information are not obtained, selects the third encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file;
[0070] S5. The monitoring terminal encapsulates the encrypted video frame into a video transmission file and sends it to the server;
[0071] S6. The server sends the video transmission file to the corresponding user terminal according to the video viewing request;
[0072] S7, the user terminal obtains the video transmission file, decrypts the video frames in the video transmission file; and encapsulates the decrypted video frames into a video playback file;
[0073] S8. The user terminal decodes and plays the video playback file.
[0074] If the above surveillance video encryption method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the present invention implements all or part of the process in the above embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium. When the computer program is executed by the processor, the steps of the above method embodiment can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0075] Embodiment 2
[0076] The difference between this embodiment and the first embodiment is that in the system of this embodiment, the monitoring terminal further includes an identification module, which is further used to identify whether there is a person in the monitoring area according to the video data, and send the identification result to the server;
[0077] The server is also used to determine whether there is a person in the monitoring area based on the recognition result. If there is a person, the recognition result is sent to other monitoring terminals belonging to the same monitoring area. In this embodiment, other monitoring terminals belonging to the same monitoring area refer to monitoring terminals with partial or complete overlapping monitoring areas.
[0078] The encryption module is also used to, when the first encryption information and the second encryption information are not obtained, select a third encryption method from a preset encryption algorithm library to encrypt the video frames in the video initial file based on a local or received recognition result of a non-existent person; and select a first encryption method from a preset encryption algorithm library to encrypt the video frames in the video initial file based on a local or received recognition result of a non-existent person.
[0079] In the method of this embodiment, in step S3, the monitoring terminal further identifies whether there is a person in the monitoring area based on the video data, and sends the identification result to the server; the server also determines whether there is a person in the monitoring area based on the identification result, and if there is a person, sends the identification result to other monitoring terminals belonging to the same monitoring area;
[0080] In step S4, when the monitoring terminal has not obtained the first encryption information and the second encryption information, it also selects the third encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the existing person; and selects the first encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the non-existent person.
[0081] Embodiment 3
[0082] The difference between this embodiment and the first embodiment is that in the system of this embodiment, the decryption module is also used to record the decryption time of the video frame under different encryption methods; send the decryption time to the server; the server is also used to calculate the average decryption time of different encryption methods;
[0083] The server is also used to calculate the evaluation score of each encryption method in the encryption algorithm library based on the average decryption time of different encryption methods and the preset security rating of different encryption methods:
[0084] S=V+aT
[0085] Wherein, V is the security rating. The higher the security, the higher the rating. In this embodiment, Arabic numerals 1, 2, 3, ... are used to represent the rating. a is the weight coefficient, ranging from [1, 2], and T is the average decryption time.
[0086] The server is also used to sort the encryption methods according to the evaluation scores from low to high, and mark each encryption method as the zeroth encryption method, the first encryption method, the second encryption method, the third encryption method, the fourth encryption method, the fifth encryption method, the sixth encryption method... in the order of sorting. The server is also used to send the marked content to the monitoring terminal.
[0087] In this embodiment, the encryption method in the encryption algorithm library includes one or more of a symmetric encryption algorithm, an asymmetric encryption algorithm and a chaotic encryption algorithm. In this embodiment, the server also serves as a key management center to distribute keys to monitoring terminals and user terminals.
[0088] In the method of this embodiment, in step S7, the user terminal further records the decryption time of the video frame under different encryption methods; sends the decryption time to the server; the server calculates the average decryption time of the different encryption methods; and calculates the evaluation score of each encryption method in the encryption algorithm library according to the average decryption time of the different encryption methods and the preset security rating of the different encryption methods:
[0089] S=V+aT
[0090] Wherein, V is the security rating. The higher the security, the higher the rating. In this embodiment, Arabic numerals 1, 2, 3, ... are used to represent the rating. a is the weight coefficient, ranging from [1, 2], and T is the average decryption time.
[0091] The method also includes step S9, in which the server sorts the encryption methods according to the evaluation scores from low to high, and marks each encryption method as the zeroth encryption method, the first encryption method, the second encryption method, the third encryption method, the fourth encryption method, the fifth encryption method, the sixth encryption method, etc. in the order of sorting, and sends the marked content to the monitoring terminal.
[0092] Embodiment 4
[0093] The difference between this embodiment and the third embodiment is that in the system of this embodiment, the performance monitoring module is also used to record the process whose occupancy rate exceeds the set value when the CPU occupancy rate exceeds the second threshold, mark it as a process to be verified, and send the information of the process to be verified to the server through the second communication module; the information of the process to be verified includes the process name, digital signature and detailed information, such as type, file version, etc. The server is also used to determine whether it is a safe process based on the information of the process to be verified. If so, a process whitelist is established for the user terminal, and the information of the process to be verified is added to the process whitelist. In this embodiment, the server can obtain virus library data from a third-party security software company to determine whether the information of the process to be verified is a safe process, and the set value is 20%.
[0094] The server is also used to determine whether the highest CPU occupancy rate among the user terminals in the same group exceeds a first threshold value. If it exceeds the first threshold value and is less than a second threshold value, a first encrypted message is sent to the first communication module of the monitoring terminal corresponding to the video source. If it does not exceed the first threshold value, a second encrypted message is sent to the first communication module of the monitoring terminal corresponding to the video source. If it exceeds the second threshold value, the user terminal exceeding the second threshold value is removed from the group of user terminals, and the removed user terminal is re-marked as an independent user terminal. The second threshold value is greater than the first threshold value. In this embodiment, the second threshold value is 95%.
[0095] The server is also used to determine whether it belongs to the whitelist process based on the information of the process to be verified of the independent user terminal and the corresponding process whitelist;
[0096] If it belongs to the whitelist process, the public key of the zeroth encryption method is sent to the independent user terminal, and the private key and public key of the zeroth encryption method are regenerated after the sending is completed. The server is also used to decrypt the video transmission file corresponding to the independent user terminal, re-encrypt it using the zeroth encryption method, and send the re-encrypted video transmission file to the second communication module of the independent user terminal.
[0097] If it is not a whitelist process, the process that is not a whitelist process will be marked as a risky process, and information about closing the risky process will be sent to the second communication module of the independent user terminal. The server will then determine whether the risky process is closed based on the latest information about the process to be verified by the independent user terminal. If it is closed, the video transmission file corresponding to the independent user terminal will be decrypted, re-encrypted using the third encryption method, and the re-encrypted video transmission file will be sent to the second communication module of the independent user terminal.
[0098] Among the user terminals in the same group, the highest CPU occupancy rate exceeds the second threshold, indicating that the remaining computing power of the current user terminal is small, which will affect the overall encryption method selection. Therefore, the user terminal is removed from the group of user terminals and re-marked as an independent user terminal, and the encryption method is selected separately to reduce the impact on the user terminals in the same group. By establishing a process whitelist in advance, based on the operation rules of the user terminal, if it is a whitelist process, the current risk is low, and the zeroth encryption method is used to reduce the decryption operation amount to reduce jams. If it is not a whitelist process, the user needs to close the risk process first. At this time, the user terminal and related transmission paths are still at risk, so the third encryption method is used to increase security. Use the server for re-encryption. The server has sufficient computing power and takes less time. At the same time, it avoids jams caused by the monitoring terminal performing two encryption methods at the same time.
[0099] The above are only embodiments of the present invention. The invention is not limited to the fields involved in this implementation case. The common sense such as the known specific structures and characteristics in the scheme is not described in detail here. The ordinary technicians in the relevant field know all the common technical knowledge in the technical field to which the invention belongs before the application date or the priority date, can obtain all the existing technologies in the field, and have the ability to apply the conventional experimental means before that date. The ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the protection scope of the present invention, which will not affect the effect of the implementation of the present invention and the practicality of the patent. The protection scope required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to explain the content of the claims.
Claims
1. A surveillance video encryption system, It is characterized in that It includes a server, several monitoring terminals and several user terminals; The user terminal is used to send a video viewing request to the server and send CPU usage information; The server determines the user terminals viewing the same video source according to the received video viewing request, and marks them as the user terminals in the same group; determines whether the highest CPU occupancy rate among the user terminals in the same group exceeds the first threshold, and sends the first encrypted information to the monitoring terminal corresponding to the video source if it exceeds the first threshold; and sends the second encrypted information to the monitoring terminal corresponding to the video source if it does not exceed the first threshold; The monitoring terminal is used to pre-process and encode the collected video data of the monitoring area to form an initial video file; The monitoring terminal is further configured to select a first encryption method from a preset encryption algorithm library to encrypt the video frame in the video initial file when receiving the first encryption information; and select a second encryption method from a preset encryption algorithm library to encrypt the video frame in the video initial file when receiving the second encryption information; The monitoring terminal encapsulates the encrypted video frames into a video transmission file and sends it to the server; The server sends the video transmission file to the corresponding user terminal according to the video viewing request; The user terminal is also used to record the decryption time of the video frame under different encryption methods; send the decryption time to the server; the server calculates the average decryption time of different encryption methods; and calculates the evaluation score of each encryption method in the encryption algorithm library according to the average decryption time of different encryption methods and the preset security rating of different encryption methods: S=V+aT Among them, V is the security rating, the higher the security, the higher the rating, a is the weight coefficient, and T is the average decryption time; The server is also used to sort the encryption methods according to the evaluation scores from low to high, and mark the encryption methods as the first encryption method, the second encryption method, the third encryption method... in the order of sorting, and send the marked content to the monitoring terminal.
2. The surveillance video encryption system according to claim 1, Features: The user terminal obtains a video transmission file, decrypts the video frames in the video transmission file, and encapsulates the decrypted video frames into a video playback file. The user terminal is also used to decode and play the video playback file.
3. The surveillance video encryption system according to claim 2, Features: The monitoring terminal is also used to select a third encryption method from a preset encryption algorithm library to encrypt the video frames in the video initial file when the first encryption information and the second encryption information are not obtained.
4. The surveillance video encryption system according to claim 3, Features: The monitoring terminal is also used to identify whether there is a person in the monitoring area based on the video data, and send the identification result to the server; The server is also used to determine whether there is a person in the monitoring area according to the recognition result, and if there is a person, send the recognition result to other monitoring terminals belonging to the same monitoring area; The monitoring terminal is also used to, when the first encryption information and the second encryption information are not obtained, select the third encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the existing person; and select the first encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the non-existent person.
5. A surveillance video encryption method, It is characterized in that The steps include: S1. The user terminal sends a video viewing request to the server and sends CPU occupancy information at the same time; S2. The server determines the user terminals viewing the same video source according to the received video viewing request and marks them as user terminals in the same group; determines whether the highest CPU occupancy rate among the user terminals in the same group exceeds a first threshold, and if so, sends a first encrypted message to the monitoring terminal corresponding to the video source; if so, sends a second encrypted message to the monitoring terminal corresponding to the video source; S3, the monitoring terminal pre-processes and encodes the collected video data of the monitoring area to form an initial video file; S4, when the monitoring terminal receives the first encryption information, selects the first encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file; when receiving the second encryption information, selects the second encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file; when the first encryption information and the second encryption information are not obtained, selects the third encryption method from the preset encryption algorithm library to encrypt the video frame in the video initial file; S5. The monitoring terminal encapsulates the encrypted video frame into a video transmission file and sends it to the server; S6. The server sends the video transmission file to the corresponding user terminal according to the video viewing request; S7. The user terminal obtains the video transmission file, decrypts the video frames in the video transmission file; encapsulates the decrypted video frames into a video playback file; the user terminal also records the decryption time of the video frames under different encryption methods; sends the decryption time to the server; the server calculates the average decryption time of different encryption methods; calculates the evaluation score of each encryption method in the encryption algorithm library according to the average decryption time of different encryption methods and the preset security rating of different encryption methods: S=V+aT Among them, V is the security rating, a is the weight coefficient, and T is the average decryption time; The method further includes step S9, wherein the server sorts the encryption methods according to the evaluation scores from low to high, and marks the encryption methods as a first encryption method, a second encryption method, a third encryption method, etc. in the order of sorting, and sends the marked contents to the monitoring terminal; S8. The user terminal decodes and plays the video playback file.
6. The surveillance video encryption method according to claim 5, Features: In step S3, the monitoring terminal also identifies whether there is a person in the monitoring area based on the video data, and sends the identification result to the server; The server also determines whether there is a person in the monitoring area based on the recognition result. If there is a person, the recognition result is sent to other monitoring terminals belonging to the same monitoring area; In step S4, when the monitoring terminal has not obtained the first encryption information and the second encryption information, it also selects the third encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the existing person; and selects the first encryption method from the preset encryption algorithm library to encrypt the video frames in the video initial file based on the local or received recognition result of the non-existent person.
7. A storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the steps of any one of the methods of claims 5-6 are implemented.
