CN111935546B - Program importing method and device, video playing equipment and storage medium - Google Patents

Program importing method and device, video playing equipment and storage medium Download PDF

Info

Publication number
CN111935546B
CN111935546B CN202010718344.1A CN202010718344A CN111935546B CN 111935546 B CN111935546 B CN 111935546B CN 202010718344 A CN202010718344 A CN 202010718344A CN 111935546 B CN111935546 B CN 111935546B
Authority
CN
China
Prior art keywords
target file
target
content
program information
television program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010718344.1A
Other languages
Chinese (zh)
Other versions
CN111935546A (en
Inventor
蔡敏淦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dingsheng Photoelectric Co ltd
Original Assignee
Shenzhen Dingsheng Photoelectric Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dingsheng Photoelectric Co ltd filed Critical Shenzhen Dingsheng Photoelectric Co ltd
Priority to CN202010718344.1A priority Critical patent/CN111935546B/en
Publication of CN111935546A publication Critical patent/CN111935546A/en
Application granted granted Critical
Publication of CN111935546B publication Critical patent/CN111935546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4408Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a program importing method and device, video playing equipment and a storage medium, relates to the technical field of televisions, and can improve channel searching efficiency of the video playing equipment. The program importing method comprises the following steps: when the video playing equipment is in a target mode, the video playing equipment verifies the content of a target file according to a preset verification strategy; the content of the target file is the content recorded in the encrypted target file in the target storage area; if the verification is successful, the video playing device decrypts the encrypted target file according to a decryption strategy to obtain the target file; a plurality of pieces of television program information are recorded in the target file; and importing the plurality of pieces of television program information in the target file into the video playing equipment.

Description

Program importing method and device, video playing equipment and storage medium
Technical Field
The present application belongs to the field of television technologies, and in particular, to a program importing method and apparatus, a video playing device, and a storage medium.
Background
With the rapid development of digital television technology, more and more television channels are provided. Generally, in order to view a television program, a user can search and capture program data on a television network according to frequency points by selecting an automatic channel searching mode or a manual channel searching mode, so as to search and obtain information of a plurality of television programs and selectively view favorite television programs.
However, the existing program searching method usually takes tens of minutes or even longer, and the channel searching efficiency is low.
Disclosure of Invention
The embodiment of the application provides a program importing method and device, video playing equipment and a storage medium, and aims to solve the problem of low channel searching efficiency of the video playing equipment.
In a first aspect, an embodiment of the present application provides a program importing method, including:
when the video playing equipment is in a target mode, the video playing equipment verifies the content of a target file according to a preset verification strategy; the content of the target file is the content recorded in the encrypted target file in the target storage area;
if the verification is successful, the video playing device decrypts the encrypted target file according to a decryption strategy to obtain the target file; a plurality of pieces of television program information are recorded in the target file;
and importing the plurality of pieces of television program information in the target file into the video playing equipment.
By adopting the program importing method provided by the application, when the video playing equipment is in a target mode, the video playing equipment verifies the content of the target file according to the preset verification strategy, if the verification is successful, the video playing equipment decrypts the encrypted target file according to the decryption strategy to obtain the target file recorded with the plurality of pieces of television program information, and the plurality of pieces of television program information in the target file are imported into the video playing equipment.
Optionally, when the video playback device is in the target mode, before the video playback device verifies the content of the target file according to a preset verification policy, the method further includes:
the video playing device identifies a plurality of encrypted files in the target storage area according to a preset identification strategy to obtain encrypted target files.
Optionally, the video playing device identifies a plurality of encrypted files in the target storage area according to a preset identification policy to obtain an encrypted target file, including:
the video playing equipment identifies the file names of a plurality of encrypted files in the target storage area one by one;
and if the file name contains the target character string, confirming that the file containing the target character string is an encrypted target file.
Optionally, when the video playback device is in the target mode, the video playback device verifies the content of the target file according to a preset verification policy, including:
when the video playing equipment is in a target mode, the video playing equipment verifies the data format of the content of the target file according to the preset verification strategy; the data format includes a plurality of data classification fields;
if the data format of the content of the target file is a preset data format, confirming that the content of the target file is a plurality of pieces of television program information;
and verifying whether each data field in each piece of television program information in the content of the target file is valid or not.
Optionally, the verifying whether each data field in each piece of television program information in the content of the target file is valid includes:
if all data fields in the television program information meet preset conditions, determining that the television program information is valid television program information;
and if at least one data field in the television program information does not meet the preset condition, determining that the television program information is invalid television program information.
Optionally, when the video playback device is in the target mode, verifying, by the video playback device, the content of the target file according to a preset verification policy includes:
and if the data format of the content of the target file is not the preset data format, stopping verifying the content of the target file.
Optionally, when the video playback device is in the target mode, before the video playback device verifies the content of the target file according to a preset verification policy, the method further includes:
acquiring a plurality of pieces of television program information; each piece of television program information comprises a plurality of data fields;
determining a strategy by using a preset target data field, acquiring the target data field in each piece of television program information, and constructing to obtain new television program information;
forming the target file according to the plurality of pieces of new television program information obtained by construction;
and encrypting the target file by using a preset encryption strategy and storing the target file in the target storage area.
In a second aspect, an embodiment of the present application provides a program importing apparatus, including:
the verification module is used for verifying the content of the target file by the program importing device according to a preset verification strategy when the program importing device is in a target mode; the content of the target file is the content recorded in the encrypted target file in the target storage area;
the program importing device is used for encrypting the target file according to a decryption strategy, and the program importing module is used for decrypting the encrypted target file according to the decryption strategy to obtain the target file; a plurality of pieces of television program information are recorded in the target file;
and the import module is used for importing the television program information in the target file into the program import device.
In a third aspect, an embodiment of the present application provides a video playback device, including: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the program importing method when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the program importing method.
In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a video playback device, causes the video playback device to execute the program importing method described in any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a program importing method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a method for obtaining a target file according to an embodiment of the present application.
Fig. 3 is a schematic diagram of an object file according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a program importing apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a video playback device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a program importing method according to an embodiment of the present disclosure. In this embodiment, the program importing method is used to import a television program into a video playing device. The execution main body is a video playing device.
The program importing method shown in fig. 1 includes the following steps:
s11: when the video playing device is in the target mode, the video playing device verifies the content of the target file according to a preset verification strategy.
In some embodiments, the video playing device is a device capable of playing video, such as a television, a computer, and the like. The target mode is a target operation mode of the operation process of the video playing device. For example, a user operates the video playback device, sets a preset mode (preset mode) as a target mode of the video playback device, automatically verifies the content of a target file when the video playback device is in the mode, or sets a factory mode as a target mode of the video playback device, i.e., both the preset mode and the factory mode are target modes.
It can be understood that the target mode may be preset by a user, and when the video playback device is in the target mode, the video playback device may automatically verify the content of the target file according to a preset verification policy.
The preset verification policy is used for describing a logical process of verifying whether the content of the target file is the target content. For example, the recorded content includes A, B, C three data classification fields, and the content includes a piece of tv program information, and the tv program information includes data corresponding to the 3 data classification fields, the data classification field of the content is verified first by using a preset verification policy, and then the data corresponding to the data classification field included in each piece of tv program information is verified.
The content of the target file is the content recorded in the encrypted target file in the target storage area. For example, a target file with a file name dvbscl and a file format txt, which is encrypted by an encryption device using a preset encryption policy, it is understood that the target storage area may be a storage area in a mobile storage device connected to the video playback device, or a storage area in a cloud server connected to the video playback device. The target file may be encrypted by using a preset encryption policy when being imported into the target storage area, or encrypted by using a preset encryption policy before being imported into the target storage area and then imported into the target storage area.
Before the television program is introduced into the video playback device, the video playback device needs to be connected to the device configured with the target storage area, for example, a mobile storage device storing the target file is connected to the video playback device, or the video playback device is connected to the cloud server through a communication network, so that the storage area storing the target file in the cloud server can be accessed.
In this embodiment, when the video playback device is in the target mode, the video playback device verifies the content of the target file according to the preset verification policy, and since the content recorded in the target file is not necessarily the television program information to be imported, for example, the file with the file name of the target file name, and the file is not the television program information recorded in the file, the content of the target file needs to be verified by using the preset verification policy to ensure the correctness of the content of the target file, so that the program can be smoothly imported into the video playback device.
As for when the video playing device verifies the content of the target file according to the preset verification policy, the following two scenarios can be included, but not limited to.
Scene 1: and when the video playing equipment is in the target mode, the video playing equipment verifies the content of the target file according to a preset verification strategy.
For example, when a television is manufactured, a tester tests the television, connects the usb disk storing the target file with the television, and when the television is in a factory mode, the television automatically verifies the content of the target file in the usb disk according to a preset verification policy.
Scene 2: and when the updated television program information exists and the video playing equipment is in the target mode, the video playing equipment verifies the content of the target file according to a preset verification strategy.
For example, when updated television program information exists, a user connects a usb disk storing a target file with a television, the updated television program information is recorded in the target file, and the television automatically verifies the content of the target file in the usb disk according to a preset verification policy if the user selects a television preset mode.
S12: and if the verification is successful, the video playing equipment decrypts the encrypted target file according to the decryption strategy to obtain the target file.
In some embodiments, the decryption policy is used to describe a logical process of decrypting the target file, and the decryption policy corresponds to an encryption policy of encrypting the target file.
Several pieces of TV program information are recorded in the target file. Each piece of television program information comprises data corresponding to a plurality of data classification fields.
As shown in fig. 3, the target file that is successfully verified includes 16 pieces of television program information, which are channels (channels) 1 to 16, respectively.
In some embodiments, the decryption policy may be a preconfigured decryption program and the encryption policy may be a preconfigured encryption policy.
It is understood that, since the target file is successfully verified, the video playback device may decrypt the encrypted target file by using the decryption policy when the encrypted target file is exported from the target storage area, or decrypt the encrypted target file by using the decryption policy after the encrypted target file is exported from the target storage area.
S13: and importing the plurality of pieces of television program information in the target file into the video playing equipment.
In some embodiments, it can be understood that the content in the obtained target file is extracted to obtain several pieces of television program information, and then the obtained several pieces of television program information are imported into the storage of the video playing device. When the channel searching is carried out through the video playing equipment, the imported television program information can be called based on codes recorded in an operating system of the video playing equipment, so that the channel searching efficiency is improved.
In an embodiment of the present application, when the video playback device is in the target mode, before the video playback device verifies the content of the target file according to a preset verification policy, the method further includes:
the video playing device identifies a plurality of encrypted files in the target storage area according to a preset identification strategy to obtain encrypted target files.
In this embodiment, the preset identification policy is a logical process describing identification of several encrypted files in the target storage area. For example, the character string dvbscl.txt is the target file name, so the file names of all files in the target storage area are identified one by one, and an encrypted file with the file name dvbscl.txt is obtained, namely the encrypted file is the encrypted target file.
It can be understood that, in general, a plurality of files are stored in the target storage area, and the encrypted target file is only one of the plurality of files, and if all files are directly verified according to the preset verification policy, the import efficiency is low, so in order to accurately and quickly import the television program information in the target file into the video playing device, when the video playing device is in the target mode, a plurality of encrypted files in the target storage area need to be identified according to the preset identification policy, and whether the encrypted target file is determined according to the identification result.
In some embodiments, since only the target file is encrypted by using the preset encryption policy when the target file is stored in the target storage area, the files stored in the target storage area may include encrypted files and unencrypted files.
Therefore, a plurality of files in the target storage area are identified according to the preset identification strategy, and the encrypted target file is obtained.
In some embodiments, since the target file is a file encrypted by using a preset encryption policy, a number of files in the target storage area are identified according to the preset encryption policy to obtain the encrypted target file.
In this embodiment, the preset encryption policy is a logical process describing encryption of the target file. For example, the target file is encrypted using a preset encryption algorithm.
As a possible implementation manner of this embodiment, the identifying, by the video playing device, a plurality of encrypted files in the target storage area according to a preset identification policy to obtain an encrypted target file includes:
the video playing equipment identifies the file names of a plurality of encrypted files in the target storage area one by one;
and if the file name contains the target character string, confirming that the file containing the target character string is an encrypted target file.
In this embodiment, the target character string is a string of characters consisting of numbers and letters, and it is understood that the target character string may be set in advance, for example, the target character string is dvbscl.
Illustratively, the target storage area includes 3 encrypted files, such as file 1, file 2, and file 3, and the file names are dvbscl.txt, aabscl.txt, and ccbscl.txt, respectively, and the video playback device identifies the file names of the 3 encrypted files one by one, where the file name of file 1 includes a target character string "dvbscl.txt", and confirms the target file with 1-bit encryption of the file.
When the target character string is recognized, each character is recognized in order, and whether or not a plurality of characters connected in order are the target character string is confirmed.
In an embodiment of the present application, when the video playback device is in the target mode, the verifying, by the video playback device, the content of the target file according to a preset verification policy includes:
when the video playing equipment is in a target mode, the video playing equipment verifies the data format of the content of the target file according to the preset verification strategy; the data format includes a plurality of data field classifications;
if the data format of the content of the target file is a preset data format, confirming that the content of the target file is a plurality of pieces of television program information;
and verifying whether each data field in each piece of television program information in the content of the target file is valid or not.
It should be noted that the data format of the content of the target file is a set of data field classifications corresponding to each data field in the data of the content record. The preset data format is a set of data field classifications corresponding to a plurality of data which influence video display. For example, referring to fig. 3, the data field classifications corresponding to the data affecting the display of the television program include 8 data field classifications, such as channel no, servicename, satelite no, servicetype, scrambleled, frequency, polarity, and sr, and the 8 data field classifications are included in the preset data format.
In this embodiment, when the video playback device is in the target mode, the video playback device verifies, according to the preset verification policy, whether the multiple data field classifications corresponding to the multiple data in the content of the target file are in one-to-one correspondence with the data field classifications corresponding to the multiple data that determine to affect video display, if so, the data format of the content of the target file is the preset data format, and the content of the corresponding target file is the multiple pieces of television program information, that is, the data format of each piece of recorded television program information is the preset data format. Further, on the basis that the data format of the content of the target file is a preset data format, verifying whether each data field in each piece of television program information is valid, for example, whether a channel no is a pure number, and the number is smaller than the number of preset channels, if the channel no is a pure number and smaller than the number of preset channels, it indicates that the channel no is valid, and otherwise it is invalid, or if a service type is one of 3 types, such as tv, radio, data, and the like, and if the service type is one of the 3 types, it indicates that the service type is valid, and otherwise it is invalid.
It should be noted that, when it is verified that one or more data fields in each piece of television program information in the content of the target file are invalid, the piece of television program information is identified as invalid and is not imported into the video playing device, otherwise, when each data field in each piece of television program information is valid, the piece of television program information is identified as valid and is imported into the video playing device.
As a possible implementation manner of this embodiment, the verifying whether each data field in each piece of television program information in the content of the target file is valid includes:
if all data fields in the television program information meet preset conditions, determining that the television program information is valid television program information;
and if at least one data field in the television program information does not meet the preset condition, determining that the television program information is invalid television program information.
In the present embodiment, the preset condition is to describe a logical process of determining whether a data field in a television program satisfies a requirement. It is understood that, since the predetermined data format includes a plurality of data classification fields, each data classification field corresponds to one data field, and one data field corresponds to one determination condition, the predetermined condition includes the determination condition for each data field of the plurality of data fields.
Illustratively, one piece of television program information includes data fields corresponding to 3 data field classifications, such as a channel no, a service type, and a scrambled, which are respectively 1, TV, and tube, and the preset condition also includes a determination condition for the data fields corresponding to the 3 data field classifications, which is whether the channel no is a pure number, and the number is less than 10 of preset channels, whether the service type is one of 3 types, such as TV, radio, and data, and whether the scrambled is one of tube or false, where the tube is encrypted. Through judgment, the television program information meets the preset condition, so that the television program information is determined to be effective television program information.
In an embodiment of the present application, verifying, by the video playback device, the content of the target file according to a preset verification policy when the video playback device is in the target mode includes:
and if the data format of the content of the target file is not the preset data format, stopping verifying the content of the target file.
It can be understood that if the content of the target file is the television program information, the data format of the target file is also the corresponding preset data format, and there is a need to continuously verify the content of the target file, and if the data format of the target file is not the corresponding preset data format, it indicates that the target file does not record the television program information, or that the data field of the recorded television program information is not a required data field.
Referring to fig. 2, in an embodiment of the present application, before the video playback device verifies the content of the target file according to a preset verification policy when the video playback device is in the target mode, the method further includes:
s21: acquiring a plurality of pieces of television program information; each piece of television program information comprises a plurality of data fields;
s22: determining a strategy by using a preset target data field, acquiring the target data field in each piece of television program information, and constructing to obtain new television program information;
s23: forming the target file according to the plurality of pieces of new television program information obtained by construction;
s24: and encrypting the target file by using a preset encryption strategy and storing the target file in the target storage area.
In this embodiment, the preset target data field determination policy is a logic process for describing a data field corresponding to a data field classification for obtaining a plurality of data that determine to affect video display in each piece of tv program information. It can be understood that, the target data field in each piece of television program information is obtained based on the data field classification corresponding to the data which are determined to affect the video display, so as to construct and obtain new television program information.
For example, the acquired piece of television program information includes an a data field, a B data field, a C data field, a D data field, and an E data field. The data fields A, the data fields B and the data fields C are data fields corresponding to a plurality of data of the fixation response video display in a classified mode, so that 3 data fields such as the data fields A, the data fields B and the data fields C of the television program information are obtained by utilizing a preset target data field determining strategy, and a new piece of television program information is obtained based on the 3 data fields. By analogy, a plurality of pieces of new television program information are constructed and obtained to form a target file. And encrypting the target file by using a preset encryption strategy and storing the target file in a target storage area.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 4 shows a block diagram of a program importing apparatus according to an embodiment of the present application, which corresponds to the program importing method described in the foregoing embodiment, and only shows portions related to the embodiment of the present application for convenience of description.
Referring to fig. 4, the apparatus includes:
the verification module 101 is configured to verify, by the program importing apparatus according to a preset verification policy, the content of the target file when the program importing apparatus is in the target mode; the content of the target file is the content recorded in the encrypted target file in the target storage area;
the decryption module 102 is configured to, if the verification is successful, decrypt the encrypted target file by the program import apparatus according to a decryption policy to obtain the target file; a plurality of pieces of television program information are recorded in the target file;
an importing module 103, configured to import the pieces of television program information in the target file into the program importing apparatus.
Optionally, the apparatus further comprises: and identifying the module.
And the identification module is used for identifying a plurality of encrypted files in the target storage area according to a preset identification strategy to obtain the encrypted target files.
Optionally, the identification module is further configured to identify file names of a plurality of encrypted files in the target storage area one by one; and if the file name contains the target character string, confirming that the file containing the target character string is an encrypted target file.
Optionally, the verification module 101 includes: the device comprises a first verification unit, a confirmation unit and a second verification unit.
The first verification unit is used for verifying the data format of the content of the target file according to the preset verification strategy when the program importing device is in a target mode; the data format includes a plurality of data classification fields;
the confirming unit is used for confirming that the content of the target file is the information of a plurality of television programs if the data format of the content of the target file is a preset data format;
and the second verification unit is used for verifying whether each data field in each piece of television program information in the content of the target file is valid or not.
Optionally, the second verification unit is further configured to determine that the television program information is valid television program information if all data fields in the television program information satisfy a preset condition; and if at least one data field in the television program information does not meet the preset condition, determining that the television program information is invalid television program information.
Optionally, the second verifying unit is further configured to stop verifying the content of the target file if the data format of the content of the target file is not the preset data format.
Optionally, the apparatus further includes an obtaining module, a constructing module, a forming module, and a storing module.
The acquisition module is used for acquiring a plurality of pieces of television program information; each piece of television program information comprises a plurality of data fields;
the construction module is used for determining a strategy by utilizing a preset target data field, acquiring the target data field in each piece of television program information, and constructing to obtain new television program information;
the forming module is used for forming the target file according to the plurality of pieces of television program information obtained by construction;
and the storage module is used for encrypting the target file by using a preset encryption strategy and storing the target file in the target storage area.
Fig. 5 is a schematic structural diagram of a video playback device according to an embodiment of the present application. As shown in fig. 5, the video playback device 5 of this embodiment includes: at least one processor 50 (only one processor is shown in fig. 5), a memory 51, and a computer program 52 stored in the memory 51 and operable on the at least one processor 50, wherein the processor 50 implements the steps of any of the above-mentioned program importing method embodiments when executing the computer program 52.
The video playing device 5 may be a desktop computer, a notebook computer, a palm computer, a television, or other computing devices. The video playback device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of the video playback device 5, and does not constitute a limitation of the video playback device 5, and may include more or less components than those shown, or combine some components, or different components, such as an input/output device, a network access device, a display screen, and the like.
The Processor 50 may be a Central Processing Unit (CPU), and the Processor 50 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the video playback device 5 in some embodiments, for example, a hard disk or a memory of the video playback device 5. The memory 51 may also be an external storage device of the video playback device 5 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the video playback device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the video playback device 5. The memory 51 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which, when running on a video playback device, enables the video playback device to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a video playback device, a recording medium, computer Memory, Read-Only Memory (ROM), Random-Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (9)

1. A method for importing a program, the method comprising:
when the video playing equipment is in a target mode, the video playing equipment verifies the content of a target file according to a preset verification strategy; the content of the target file is the content recorded in the encrypted target file in the target storage area;
when the video playing device is in the target mode, the video playing device verifies the content of the target file according to a preset verification strategy, and the method comprises the following steps:
when the video playing device is in a target mode, the video playing device verifies the data format of the content of the target file according to the preset verification strategy; the data format includes a plurality of data classification fields;
if the data format of the content of the target file is a preset data format, confirming that the content of the target file is a plurality of pieces of television program information;
verifying whether each data field in each piece of television program information in the content of the target file is valid;
if the verification is successful, the video playing device decrypts the encrypted target file according to a decryption strategy to obtain the target file; a plurality of pieces of television program information are recorded in the target file;
and importing the plurality of pieces of television program information in the target file into the video playing equipment.
2. The method according to claim 1, wherein when the video playback device is in the target mode, before the video playback device verifies the content of the target file according to a preset verification policy, the method further comprises:
the video playing device identifies a plurality of encrypted files in the target storage area according to a preset identification strategy to obtain encrypted target files.
3. The method as claimed in claim 2, wherein the video playback device identifies a plurality of encrypted files in the target storage area according to a preset identification policy to obtain an encrypted target file, and comprises:
the video playing equipment identifies the file names of a plurality of encrypted files in the target storage area one by one;
and if the file name contains the target character string, confirming that the file containing the target character string is an encrypted target file.
4. The method of claim 1, wherein said verifying whether each data field in each piece of said television program information in the content of said target file is valid comprises:
if all data fields in the television program information meet preset conditions, determining that the television program information is valid television program information;
and if at least one data field in the television program information does not meet the preset condition, determining that the television program information is invalid television program information.
5. The method of claim 1, wherein verifying the content of the target file according to a preset verification policy by the video playback device when the video playback device is in the target mode comprises:
and if the data format of the content of the target file is not the preset data format, stopping verifying the content of the target file.
6. The method as claimed in claim 1, wherein before the video playback device verifies the content of the target file according to the preset verification policy when the video playback device is in the target mode, the method further comprises:
acquiring a plurality of pieces of television program information; each piece of television program information comprises a plurality of data fields;
determining a strategy by using a preset target data field, acquiring the target data field in each piece of television program information, and constructing to obtain new television program information;
forming the target file according to the plurality of pieces of new television program information obtained by construction;
and encrypting the target file by using a preset encryption strategy and storing the target file in the target storage area.
7. A program introduction apparatus, comprising:
the verification module is used for verifying the content of the target file by the program importing device according to a preset verification strategy when the program importing device is in a target mode; the content of the target file is the content recorded in the encrypted target file in the target storage area;
the verification module comprises a first verification unit, a confirmation unit and a second verification unit;
the first verification unit is used for verifying the data format of the content of the target file according to the preset verification strategy when the program importing device is in the target mode; the data format includes a plurality of data classification fields;
the confirming unit is used for confirming that the content of the target file is the information of a plurality of television programs if the data format of the content of the target file is a preset data format;
the second verification unit is used for verifying whether each data field in each piece of television program information in the content of the target file is valid or not; the program importing device is used for encrypting the target file according to a decryption strategy, and the program importing module is used for decrypting the encrypted target file according to the decryption strategy to obtain the target file; a plurality of pieces of television program information are recorded in the target file;
and the import module is used for importing the television program information in the target file into the program import device.
8. A video playback device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 6.
CN202010718344.1A 2020-07-23 2020-07-23 Program importing method and device, video playing equipment and storage medium Active CN111935546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010718344.1A CN111935546B (en) 2020-07-23 2020-07-23 Program importing method and device, video playing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010718344.1A CN111935546B (en) 2020-07-23 2020-07-23 Program importing method and device, video playing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111935546A CN111935546A (en) 2020-11-13
CN111935546B true CN111935546B (en) 2022-02-25

Family

ID=73314533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010718344.1A Active CN111935546B (en) 2020-07-23 2020-07-23 Program importing method and device, video playing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111935546B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012317A (en) * 2019-04-15 2019-07-12 北京乐学帮网络技术有限公司 A kind of video acquiring method and device, a kind of video encryption method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8607067B1 (en) * 2011-03-01 2013-12-10 Amazon Technologies, Inc. Techniques for attesting to information
US9049259B2 (en) * 2011-05-03 2015-06-02 Onepatont Software Limited System and method for dynamically providing visual action or activity news feed
WO2014155516A1 (en) * 2013-03-26 2014-10-02 株式会社東芝 Program information management device, program information management method, and control program
CN109587550B (en) * 2017-10-27 2021-05-14 深圳市鼎盛光电有限公司 Channel searching method and device
CN108989719B (en) * 2018-06-29 2021-06-25 广州视源电子科技股份有限公司 Channel searching method and system, readable storage medium and smart television
CN109257386B (en) * 2018-11-19 2021-08-13 北京锐安科技有限公司 Processing method, device, equipment and medium for broadcast television program list protocol
CN110069449B (en) * 2019-03-20 2023-09-26 平安科技(深圳)有限公司 File processing method, device, computer equipment and storage medium
CN110430449A (en) * 2019-08-14 2019-11-08 山东海看新媒体研究院有限公司 A kind of TV big data processing method and system based on electronic program guides
CN110912941A (en) * 2019-12-27 2020-03-24 北京四达时代软件技术股份有限公司 Transmission processing method and device for multicast data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012317A (en) * 2019-04-15 2019-07-12 北京乐学帮网络技术有限公司 A kind of video acquiring method and device, a kind of video encryption method and device

Also Published As

Publication number Publication date
CN111935546A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN108550037B (en) File processing method and device based on block chain
EP2717544A2 (en) Methods for authenticating credentials for mobile platforms
KR101941785B1 (en) Contents distribution management system and method using blockchain technology
US20090202079A1 (en) Method, apparatus and computer program product for providing mobile broadcast service protection
EP2713295A1 (en) Cooperative broadcast communication receiver device, resource access control program and cooperative broadcast communication system
CN110995446B (en) Evidence verification method, device, server and storage medium
US20200349540A1 (en) Content distribution management system and method using blockchain technology
CN111245811A (en) Information encryption method and device and electronic equipment
CN114201781A (en) Block chain-based storage verification method and device, computer equipment and medium
CN112260934B (en) Resource interaction method and system based on education cloud platform
CN114040411A (en) Equipment binding method and device, electronic equipment and storage medium
CN110602700B (en) Seed key processing method and device and electronic equipment
CN116881896A (en) Method and device for generating device fingerprint library
CN109977692B (en) Data processing method and device, storage medium and electronic equipment
CN111935546B (en) Program importing method and device, video playing equipment and storage medium
US20220335078A1 (en) Methods and apparatus to detect unconfined view media
KR102176833B1 (en) System for authenticating set-top box users usgin mobile devices and reconmending personalized contents
CN108111501B (en) Control method and device for cheating flow and computer equipment
CN108307210B (en) Two-dimensional code-based directional media file playing method and device
CN111507734B (en) Method and device for identifying cheating request, electronic equipment and computer storage medium
CN112307489B (en) Character display method, device, electronic equipment and computer readable storage medium
CN116471327B (en) Cloud resource processing method, device, equipment and storage medium
CN113660100B (en) Method, system and electronic equipment for generating soft token seed
CN112560052A (en) Energy storage data management method based on block chain and related device
CN117097552A (en) Data communication method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant