Search

CN-119383378-B - Video processing method, terminal device and storage medium

CN119383378BCN 119383378 BCN119383378 BCN 119383378BCN-119383378-B

Abstract

The embodiment of the invention discloses a video processing method, terminal equipment and a storage medium. The video processing method comprises the steps of receiving a video file, a list file and a key file based on a first APP of first terminal equipment, wherein the video file comprises one or more video segments, the list file comprises a play list of the video segments, the key file comprises a first key, the first key is used for decrypting the video file, the key file is stored in a first storage space, the first storage space allows the first APP to access and inhibits a second APP from accessing, the second APP is different from the first APP, key information is written in the list file according to a storage address of the key file in the first storage space, the key information is used for reading the key file, the first key is read from the first storage space based on the first APP and the key information when the video file is decrypted, and the video file is decrypted by using the first key.

Inventors

  • CHEN XUEYI
  • MA QINGSHAN
  • XIONG YITAO
  • ZHU JINJIN
  • SUN YONGCHAO

Assignees

  • 学科网(北京)股份有限公司

Dates

Publication Date
20260505
Application Date
20241101

Claims (5)

  1. 1. A video processing method, performed by a first terminal device, comprising: Receiving a video file, a list file and a key file based on a first APP of the first terminal equipment, wherein the video file comprises one or more video segments, the list file comprises a play list and the key file, the key file comprises a first key, and the first key is used for decrypting the video file; Storing the key file into a first storage space, wherein the first storage space allows the first APP to access and prohibits a second APP to access; the key file is stored in a target folder of the first storage space, the target file is allowed to be accessed by the first terminal equipment and is forbidden to be accessed by a second terminal equipment, the second terminal equipment is different from the first terminal equipment, the target folder is named by an equipment identifier of the first terminal equipment, and the equipment identifier is used for verifying whether the target folder is authorized to access the target folder; writing key information into the list file according to a storage address of the key file in the first storage space, wherein the key information is used for reading the key file, the key file and the list file are encrypted by a second key, and the second key is stored in a second storage space which is independent of the first storage space and is a storage space which cannot be directly accessed by the first APP; reading the first key from the first storage space based on the first APP and the key information while decrypting the video file; Decrypting the video file using the first key; Updating the second key when stopping video playing; And encrypting the list file and the key file by using the updated second key.
  2. 2. The method of claim 1, wherein the reading the first key from the first storage space based on the first APP and the key information when decrypting the video file comprises: Decrypting the list file using the second key while decrypting the video file; Reading the key information after decrypting the list file; And reading a first key in the key file from the first storage space according to the key information.
  3. 3. A terminal device, characterized in that the terminal device is a first terminal device, comprising: The system comprises a receiving module, a first key generation module and a second key generation module, wherein the receiving module is used for receiving a video file, a list file and a key file based on a first APP of terminal equipment, the video file comprises one or more video segments, the list file comprises a play list and the key file, the key file comprises a first key, and the first key is used for decrypting the video file; The storage module is used for storing the key file into a first storage space, wherein the first storage space allows the first APP to access and prohibits a second APP to access; The system comprises a first storage space, a writing module, a target folder, a second terminal device, a second key, a key file and a list file, wherein the first storage space is used for storing the key file, the writing module is used for writing key information in the list file according to a storage address of the key file in the first storage space, the key information is used for reading the key file, the target file is stored in the target folder of the first storage space, the target file is allowed to be accessed by the first terminal device and is forbidden to be accessed by the second terminal device, the second terminal device is different from the first terminal device, the target folder is named by a device identifier of the first terminal device and is used for verifying whether the target folder is authorized to access the target folder, the key file and the list file are encrypted by a second key, and the second key is stored in a second storage space which is independent of the first storage space and is a storage space which cannot be directly accessed by the first APP; a reading module for reading the first key from the first storage space based on the first APP and the key information when decrypting the video file; a decryption module for decrypting the video file using the first key; and the encryption module is used for updating the second key when the video playing is stopped, and carrying out encryption processing on the list file and the key file by using the updated second key.
  4. 4. A terminal device, comprising: A memory for storing at least computer-executable instructions; A processor, coupled to the memory, for enabling the implementation of the method of claim 1 or 2 by execution of the computer-executable instructions.
  5. 5. A computer storage medium, characterized in that the computer storage medium stores computer readable instructions, the computer readable instructions, when executed, are capable of performing the method of claim 1 or 2.

Description

Video processing method, terminal device and storage medium Technical Field The present invention relates to the field of video technologies, and in particular, to a video processing method, a terminal device, and a storage medium. Background In general, the total data volume of a video file is large compared to the total data volume of a text file, an audio file, or an image file. With the development of network technology, the terminal device can conveniently download and view video files on line based on a network. To facilitate network transmission of video files, the video file may be divided into a plurality of video segments, which are combined to form the complete video file. In some cases, multiple video segments of a video file will form a playlist, with the terminal device that facilitates playback playing each video segment in order. Disclosure of Invention In view of the above, embodiments of the present invention provide a video processing method, a terminal device, and a storage medium. The technical scheme of the invention is realized as follows: A first aspect of an embodiment of the present disclosure provides a video processing method, performed by a first terminal device, including: Receiving a video file, a list file and a key file based on a first APP (Application) of the first terminal equipment, wherein the video file comprises one or more video segments, the list file comprises a play list and the key file, the key file comprises a first key, and the first key is used for decrypting the video file; Storing the key file into a first storage space, wherein the first storage space allows the first APP to access and prohibits a second APP to access; writing key information into the list file according to the storage address of the key file in the first storage space, wherein the key information is used for reading the key file; reading the first key from the first storage space based on the first APP and the key information while decrypting the video file; Decrypting the video file using the first key. Based on the above scheme, the method further comprises: Storing the key file in a target folder of the first storage space, wherein the target file is allowed to be accessed by the first terminal equipment and is forbidden to be accessed by a second terminal equipment, and the second terminal equipment is different from the first terminal equipment. Based on the above scheme, the target folder is named by the device identifier of the first terminal device, and the device identifier is used for verifying whether the access to the target folder is authorized to access the target folder. Based on the above scheme, the method further comprises: Encrypting the key file and/or the list file storing the key information using a second key. Based on the above scheme, the method further comprises: and storing the second key in a second storage space, wherein the second storage space is different from the first storage space. Based on the above scheme, the reading the first key from the first storage space based on the first APP and the key information when decrypting the video file includes: Decrypting the list file using the second key while decrypting the video file; Reading the key information after decrypting the list file; And reading a first key in the key file from the first storage space according to the key information. Based on the scheme, the method comprises the following steps: and encrypting the list file and/or the key file when stopping video playing. A second aspect of an embodiment of the present disclosure provides a terminal device, including: The receiving module is used for receiving a video file, a list file and a key file based on a first application program APP of the first terminal equipment, wherein the video file comprises one or more video segments, the list file comprises a play list and the key file, the key file comprises a first key, and the first key is used for decrypting the video file; The storage module is used for storing the key file into a first storage space, wherein the first storage space allows the first APP to access and prohibits a second APP to access; The writing module is used for writing key information into the list file according to the storage address of the key file in the first storage space, wherein the key information is used for reading the key file; a reading module for reading the first key from the first storage space based on the first APP and the key information when decrypting the video file; and the decryption module is used for decrypting the video file by using the first key. A third aspect of an embodiment of the present disclosure provides a terminal device, including: A memory for storing at least computer-executable instructions; and the processor is connected with the memory and is used for realizing the video processing method according to any technical scheme of the first aspect through the execution of the computer executa