Video file processing method, device, storage medium and electronic device
By preset encoding processing of video files and controlling the playback of multimedia playback applications, the problem of poor anti-screenshot stability of video files is solved, efficient security protection of video files is achieved, operation difficulty is simplified and resource consumption is avoided.
Patent Information
- Application Number
- CN202210642364.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-08
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-06-08
AI Technical Summary
The existing technology has poor stability and difficulty in preventing screenshots of video files, and the full-link deployment of digital rights management (DRM) technology has problems of resource consumption and difficulty in implementing on-demand anti-screenshot instructions.
By obtaining the original video file and processing it using the preset encoding method, the target video file is generated, the backup operation of the playback end is prevented, and the preset multimedia playback application is controlled for playback to ensure the security of the video file.
It effectively protects the playback content of video files, reduces the operational difficulty of security protection and improves stability, avoiding resource consumption and complex server-side modifications.
Smart Images

Figure CN115209220B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a video file processing method, device, storage medium and electronic device. Background Art
[0002] With the popularization of remote office technology, more and more companies are choosing to use online video conferencing to communicate efficiently and conveniently. However, in the process of remote office, screenshots and screen recordings have become the main channels for leaking information, which has a certain impact on the information security of enterprises.
[0003] To ensure the security of corporate information, the following three methods are generally used in related technologies to prevent screenshots: (1) Hooking the screenshot event of the operating system on the terminal; (2) Hooking the screenshot shortcut key on the terminal; (3) Monitoring the clipboard. However, the degree of leakage prevention of these methods is very limited. When hooking the screenshot event of the operating system, it is necessary to use an abnormal operating system workflow, which is easy to become invalid with the update of the operating system version; hooking the screenshot shortcut key on the terminal cannot resist recording on remote desktops, virtual machines, and video capture cards. The use of the hook operation also requires regular adaptation of the application programming interface (API), so the stability of this method is poor; monitoring the clipboard requires occupying system resources and there are problems with privacy compliance. The related technology also provides a copyright protection solution recognized by mainstream operating system manufacturers, that is, deploying digital rights management (DRM) technology in the entire link to ensure the security of corporate information. DRM includes multiple security protection levels, among which the highest protection level L1 based on hardware decoding can effectively prevent screenshots from the bottom of the operating system. However, the full-link deployment of DRM technology is difficult to implement in practice. For example, it places high demands on the server's re-encoding computing capabilities, consumes a large amount of server resources, and cannot issue anti-screenshot instructions on demand and according to policies.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a video file processing method, device, storage medium and electronic device to at least solve the technical problems in the related art of high difficulty and poor stability in securely protecting the playback content of video files.
[0006] According to one aspect of an embodiment of the present invention, a video file processing method is provided, including: obtaining an original video file; encoding the original video file using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; and controlling a preset multimedia playback application to play the target video file.
[0007] According to another aspect of an embodiment of the present invention, a video file processing device is also provided, including: an acquisition module, used to acquire an original video file; an encoding module, used to encode the original video file using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; and a playback module, used to control a preset multimedia playback application to play the target video file.
[0008] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, the computer-readable storage medium including a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the video file processing method of the embodiment of the present application.
[0009] According to another aspect of an embodiment of the present invention, an electronic device is also provided, including: a processor; and a memory, connected to the processor, for providing the processor with instructions for processing the following processing steps: obtaining an original video file; encoding the original video file using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; and controlling a preset multimedia playback application to play the target video file.
[0010] According to another aspect of an embodiment of the present invention, a video file processing method is also provided, including: obtaining an original video file; encoding the original video file using a preset anti-screenshot method to obtain a target video file; and controlling a preset multimedia playback application to play the target video file.
[0011] It is easy to notice that, through the embodiment of the present application, the original video file is first obtained, and then the original video file is encoded using a preset encoding method to obtain a target video file, and finally the preset multimedia playback application is controlled to play the target video file, thereby effectively ensuring the security of the playback content in the original video file at the playback end.
[0012] Therefore, the embodiment of the present application achieves the purpose of effectively protecting the playback content of video files, thereby realizing the technical effect of reducing the operational difficulty of securely protecting the content of video files and improving operational stability, and further solving the technical problems of high operational difficulty and poor stability in securely protecting the playback content of video files in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0014] Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing a video file processing method is shown;
[0015] Figure 2 is a flow chart of a video file processing method according to an embodiment of the present invention;
[0016] Figure 3 It is a schematic diagram of a video file processing method provided in the related art;
[0017] Figure 4 is a schematic diagram of a video file processing method according to an embodiment of the present invention;
[0018] Figure 5 is a schematic diagram of another video file processing method according to an embodiment of the present invention;
[0019] Figure 6 is a flowchart of another video file processing method according to an embodiment of the present invention;
[0020] Figure 7 is a structural schematic diagram of a video file processing device according to an embodiment of the present invention;
[0021] Figure 8 is a structural block diagram of another computer terminal according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0025] Digital Rights Management (DRM): refers to the technology for protecting the rights, controlling the use and managing digital content, such as audio and video program content, documents and e-books, during the production, dissemination, sales and use of digital content.
[0026] Endpoint Detection and Response (EDR): Also known as endpoint threat detection and response, EDR is a network security technology that continuously monitors endpoints to mitigate malicious network threats.
[0027] High-bandwidth Digital Content Protection (HDCP): It is used to prevent unauthorized copying of copyrighted audio and video content. For example, HDCP can ensure that digital image and sound data will not be illegally copied when sent through the Digital Visual Interface (DVI), DisplayPort (DP), and High Definition Multimedia Interface (HDMI) interfaces.
[0028] Example 1
[0029] According to an embodiment of the present invention, a method embodiment of video file processing is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a video file processing method. Figure 1 As shown, the computer terminal 10 (or mobile device 10) may include one or more (shown as 102a, 102b, ..., 102n in the figure) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0031] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0032] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the video file processing method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned video file processing method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0033] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0035] It should be noted that, in some optional embodiments, the above Figure 1 The computer device (or mobile device) shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the above-described computer device (or mobile device).
[0036] Under the above operating environment, this application provides Figure 2 The video file processing method shown. Figure 2 is a flow chart of a video file processing method according to Embodiment 1 of the present invention. Figure 2 As shown, the video file processing method includes:
[0037] Step S22, obtaining the original video file;
[0038] The original video file may be a video file generated in real time, a pre-recorded video file, or a video file synthesized from multiple local frames. For example, the original video file may be a video file of a live broadcast, or a pre-recorded training course video, literary work, etc.
[0039] Step S24, encoding the original video file using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file;
[0040] Optionally, the backup operation includes any one of the following: taking a screenshot, recording, or external screen projection of the playback content of the original video file.
[0041] In an optional embodiment, the playback end is a client that has obtained high-definition digital content protection authorization.
[0042] Step S26, controlling the preset multimedia playback application to play the target video file.
[0043] Based on the above steps S22 to S26, the original video file is first obtained, and then the original video file is encoded using a preset encoding method to obtain a target video file, and finally the preset multimedia playback application is controlled to play the target video file, thereby effectively ensuring the security of the playback content in the original video file at the playback end.
[0044] Therefore, the embodiment of the present application achieves the purpose of effectively protecting the playback content of video files, thereby realizing the technical effect of reducing the operational difficulty of securely protecting the content of video files and improving operational stability, and further solving the technical problems of high operational difficulty and poor stability in securely protecting the playback content of video files in related technologies.
[0045] The video file processing method provided by the above embodiment is further described below.
[0046] In an optional embodiment, in step S22, obtaining the original video file includes: pulling the original video file from the server by using an endpoint detection and response method.
[0047] Specifically, EDR technology can be used to pull real-time generated video files or pre-recorded video files from a server.
[0048] In an optional embodiment, in step S22, obtaining the original video file includes:
[0049] Step S221, obtaining multiple frames of images locally at the playback end;
[0050] Step S222, converting the multiple frames of images into original video files.
[0051] Specifically, multiple still picture frames are obtained from the local player, encoded into original video files according to a preset frame rate (FPS), and played in a loop to form a video stream. For example, multiple still picture frames at the local player are converted into original video files according to FPS=0.0001 for loop playback.
[0052] Based on the above steps S221 to S222, by acquiring multiple frames of images locally at the playback end and then converting the multiple frames of images into original video files, the original video files can be quickly acquired locally from the playback end.
[0053] In an optional embodiment, in step S24, the original video file is encoded using a preset encoding method to obtain a target video file, including: locally encoding the initial format of the original video file into a target format using a digital rights management method at the playback end to obtain the target video file, wherein the target format includes one of the following: an encapsulation format set based on a streaming media network transmission protocol, and an encapsulation format set based on an adaptive bit rate stream.
[0054] Specifically, the initial format of the original video file is encoded into the target format by the DRM method locally at the playback end to obtain the target video file. The target video file is transmitted in the form of a video stream. Specifically, the video stream corresponding to the target video file can be transmitted in the format of the streaming media transmission protocol (HTTP Live Streaming, HLS) based on the Hyper Text Transfer Protocol (HTTP), or in the format of the dynamic adaptive streaming over HTTP (DASH). For example, the above-mentioned DRM encoding method can adopt any one of the FairPlay technology, Widevine technology, PlayReady technology, ClearKey technology, etc.
[0055] Based on the above optional method, by using a digital copyright management method locally at the playback end to encode the initial format of the original video file into a target format to obtain a target video file, the playback content in the original video file can be securely protected.
[0056] In an optional embodiment, in step S26, controlling the preset multimedia playback application to play the target video file includes:
[0057] Step S261, detecting whether the local operating system of the playback end supports the preset decoding method corresponding to the preset encoding method;
[0058] The above-mentioned preset decoding method is the hardware DRM decoding method corresponding to the DRM method.
[0059] Step S262, in response to the operating system supporting the preset decoding method, controlling the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and playing the decoding result.
[0060] Specifically, in response to the local operating system of the playback end supporting the hardware DRM decoding method, the video playback software is controlled to call the hardware DRM decoding method to decode the target video file to obtain a decoding result. The video playback software can process the X-extension field in the display (Manifest) file in the HLS / DASH format, and then call the hardware DRM decoding method in the operating system to obtain the decoding result, and finally the video playback software plays the decoding result.
[0061] Based on the above steps S261 to S262, by detecting whether the local operating system of the playback end supports the preset decoding method corresponding to the preset encoding method, and then in response to the operating system supporting the preset decoding method, controlling the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and playing the decoding result, the target video file can be quickly decoded at the playback end, and then played at the playback end that supports data copyright management, further ensuring the security of the playback content.
[0062] In an optional embodiment, the video file processing method further includes: in response to the operating system not supporting the preset decoding method, refusing to play the target video file locally at the playback end.
[0063] Based on the above optional implementation manner, when the operating system does not support the preset decoding method, the target video file can be refused to be played locally on the playback end, thereby further ensuring the security of the playback content.
[0064] In an optional embodiment, the video file processing method further includes:
[0065] Step S281, in response to the received backup event, determining the to-be-backed-up content corresponding to the backup event;
[0066] The backup event can be any one of a screenshot event, a screen recording event, and an external screen projection event, and the content to be backed up is the playback content in the target video file.
[0067] Specifically, in response to a received screenshot event, determine the content to be captured corresponding to the screenshot event; in response to a received screen recording event, determine the content to be recorded corresponding to the screen recording event; in response to a received external screen projection event, determine the content to be externally projected corresponding to the external screen projection event.
[0068] Step S282, replacing the content to be backed up with the default display content, wherein the default display content is used to hide the content to be backed up;
[0069] The above-mentioned default display content may be a black screen content, or the default display content may be a preset display content. For example, the preset display content may be a picture content with prompt information, and the prompt information is used to indicate that the currently played content does not support backup.
[0070] Step S283, backing up the default display content locally at the playback end.
[0071] Based on the above steps S281 to S283, by responding to the received backup event, the content to be backed up corresponding to the backup event is determined, and then the content to be backed up is replaced with the default display content, and finally the default display content is backed up locally on the playback end, which can effectively prevent the playback content from being backed up on the playback end, thereby effectively ensuring the security of the playback content.
[0072] Combine the following Figure 3 , Figure 4 , Figure 5 The video file processing method in the above embodiment is introduced.
[0073] Figure 3 It is a schematic diagram of a video file processing method provided in the related art, such as Figure 3 As shown, in the related technology, the video playback software directly pulls the original video file from the server segment, and then calls the ordinary video playback interface of the operating system to play the content of the original video file. At this time, the user can obtain the playback content of the original video file by using any screenshot method, which has low security.
[0074] Figure 4 is a schematic diagram of a video file processing method according to an embodiment of the present application, such as Figure 4 As shown, the present application utilizes EDR technology to pull the original video file from the server, and then uses DRM to encode the initial format of the original video file into the target format locally on the playback end to obtain the target video file. Subsequently, in response to the operating system supporting the preset decoding method, the video playback software is controlled to call the preset decoding method to decode the target video file to obtain the decoding result, and the decoding result is played. When a screenshot event is received from the user, the content to be screenshotted corresponding to the screenshot event is determined, and the content to be screenshotted is replaced with a black screen and returned to the user terminal. Figure 3 Compared with the processing method in , the video file processing method provided in the embodiment of the present application achieves the purpose of effectively protecting the playback content of the video file, thereby realizing the technical effect of reducing the operational difficulty of securely protecting the content of the video file and improving the operational stability, thereby solving the technical problems of high operational difficulty and poor stability in securely protecting the playback content of the video file in the related technology.
[0075] Figure 5is a schematic diagram of another video file processing method according to an embodiment of the present application, such as Figure 5 As shown, when the video playback software on the terminal receives a screenshot event from the user, it determines the content to be captured corresponding to the screenshot event. The operating system can request the DRM decryption module to replace the screen according to the content to be captured, and then use the L1-level encrypted media to replace the content to be captured with a black screen, and finally return the black screen to the user terminal. The technical solution of this application only needs to be based on the existing EDR terminal capabilities, without large-scale transformation of the server, nor does it need to transform the original video playback software. It only needs to introduce HTTPS and a general authentication solution, or a built-in virtual private network (VPN) and other pipelines to protect the video source, and ultimately achieve the purpose of preventing screenshots, thereby effectively ensuring the security of the video file playback content and effectively simplifying the difficulty of operation.
[0076] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0077] Through the description of the above implementation methods, those skilled in the art can clearly understand that the video file processing method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0078] Example 2
[0079] According to an embodiment of the present invention, a video file processing method is also provided. Figure 6 is a flowchart of another video file processing method according to an embodiment of the present invention. Figure 6 As shown, the method includes:
[0080] Step S62, obtaining the original video file;
[0081] Step S64, encoding the original video file using a preset anti-screenshot method to obtain a target video file;
[0082] Step S66, controlling the preset multimedia playback application to play the target video file.
[0083] Based on the above steps S62 to S66, by obtaining the original video file, and then using the preset anti-screenshot method to encode the original video file, a target video file is obtained, and finally the preset multimedia playback application is controlled to play the target video file, thereby achieving the purpose of preventing screenshots of the playback content of the video file, thereby achieving the technical effect of reducing the operational difficulty of securely protecting the content of the video file and improving the operational stability, thereby solving the technical problems of high operational difficulty and poor stability in securely protecting the playback content of the video file in the related technology.
[0084] In an optional embodiment, in step S62, obtaining the original video file includes: pulling the original video file from the server by using an endpoint detection and response method.
[0085] In an optional embodiment, in step S62, obtaining the original video file includes:
[0086] Step S621, obtaining multiple frames of images locally at the playback end;
[0087] The above-mentioned playback end is a client that has obtained high-definition digital content protection authorization.
[0088] Step S622, converting the multiple frames of images into original video files.
[0089] Based on the above steps S621 to S622, by acquiring multiple frames of images locally at the playback end and then converting the multiple frames of images into original video files, the original video files can be quickly acquired locally from the playback end.
[0090] In an optional embodiment, in step S64, the original video file is encoded using a preset anti-screenshot method to obtain a target video file, including: locally encoding the initial format of the original video file into a target format using a digital copyright management method at the playback end to obtain a target video file, wherein the target format includes one of the following: an encapsulation format set based on a streaming media network transmission protocol, and an encapsulation format set based on an adaptive bit rate stream.
[0091] Based on the above optional method, by using a digital copyright management method locally at the playback end to encode the initial format of the original video file into a target format to obtain a target video file, the playback content in the original video file can be securely protected.
[0092] In an optional embodiment, in step S66, controlling the preset multimedia playback application to play the target video file includes:
[0093] Step S661, detecting whether the local operating system of the playback end supports a preset decoding method corresponding to the preset anti-screenshot method;
[0094] Step S662, in response to the operating system supporting the preset decoding method, controlling the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and playing the decoding result.
[0095] Based on the above steps S661 to S662, by detecting whether the local operating system of the playback end supports the preset decoding method corresponding to the preset anti-screenshot method, and then in response to the operating system supporting the preset decoding method, the preset multimedia playback application is controlled to call the preset decoding method to decode the target video file to obtain a decoding result, and the decoding result is played. The target video file can be quickly decoded on the playback end, and then played on the playback end that supports data copyright management, further ensuring the security of the playback content.
[0096] In an optional embodiment, the video file processing method further includes: in response to the operating system not supporting the preset decoding method, refusing to play the target video file locally at the playback end.
[0097] Based on the above optional implementation manner, when the operating system does not support the preset decoding method, the target video file can be refused to be played locally on the playback end, thereby further ensuring the security of the playback content.
[0098] In an optional embodiment, the video file processing method further includes:
[0099] Step S681, in response to the received screenshot event, determining the to-be-screenshot content corresponding to the screenshot event;
[0100] Step S682, replacing the content to be captured with the default display content, wherein the default display content is used to hide the content to be captured;
[0101] Step S683: back up the default display content locally at the playback end.
[0102] Based on the above steps S681 to S683, by responding to the received screenshot event, the content to be screenshotted corresponding to the screenshot event is determined, and then the content to be screenshotted is replaced with the default display content. Finally, the default display content is backed up locally on the playback end, which can effectively prevent the playback content from being screenshotted on the playback end, thereby effectively ensuring the security of the playback content.
[0103] Example 3
[0104] According to an embodiment of the present invention, a video file processing device for implementing the above-mentioned video file processing method is also provided. Figure 7 As shown, the device comprises:
[0105] The acquisition module 701 is used to acquire the original video file;
[0106] The encoding module 702 is used to encode the original video file in a preset encoding mode to obtain a target video file, wherein the preset encoding mode is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file;
[0107] The playing module 703 is used to control a preset multimedia playing application to play the target video file.
[0108] Optionally, the acquisition module 701 is further configured to pull the original video file from the server by using an endpoint detection and response method.
[0109] Optionally, the acquisition module 701 is further used to: acquire multiple frames of images locally at the playback end; and convert the multiple frames of images into original video files.
[0110] Optionally, the encoding module 702 is also used to: encode the initial format of the original video file into a target format using a digital copyright management method locally at the playback end to obtain a target video file, wherein the target format includes one of the following: an encapsulation format set based on a streaming media network transmission protocol, and an encapsulation format set based on an adaptive bit rate stream.
[0111] Optionally, the playback module 703 is also used to: detect whether the local operating system of the playback end supports a preset decoding method corresponding to the preset encoding method; in response to the operating system supporting the preset decoding method, control the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and play the decoding result.
[0112] Optionally, the playback module 703 is further configured to: in response to the operating system not supporting the preset decoding method, refuse to play the target video file locally at the playback end.
[0113] Optionally, the video file processing device also includes: a determination module 704, which determines the content to be backed up corresponding to the backup event in response to the received backup event; a replacement module 705, which replaces the content to be backed up with the default display content, wherein the default display content is used to hide the content to be backed up; and a backup module 706, which backs up the default display content locally at the playback end.
[0114] Optionally, the playback end is a client that has obtained high-definition digital content protection authorization.
[0115] It should be noted that the above video file processing device corresponds to step S22 to step S26 in Example 1, and the three modules and the corresponding steps have the same examples and application scenarios, but are not limited to the contents disclosed in the above Example 1. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in Example 1.
[0116] Example 4
[0117] According to an embodiment of the present invention, an embodiment of an electronic device is also provided, and the electronic device can be any computing device in a computing device group. The electronic device includes: a processor; and a memory connected to the processor, and used to provide the processor with instructions for processing the following processing steps: obtaining an original video file; encoding the original video file using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; and controlling a preset multimedia playback application to play the target video file.
[0118] Optionally, the memory is further used to provide the processor with instructions for processing the following processing steps: pulling the original video file from the server using endpoint detection and response methods.
[0119] Optionally, the memory is also used to provide the processor with instructions for processing the following processing steps: obtaining multiple frames of images locally at the playback end; and converting the multiple frames of images into original video files.
[0120] Optionally, the above-mentioned memory is also used to provide the processor with instructions for processing the following processing steps: using a digital rights management method locally at the playback end to encode the initial format of the original video file into a target format to obtain a target video file, wherein the target format includes one of the following: an encapsulation format set based on a streaming media network transmission protocol, and an encapsulation format set based on an adaptive bit rate stream.
[0121] Optionally, the above-mentioned memory is also used to provide the processor with instructions for processing the following processing steps: detecting whether the local operating system of the playback end supports a preset decoding method corresponding to the preset encoding method; in response to the operating system supporting the preset decoding method, controlling the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and playing the decoding result.
[0122] Optionally, the memory is further used to provide the processor with instructions for processing the following processing steps: in response to the operating system not supporting a preset decoding method, refusing to play the target video file locally at the playback end.
[0123] Optionally, the above-mentioned memory is also used to provide the processor with instructions for processing the following processing steps: in response to a received backup event, determine the content to be backed up corresponding to the backup event; replace the content to be backed up with default display content, wherein the default display content is used to hide the content to be backed up; and back up the default display content locally at the playback end.
[0124] Optionally, the playback end is a client that has obtained high-definition digital content protection authorization.
[0125] It is easy to notice that, through the embodiment of the present application, the original video file is first obtained, and then the original video file is encoded using a preset encoding method to obtain a target video file, and finally the preset multimedia playback application is controlled to play the target video file, thereby effectively ensuring the security of the playback content in the original video file at the playback end.
[0126] Therefore, the embodiment of the present application achieves the purpose of effectively protecting the playback content of video files, thereby realizing the technical effect of reducing the operational difficulty of securely protecting the content of video files and improving operational stability, and further solving the technical problems of high operational difficulty and poor stability in securely protecting the playback content of video files in related technologies.
[0127] Example 5
[0128] The embodiment of the present invention can provide a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal can also be replaced by a terminal device such as a mobile terminal.
[0129] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0130] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the video file processing method: obtaining the original video file; encoding the original video file using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; and controlling the preset multimedia playback application to play the target video file.
[0131] Optionally, Figure 8 is a structural block diagram of a computer terminal according to an embodiment of the present invention. Figure 8 As shown, the computer terminal may include: one or more (only one is shown in the figure) processors 82 , a memory 84 , and a peripheral interface 86 .
[0132] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the video file processing method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned video file processing method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0133] The processor can call the information and application stored in the memory through the transmission device to execute the following steps: obtain the original video file; encode the original video file using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; control the preset multimedia playback application to play the target video file.
[0134] Optionally, the processor may further execute program code of the following steps: pulling the original video file from the server by using endpoint detection and response method.
[0135] Optionally, the processor may also execute program codes of the following steps: obtaining multiple frames of images locally at the playback end; and converting the multiple frames of images into original video files.
[0136] Optionally, the processor may also execute the program code of the following steps: locally encoding the initial format of the original video file into a target format using a digital rights management method at the playback end to obtain a target video file, wherein the target format includes one of the following: an encapsulation format based on a streaming media network transmission protocol setting, and an encapsulation format based on an adaptive bit rate stream setting.
[0137] Optionally, the processor may also execute the following program code steps: detecting whether the local operating system of the playback end supports a preset decoding method corresponding to a preset encoding method; in response to the operating system supporting the preset decoding method, controlling the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and playing the decoding result.
[0138] Optionally, the processor may further execute program code of the following steps: in response to the operating system not supporting the preset decoding method, refusing to play the target video file locally at the playback end.
[0139] Optionally, the processor may also execute program code of the following steps: in response to a received backup event, determine the content to be backed up corresponding to the backup event; replace the content to be backed up with default display content, wherein the default display content is used to hide the content to be backed up; and back up the default display content locally at the playback end.
[0140] Optionally, the playback end is a client that has obtained high-definition digital content protection authorization.
[0141] It is easy to notice that, through the embodiment of the present application, the original video file is first obtained, and then the original video file is encoded using a preset encoding method to obtain a target video file, and finally the preset multimedia playback application is controlled to play the target video file, thereby effectively ensuring the security of the playback content in the original video file at the playback end.
[0142] Therefore, the embodiment of the present application achieves the purpose of effectively protecting the playback content of video files, thereby realizing the technical effect of reducing the operational difficulty of securely protecting the content of video files and improving operational stability, and further solving the technical problems of high operational difficulty and poor stability in securely protecting the playback content of video files in related technologies.
[0143] It can be understood by those skilled in the art that Figure 8 The structure shown is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 8 It does not limit the structure of the above electronic device. For example, the computer terminal may also include Figure 8 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 8 Different configurations are shown.
[0144] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0145] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0146] Example 6
[0147] The embodiment of the present invention further provides a computer-readable storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the video file processing method provided in the first embodiment.
[0148] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0149] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: obtaining an original video file; encoding the original video file using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; and controlling a preset multimedia playback application to play the target video file.
[0150] Optionally, the storage medium is configured to store program codes for executing the following steps: pulling the original video file from the server by using an endpoint detection and response method.
[0151] Optionally, the storage medium is configured to store program codes for executing the following steps: acquiring multiple frames of images locally at the playback end; and converting the multiple frames of images into original video files.
[0152] Optionally, the storage medium is configured to store program code for executing the following steps: encoding the initial format of the original video file into a target format using a digital rights management method locally at the playback end to obtain a target video file, wherein the target format includes one of the following: an encapsulation format set based on a streaming media network transmission protocol, and an encapsulation format set based on an adaptive bit rate stream.
[0153] Optionally, the storage medium is configured to store program codes for executing the following steps: detecting whether the local operating system of the playback end supports a preset decoding method corresponding to a preset encoding method; in response to the operating system supporting the preset decoding method, controlling the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and playing the decoding result.
[0154] Optionally, the storage medium is configured to store program codes for executing the following steps: in response to the operating system not supporting a preset decoding method, refusing to play the target video file locally at the playback end.
[0155] Optionally, the storage medium is configured to store program codes for executing the following steps: in response to a received backup event, determining the content to be backed up corresponding to the backup event; replacing the content to be backed up with default display content, wherein the default display content is used to hide the content to be backed up; and backing up the default display content locally at the playback end.
[0156] Optionally, the playback end is a client that has obtained high-definition digital content protection authorization.
[0157] It is easy to notice that, through the embodiment of the present application, the original video file is first obtained, and then the original video file is encoded using a preset encoding method to obtain a target video file, and finally the preset multimedia playback application is controlled to play the target video file, thereby effectively ensuring the security of the playback content in the original video file at the playback end.
[0158] Therefore, the embodiment of the present application achieves the purpose of effectively protecting the playback content of video files, thereby realizing the technical effect of reducing the operational difficulty of securely protecting the content of video files and improving operational stability, and further solving the technical problems of high operational difficulty and poor stability in securely protecting the playback content of video files in related technologies.
[0159] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0160] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0161] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0162] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0163] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0164] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0165] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A video file processing method, It is characterized in that include: Get the original video file; The original video file is encoded by using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; Controlling a preset multimedia playback application to play the target video file; The video file processing method further includes: in response to a received backup event, determining the content to be backed up corresponding to the backup event; replacing the content to be backed up with default display content, wherein the default display content is used to hide the content to be backed up, and the default display content is a preset display content with prompt information, and the prompt information is used to prompt that the current playback content does not support backup; backing up the default display content locally at the playback end; Among them, the controlling of the preset multimedia playback application to play the target video file includes: detecting whether the local operating system of the playback end supports the preset decoding method corresponding to the preset encoding method, wherein the playback end is a client that has obtained high-definition digital content protection authorization; in response to the operating system supporting the preset decoding method, controlling the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and playing the decoding result; in response to the operating system not supporting the preset decoding method, refusing to play the target video file locally at the playback end.
2. The video file processing method according to claim 1, It is characterized in that Acquiring the original video file includes: The original video file is pulled from the server using an endpoint detection and response method.
3. The video file processing method according to claim 1, It is characterized in that Acquiring the original video file includes: Acquire multiple frames of images locally at the playback end; Convert the multiple frames of pictures into the original video file.
4. The video file processing method according to claim 1, It is characterized in that The original video file is encoded using the preset encoding method to obtain the target video file, including: The initial format of the original video file is encoded into a target format using a digital rights management method locally at the playback end to obtain the target video file, wherein the target format includes one of the following: an encapsulation format set based on a streaming media network transmission protocol, and an encapsulation format set based on an adaptive bit rate stream.
5. A video file processing device, It is characterized in that include: An acquisition module is used to acquire the original video file; An encoding module, used for encoding the original video file in a preset encoding mode to obtain a target video file, wherein the preset encoding mode is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; A playback module, used to control a preset multimedia playback application to play the target video file; Wherein, the video file processing device also includes: a determination module, for determining the content to be backed up corresponding to the backup event in response to the received backup event; a replacement module, for replacing the content to be backed up with default display content, wherein the default display content is used to hide the content to be backed up, and the default display content is a preset display content with prompt information, and the prompt information is used to prompt that the current playback content does not support backup; a backup module, for backing up the default display content locally at the playback end; Among them, the playback module is also used to: detect whether the local operating system of the playback end supports the preset decoding method corresponding to the preset encoding method, wherein the playback end is a client that has obtained high-definition digital content protection authorization; in response to the operating system supporting the preset decoding method, control the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and play the decoding result; in response to the operating system not supporting the preset decoding method, refuse to play the target video file locally at the playback end.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the video file processing method according to any one of claims 1 to 4.
7. An electronic device, It is characterized in that include: processor; as well as A memory, connected to the processor, configured to provide the processor with instructions for processing the following processing steps: Get the original video file; The original video file is encoded by using a preset encoding method to obtain a target video file, wherein the preset encoding method is used to prevent the playback content of the original video file from being backed up at the playback end of the original video file; Controlling a preset multimedia playback application to play the target video file; In response to a received backup event, determine the content to be backed up corresponding to the backup event; replace the content to be backed up with default display content, wherein the default display content is used to hide the content to be backed up, and the default display content is a preset display content with prompt information, and the prompt information is used to prompt that the current playback content does not support backup; and back up the default display content locally at the playback end; Among them, the controlling of the preset multimedia playback application to play the target video file includes: detecting whether the local operating system of the playback end supports the preset decoding method corresponding to the preset encoding method, wherein the playback end is a client that has obtained high-definition digital content protection authorization; in response to the operating system supporting the preset decoding method, controlling the preset multimedia playback application to call the preset decoding method to decode the target video file to obtain a decoding result, and playing the decoding result; in response to the operating system not supporting the preset decoding method, refusing to play the target video file locally at the playback end.
