Data distribution method and device, electronic equipment and storage medium
By classifying and encrypting video files, and obtaining and sending secret streaming files according to the project's clarity strategy, the problem of safe transfer of video files is solved, and the security of secure transfer of video files and file transfer is improved.
Patent Information
- Application Number
- CN202411545189.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-25
AI Technical Summary
The prior art cannot guarantee the secure transmission of video files, and it is prone to unauthorized access, tampering, leakage or abuse.
By sorting the video files, we obtain the files to be encrypted and files that do not need to be encrypted. When the files to be encrypted need to be distributed to the project, we obtain the project's clarity policy, obtain the secret streaming file that meets the clarity policy, and send it to the project.
It realizes the secure transmission of video files, prevents unauthorized access, tampering, leakage or abuse, and improves the security of file transfer.
Smart Images

Figure CN119520860A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for data distribution. Background Art
[0002] With the development of the Internet, IPTV (Internet Protocol Television) is becoming more and more popular. IPTV is a new media service for broadcasting and television that is based on telecommunications broadband networks and broadband service platforms, uses televisions as terminals, and provides users with a variety of interactive services including television services.
[0003] However, in the prior art, the secure transmission of video files cannot be guaranteed, and unauthorized access, tampering, disclosure or abuse of video files may easily occur. Summary of the invention
[0004] In view of this, the present application provides a data distribution method, device, electronic device and storage medium to solve the problem in the prior art that secure access to video files cannot be guaranteed.
[0005] To achieve the above objectives, this application provides the following technical solutions:
[0006] The first aspect of the present application discloses a method for distributing data, comprising:
[0007] Classify each video file to obtain files to be encrypted and files that do not need to be encrypted;
[0008] When the file to be encrypted needs to be distributed to a project, a clarity strategy of the project is obtained; wherein the clarity strategy is used to characterize the clarity requirement of the project for the video file;
[0009] Based on the clarity strategy, obtaining a encrypted stream file that corresponds to the file to be encrypted and complies with the clarity strategy;
[0010] Send the secret stream file to the project.
[0011] Optionally, in the above method, the step of classifying the video files to obtain files to be encrypted and files not to be encrypted includes:
[0012] For each video file, obtain attribute information of the video file; wherein the attribute information includes characters, types and scenes;
[0013] Obtaining a density threshold corresponding to the attribute information;
[0014] If the density threshold is greater than a preset threshold, the video file is a file to be encrypted;
[0015] If the density threshold is not greater than the threshold, the video file is a file that does not need to be encrypted.
[0016] Optionally, in the above method, obtaining the encrypted stream file of the file to be encrypted based on the clarity strategy includes:
[0017] Based on the clarity policy, query the local storage whether there is a encrypted stream file that complies with the clarity policy and corresponds to the file to be encrypted;
[0018] If it exists, obtaining the secret stream file from the local storage;
[0019] If it does not exist, obtain the clear stream file corresponding to the file to be encrypted, and encrypt the clear stream file according to the clarity strategy to obtain the dense stream file; wherein the clear stream file is an unencrypted high-definition version file.
[0020] Optionally, in the above method, the step of obtaining the clear stream file corresponding to the file to be encrypted includes:
[0021] Query the local storage whether there is a clear stream file corresponding to the file to be encrypted;
[0022] If it exists, obtaining the clear stream file from the local storage;
[0023] If it does not exist, the back-to-source mechanism is started to obtain the clear stream file corresponding to the file to be encrypted from the cloud server.
[0024] The second aspect of the present application discloses a data distribution device, including:
[0025] A classification unit, used to classify each video file to obtain files to be encrypted and files that do not need to be encrypted;
[0026] A first acquisition unit is used to acquire a clarity strategy of a project when the file to be encrypted needs to be distributed to the project; wherein the clarity strategy is used to characterize the clarity requirement of the project for the video file;
[0027] A second acquisition unit is used to acquire, based on the clarity policy, a encrypted stream file corresponding to the file to be encrypted and conforming to the clarity policy;
[0028] A sending unit is used to send the secret stream file to the project.
[0029] Optionally, in the above-mentioned device, the classification unit comprises:
[0030] A first acquisition subunit is used to acquire attribute information of each video file, wherein the attribute information includes characters, types and scenes;
[0031] A calculation subunit, used to obtain a density threshold corresponding to the attribute information;
[0032] A first determination subunit, configured to determine that the video file is a file to be encrypted if the density threshold is greater than a preset threshold;
[0033] The second determining subunit is used to determine that the video file is a file that does not need to be encrypted if the density threshold is not greater than the threshold.
[0034] Optionally, in the above device, the second acquisition unit includes:
[0035] A first query subunit is used to query whether there is a encrypted stream file that complies with the clarity policy and corresponds to the file to be encrypted in the local storage based on the clarity policy;
[0036] A second acquisition subunit, configured to acquire the secret stream file from the local storage if the secret stream file exists;
[0037] The encryption subunit is used to obtain the clear stream file corresponding to the file to be encrypted if it does not exist, and encrypt the clear stream file according to the clarity strategy to obtain the dense stream file; wherein the clear stream file is an unencrypted high-definition version file.
[0038] Optionally, in the above device, the encryption subunit includes:
[0039] A second query subunit is used to query whether there is a clear stream file corresponding to the file to be encrypted in the local storage;
[0040] A third acquisition subunit, configured to acquire the clear stream file from the local storage if the clear stream file exists;
[0041] The fourth acquisition subunit is used to start the source return mechanism if it does not exist, and obtain the clear stream file corresponding to the file to be encrypted from the cloud server.
[0042] The third aspect of the present application discloses an electronic device, comprising:
[0043] one or more processors;
[0044] a storage device having one or more programs stored thereon;
[0045] When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of the first aspects of the present application.
[0046] A fourth aspect of the present application discloses a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any one of the first aspects of the present application is implemented.
[0047] It can be seen from the above technical solution that in a data distribution method provided by the present application, each video file is first classified to obtain files to be encrypted and files that do not need to be encrypted. When the files to be encrypted need to be distributed to a project, the clarity strategy of the project is obtained; wherein the clarity strategy is used to characterize the clarity requirements of the project for video files. Then, based on the clarity strategy, a dense stream file that complies with the clarity strategy corresponding to the file to be encrypted is obtained. Finally, the dense stream file is sent to the project. It can be seen that by utilizing the method of the present application, on-demand encryption is performed through video file classification to save storage space. When distributing data, for the files to be encrypted, the dense stream files of the files to be encrypted are sent to the project, thereby improving the security of file transmission, ensuring the safe transmission of video files, and preventing unauthorized access, tampering, leakage or abuse of video files. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0049] Figure 1 A flowchart of a data distribution method disclosed in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of a data distribution device disclosed in another embodiment of the present application;
[0051] Figure 3 A schematic diagram of an electronic device disclosed in another embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0054] Furthermore, in this document, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0055] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0056] As can be seen from the background technology, in the prior art, secure access to video files cannot be guaranteed, and unauthorized access, tampering, disclosure or abuse of video files may easily occur.
[0057] In view of this, the present application provides a data distribution method, device, electronic device and storage medium to solve the problem in the prior art that secure access to video files cannot be guaranteed.
[0058] The present application embodiment provides a method for data distribution, such as Figure 1 As shown, specifically including:
[0059] S101, classify each video file to obtain files to be encrypted and files that do not need to be encrypted.
[0060] It should be noted that, according to the information of the characters, types and scenes of the video files, each video file is automatically classified to obtain files to be encrypted and files that do not need to be encrypted. In this way, only the files to be encrypted need to be encrypted, which realizes on-demand encryption and saves storage space.
[0061] Optionally, in another embodiment of the present application, an implementation of the above step S101 may include:
[0062] For each video file, the attribute information of the video file is obtained; wherein the attribute information includes characters, types and scenes.
[0063] Gets the density threshold corresponding to the attribute information.
[0064] If the density threshold is greater than the preset threshold, the video file is a file to be encrypted.
[0065] If the density threshold is not greater than the threshold, the video file is a file that does not need to be encrypted.
[0066] It should be noted that, first, for each video file, AI-assisted tools are used to automatically analyze the file content to obtain the attribute information of the video file, including information such as characters, types and scenes. Among them, the AI-assisted tools can be models such as convolutional neural networks (CNN) and recurrent neural networks (RNN) or their variants (such as LSTM). Then, according to the density sensitivity threshold corresponding to each attribute set in advance, the density sensitivity threshold corresponding to the attribute of the video file is obtained, and the density sensitivity threshold is used to determine whether the video file needs to be encrypted. Among them, when setting the density sensitivity threshold, it is first necessary to define the range of the threshold, 0 to 10, and the larger the value, the higher the weight. Secondly, it is necessary to define attributes, such as characters, types and scenes, and the attributes can be combined. Then adjust the threshold according to whether the data is concentrated or dispersed. If it is concentrated, increase the threshold, and if it is dispersed, decrease the threshold. The operator can also modify the threshold of one or more attributes based on the viewing data. If there are multiple attributes, an average threshold is calculated. If the density sensitivity threshold is greater than the preset threshold, the video file is a file to be encrypted and needs to be encrypted. If the density sensitivity threshold is not greater than the preset threshold, the video file is a file that does not need to be encrypted and does not need to be encrypted.
[0067] S102: When the file to be encrypted needs to be distributed to a project, the clarity strategy of the project is obtained; wherein the clarity strategy is used to represent the clarity requirement of the project for the video file.
[0068] It should be noted that when allocating video files to corresponding projects, if the file to be distributed is a file to be encrypted, it means that the current video file needs to be encrypted before sending to ensure that the video file will not be leaked or tampered with. Different projects use different file resolutions. The required resolution strategy will be pre-set for each project. Therefore, it is necessary to obtain the resolution strategy corresponding to the project to be distributed, which is used to represent the resolution requirements for the video file.
[0069] S103. Based on the clarity policy, obtain a encrypted stream file that complies with the clarity policy and corresponds to the file to be encrypted.
[0070] It should be noted that after determining the clarity strategy corresponding to the project, the system will check whether there is a matching secret stream file for the file to be encrypted according to the clarity acceptance strategy configured in the project. If there is, the secret stream file will be directly obtained; if not, the secret stream file will be generated immediately; the secret stream file corresponding to the file to be encrypted and in line with the clarity strategy will be sent to the project to meet the immediate distribution requirements. Among them, the secret stream file is a combination file that generates an M3U8 index file and multiple small TS files from a large TS file medium through a slicing encryption algorithm. M3U8 is a text-based playlist file, commonly used for online streaming media playback. It does not contain actual video data, but a series of URL addresses pointing to video clips. TS is an encapsulation format that can package video, audio, PSI (program specific information) and other data into transmission packages for transmission.
[0071] Optionally, in another embodiment of the present application, an implementation of the above step S103 may include:
[0072] Based on the clarity policy, check whether there is a encrypted stream file that complies with the clarity policy corresponding to the file to be encrypted in the local storage.
[0073] If it exists, get the secret stream file from local storage.
[0074] If it does not exist, obtain the clear stream file corresponding to the file to be encrypted, and encrypt the clear stream file according to the clarity strategy to obtain a dense stream file; wherein the clear stream file is an unencrypted high-definition version file.
[0075] It should be noted that, first, based on the clarity policy, the local storage is queried to see whether there is a dense stream file that complies with the clarity policy corresponding to the file to be encrypted. If there is a dense stream file that complies with the clarity policy corresponding to the encrypted file in the local storage, the dense stream file is directly obtained from the local storage to launch it to the project corresponding to the file to be encrypted. If there is no dense stream file that complies with the clarity policy corresponding to the encrypted file in the local storage, the clear stream file corresponding to the file to be encrypted, that is, the unencrypted high-definition version file, is obtained. The clear stream file is then encrypted according to the clarity policy of the project to obtain a dense stream file, which is launched to the project corresponding to the file to be encrypted.
[0076] Optionally, in another embodiment of the present application, an implementation method of obtaining the clear stream file corresponding to the file to be encrypted in the above step may include:
[0077] Check whether there is a clearstream file corresponding to the file to be encrypted in the local storage.
[0078] If it exists, get the clear stream file from local storage.
[0079] If it does not exist, the back-to-source mechanism is started to obtain the clear stream file corresponding to the file to be encrypted from the cloud server.
[0080] It should be noted that first, check whether there is a clear stream file corresponding to the file to be encrypted in the local storage. If there is a clear stream file corresponding to the file to be encrypted in the local storage, then directly obtain the clear stream file from the local storage. If there is no clear stream file corresponding to the file to be encrypted in the local storage, start the back-to-source mechanism, find the clear stream file corresponding to the file to be encrypted from the cloud server and download it, because usually, the clear stream file of the video file will be saved and backed up in the cloud server. After downloading, the clear stream file can be encrypted according to the clarity strategy of the project to obtain a dense stream file to meet the needs of instant distribution.
[0081] S104. Send the secret stream file to the project.
[0082] It should be noted that after obtaining the encrypted file that meets the clarity policy, the encrypted file is sent to the project. By sending the encrypted file, the security of file transmission is improved, the safe transmission of video files is guaranteed, and unauthorized access, tampering, disclosure or abuse of video files is prevented.
[0083] In a data distribution method provided by the present application, each video file is first classified to obtain files to be encrypted and files that do not need to be encrypted. When the files to be encrypted need to be distributed to a project, the clarity policy of the project is obtained; wherein the clarity policy is used to characterize the clarity requirements of the project for video files. Then, based on the clarity policy, a dense stream file that complies with the clarity policy corresponding to the files to be encrypted is obtained. Finally, the dense stream file is sent to the project. It can be seen that by utilizing the method of the present application, on-demand encryption is performed through video file classification to save storage space. When distributing data, for the files to be encrypted, the dense stream files of the files to be encrypted are sent to the project, thereby improving the security of file transmission, ensuring the secure transmission of video files, and preventing unauthorized access, tampering, leakage or abuse of video files.
[0084] Optionally, in another embodiment of the present application, AI-assisted tools can be used to automatically analyze file contents, identify scenes or tasks that need to be encrypted, and feed back the analysis results to the encryption service to automatically adjust the file encryption strategy. Before adjustment, manual confirmation is required. For example, in the AI analysis system, the operator identifies popular stars, types, scenes and other attributes, sets a density threshold for each attribute, and can also automatically adjust the density threshold based on the attribute element data extracted from the collected list data, sort the list, and combine preset rules. Unpopular attributes can also be identified at the same time. Attributes can be combined or mutually exclusive. When the encryption system receives the AI analysis results, it will query the existing strategy based on the attributes and density threshold results. If it does not exist and the density threshold exceeds the preset value, a new strategy will be added; if it exists, the density threshold exceeds the preset value, and the strategy density threshold is updated. If it does not exceed the preset value, the strategy will be downgraded or marked as invalid. Based on continuous learning, the setting habits of manual strategies, the audience data, user behavior data, low-frequency feature library, etc. collected by the data platform, the encryption strategy is gradually evolved to automatically adjust the encryption strategy. The strategies automatically generated by the content and the strategies manually intervened are combined and used according to the IPTV project. You can use a single or multiple strategies for encryption, or you can satisfy multiple strategies at the same time and exclude the specified strategy from encryption.
[0085] Optionally, in another embodiment of the present application, considering that storage resources are limited, file meta information, such as director, actor, type and other data, is extracted based on factors such as the frequency of use and importance of the file, and a low-frequency feature library is established, which contains video files and metadata of video files. In order to ensure the data quality in the low-frequency feature library, the low-frequency feature library can be regularly cleaned to remove redundant, erroneous or invalid data, and the features in the low-frequency feature library are continuously updated according to business needs and data changes. The low-frequency feature library is used for data analysis, and the files in the film library are regularly marked, and the marked content includes the need for encryption or release. Then, according to the marked content, content encryption and content release are automatically performed. Among them, the film library refers to all file media libraries, which contain historical media, medium-heat media, and high-heat media. Content release means that the release is to delete the local storage file media.
[0086] Another embodiment of the present application also provides a data distribution device, such as Figure 2 As shown, specifically including:
[0087] The classification unit 201 is used to classify each video file to obtain files to be encrypted and files that do not need to be encrypted.
[0088] The first acquisition unit 202 is used to acquire the clarity strategy of the project when the file to be encrypted needs to be distributed to the project; wherein the clarity strategy is used to represent the clarity requirement of the project for the video file.
[0089] The second acquisition unit 203 is used to acquire, based on the clarity policy, a encrypted stream file that complies with the clarity policy and corresponds to the file to be encrypted.
[0090] The sending unit 204 is used to send the encrypted stream file to the project.
[0091] In this embodiment, the specific execution process of the classification unit 201, the first acquisition unit 202, the second acquisition unit 203, and the sending unit 204 can be referred to the corresponding Figure 1 The content of the method embodiment will not be repeated here.
[0092] In a data distribution device provided by the present application, first, a classification unit 201 classifies each video file to obtain files to be encrypted and files that do not need to be encrypted. When the files to be encrypted need to be distributed to a project, the first acquisition unit 202 obtains the clarity strategy of the project; wherein the clarity strategy is used to characterize the clarity requirements of the project for video files. Then, based on the clarity strategy, the second acquisition unit 203 obtains the dense stream file that complies with the clarity strategy corresponding to the files to be encrypted. Finally, the sending unit 204 sends the dense stream file to the project. It can be seen that, by using the method of the present application, on-demand encryption is performed through video file classification to save storage space. When distributing data, for the files to be encrypted, the dense stream files of the files to be encrypted are sent to the project, thereby improving the security of file transmission, ensuring the safe transmission of video files, and preventing unauthorized access, tampering, leakage or abuse of video files.
[0093] Optionally, in another embodiment of the present application, the classification unit 201 of the above device may include:
[0094] The first acquisition subunit is used to acquire attribute information of each video file, wherein the attribute information includes characters, types and scenes.
[0095] The calculation subunit is used to obtain the density threshold corresponding to the attribute information.
[0096] The first determination subunit is used to determine that the video file is a file to be encrypted if the density threshold is greater than a preset threshold.
[0097] The second determination subunit is used to determine that the video file is a file that does not need to be encrypted if the density threshold is not greater than the threshold.
[0098] In this embodiment, the specific execution process of the first acquisition subunit, the calculation subunit, the first determination subunit and the second determination subunit can refer to the above corresponding method embodiment content, which will not be repeated here.
[0099] Optionally, in the above-mentioned device, in another embodiment of the present application, an implementation of the second acquisition unit 203 may include:
[0100] The first query subunit is used to query whether there is a encrypted stream file that complies with the clarity policy and corresponds to the file to be encrypted in the local storage based on the clarity policy.
[0101] The second acquisition subunit is used to acquire the secret stream file from the local storage if it exists.
[0102] The encryption subunit is used to obtain the clear stream file corresponding to the file to be encrypted if it does not exist, and encrypt the clear stream file according to the clarity strategy to obtain a dense stream file; wherein the clear stream file is an unencrypted high-definition version file.
[0103] In this embodiment, the specific execution process of the first query subunit, the second acquisition subunit and the encryption subunit can refer to the above-mentioned corresponding method embodiment content, which will not be repeated here.
[0104] Optionally, in another embodiment of the present application, the encryption subunit of the above-mentioned device may include:
[0105] The second query subunit is used to query whether there is a clear stream file corresponding to the file to be encrypted in the local storage.
[0106] The third acquisition subunit is used to acquire the clear stream file from the local storage if it exists.
[0107] The fourth acquisition subunit is used to start the back-to-source mechanism if the file does not exist, and obtain the clear stream file corresponding to the file to be encrypted from the cloud server.
[0108] In this embodiment, the specific execution process of the second query subunit, the third acquisition subunit, and the fourth acquisition subunit can refer to the above-mentioned corresponding method embodiment content, which will not be repeated here.
[0109] Another embodiment of the application also provides an electronic device, such as Figure 3 As shown, specifically including:
[0110] One or more processors 301 .
[0111] The storage device 302 stores one or more programs.
[0112] When one or more programs are executed by one or more processors 301 , the one or more processors 301 implement any one of the methods in the above embodiments.
[0113] Another embodiment of the present application further provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, any one of the methods in the above embodiments is implemented.
[0114] It should be noted that in the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0115] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0116] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0117] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
[0118] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for data distribution, characterized in that: include: Classify each video file to obtain files to be encrypted and files that do not need to be encrypted; When the file to be encrypted needs to be distributed to a project, the clarity strategy of the project is obtained; wherein the clarity strategy is used to characterize the clarity requirement of the project for the video file; Based on the clarity strategy, obtaining a encrypted stream file that corresponds to the file to be encrypted and complies with the clarity strategy; Send the secret stream file to the project.
2. The method according to claim 1, characterized in that: The process of classifying the video files to obtain files to be encrypted and files not to be encrypted includes: For each video file, obtain attribute information of the video file; wherein the attribute information includes characters, types and scenes; Obtaining a density threshold corresponding to the attribute information; If the density threshold is greater than a preset threshold, the video file is a file to be encrypted; If the density threshold is not greater than the threshold, the video file is a file that does not need to be encrypted.
3. The method according to claim 1, characterized in that The step of obtaining the encrypted stream file of the file to be encrypted based on the clarity strategy includes: Based on the clarity policy, query the local storage whether there is a encrypted stream file that complies with the clarity policy and corresponds to the file to be encrypted; If it exists, obtaining the secret stream file from the local storage; If it does not exist, obtain the clear stream file corresponding to the file to be encrypted, and encrypt the clear stream file according to the clarity strategy to obtain the dense stream file; wherein the clear stream file is an unencrypted high-definition version file.
4. The method according to claim 3, characterized in that The obtaining of the clear stream file corresponding to the file to be encrypted includes: Query the local storage whether there is a clear stream file corresponding to the file to be encrypted; If it exists, obtaining the clear stream file from the local storage; If it does not exist, the back-to-source mechanism is started to obtain the clear stream file corresponding to the file to be encrypted from the cloud server.
5. A data distribution device, characterized in that: include: A classification unit, used to classify each video file to obtain files to be encrypted and files that do not need to be encrypted; A first acquisition unit is used to acquire a clarity strategy of a project when the file to be encrypted needs to be distributed to the project; wherein the clarity strategy is used to characterize the clarity requirement of the project for the video file; A second acquisition unit is used to acquire, based on the clarity policy, a encrypted stream file corresponding to the file to be encrypted and conforming to the clarity policy; A sending unit is used to send the secret stream file to the project.
6. The device according to claim 5, characterized in that The taxonomic unit includes: A first acquisition subunit is used to acquire attribute information of each video file, wherein the attribute information includes characters, types and scenes; A calculation subunit, used to obtain a density threshold corresponding to the attribute information; A first determination subunit, configured to determine that the video file is a file to be encrypted if the density threshold is greater than a preset threshold; The second determining subunit is used to determine that the video file is a file that does not need to be encrypted if the density threshold is not greater than the threshold.
7. The device according to claim 5, characterized in that The second acquisition unit includes: A first query subunit is used to query whether there is a encrypted stream file that complies with the clarity policy and corresponds to the file to be encrypted in the local storage based on the clarity policy; A second acquisition subunit, configured to acquire the secret stream file from the local storage if the secret stream file exists; The encryption subunit is used to obtain the clear stream file corresponding to the file to be encrypted if it does not exist, and encrypt the clear stream file according to the clarity strategy to obtain the dense stream file; wherein the clear stream file is an unencrypted high-definition version file.
8. The device according to claim 7, characterized in that The encryption subunit comprises: A second query subunit is used to query whether there is a clear stream file corresponding to the file to be encrypted in the local storage; A third acquisition subunit, configured to acquire the clear stream file from the local storage if the clear stream file exists; The fourth acquisition subunit is used to start the source return mechanism if it does not exist, and obtain the clear stream file corresponding to the file to be encrypted from the cloud server.
9. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 4.
10. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.