1. Field of the Invention
The present invention relates to management of a file of a recorded program (e.g., a television program broadcast) and, more particularly, to a method and apparatus for editing a recorded program using a virtual file system (VFS) of a device including a storage unit such as a personal video recorder (PVR), and to a file structure.
2. Description of the Background Art
In general, a VCR (Video Cassette Recorder) using a tape medium has been typically used to record analog broadcast signals.
Recently, however, with the advent of digital broadcasting with its many advantages over analog broadcasting, a multitude of new recording mediums, such as a digital VCR, a hard disk drive (HDD) recorder or a recording device using an optical disk, have been introduced. Of them, especially, the HDD recorder has an increased recording capacity of up to scores of giga bytes owing to the recent rapid development of technologies.
In addition, with digital broadcasting having commenced in full scale and digital TV receivers spreading, a recording medium having a new function of digitally storing audio and video information has also appeared, to meet diverse demands of users.
Unlike the VCR (Video Cassette Recorder) holding image signals in a magnetic tape, a personal video recorder (PVR), which is receiving much attention lately, has a hard disk drive as a storing medium in a set-top box or in a TV set and guarantees picture quality without a loss of information although recording and reproducing are performed continuously.
The PVR includes a CPU controlling recording and reproducing of a TV program, a memory chip (ROM) storing an operating system (OS) and reproduction software, and a large capacity hard disk drive, and reproduces a recorded program according to the same file reproduction method as that of a personal computer.
The PVR can randomly receive the latest broadcast reservation by using a telephone line and utilize it for a reserved recording. The procedure for setting the reserved recording is simple, namely, just selecting from a broadcast listing displayed on a screen.
However, since the recorded program can contain unwanted commercial advertisements portions, the digital video recorder typically provides a function allowing the user to easily edit out such unnecessary portions.
As shown in
1. Before a recording is started, existing data blocks are deleted so as to be used for recording a new program.
2. A data storage region of the hard disk drive spanning from a data block from which the edited recording will start to a data block at which the edited recording will be stopped is generated as a new file. The new file corresponds to a file of the portion requested to be edited by the user, which is allocated to the new (edited) program.
3. The data from the next data block following the data block at which the edited recording will stop to a final data block remain as an existing file on the hard disk. The existing file remains to be used when an editing is requested with respect to the same file.
The conventional PVR editing method is quite effective to remove an undesired commercial advertisement from a recorded program, and its editing speed is high.
However, the conventional PVR editing method has the following problems.
First, the previously recorded program file is deleted. Namely, when editing is performed with respect to the recorded program, the existing program is lost and the new program made up of only portions corresponding to the edited regions is created. Thus, the conventional editing method could be usable for deleting the undesired commercial advertisement portions of a recorded program, but because the portions other than the edited regions are deleted, editing cannot be performed subsequently using the original recorded program.
Second, in order to use the program file in a different program, the program file needs to be copied. This puts much load on the hard disk, making use of a hard disk of a limited capacity ineffective.
For example, when a DTV broadcast is recorded as a multimedia in a digital video recorder, it is stored at the size data of about 120 Mb per 1 minute, which means generation of a new program by copying a multimedia file with such a large capacity to edit it inevitably lengthens time required for editing. In addition, while the multimedia file is being copied, much load is generated upon the hard disk of the digital video recorder. Therefore, copying of the multimedia file to edit it is very ineffective.
Third, even after the editing is performed to preserve only a program portion excluding the commercial advertisements on the hard disk, an unnecessary file can remain on the hard disk. For example, assuming that a recording reservation was made and a recording comprising the contents [commercial advertisement+program+commercial advertisement] has been recorded, then the user can select and edit a program region desired to be kept in order to delete the undesired commercial advertisements while reproducing the remaining portion of the recorded program. In this respect, however, a problem arises that a final commercial advertisement portion can still exist on the hard disk which has not been actually used the editing.
Therefore, an object of the present invention is to provide a method and apparatus for editing a recorded program using a virtual file system (VFS) capable of enhancing the efficiency of editing a program file and satisfying users' diverse demands on editing by editing a program file in a personal video recorder (PVR) in such a manner that a program file recorded and stored in a storage unit is divided and virtual files corresponding to each divided part of the program file are generated and managed, and a file structure therefor.
To achieve these and other advantages and in accordance with the purpose of the present invention, as embodied and broadly described herein, there is provided a method for editing a recorded program using a virtual file system (VFS) comprising: dividing a program file recorded in a storage unit based on edition information provided by a user to edit the program; and generating a virtual file mapped to the divided program file based on the edition information.
To achieve the above object, there is also provided an apparatus for editing a recorded program using a virtual file system (VFS) comprising: a storage unit for storing a plurality of recorded or edited program files; an editing unit for dividing an arbitrary program file requested to be edited among the stored program files based on edition information with respect to the program file, and generating virtual files each mapped to the divided parts of the multimedia file, and a management unit for managing the storing and updating of the plurality of virtual files changed corresponding to editing or recording of the program file.
To achieve the above object, there is also provided a file structure comprising: an actual file layer for recording a plurality of actual files, a virtual file layer of a plurality of virtual files mapped to the plurality of actual files, and a virtual file system root layer for managing the plurality of virtual files.
The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings.
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention.
In the drawings:
As shown in
The storage unit 10 can be a hard disk drive (HDD). When the program file stored in the storage unit 10 is recorded, edited or reproduced, a progress status bar can be displayed on a screen. Also, in order to reflect edited content with respect to the program file, an on-screen display (OSD) can be displayed on the screen. For example, a user can select a semi-transparent menu on the OSD screen through key input of a remote controller and edit the program file. In this case, a key input unit of the remote controller, a dialog format on the OSD screen, an OSD font, OSD menu items, an OSD display form, or the like, used for designating an edition section can be designed variably.
As shown in
The virtual files include at least one or more actual files, and actual files can be commonly included in the plurality of virtual files. The user does not need to consider how actual files of a lower layer are constructed.
When a new program is generated through recording or editing of a program in the PVR, new virtual files mapped to the new program (namely, actual files) are generated. When an arbitrary program is deleted, its corresponding virtual files are also deleted, and in this case, only the actual files which belong to the deleted virtual files and are not used by other virtual files are deleted. For example, if a virtual file ‘C’ is deleted, only the actual files ‘D’ and ‘E’, which are not used by other virtual files, are deleted.
As shown in
After the offsets of the recording start point and the offset of the recording stop point are determined, the program file is divided in the following order.
1. The first file ‘A’ is divided into several data blocks, from a data block for starting the program file to a data block before starting recording.
2. The second file ‘B’ is divided into several data blocks, from a data block of starting recording to a data block for stopping the recording.
3. The third file ‘C’ is divided into several data blocks, from a data block following the data block for stopping the recording to a final data block.
Accordingly, the existing actual file belonging to the existing virtual file is divided into actual files A, B and C based on the edition information, and a new virtual file is generated mapped to the actual file ‘B’ according to the offset interval selected by the edition request of the user. For example, with reference to
After dividing the file, information on the new virtual files is updated. In this case, the actual file can be used by several virtual files, so information on the existing virtual files, which have used the actual file which had been divided according to the request for edition, is requested to be updated. For this purpose, in performing editing, information on the file prior to editing must be maintained (stored). After dividing of every file is finished, files are searched from the VFS root, information of the virtual files are all updated, and then, the file change information is deleted.
As shown in
Thereafter, file searching is performed from the VFS root 210 based on the file change information to search for any virtual file which has used the actual file ‘C’ and then file information of any found virtual file is updated.
Finally, a virtual file ‘C’ is generated. In this case, the virtual file ‘C’ includes the actual file ‘C2’ which has been requested by the user to be edited.
In this manner, the VFS does not copy or generate the same program file on the hard disk in editing the program, whereby use of the limited hard disk storage capacity is minimized.
As shown in
As so far described, the method and apparatus for editing a recorded program using the VFS and the file structure in accordance with the present invention have many advantages.
For example, first, by using the VFS, a new program is generated according to edition information while maintaining an original recorded program. Thus, the originally recorded program can be edited into a new program through cutting and merging the file variably according to a subsequent request for editing of it by a user.
Second, quick program file editing is supported because the VFS system does not copy an actual file while editing. Thus, because the editing is performed without copying a large quantity of multimedia file data, loading of to the hard disk drive can be minimized.
Third, management of the program file is simple and easy. In the VFS environment, one virtual file consists of several actual files. Thus, as to each program stored in the PVR, multimedia data can be reproduced, edited and deleted by using one virtual file. For example, when the user requests deletion of a program, the VFS searches for only the actual files which are not commonly used by other virtual files, and then deletes them. Thus, the developer of an upper layer environment does not need to consider how the actual files are constructed.
Fourth, in the VFS environment, one actual file can be used by several virtual files. Namely, when a program file is edited, it is not necessary to repeatedly store the same multimedia file data in the hard disk. Thus, the limited hard disk capacity of the digital video recorder can be effectively used.
As the present invention may be embodied in several forms without departing from the spirit or essential characteristics thereof, it should also be understood that the above-described embodiments are not limited by any of the details of the foregoing description, unless otherwise specified, but rather should be construed broadly within its spirit and scope as defined in the appended claims, and therefore all changes and modifications that fall within the metes and bounds of the claims, or equivalence of such metes and bounds are therefore intended to be embraced by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
19462/2004 | Mar 2004 | KR | national |