CN112312193A - Management method and related device for recorded data of television program - Google Patents
Management method and related device for recorded data of television program Download PDFInfo
- Publication number
- CN112312193A CN112312193A CN201910682550.9A CN201910682550A CN112312193A CN 112312193 A CN112312193 A CN 112312193A CN 201910682550 A CN201910682550 A CN 201910682550A CN 112312193 A CN112312193 A CN 112312193A
- Authority
- CN
- China
- Prior art keywords
- television program
- metadata
- data
- recorded
- program recording
- 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.)
- Pending
Links
- 238000007726 management method Methods 0.000 title abstract description 17
- 238000000547 structure data Methods 0.000 claims description 81
- 238000000034 method Methods 0.000 claims description 52
- 230000008569 process Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 101100016034 Nicotiana tabacum APIC gene Proteins 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4331—Caching operations, e.g. of an advertisement for later insertion during playback
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/435—Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/84—Generation or processing of descriptive data, e.g. content descriptors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/78—Television signal recording using magnetic recording
- H04N5/781—Television signal recording using magnetic recording on disks or drums
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/93—Regeneration of the television signal or of selected parts thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a management method and a related device for recorded data of a television program, which are used for receiving metadata of the currently recorded television program provided by a PVR module when the television program is recorded, converting the metadata into label structure body data conforming to an ID3V2 standard format, and storing the label structure body data in the head of a recording file, thereby realizing that the metadata and code stream data of the recording file are stored in the same file. Therefore, the operation of a plurality of files can be avoided, the times and frequency of data input/output are reduced, the probability of file failure operation is reduced, the efficiency of file reading and writing is improved, and the consistency of program information of the recorded files and the consistency of the recorded program data is facilitated.
Description
Technical Field
The present invention relates to the field of digital television technologies, and in particular, to a method and a related apparatus for managing recorded data of a television program.
Background
Personal Video Recorder (PVR) technology is a technology for recording television programs to a hard disk. PVR takes a hard disk as a storage medium, establishes a local mass buffer area and a huge program storage library, and utilizes a digital processing technology to realize the control and management of programs.
In the service function of PVR, the metadata of the recorded program and the code stream data of the recorded program are respectively stored in different files, thus the operation times of input/output of equipment are increased invisibly and the efficiency is lower; meanwhile, the problem of data consistency inevitably exists for a plurality of data files corresponding to the same recorded program; the probability of operating the file to fail is also increased.
Disclosure of Invention
The invention provides a management method and a related device for recorded data of a television program, which can realize the unified management of metadata and code stream data of the television program.
In a first aspect, the present invention provides a method for managing recorded data of a television program, including:
when a television program is recorded, receiving metadata of the currently recorded television program, wherein the metadata is used for describing attribute information of the recorded television program;
converting the received metadata into tag structure data conforming to the ID3V2 standard;
and writing the generated tag structure data into the head of a television program recording file, wherein the television program recording file is used for storing code stream data of the currently recorded television program.
In an implementable embodiment, the foregoing method provided by the present invention, wherein the converting the received metadata into tag structure data conforming to ID3V2 standard includes:
filling data of different contents in the metadata into corresponding label frames according to a preset corresponding relation in a format conforming to the ID3V2 standard to form the label structure data;
wherein the data in different tag frames describe different content.
In an implementation manner, in the foregoing method provided by the present invention, when obtaining metadata corresponding to one television program recording file, the method further includes:
receiving metadata containing identification content of a television program recording file to be acquired, wherein the metadata of the identification content is used for uniquely identifying the corresponding television program recording file;
matching the television program recording file corresponding to the metadata of the identification content according to the metadata of the identification content;
analyzing the matched television program recording file according to the ID3V2 standard to obtain the label structure data in the television program recording file;
and restoring the obtained label structure data into corresponding metadata to return.
In an implementation manner, in the foregoing method provided by the present invention, when obtaining metadata corresponding to a plurality of television program recording files in batch, the method further includes:
analyzing all currently existing television program recording files according to the ID3V2 standard to obtain label structure data in all the television program recording files;
restoring all the obtained tag structure data into corresponding metadata for caching;
and when the initial position and the number of the television program recording files to be acquired are received, extracting the metadata of the corresponding television program recording files from the cached data and returning the metadata.
In an implementation manner, in the foregoing method provided by the present invention, when at least one item of content of metadata corresponding to the television program recording file needs to be modified, the method further includes:
analyzing the television program recording file according to the ID3V2 standard to obtain the label structure data meeting the ID3V2 standard in the television program recording file;
replacing data needing to be modified in the label structure body data;
and rewriting the replaced label structure data into the head of the television program recording file.
In an implementable embodiment, the above method provided by the present invention, wherein the metadata comprises: channel identification, channel name, recorded event identification, recorded event name, start time, duration, conditional access identification, parental lock, event description, event classification, and picture.
In a second aspect, the present invention provides an apparatus for managing recorded data of a television program, comprising:
the receiving module is used for receiving metadata of a currently recorded television program when the television program is recorded, wherein the metadata is used for describing attribute information of the recorded television program;
the label generation module is used for converting the received metadata into label structure data conforming to the ID3V2 standard;
and the metadata writing module is used for writing the generated tag structure data into the head of a television program recording file, and the television program recording file is used for storing code stream data of a currently recorded television program.
In an implementation manner, in the foregoing apparatus provided by the present invention, the tag generating module is specifically configured to fill data of different contents in the metadata into corresponding tag frames according to a preset correspondence in a format that conforms to an ID3V2 standard, so as to form the tag structure data; wherein the data in different tag frames describe different content.
In a third aspect, the present invention provides a digital television comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory, and executing according to the obtained program: when recording a television program, receiving metadata of the currently recorded television program; converting the received metadata into tag structure data conforming to the ID3V2 standard; writing the generated label structure data into the head of a television program recording file; wherein the metadata is used for describing attribute information of the recorded television program; the television program recording file is used for storing code stream data of the currently recorded television program.
In a fourth aspect, the present invention provides a readable storage medium storing digital television-executable instructions for causing a digital television to perform any of the methods described above.
When the television program is recorded, the management method and the related device for the recorded data of the television program receive the metadata of the currently recorded television program provided by the PVR module, convert the metadata into the label structure data conforming to the ID3V2 standard format, and store the label structure data in the head of the recording file, thereby realizing the purpose of storing the metadata and the code stream data of the recording file in the same file. Therefore, the operation of a plurality of files can be avoided, the times and frequency of data input/output are reduced, the probability of file failure operation is reduced, the efficiency of file reading and writing is improved, and the consistency of program information of the recorded files and the consistency of the recorded program data is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for managing recorded data of a television program according to an embodiment of the present invention;
fig. 2 is a second flowchart of a method for managing recorded data of a television program according to an embodiment of the present invention;
fig. 3 is a third flowchart of a method for managing recorded data of a television program according to an embodiment of the present invention;
fig. 4 is a fourth flowchart of a method for managing recorded data of a television program according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for managing recorded data of television programs according to an embodiment of the present invention;
FIG. 6 is a block diagram illustrating an exemplary interaction of modules according to an embodiment of the present invention;
FIG. 7 is a second schematic diagram of module interaction provided by the embodiment of the present invention;
FIG. 8 is a third exemplary diagram of module interaction according to the present invention;
fig. 9 is a schematic structural diagram of a digital television according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The PVR is an emerging technology applied to the television, and can record television programs through a decoding encoder built in a PVR module, so that the recording, storage and playback of television contents are realized. At present, digital televisions with PVR functions are generally realized by adding a PVR module to an original circuit. The PVR module may include components such as a controller, decoder/encoder, controller, memory, etc. The digital television main board demultiplexes the data stream to obtain A/V data and outputs the A/V data to the PVR module, and the PVR module can store the data stream in the hard disk for playing. When the PVR module is used for playing recorded television programs, the stored files can be sent back to the digital television main board by the PVR module, and the digital television main board can play images and sounds only by processing the files according to common audio and video signals, so that the playback of the television programs is realized. However, currently, metadata of a recorded program and code stream data of the recorded program are stored in different files, which increases the number of input/output operations of the device invisibly and is inefficient; meanwhile, the problem of data consistency inevitably exists for a plurality of data files corresponding to the same recorded program; the probability of operating the file to fail is also increased.
In view of the above, in a first aspect of the embodiments of the present invention, a method for managing recorded data of a television program is provided, as shown in fig. 1, the method may include:
s101, receiving metadata of a currently recorded television program when the television program is recorded;
s102, converting the received metadata into label structure data meeting the ID3V2 standard;
and S103, writing the generated label structure data into the head of the television program recording file.
Wherein, the metadata is used for describing the attribute information of the recorded television program; the television program recording file is used for storing code stream data of the currently recorded television program.
The ID3 is also called an ID3 tag as a kind of metadata container applicable to an audio file in MP3 format or the like, and the ID3 tag can store metadata describing attribute information of an MP3 file in an MP3 file. And the ID3V2 is a version of the ID3 tag, and each ID3V2 tag is composed of a tag header and a plurality of tag frames. Metadata information about the MP3 file can be stored in different tag frames, and a tag header is sequentially stored in the header of the MP3 file together with the tag frames.
The method provided by the embodiment of the invention applies the property of ID3V2 label, the PVR module provides metadata of the recorded file of the television program, then converts the metadata of the recorded file of the television program into label structure data conforming to the ID3V2 standard format, and stores the label structure data in the head of the recorded file, thereby realizing that the metadata and the code stream data of the recorded file are stored in the same file. Therefore, the operation of a plurality of files can be avoided, the times and frequency of data input/output are reduced, the probability of file failure operation is reduced, the efficiency of file reading and writing is improved, and the consistency of program information of the recorded files and the consistency of the recorded program data is facilitated.
In practical applications, the metadata of the recorded tv program can be generally used to describe the attribute information of the tv program, such as program information describing the tv program. In an embodiment of the present invention, the metadata of the television program may include: one or a combination of a channel identifier (ServiceID), a channel name (ServiceName), a recording event identifier (EventID), a recording event name (EventName), a start time (StartTime), a Duration (Duration), a conditional access identifier (CAFlag), a parental lock (ParentControl), an event Description (Description), an event classification (Category), and a Picture (Picture). The above-mentioned metadata are listed only for illustration, and in practical applications, metadata of other contents, such as information of language, country, etc., may be set as necessary, and are not limited herein.
And the tag frame of ID3V2 tag may include more than 70 items, different tag frames having different frame identifications for characterizing the content in the tag frame, for example, the tag frame of ID3V2 may include: TRSN (station owner), TRSO (station name), UFID (unique file identification), TIT2 (title), TIME, ten (length), ENCR (encryption), PRIV (private), SYLT (synchronized text), TALB (album), APIC (attached picture), and the like. As can be seen from the frame identifiers of the tag frames, different tag frames can be used for storing information of different contents, so in the embodiment of the present invention, data of different contents in metadata and different tag frames of ID3V2 can be corresponded to each other in advance, and after data conversion is performed, the converted data can be directly filled in the corresponding tag frames.
Specifically, in step S102, converting the received metadata into structure data meeting the ID3V2 standard may specifically include:
filling data with different contents in the metadata into corresponding label frames according to a preset corresponding relation in a format conforming to the ID3V2 standard to form label structure data;
wherein the data in different tag frames describe different content.
In practical application, different tag frames can be corresponded according to the content of metadata, the corresponding relation can be changed according to needs, but after the corresponding relation is determined, the data cannot be changed at will when the data in the tag frames are filled after the data conversion. In a specific implementation, the metadata of the recorded television program and the tag frame of the ID3V2 tag may adopt the following correspondence:
PVR ITEM Meta data (PVR metadata) | ID3V2 tag frame |
ServiceID (channel identification) | TRSN (radio station owner) |
ServiceName (channel name) | TRSO (radio station name) |
EventID (recording event identification) | UFID (unique file identification) |
EventName (recording event name) | TIT2 (title) |
StartTime (Start time) | TIME (TIME) |
Duration | TLEN (Length) |
CAFlag (CA mark) | ENCR (encryption) |
ParentControl (parent lock) | PRIV (private) |
Description (event Description) | SYLT (synchronous text) |
Category (event classification) | TALB (album) |
Picture (Picture) | APIC (Picture accessory) |
As shown in the above table, in the embodiment of the present invention, by correctly corresponding metadata of different contents of a recorded television program to each tag frame in an ID3V2 tag, when data type conversion is performed, the metadata of the corresponding contents may be filled into the tag frame according to the different tag frames in a format conforming to the ID3V2 standard, so that the metadata of the recorded television program is managed according to the tag standard of ID3V 2. Therefore, the metadata and the code stream data of the recorded television programs are stored in the same recording file, and the management is more convenient.
After the metadata and the code stream data of the television program are stored in the same television program recording file, the metadata of any one or more files in the stored television program recording file can be read. In practical applications, there may be an application scenario in which only metadata corresponding to one television program recording file is acquired, or there may be an application scenario in which metadata corresponding to a plurality of television program recording files are acquired in batch. When metadata corresponding to a television program recording file is acquired, the recorded television program may need to be played, and basic information of the recorded television program needs to be previewed; it may also be an abnormal interruption in the process of recording the tv program, which requires restarting to continue recording, and therefore, the metadata in the created tv program recording file needs to be read when restarting.
For a scenario in which only metadata corresponding to one television program recording file is obtained, as shown in fig. 2, the method provided in the embodiment of the present invention may further include:
s201, receiving metadata containing identification content of a television program recording file to be acquired;
s202, matching a television program recording file corresponding to the metadata of the identification content according to the metadata of the identification content;
s203, analyzing the matched television program recording file according to the ID3V2 standard to obtain the label structure data in the television program recording file;
and S204, restoring the obtained label structure data into corresponding metadata and returning.
And the metadata for identifying the content is used for uniquely identifying the corresponding television program recording file.
In specific implementation, the PVR module needs to provide metadata of a certain identification content of the tv program recording file to be acquired, where the metadata of the identification content can uniquely identify the corresponding tv program recording file, for example, metadata of a recording event identification (EventID) can be used as the metadata of the identification content. And finding a matched television program recording file according to the metadata of the identification content, and reading the metadata in the television program recording file. When the metadata of the identification content is received, matching can be performed according to each existing television program recording file of the metadata, so that the television program recording file corresponding to the metadata of the identification content is located. And then analyzing the matched television program recording file by calling an interface according to the ID3V2 standard to obtain the label structure data in the television program recording file, restoring the label structure data into a metadata format which can be identified by the PVR module, and returning the metadata format to the PVR module to read the metadata in the television program recording file.
When metadata corresponding to a plurality of television program recording files needs to be acquired in batch, the data needs to be read in a mode of caching and then calling, so that management of a large amount of data is realized.
Specifically, when obtaining metadata corresponding to a plurality of television program recording files in batch, as shown in fig. 3, the method provided in the embodiment of the present invention may further include:
s201' analyzing all the television program recording files existing at present according to the ID3V2 standard to obtain the label structure data in all the television program recording files;
s202', all the obtained label structure data are restored to corresponding metadata for caching;
s203', when the initial position and the number of the television program recording files to be acquired are received, extracting the metadata of the corresponding television program recording files from the cached data and returning.
When metadata of a plurality of television programs needs to be acquired in batch, a main application scenario is a case where a recording list is displayed. The PVR module is typically a separate process throughout the data-television system or the same process as the main process of the data-television system. Therefore, the process of the PVR module is always existed when the data TV is started. Then, for an application scenario of obtaining metadata corresponding to the television program recording file in batch, the batch obtaining of the metadata can be realized by calling the data of the background cache.
Specifically, when the data television is started, the background thread calls an interface to read and analyze the tag structure data of all existing television program recording files, and restores the acquired tag structure data to a format of metadata which can be recognized by the PVR module for caching. At this time, if the PVR data is to acquire metadata of the television program recording files in batch, a corresponding interface is first called to acquire the total number of the existing television program recording files, and after the PVR module determines the initial position and the number of the television program recording files to be acquired, the background can directly return the metadata corresponding to the television program recording files required by the PVR module to the PVR module for subsequent processing.
In addition, in specific implementation, metadata in a created television program recording file may need to be changed, and such an application scenario may exist in a situation where a recording process is abnormally disconnected and a program needs to be continuously recorded, so that a play duration needs to be changed.
For the application scenario, when at least one item of content of metadata corresponding to a television program recording file needs to be modified, as shown in fig. 4, the method provided in the embodiment of the present invention may further include:
s301, analyzing the television program recording file according to the ID3V2 standard to obtain tag structure data meeting the ID3V2 standard in the television program recording file;
s302, replacing data needing to be modified in the label structure data;
and S303, rewriting the replaced label structure data into the head of the television program recording file.
When metadata corresponding to a television program recording file is changed, tag structure data in the stored television program recording file needs to be read first, the reading operation can execute the method provided by the embodiment of the invention, an interface is called to analyze the television program recording file needing data change according to the ID3V2 standard, tag structure data in the television program recording file are obtained, then content in a tag frame needing data change in the tag structure is replaced, and then the replaced tag structure data is rewritten in the head of the television program recording file to complete the change of the metadata.
In a second aspect of the embodiments of the present invention, an apparatus for managing recorded data of a television program is provided, as shown in fig. 5, the apparatus may include:
a receiving module 41, configured to receive metadata of a currently recorded television program when the television program is recorded;
a tag generation module 42, configured to convert the received metadata into tag structure data meeting ID3V2 standard;
and a metadata writing module 43, configured to write the generated tag structure data into a header of the television program recording file.
Wherein, the metadata is used for describing the attribute information of the recorded television program; the television program recording file is used for storing code stream data of the currently recorded television program.
The device provided by the embodiment of the invention receives the metadata of the currently recorded television program provided by the PVR module, converts the metadata into the label structure data conforming to the ID3V2 standard format, and stores the label structure data in the head of the recording file, thereby realizing the purpose of storing the metadata and the code stream data of the recording file in the same file. Therefore, the operation of a plurality of files can be avoided, the times and frequency of data input/output are reduced, the probability of file failure operation is reduced, the efficiency of file reading and writing is improved, and the consistency of program information of the recorded files and the consistency of the recorded program data is facilitated.
Optionally, the tag generating module 42 is specifically configured to fill data of different contents in the metadata into corresponding tag frames according to a preset corresponding relationship in a format that meets the ID3V2 standard, so as to form tag structure data; wherein the data in different tag frames describe different content.
As shown in fig. 6, when the PVR module starts recording, an interface is called to send metadata of a tv program recording file to the metadata writing module, the metadata writing module provides the metadata to the tag generating module, the tag generating module generates tag structure data according to the ID3V2 standard, and then returns the tag structure data to the metadata writing module, at this time, the metadata writing module may create a recording file for storing the tv program data locally, and the metadata writing module writes a header of the created file for simultaneously storing a code stream of the recorded tv program according to the tag structure data of the ID3V2 standard. Thereby completing the writing of the metadata.
In an implementable manner, when obtaining metadata corresponding to a television program recording file, in the apparatus provided in the embodiment of the present invention, the receiving module is further configured to receive metadata including identification content of the television program recording file to be obtained when obtaining metadata corresponding to a television program recording file; the metadata for identifying the content is used for uniquely identifying the corresponding television program recording file; at this time, the apparatus provided in the embodiment of the present invention further includes: the device comprises a metadata reading module and a label analyzing module.
The metadata reading module is used for matching a television program recording file corresponding to the metadata of the identification content according to the metadata of the identification content; and the label analysis module is used for analyzing the matched television program recording file according to the ID3V2 standard to obtain the label structure data in the television program recording file.
Correspondingly, the metadata reading module is further configured to restore the obtained tag structure data to corresponding metadata and return the restored metadata.
In another implementable manner, when obtaining metadata corresponding to a plurality of tv program recording files in batch, the apparatus provided in the embodiment of the present invention further includes: the metadata management module is used for analyzing all currently existing television program recording files according to the ID3V2 standard to obtain the label structure data in all the television program recording files; and restoring all the obtained tag structure data into corresponding metadata for caching.
Correspondingly, the receiving module is further configured to receive the recording start positions and the number of the television programs to be acquired when metadata corresponding to a plurality of television program recording files are acquired in batch;
correspondingly, the metadata reading module is further configured to extract metadata of the corresponding television program recording file from the cached data and return the metadata.
The interactive process of reading the metadata corresponding to the tv program recording file is shown in fig. 7. The reading of the metadata generally involves two situations, namely acquiring the metadata of a certain television program recording file, and acquiring the metadata of a plurality of television program recording files in batch. For the process of acquiring the metadata of a certain recording file, the main scene is that the program recording process is abnormally broken, and the program recording time is not expired when the computer is started next time, so that the recording needs to be continued. At this time, the metadata of a certain recording file needs to be acquired through an interface provided by the metadata reading module, the metadata reading module can call the tag parsing module to parse the created recording file according to the ID3V2 standard, and after the tag parsing module returns the tag structure data, the metadata reading module parses the tag structure data acquired according to the ID3V2 standard into a metadata format receivable by the PVR module and returns the metadata format to the PVR module. The main scene of occurrence of the metadata corresponding to the batch-acquired recording files is the situation of displaying the recording list. The PVR module is generally a separate process in the whole digital television system or the same process as the main process of the digital television system, so that the process of the PVR module always performs a background scanning thread when the digital television is started, and the thread may be a thread in the metadata management module. When the thread is started, the metadata management module calls an interface of the tag analysis module to acquire the tag structure data of each recording file, and the metadata management module can restore the acquired tag structure data to corresponding metadata for caching. When the PVR module needs to provide a recording file list, an interface provided by the metadata reading module is called, and the metadata reading module returns the total number of the currently existing television program recording files of the PVR module. Then, the PVR module may send the start position and the number of the required tv program recording files to the metadata reading module, and the metadata reading module recalls the content cached in the metadata management module to return the metadata of the tv program recording files of the set number after the start position starts to the PVR module.
Optionally, in the apparatus provided in the embodiment of the present invention, the tag parsing module is further configured to parse the television program recording file according to the ID3V2 standard when at least one item of content of the metadata corresponding to the television program recording file needs to be modified, so as to obtain tag structure data in the television program recording file, where the tag structure data conforms to the ID3V2 standard.
Correspondingly, the metadata writing module is further configured to replace data that needs to be modified in the tag structure data; and rewriting the replaced label structure data into the head of the television program recording file.
The interactive process for changing the metadata corresponding to the tv program recording file is shown in fig. 8. When the metadata is changed, the tag structure data corresponding to the original metadata already exists in the television program recording file, and then the metadata writing module needs to read the tag structure data in the television program recording file through the tag analysis module, replace the changed data in the tag structure, and then write the changed data in the head of the television program recording file again. The scenes mainly appearing in the process are the situation that after the recording process of the television program is abnormally disconnected, the program needs to be recorded continuously, the playing time needs to be changed after the recording is finished, or the playing time needs to be changed in the recording process.
The module interaction diagrams shown in fig. 6 to 8 provided by the embodiments of the present invention do not embody a receiving module, the receiving module is only used for receiving data provided by the PVR module, and the receiving module may be integrated in the metadata writing module or the metadata reading module. The metadata writing module can be used for writing the tag structure data into the head of a television program recording file or changing the tag structure data; the metadata reading module can be used for recovering the label structure data into metadata when acquiring metadata corresponding to a television program recording file, and providing the recovered metadata to the PVR module; the metadata reading module can also be used for extracting the corresponding metadata in the cache and returning the metadata to the PVR module when the metadata corresponding to the plurality of television program recording files are obtained in batch. The metadata management module can be used for reading metadata in batches and carrying out cache management on the batch data; and the label generation module and the label analysis module can be integrated into an open source library, so that the ID3V2 label can be analyzed and read.
In an embodiment of the present invention, the metadata may include: channel identification, channel name, recorded event identification, recorded event name, start time, duration, conditional access identification, parental lock, event description, event classification, and picture. And are not limited herein.
In a third aspect of the embodiments of the present invention, there is provided a digital television, as shown in fig. 9, the digital television may include:
a memory 51 for storing program instructions;
a processor 52 for calling the program instructions stored in the memory 51 and executing, according to the obtained program: when recording a television program, receiving metadata of the currently recorded television program; converting the received metadata into tag structure data conforming to the ID3V2 standard; and writing the generated label structure data into the head of the television program recording file.
Wherein, the metadata is used for describing the attribute information of the recorded television program; the television program recording file is used for storing code stream data of the currently recorded television program.
In a fourth aspect of the embodiments of the present invention, a readable storage medium is provided, where the readable storage medium stores digital television executable instructions, and the digital television executable instructions are configured to enable a digital television to perform any one of the methods described above.
According to the management method and the related device for the recorded data of the television program, provided by the embodiment of the invention, when the television program is recorded, the metadata of the currently recorded television program provided by the PVR module is received, then the metadata is converted into the label structure data conforming to the ID3V2 standard format, and the label structure data is stored in the head of the recording file, so that the metadata and the code stream data of the recording file are stored in the same file. Therefore, the operation of a plurality of files can be avoided, the times and frequency of data input/output are reduced, the probability of file failure operation is reduced, the efficiency of file reading and writing is improved, and the consistency of program information of the recorded files and the consistency of the recorded program data is facilitated.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, implement the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method for managing recorded data of a television program, comprising:
when a television program is recorded, receiving metadata of the currently recorded television program, wherein the metadata is used for describing attribute information of the recorded television program;
converting the received metadata into tag structure data conforming to the ID3V2 standard;
and writing the generated tag structure data into the head of a television program recording file, wherein the television program recording file is used for storing code stream data of the currently recorded television program.
2. The method of claim 1, wherein the converting the received metadata into tag structure data conforming to the ID3V2 standard comprises:
filling data of different contents in the metadata into corresponding label frames according to a preset corresponding relation in a format conforming to the ID3V2 standard to form the label structure data;
wherein the data in different tag frames describe different content.
3. The method of claim 2, wherein in obtaining metadata corresponding to one of the television program recording files, the method further comprises:
receiving metadata containing identification content of a television program recording file to be acquired, wherein the metadata of the identification content is used for uniquely identifying the corresponding television program recording file;
matching the television program recording file corresponding to the metadata of the identification content according to the metadata of the identification content;
analyzing the matched television program recording file according to the ID3V2 standard to obtain the label structure data in the television program recording file;
and restoring the obtained label structure data into corresponding metadata to return.
4. The method of claim 2, wherein when obtaining metadata corresponding to a plurality of television program recording files in a batch, the method further comprises:
analyzing all currently existing television program recording files according to the ID3V2 standard to obtain label structure data in all the television program recording files;
restoring all the obtained tag structure data into corresponding metadata for caching;
and when the initial position and the number of the television program recording files to be acquired are received, extracting the metadata of the corresponding television program recording files from the cached data and returning the metadata.
5. The method of claim 2, wherein when at least one item of content of metadata corresponding to the television program recording file needs to be modified, the method further comprises:
analyzing the television program recording file according to the ID3V2 standard to obtain the label structure data meeting the ID3V2 standard in the television program recording file;
replacing data needing to be modified in the label structure body data;
and rewriting the replaced label structure data into the head of the television program recording file.
6. The method of any of claims 1-5, wherein the metadata comprises: channel identification, channel name, recorded event identification, recorded event name, start time, duration, conditional access identification, parental lock, event description, event classification, and picture.
7. An apparatus for managing recorded data of a television program, comprising:
the receiving module is used for receiving metadata of a currently recorded television program when the television program is recorded, wherein the metadata is used for describing attribute information of the recorded television program;
the label generation module is used for converting the received metadata into label structure data conforming to the ID3V2 standard;
and the metadata writing module is used for writing the generated tag structure data into the head of a television program recording file, and the television program recording file is used for storing code stream data of a currently recorded television program.
8. The apparatus according to claim 7, wherein the tag generating module is specifically configured to fill data of different contents in the metadata into corresponding tag frames according to a preset correspondence in a format conforming to an ID3V2 standard to form the tag structure data;
wherein the data in different tag frames describe different content.
9. A digital television, comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory, and executing according to the obtained program: when recording a television program, receiving metadata of the currently recorded television program; converting the received metadata into tag structure data conforming to the ID3V2 standard; writing the generated label structure data into the head of a television program recording file;
wherein the metadata is used for describing attribute information of the recorded television program; the television program recording file is used for storing code stream data of the currently recorded television program.
10. A readable storage medium storing digital television-executable instructions for causing a digital television to perform the method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910682550.9A CN112312193A (en) | 2019-07-26 | 2019-07-26 | Management method and related device for recorded data of television program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910682550.9A CN112312193A (en) | 2019-07-26 | 2019-07-26 | Management method and related device for recorded data of television program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112312193A true CN112312193A (en) | 2021-02-02 |
Family
ID=74329688
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910682550.9A Pending CN112312193A (en) | 2019-07-26 | 2019-07-26 | Management method and related device for recorded data of television program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112312193A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070250533A1 (en) * | 2006-04-20 | 2007-10-25 | Wei-Hung Huang | Method, Apparatus, System, and Computer Program Product for Generating or Updating a Metadata of a Multimedia File |
US20080199150A1 (en) * | 2007-02-14 | 2008-08-21 | Candelore Brant L | Transfer of metadata using video frames |
US20090304352A1 (en) * | 2008-06-05 | 2009-12-10 | Kabushiki Kaisha Toshiba | Video recording and playback equipment, video recording method, video playback method, and video recording and playback method |
CN102158759A (en) * | 2011-04-22 | 2011-08-17 | 深圳创维数字技术股份有限公司 | Program recording method, playback method of recorded program and set top box |
CN105323644A (en) * | 2015-10-14 | 2016-02-10 | 四川长虹电器股份有限公司 | Method for checking playback authorization of program recorded by digital television |
-
2019
- 2019-07-26 CN CN201910682550.9A patent/CN112312193A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070250533A1 (en) * | 2006-04-20 | 2007-10-25 | Wei-Hung Huang | Method, Apparatus, System, and Computer Program Product for Generating or Updating a Metadata of a Multimedia File |
US20080199150A1 (en) * | 2007-02-14 | 2008-08-21 | Candelore Brant L | Transfer of metadata using video frames |
US20090304352A1 (en) * | 2008-06-05 | 2009-12-10 | Kabushiki Kaisha Toshiba | Video recording and playback equipment, video recording method, video playback method, and video recording and playback method |
CN102158759A (en) * | 2011-04-22 | 2011-08-17 | 深圳创维数字技术股份有限公司 | Program recording method, playback method of recorded program and set top box |
CN105323644A (en) * | 2015-10-14 | 2016-02-10 | 四川长虹电器股份有限公司 | Method for checking playback authorization of program recorded by digital television |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7979432B2 (en) | Apparatus, computer program product and system for processing information | |
CN1988646B (en) | Method and apparatus for displaying information about broadcasting contents | |
US9788084B2 (en) | Content-object synchronization and authoring of dynamic metadata | |
CN104065979A (en) | Method for dynamically displaying information related with video content and system thereof | |
US20090070850A1 (en) | System and method for searching video signals | |
CN100417214C (en) | Content recording/reproducing apparatus, content recording/reproducing method, and computer program | |
KR20120026101A (en) | Multimedia system providing database of shared text comment data indexed to video source data and related methods | |
CN101179682A (en) | Method for detecting and processing interruptions in scheduled programs and digital recorder | |
CN108429924B (en) | Display device for playing advertisement for replacement and control method thereof | |
US11395018B2 (en) | Information processing apparatus, information processing method, and program | |
US20100098161A1 (en) | Video encoding apparatus and video encoding method | |
US20170094370A1 (en) | Digital video recorder and a method for dynamic management of advertising content on a digital video recorder | |
JP5598539B2 (en) | Information processing apparatus, information processing method, and program | |
JP2006333330A (en) | Data processing method, and apparatus and program | |
CN101803378B (en) | Method and apparatus for generating and accessing metadata in media file format | |
CN103369406A (en) | Image processing apparatus and image processing method | |
CN112312193A (en) | Management method and related device for recorded data of television program | |
CN105847990A (en) | Media file playing method and apparatus | |
US20060078308A1 (en) | Video reproducing apparatus | |
CN104869338B (en) | A kind of audio-video document unloading and search method | |
US20070230895A1 (en) | Processing of scalable compressed video data formats for nonlinear video editing systems | |
US20020133822A1 (en) | Method and system for integrating recorded material with electronic programming guide | |
CN102480636A (en) | Control apparatus and control method for resuming content | |
Dogan et al. | Method for providing live content during playback of recorded streams in personal video recorders | |
CN102231804B (en) | Fault tolerance method supporting PS streaming media file |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20221020 Address after: 83 Intekte Street, Devon, Netherlands Applicant after: VIDAA (Netherlands) International Holdings Ltd. Address before: 266071, room 248, No. 131 East Hongkong Road, Laoshan District, Shandong, Qingdao Applicant before: QINGDAO HISENSE MEDIA NETWORKS Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210202 |