This application claims priority from Japanese Patent Application No. 2003-194550 filed on Jul. 9, 2003, the entire contents of which are incorporated herein by reference.
The present invention relates to an editing technique for MPEG-2 stream data where coded digital moving picture data and digital audio data are time-division multiplexed based on a digital moving picture/audio compression standard (Moving Picture Experts Group: MPEG).
To perform edits on moving picture data recorded on a disk medium using a moving picture data recording/reproduction device such as a disk camcorder, deletion of moving picture data in file units or virtual editing (non-destructive editing) using a play list is generally performed. Further, upon actual editing (destructive editing) of file, if the moving picture data is MPEG-2 format data, editing is made merely by unit of recording called GOP (Group Of Pictures). When frame level editing is to be performed, the moving picture data must be duplicated on a PC or editing device and subjected to re-encoding then rewritten on the disk (disclosed in, e.g., Japanese Patent Application laid-open Nos. 08-070422 and 11-313288).
However, unnecessary data exists in recorded data not infrequently, when, for example, a user has forgotten to depress a recording stop button. If a play list is used, reproduction can be made such that unnecessary data seemingly does not exist, however, the information actually exits on the recording medium. Further, in the present circumstances, it is impossible to delete only such unnecessary data as described above. Further, in GOP level actual editing, deletion or the like is performed in a position shifted from a position designated by a user, and upon reproduction, the result of edition is different from that intended by the user. Further, in a case where re-encoding is performed and frame level actual editing is performed, the image quality is degraded.
The present invention has been made in consideration of the above situation, and provides a moving picture data recording/reproduction apparatus for moving picture data on a random-accessible storage medium and moving picture data with a related file group. Upon frame level actual editing, editing by GOP is performed by only updating a file system without changing moving picture data itself. Upon reproduction, the moving data is reproduced in accordance with play list information by frame within a range designated by a user. Further, as moving picture data related files, a moving picture management file, a thumbnail file, a meta data file, a time map information file and the like, are also updated. In this arrangement, frame level actual editing can be performed by merely updating the file system and generating a play list without re-encoding.
To solve the above problem, the video/audio signal editing apparatus of the present invention is a moving picture editing apparatus for processing plural moving picture files respectively including coded moving picture data and play list data indicating a procedure of reproduction of the plural moving picture files recorded on a recording medium, comprising: designation means for designating deletion start position and deletion end position of the moving picture data so as to request deletion of a part of the moving picture data, wherein the designation means being capable of designating the deletion start position and the deletion end position in smaller units than predetermined units related to coding processing on the moving picture data; deletion processing means for, in correspondence with a deletion request from the designation means, deleting the moving picture data from the recording medium in the predetermined units related to the coding processing on the moving picture data; and play list processing means for, in correspondence with the deletion request from the designation means, changing contents of the play list data so as to reproduce the moving picture data to the deletion start position and continuously from the deletion end position.
More particularly, provided is a moving picture editing apparatus for editing moving picture data in MPEG-2 program stream format stored on a random-accessible storage medium, comprising: detection means for detecting an editing designation input to designate a deletion start position and a deletion end position in the moving picture data; deletion means for, if the detection means has detected the editing designation input, deleting data from a GOP immediately after a GOP including the deletion start position to a GOP immediately before a GOP including the deletion end position by updating file management information of the storage medium; and play list generation means for, if the detection means has detected the editing designation input, generating a play list, excluding frames from the deletion start position in the GOP including the deletion start portion and frames before the deletion end position in the GOP including the deletion end position, on the storage medium.
Other features and advantages of the present invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same name or similar parts throughout the figures thereof.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Hereinbelow, preferred embodiments of the present invention will now be described in detail in accordance with the accompanying drawings.
<First Embodiment>
Numeral 106 denotes an external interface (I/F) having an AV terminal for outputting video data stored on the optical disk 105, an AV input terminal, and an IEEE 1394 interface for digital data communication with an external device such as a personal computer. Numeral 107 denotes an optical unit; 108, a CCD as an image sensing device; 109, a driver which controls focusing, zooming, aperture and the like of the optical unit 107; 110, an MPEG coder/decoder which performs MPEG-2 compression coding and decoding; 111, an operation unit having various operation switches and buttons, a dial and the like; and 112, a display unit which displays an image obtained by image sensing or various menus and the like.
In the above construction, when a picture recording switch is turned ON, an image obtained by the CCD 108 is subjected to MPEG-2 coding by the MPEG coder/decoder 110, and the coded stream data is written on the optical disk 105 under the control of the disk controller 104. Note that upon reproduction of already written image, a designated MPEG-2 stream data is read via the disk controller 104, then subjected to decoding by the MPEG coder/decoder 110, and the result of decoding can be displayed on the display unit 112, otherwise, can be edited.
Hereinbelow, partial deletion of MPEG-2 stream data according to the present embodiment will be described. Note that in the following example, the MPEG-2 stream data as the subject of editing is already written on the optical disk 105 (recorded upon image sensing or recorded as an AV signal inputted from an external AV terminal). Further, upon partial deletion processing, it is necessary to designate an MPEG stream to be deleted and designate a deletion start position and a deletion end position in the stream. For example, an editing section is determined by designating an editing start position and an editing end position at desired timings from the operation unit 112 during reproduction. Note that the present invention is not limited to the above setting of the editing section.
In
Next, moving picture related files will be described.
Further, as the thumbnail file, a JPEG thumbnail file in conformity with the DCF standard. The meta data file including camera data, user information and the like has a structure in conformity with the MPEG 7 standard.
Next, a particular example of actual frame level editing will be described.
In a case where a user has requested to delete data from a deletion start point (position 1.3 sec from the top) to a deletion end point (position 9.2 sec from the top) in
To reproduce the actually edited data in correspondence with the deletion start and end points designated by the user, a play list information as shown in
Finally, necessary portions of the related files are updated in correspondence with the partial deletion of the moving picture data. That is, thumbnails generated from the deleted portion are deleted, meta data information related to the deleted portion is deleted, and the time map table is rewritten. If necessary, the moving picture management file is updated.
First, at step S1, a desired moving picture file is designated from the operation unit 12, and when designation of deletion start position and deletion end position has been detected, the process proceeds to step S2, at which data from a GOP immediately after a GOP designated with the deletion start position to a GOP immediately before a GOP designated with the deletion end position is deleted by updating the file system management information. Note that a sector which has held the deleted GOPs is newly rewritably released. Thus the data in a rough intermediate position between the deletion start position and the deletion end position is deleted.
Next, the process proceeds to step S3, at which a play list is generated in accordance with the actually designated deletion start position and the deletion end position. More specifically, the play list is generated so as to reproduce the data from the top of the file to a frame immediately before a frame in the deletion start position, then to reproduce the data from a frame immediately after the deletion end position to the end of the file.
Then the process proceeds to step S4, at which related files (thumbnail images and the like included in the deletion section) are updated in correspondence with the deletion.
Note that if the deletion start position corresponds to a frame to be reproduced at the top of GOP, the deletion is started with the GOP. Further, if the deletion end position corresponds to a frame to be reproduced at the last of GOP, the deletion is made to the GOP.
<Second Embodiment>
Next, an example where the time map information and the play list information are included in the moving picture management file will be described as a second embodiment. In this case, the directory structure is as shown in
Further, as shown in
Note that in the above-described first embodiment, the content of one play list file related to one moving picture data is changed in correspondence with data deletion, however, it may be arranged such that virtual editing can be performed by designating plural moving picture files recorded on a disk with a play list.
In
In accordance with partial deletion of moving picture data file as described above, the contents of the play list data in
For example, in a case where the moving picture data files 1 to 3 are video clips for 10 seconds, 20 seconds and 15 seconds, the play list to reproduce these data from the tops of the files in this order is as shown in
In this status, if a part of the moving picture data file 1 as a 10 second clip is deletion-designated as in the case of
In addition to the above-described embodiments, it is apparent that means for realizing the functions of the above embodiments can be realized as software. That is, the present invention includes a computer program in its scope. Further, as a computer program is generally stored on a computer-readable storage medium such as a CD-ROM and can be executed when the medium is set in a computer and duplicated or installed in the system there, the present invention also includes such computer-readable storage medium.
As described above, according to the present embodiment, in a moving picture data recording/reproduction apparatus where moving picture data is recorded on a disk medium, upon frame level actual editing, editing by GOP is performed by only updating a file system without changing the moving picture data itself, and upon reproduction, the moving picture data is reproduced by frame within a range designated by a user in accordance with play list information. Thus frame level actual editing can be performed only by updating a file system and generating a play list.
As described above, according to the present invention, in response to a request for deletion of intermediate portion of moving picture data stored on a random-accessible storage medium, data corresponding to the request is substantially deleted, and the portion of the deletion request is excluded from the subject of reproduction in precise frame units.
As many apparently widely different embodiments of the present invention can be made without departing from the spirit and scope thereof, it is to be understood that the invention is not limited to the specific embodiments thereof except as defined in the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2003-194550 | Jul 2003 | JP | national |