Processing device and control method thereof
The processing device addresses incomplete additional information files by concurrently repairing both video and additional information files, ensuring complete repair and usability.
Patent Information
- Application Number
- JP2021108055
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2041-06-29
AI Technical Summary
Existing video recording systems fail to ensure that both video and additional information files are properly repaired when power outages or interruptions occur, leading to incomplete additional information files that cannot be used even if the video files are playable.
A processing device that initiates repair processing for both video and additional information files concurrently, ensuring the additional information file is repaired before completing the video file repair, thereby preventing the need for separate repairs.
Ensures that both video and additional information files are fully repaired, reducing user turn counts and maintaining the usability of additional information files alongside playable video files.
Smart Images

Figure 0007767043000001 
Figure 0007767043000002 
Figure 0007767043000003
Abstract
Description
[Technical Field]
[0001] The present invention relates to a processing device that processes a moving image file and an associated additional information file, and more particularly to a processing device that repairs the moving image file and the additional information file. [Background technology]
[0002] In recent years, the rise of social networking services (SNS) has created a need for broadcasters, news agencies, and other news sites to deliver accurate information more quickly than ever before. Therefore, video processing devices such as digital still cameras and digital video cameras can utilize additional information files, which contain not only video but also various metadata about the video file, to deliver more timely news coverage more quickly and easily. For example, various meta-information such as the video format and recording length can be recorded along with the captured video. Furthermore, communication between a mobile device and a digital video camera allows for recording of coverage information such as the title and location of the coverage in the additional information file at the reporting site. Additional information files are used, for example, to more easily search for desired video files on a video file server. By viewing the various meta-information about the video file, users can learn the format and recording length of the video file.
[0003] In Patent Document 1, when video data and additional information each reach a predetermined data volume in units of erasure blocks on a recording medium, they are temporarily stored in a media buffer and then written to the media as a single file in the order in which they are temporarily stored. However, when recorded as a single file, the additional information cannot be accessed unless the video file is parsed. Therefore, it has been proposed to write the additional information file in the versatile XML (Extensible Markup Language) format as a separate file from the video file, and record the additional information file associated with the video file so that the additional information can be easily viewed and used to search for video files. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Laid-Open No. 2011-166542 Summary of the Invention [Problem to be solved by the invention]
[0005] Since video recording length information needs to be written to the video file and the additional information file, if some kind of problem occurs during recording, such as a power outage, the recording length information cannot be written and the recording is interrupted. For video files whose recording has been interrupted, the video file must be repaired using a video file repair function. In the repair process, the recording length information, which is determined when recording is stopped, is rewritten to both the video file and the additional information file.
[0006] However, if a power outage or other problem occurs while the video file and additional information file are being repaired, the problem is that only the video file is repaired and only the additional information file needs to be repaired. When this happens, the video file can be played normally because it has been repaired, but the additional information file cannot be used properly because it has not been repaired. Furthermore, since repairing the additional information file alone is usually not necessary, it is not possible to repair the additional information file alone. Therefore, even if the video file has been repaired, it must be repaired again to repair the additional information file, which increases the user's turn count.
[0007] In view of the above-mentioned problems, the present invention aims to provide a processing device that, when performing repair processing on a video file and an additional information file, does not result in a situation where only the additional information file needs to be repaired even though the repair of the video file has been completed. [Means for solving the problem]
[0008] In order to achieve the above object, the processing apparatus of the present invention comprises: The video file repair system includes a video file repair means for repairing a video file, and an additional information file repair means for repairing an additional information file related to the video file, and is characterized in that after the video file repair means starts repair processing of the video file but before the video file repair processing is completed, the additional information file repair means starts repair processing of the additional information file related to the video file, and after the repair processing of the additional information file is completed, the video file repair processing by the video file repair means is completed. [Effects of the Invention]
[0009] According to the present invention, even if a problem such as a power outage occurs when performing repair processing on a video file and an additional information file, a processing device can be provided that prevents a situation in which only the additional information file needs to be repaired even though the repair of the video file has been completed. [Brief explanation of the drawings]
[0010] [Figure 1] Block diagram of digital video camera 100 [Figure 2] Block diagram of mobile terminal 200 [Figure 3] 1 is a flowchart showing a recording process according to a first embodiment; [Figure 4] 1 is a flowchart showing a restoration process according to a first embodiment; [Figure 5] FIG. 1 is a diagram showing the structure of a repair file in the first embodiment; [Figure 6] Diagram showing the structure of the additional information file [Figure 7] 10 is a flowchart showing a recording process in the second embodiment. [Figure 8] 10 is a flowchart showing a restoration process according to a second embodiment. [Figure 9] FIG. 10 is a diagram showing the structure of repair data in the second embodiment. DETAILED DESCRIPTION OF THE INVENTION
[0011] First Embodiment The processing device of the present invention will be described using a digital video camera as an example. Fig. 1 is a block diagram of a digital video camera 100. In the example shown below, a mobile terminal 200 that transmits an additional information file to the digital video camera is also included.
[0012] 1, the following are connected to a control unit 10: an image compression / decompression unit 11, an imaging unit 12, an image processing unit 13, a video file repair unit 14, an additional information file repair unit 15, a ROM 16, a RAM 17, a removable recording medium I / F unit 18, an operation unit 20, a display unit 21, a related file determination unit 22, a wireless communication unit 23, and a repair control unit 24. The control unit 10 and each unit can exchange data with each other.
[0013] A removable recording medium 19 for recording image data can be attached to the digital video camera 100. The digital video camera 100 has an interface, a recording medium I / F unit 18, for connecting to the removable recording medium 19. The recording medium I / F unit 18 has a slot into which a removable recording medium 19, such as a memory card, can be inserted, and is communicatively connected to the removable recording medium 19 attached to the slot. FIG. 1 illustrates an example in which the removable recording medium 19 is attached to the recording medium I / F unit 18. Although the digital video camera 100 in FIG. 1 uses a removable recording medium 19, it may be a non-removable recording medium built into the digital video camera 100. Although the digital video camera 100 in FIG. 1 is described as having a single removable recording medium and recording image data to the single recording medium, it may also be configured to be able to attach multiple removable recording media and record image data to multiple recording media.
[0014] The control unit 10 is a system control unit that controls the overall system of the digital video camera 100 and is composed of one or more processors. The control unit 10 reads and executes programs recorded in the ROM 16 to control each unit and realize the processing of the flowcharts described below. The ROM 16 is a non-volatile storage medium that stores the programs executed by the control unit 10. The RAM 17 is a volatile storage unit used as a work memory for the control unit 10. The RAM 17 also temporarily stores image data captured by the imaging unit 12 and processed by the image processing unit 13, image data read from the removable recording medium 19, and the like. The RAM 17 is also used as a VRAM for compressing or decompressing image data in the image compression / decompression unit 11 and for displaying image data on the display unit 21. The RAM 17 is also used as a RAM for temporarily storing not only image data captured by the imaging unit 12 but also additional information to be recorded in association with the image data.
[0015] The imaging unit 12 has a photographing lens (including a zoom lens and a focus lens) and an imaging element, and captures an image of a subject under the control of the control unit 10, and acquires image data such as still image data and video data.
[0016] The image processing unit 13 performs pixel interpolation, resizing, and color conversion on the image data captured by the imaging unit 12. The image processing unit 13 also performs arithmetic processing using the captured image data, and the control unit 10 performs various controls (exposure control, auto white balance control, etc.) related to the imaging by the imaging unit 12 based on the obtained arithmetic results.
[0017] The image compression / expansion unit 11 compresses image data that has been image-processed by the image processing unit 13 and performs expansion processing on image data read from the removable recording medium 19 .
[0018] The video file repair unit 14 performs repair processing on video files that require repair and whose recording processing has not been completed. If the power is momentarily interrupted or the removable recording medium 19 is removed from the recording medium I / F unit 18 during video recording, the recording of the video file cannot be completed normally. For example, information such as the recording length of the video data cannot be written into the video file, resulting in an incomplete video file that requires repair processing. Therefore, the video file repair unit 14 performs repair processing on video files in the removable recording medium 19 that require repair processing.
[0019] As with moving image files, if the power is momentarily interrupted or the removable recording medium 19 is removed from the recording medium I / F unit 18 during moving image recording, the additional information file repair unit 15 will not be able to successfully complete the recording of the additional information file. For example, if recording length information or the like cannot be written into the additional information file, the additional information file will become incomplete and require repair processing. Therefore, the additional information file repair unit 15 repairs the additional information file in the removable recording medium 19 that requires repair processing.
[0020] The operation unit 20 is an operation unit that accepts various operations from the user, including a power switch for supplying power to the digital video camera 100, a recording start button, a repair start button, etc. If the operation unit 20 includes a touch panel, the control unit 10 can detect user operations on the touch panel. The touch panel may be any of various types, such as a resistive film type, a capacitance type, a surface acoustic wave type, an infrared type, an electromagnetic induction type, an image recognition type, or an optical sensor type.
[0021] The display unit 21 is a display that displays various setting states, displays images captured by the imaging unit 12 as live images, and displays images read and played back from the removable recording medium 19, based on the control of the control unit 10. It may be a display within a peer-type finder or a vari-angle liquid crystal monitor.
[0022] The related file determination unit 22 is a determination unit that determines whether a video file and an additional information file in a removable recording medium 19 attached to the recording medium I / F unit 18 are related to each other by determining whether the file names excluding the extensions match.
[0023] Under the control of the control unit 10, the wireless communication unit 23 wirelessly transmits and receives data to and from external devices such as the mobile terminal 200, an external camera, and a personal computer. The digital video camera 100 can transmit setting information, operation information, live images, captured images, and the like. The digital video camera 100 can also receive commands for operating the digital video camera 100 and additional information to be recorded along with image data from external devices. The repair control unit 24 controls the repair process of the video file by the video file repair unit 14 and the repair process of the additional information file by the additional information file repair unit 15. Specifically, when there is a video file that needs to be repaired because recording length information, etc., could not be written as described above, the repair control unit 24 controls the repair process of the video file that needs to be repaired and the repair process of the additional information file that needs to be repaired because recording length information, like the video file, could not be written. When the repair control unit 24 receives a video file repair instruction from the user via the operation unit 20, it controls the video file repair unit 14 and the additional information file repair unit 15 to repair the video file and additional information file that need to be repaired in the removable recording medium 19. First, the repair control unit 24 instructs the video file repair unit 14 to start video file repair processing, and temporarily stores the header of the repaired video file, including recording length information, in RAM 17. Next, before completing the video file repair processing, the repair control unit 24 instructs the additional information file repair unit 15 to repair the additional information file. Once the additional information file repair processing is complete, the video file repair unit 14 writes the video file header stored in RAM 17 to the removable recording medium, thereby completing the video file repair processing. The repair processing will be described in detail later with reference to the flowchart of FIG. 4.
[0024] Although the control unit 10 and the repair control unit 24 have been described as being separate structures, the repair control unit 24 is actually part of the control unit 10, and performs control based on a program read from the ROM 16. Furthermore, the video file repair unit 14 and the additional information file repair unit 15 may also be configured so that the repair control unit 24 (control unit 10) executes the functions of the video file repair unit 14 and the additional information file repair unit 15, rather than being separate structures.
[0025] 2 is a block diagram of mobile terminal 200. The following components are connected to control unit 25: wireless communication unit 26, ROM 27, RAM 28, operation unit 29, and display unit 30. Control unit 25 and each component can exchange data with each other.
[0026] The control unit 25 is a system control unit that controls the overall system of the mobile terminal 200. The control unit 25 controls each component by loading a program recorded in the ROM 27 into the RAM 28 and executing the program, thereby executing the flowcharts described below. The ROM 27 is a non-volatile recording medium that stores the program executed by the control unit 25. The RAM 28 is a volatile recording medium that is used as a work memory for the control unit 25.
[0027] The wireless communication unit 26 transmits and receives data to and from external devices such as an external camera (digital video camera 100) or a personal computer via wireless communication under the control of the control unit 25. It is possible to receive data such as setting information and operation information for the digital video camera 100, live view images, and captured images. It is also possible to transmit to the digital video camera 100 commands for operating the digital video camera 100 and additional information to be recorded together with image data.
[0028] The operation unit 29 is an operation unit that accepts operations from the user, such as a power switch for supplying power to the mobile terminal 200. Note that the operation unit 29 includes a touch panel, similar to the operation unit 20.
[0029] The display unit 30 is a display that displays various setting states, data received from an external device via the wireless communication unit 26, and the like, under the control of the control unit 25.
[0030] Flowcharts for this embodiment are shown in Figures 3 and 4. Each process in the flowcharts of Figures 3 and 4 is realized by the control unit 10 (or repair control unit 24) constituting the digital video camera 100 reading out a program stored in the ROM 16, expanding it in the RAM 17, and executing the program.
[0031] 3 is a flowchart showing the processing steps when recording a video file and an additional information file. When the user operates the video recording start button included in the operation unit 20, the digital video camera 100 enters a video recording start state, and the processing of FIG. 3 begins.
[0032] When the video recording start button is operated, in S301, the control unit 10 creates a repair file that stores data necessary for repair processing in case the recording of the video file cannot be completed successfully, and writes the repair file to the removable recording medium 19.
[0033] Here, the repair file 500 will be described with reference to FIG. 5. The repair file includes product information 501, video information 502, audio format information 503, and video file (data) metadata 504, which should be recorded in the header of the video file. The product information 501 is information about the digital video camera 100 that captured the video data. The video information 502 is information about video capture settings such as the frame rate of the video data, and the audio format information 503 is information about the format of the audio data to be recorded together with the video data (image data). The metadata 504 is information such as the start date and time of recording the video file. The video file of this embodiment is an MP4 file, and the product information 501, video information 502, audio format information 503, and metadata 504 are not recorded when recording of the video file begins. Then, when recording of the video data (video and audio) is completed, a header including the product information 501, video information 502, audio format information 503, metadata 504, and recording length information about the length of the video data is recorded in the video file. Therefore, if a momentary power interruption or the like occurs while video data is being recorded, the product information 501, video information 502, audio format information 503, and metadata 504 will not be recorded, making it impossible to perform repair processing. Therefore, in this embodiment, when starting to record a video file, a repair file including the product information 501, video information 502, audio format information 503, and metadata 504 is recorded on the removable recording medium 19 as a file separate from the video file. If a momentary power interruption or the like occurs while video data is being recorded and repair processing becomes necessary, the video file repair unit 14 can perform repair by using the repair data (501 to 504) included in this repair file.
[0034] Next, in S302, the control unit 10 determines whether to record an additional information file in association with the video file. A case in which it is determined that an additional information file is to be recorded occurs, for example, when the user sets the additional information file to be recorded via the operation unit 20. If it is determined that the additional information file is to be recorded, the process proceeds to S303, and if it is determined that the additional information file is not to be recorded, the process proceeds to S305.
[0035] In S303, control unit 10 determines whether an additional information file has been input from portable terminal 200 via wireless communication unit 23. A case in which it is determined that an additional information file has been input is, for example, when an additional information file has been received from portable terminal 200 via wireless communication unit 23 before video shooting starts. If it is determined that an additional information file has been input, the process proceeds to S304, and if it is determined that an additional information file has not been input, the process proceeds to S313.
[0036] In S304, the control unit 10 generates an additional information file shown in FIG. 6 from the additional information file received from the mobile terminal 200 via the wireless communication unit 23 and recording start information including a recording format determined at the start of recording. The additional information file in this embodiment is a file written in XML (Extensible MarkUp Language) format. The additional information is written in NewsML-G2 format, which is standardized by the IPTC (International Press Telecommunications Council). As shown in FIG. 6, the additional information file includes information such as a clip title, shooting information, photographer, keywords, category, genre, date and time information, language information, clip file name, clip recording length, clip identification information, and file format. However, the clip recording length, i.e., the length of the video data (recording length), is determined at the end of recording and is therefore not determined at the start of recording. Therefore, in S304, the clip recording length is not recorded, or the recording length is set to 0 or blank, and an additional information file is generated and recorded on the removable recording medium 19.
[0037] In S313, the control unit 10 generates an additional information file not from the information file input from the mobile terminal but from the additional information file recorded in ROM 16 and recording start information including the recording format determined at the start of recording, and writes the additional information file to the removable recording medium 19. In S313, as in S304, the recording length of the clip is not recorded or the recording length is set to 0, and an additional information file is generated and recorded to the removable recording medium 19.
[0038] In S305, the control unit 10 writes the moving image data generated using the image compression / decompression unit 11, the imaging unit 12, and the image processing unit 13 to the removable recording medium 19. In S306, the control unit 10 counts up the recording length of the moving image data by the number of frames written in S305.
[0039] In S307, the control unit 10 determines whether the moving image recording has ended. A case in which the moving image recording has ended is when, for example, an instruction to stop recording of moving image data is given by pressing a recording stop button included in the operation unit 20, and recording of the moving image data captured up until the recording stop instruction is input onto the removable recording medium 19 is completed. If the control unit 10 determines that the moving image recording has not ended, the process proceeds to S305, and if the control unit 10 determines that the moving image recording has ended, the process proceeds to S308.
[0040] In S308, the control unit 10 determines whether an additional information file associated with the video data being written to the removable recording medium 19 in S305 exists. A case in which it is determined that an additional information file exists is, for example, when an additional information file exists whose file name, excluding the extension, matches that of the video data being written to the removable recording medium 19 in S305. Alternatively, if it is determined in S302 that an additional information file should be recorded, this means that an additional information file exists, so the control unit 10 may determine whether to record the additional information file as in S302, or may store the determination result of S302. If it is determined that an additional information file exists, the control unit 10 proceeds to S309, and if it is determined that an additional information file does not exist, the control unit 10 proceeds to S311.
[0041] In S709, the control unit 10 reads out the additional information file written to the removable recording medium 19 in S304 or S313 into RAM 17. Then, the control unit 10 updates the additional information file on RAM 17 so that the recording length counted up in S306 is stored as the recording length of the clip in the additional information file shown in Fig. 6. Note that the recording length counted up in S306 is the number of frames of moving image data recorded in the moving image file, and therefore becomes recording length information indicating the length of the moving image data.
[0042] In S310, the control unit 10 writes the additional information file stored in the RAM 17, which was updated in S309, to the removable recording medium 19.
[0043] In S311, the control unit 10 generates a header of the moving image file from various information stored in the RAM 17 and writes it to the removable recording medium 19.
[0044] In S312, the control unit 10 deletes the repair file written to the removable recording medium 19 in S301 from the removable recording medium 19. When the process of S312 ends, the recording of the moving image file and additional information file ends.
[0045] FIG. 4 is a flowchart showing the processing steps for repairing a video file and an additional information file. When a user operates a repair start button included in the operation unit 20, the control unit 10 (repair control unit 24) starts the processing shown in FIG. 4. In this embodiment, the user selects a video file to be repaired and then operates the repair start button. In FIG. 4, the repair process is performed on the video file to be repaired selected by the user. However, the control unit 10 (repair control unit 24) may identify a video file that needs repair without the user selecting the video file to be repaired, and perform the processing shown in FIG. 4 on the video file identified as the video file to be repaired. In the digital video camera 100 of this embodiment, repair processing is performed on the video file and additional information file by selecting a video file to be repaired and instructing the repair process; it is not possible to instruct repair processing on only the additional information file.
[0046] First, in S400, the repair control unit 24 causes the video file repair unit 14 to start repair processing of the video file. Then, the video file repair unit 14 reads from the recording medium a repair file that corresponds to the video file to be repaired and was recorded in S301 during video recording (video shooting).
[0047] Next, in S401, the moving image file repair unit 14 reads one frame of moving image data from the moving image file to be repaired in the removable recording medium 19.
[0048] In S402, the video file repair unit 14 determines whether the one frame of video data read in S401 is normal video data (valid video data). A case in which it is not determined to be normal is, for example, when one frame of video data cannot be read. If the video file repair unit 14 determines that the data is normal, the process proceeds to S411, and if it determines that the data is not normal, the process proceeds to S403.
[0049] In S411, the video file repair unit 14 increments the recording length (number of frames) by one frame to count the number of frames of normal video data. In this embodiment, the recording length is incremented by one frame, but it may also be incremented by a certain unit, such as by adding for each Group Of Pictures.
[0050] In S412, the video file repair unit 14 determines whether the one frame of video data read in S401 is the last frame of the video file. It is determined to be the last frame of the video file when, for example, the value obtained by adding the size of one frame to the file size that has already been read exceeds the video file size. If the video file repair unit 14 determines that it is the last frame, it proceeds to S403. If it determines that it is not the last frame, it proceeds to S401, and executes the processes from S401 onwards for the next frame.
[0051] In S403, the video file repair unit 14 generates a header of the video file to be repaired using the repair file read in S400 and the recording length (number of frames) of the normal video data incremented in S411. Specifically, the video file repair unit 14 generates the header of the video file by adding (updating) the recording length (number of frames) of the normal video data to the storage area for the recording length of the data of the repair file read in S400.
[0052] In S404, the video file repair unit 14 stores the header of the video file generated in S403 in the RAM 17. At this point, the repair control unit 24 temporarily stores the header generated in S403 by the video file repair unit 14 in the RAM 17 without recording it on the removable recording medium 19.
[0053] In S405, the repair control unit 24 determines, using the related file determination unit 22, whether an additional information file related to the video file to be repaired exists in the removable recording medium 19. As described above, the related file determination unit 22 determines that an additional information file exists if an additional information file exists whose file name, excluding the extension, matches that of the video file to be repaired. If it is determined that the additional information file exists, the repair control unit 24 proceeds to S406 and performs repair processing on the additional information file, and if it is determined that the additional information file does not exist, the repair control unit 24 proceeds to S408 and performs repair processing on the video file.
[0054] In S406, the additional information file repair unit 15 reads from the removable recording medium 19 the additional information file that has been identified as being related to the moving image file by the related file determination unit 22. Then, using the read additional information file and the recording length information of the header of the moving image file that was stored in RAM 17 in S404, the additional information file repair unit 15 generates a repaired additional information file by storing the recording length of the header of the moving image file in the recording length of the clip in the additional information file.
[0055] In S407, the additional information file repair unit 15 writes the additional information file generated in S406 to the removable recording medium 19. When writing, the additional information file repair unit 15 overwrites the original (pre-repair) additional information file. In this way, in S406 and S407, the additional information file repair process is performed by the additional information file repair unit 15, and in S407 the repaired additional information file is recorded on the removable recording medium 19, thereby completing the additional information file repair process.
[0056] In S408, the moving image file repair unit 14 deletes the moving image data from the frame determined to be abnormal in S402 and subsequent frames from the moving image file in the removable recording medium 19.
[0057] In S409, the video file repair unit 14 writes the header of the video file stored in RAM 17 in S404 as the header of the video file to be repaired on the removable recording medium 19. In S409, the header generated by the repair process is recorded on the removable recording medium 19 as the header of the video file, and thereby the video file on the removable recording medium 19 is repaired.
[0058] In S410, the moving image file repair unit 14 deletes the repair file in the removable recording medium 19 from the removable recording medium 19. This process completes the repair process for the moving image file.
[0059] As described above, in the repair process for a moving image file and an additional information file of this embodiment, first, in S400, the moving image file repair unit 14 starts repairing the moving image file. Then, if an additional information file is recorded on the recording medium 19, even if a header for the moving image file is generated by the repair process for the moving image file, it is not immediately recorded in the moving image file, and the additional information file repair unit 15 executes repairing the additional information file (S406, S407). In other words, the repair process for the moving image file is started, and before the repair process for the moving image file is completed, the additional information file repairing process is executed. Then, after the repair process for the additional information file is completed, the header generated by the repair process for the moving image file is recorded on the recording medium 19, and the moving image file is repaired. Then, since the repair file in which the data required for the repair process is recorded is no longer necessary, it is deleted from the recording medium, and the repair process for the moving image file is completed.
[0060] In this embodiment, the additional information file repair process requires information about the recording length of the video data in the repaired video file, so the video file repair process is started first. The additional information file repair process can be executed after the video file repair process is completed. However, if the power is interrupted momentarily during the additional information file repair process, the video file will be repaired and normal playback will be possible, but the additional information file will not be repaired. Therefore, in this embodiment, the video file repair process is completed after the additional information file repair process is completed, so that when the video file is repaired, the additional information file will also be repaired.
[0061] In this embodiment, a header for the moving image file is generated in S403, the generated header is stored in RAM 17 in S404, and the additional information file is repaired before the generated header is recorded in the moving image file. However, instead of generating a header and recording it in RAM, only information about the recording length may be stored in RAM, and the header may be generated as in S404 after repair processing for the additional information file has been performed.
[0062] <Second embodiment> The digital video camera 100 of the second embodiment has the same basic configuration as the digital video camera 100 of the first embodiment, and therefore a description thereof will be omitted. In the first embodiment, a case where a moving image file in a format such as MP4 is used was described. In the second embodiment, a case where a moving image file in a format such as an MXF file is used will be described.
[0063] 7 and 8 show flowcharts of the processing of the digital video camera 100 in this embodiment. Each process in the flowcharts of Fig. 7 and 8 is realized by the control unit 10 reading out a program stored in the ROM 16, expanding it in the RAM 17, controlling each unit, and performing various arithmetic processing.
[0064] Figure 7 is a flowchart showing the processing steps when recording a video file and an additional information file. The same processes as those in the flowchart of Figure 3 of the first embodiment are assigned the same numbers. As in the first embodiment, when the user operates the video recording start button included in the operation unit 20, the digital video camera 100 enters a video recording start state, and the recording processing of Figure 7 begins.
[0065] First, in S700, the control unit 10 writes repair data, which stores data necessary for repair processing, to the moving image file in the removable recording medium 19 in case recording of the moving image file does not complete normally.
[0066] FIG. 9 shows the structure of a video file being recorded in this embodiment. In a video file (MXF file) of this embodiment, when recording starts, repair data is recorded in the header of the video file, followed by the captured video data. The repair data is basically the header of the video file, but the information to be recorded in the header includes information to be recorded when recording of the video data is completed (the recording length of the video data). Therefore, when recording of a video file starts, data with some information (recording length) not recorded is recorded, rather than a complete header. In this embodiment, the header of this incomplete video file recorded on removable recording medium 19 when recording starts is called repair data.
[0067] Next, the control unit 10 executes S302, S304, and S313. These processes are the same as those in the first embodiment.
[0068] In S701, the control unit 10 adds information about the moving image file for which recording has started to the management information file recorded on the removable recording medium 19, and writes the management information file to the removable recording medium 19. Note that the management information file is a file different from the moving image file and the additional information file.
[0069] Next, the control unit 10 executes the processes of S305 to S311. These processes are the same as those in the first embodiment.
[0070] In S702, the control unit 10 generates a header for the moving image file that includes the recording length (number of frames) of the moving image data, and records it as the header for the moving image file. This process replaces the incomplete header that did not include recording length information at the start of recording with a header that includes recording length information, and recording of the moving image file is completed.
[0071] In S703, the control unit 10 updates the recording length information in the moving image file information of the management information file, writes it to the removable recording medium 19, and ends the recording process of the moving image file and additional information file.
[0072] Fig. 8 is a flowchart showing the processing steps when repairing a video file and an additional information file. Since the basic processing is the same as in the first embodiment, the same processes as in the flowchart of Fig. 3 of the first embodiment are assigned the same numbers and explanations are omitted. As in the first embodiment, when a user operates a repair start button included in the operation unit 20, the control unit 10 (repair control unit 24) starts the processing of Fig. 8.
[0073] First, in S800, the repair control unit 24 causes the video file repair unit 14 to start repair processing of the video file. Then, the video file repair unit 14 reads from the removable recording medium 19 the repair data in the video file to be repaired that was recorded in S700 when the video was recorded (when the video was shot). This process corresponds to the process of S400 in Fig. 4, but in this embodiment, the repair data is read from the video file to be repaired because it is recorded in the video file to be repaired.
[0074] Next, the repair control unit 24 and the video file repair unit 14 execute the processes of S401, S402, S411, and S412. The contents of these processes are the same as the processes in Fig. 4. Also, if it is determined in S402 that the video data is not normal, or if it is determined in S412 that the video data is the last video data in the video file, the process proceeds to S801.
[0075] In S801, the video file repair unit 14 generates a header for the video file to be repaired by using the repair data read in S800 and the recording length (number of frames) of the normal video data incremented in S411. This process corresponds to the process of S403 in FIG. 4.
[0076] In S802, the video file repair unit 14 stores the video file generated in S801 in the RAM 17. This process corresponds to the process of S404 in FIG.
[0077] Thereafter, the repair control unit 24 executes the process of S405, and if an additional information file exists, the additional information file repair unit 15 executes repair processes of S406 and S407 for the additional information file. Then, the video file repair unit 14 executes the process of S408. The processes of S405 to S408 are the same as those in FIG. 4.
[0078] Next, in S803, the video file repair unit 14 writes the header of the video file stored in RAM 17 in S802 as the header of the video file to be repaired on the removable recording medium 19. Then, the repair data is deleted from the video file. This process results in the video file in the removable recording medium 19 being repaired. Note that when writing the header of the repaired video file, not only is the header recorded, but the video file extension is also changed to an extension indicating that it has been repaired.
[0079] Next, in S804, the video file repair unit 14 updates the information of the video file to be repaired in the management information file recorded on the removable recording medium 19. Specifically, the recording length information of the video file to be repaired in the management information file is updated with the recording length of the normal video data counted in S411. When the processing of S804 ends, the repair of the video file and additional information file ends.
[0080] As described above, in the second embodiment, the recording format of the video file and repair data is different from that of the first embodiment, but repair processing of the video file and additional information file can be performed in the same way as in the first embodiment.
[0081] <Other embodiments> While the present invention has been described in detail above based on preferred embodiments thereof, the present invention is not limited to these specific embodiments, and various forms within the scope of the gist of the present invention are also included in the present invention. Parts of the above-described embodiments may be combined as appropriate.
[0082] For example, the recording process of the first embodiment and the recording process of the second embodiment may be switched depending on the setting of the video file format to be recorded, or the repair process of the first embodiment and the repair process of the second embodiment may be switched depending on the format of the video file to be repaired. That is, for the recording process, the control unit 10 determines the recording format of the video file, and if the MP4 format is set, executes the process of FIG. 3, and if the XMF format is set, executes the process of FIG. 7. For the repair process, the control unit 10 determines the recording format of the video file to be repaired, and if the file is an MP4 file, executes the process of FIG. 4, and if the file is an MXF file, executes the process of FIG. 8.
[0083] The present invention also includes a case where a software program that realizes the functions of the above-described embodiments is supplied from a recording medium directly or via wired / wireless communication to a system or device having a computer that can execute the program, and the program is executed.
[0084] Therefore, the program code itself that is supplied to and installed on a computer (one or more processors or circuits) to implement the functional processing of the present invention also embodies the present invention. In other words, the computer program itself for implementing the functional processing of the present invention is also included in the present invention.
[0085] In this case, as long as it has the functionality of a program, the form of the program does not matter, such as object code, a program executed by an interpreter, or script data supplied to an OS.
[0086] The recording medium for supplying the program may be, for example, a hard disk, a magnetic recording medium such as a magnetic tape, an optical / magneto-optical storage medium, or a non-volatile semiconductor memory.
[0087] Another method of supplying the program is to store the computer program forming the present invention in a server on a computer network, and have connected client computers download the computer program.
Claims
1. a video file repair means for repairing a video file; additional information file repair means for repairing additional information files associated with the video file; and after the video file repair means has started repairing the video file and before the video file repairing process is completed, the additional information file repair means starts repairing the additional information file related to the video file; After completing the repair process for the additional information file, the repair process for the video file by the video file repair means is completed. A processing device characterized by:
2. the video file repair means determines the length of the valid video data by determining whether the video data in the video file is valid video data that can read a predetermined unit of video data, generates a header for the video file using information on the length of the valid video data, and repairs the video file by recording the generated header as the header of the video file; the additional information file repairing means repairs the additional information file using information about the length of the valid video data.
2. The processing device according to claim 1.
3. the additional information file repairing means, after determining the length of valid video data in the video file by the video file repairing means, repairs the additional information file using information on the length of the valid video data; The processing device described in claim 2, characterized in that the video file repair means records a header generated using information on the length of the valid video data as the header of the video file after the additional information file repair means has completed repair of the additional information file.
4. The processing device described in claim 2 or 3, characterized in that the video file repair means records a header generated using information on the length of the valid video data as the header of the video file after deleting invalid video data from the video file.
5. The video file repair means repairs a video file recorded on a recording medium, the additional information file repair means repairs the additional information file associated with the video file, which is recorded on the recording medium; 5. The processing apparatus according to claim 2, wherein the processing apparatus is a processing apparatus for processing a substrate.
6. A storage unit for temporarily storing data is provided, The video file repair means temporarily stores information about the length of the valid video data in the storage unit, the additional information file repair means reads the additional information file from the recording medium, and records an additional information file obtained by adding information about the length of the valid video data stored in the storage unit to the read additional information file, thereby repairing the additional information file; the video file repair means, after the additional information file repair means has completed repair of the additional information file, records a header including information on the length of the valid video data stored in the storage unit as a header of the video file on the recording medium; 6. The processing device according to claim 5.
7. The processing device according to any one of claims 2 to 6, characterized in that the video file repair means repairs the video file based on repair data recorded at the start of recording of the video file and information on the length of the valid video data.
8. The processing device according to claim 7, characterized in that the video file repair means records a header generated using information on the length of the valid video data as a header of the video file, and then deletes the repair data.
9. 9. The processing device according to claim 7, wherein the video file is an MP4 file, and the repair data is recorded as a file different from the video file.
10. 9. The processing device according to claim 7, wherein the moving image file is an MXF file, and the repair data is recorded within the moving image file.
11. The video file repair means includes: If the video file to be repaired is an MP4 file, repair the video file based on repair data included in a file other than the video file and information on the length of the valid video data; If the video file to be repaired is an MXF file, the video file is repaired based on repair data included in the video file and information on the length of the valid video data.
9. The processing device according to claim 7 or 8.
12. 12. The processing device according to claim 1, further comprising: a specifying unit for specifying the additional information file related to the moving image file.
13. 13. The processing device according to claim 12, wherein said specifying means specifies, as related files, a moving image file and an additional information file whose file names, excluding the extension, match.
14. 14. The processing device according to claim 1, wherein the additional information file is a file written in XML (Extensible MarkUp Language) format.
15. 15. The processing device according to claim 1, wherein the additional information file is in a NewsML-G2 format standardized by IPTC (International Press Telecommunications Council).
16. A control method for a processing device having a moving image file repair means for repairing a moving image file and an additional information file repair means for repairing an additional information file related to the moving image file, comprising: and after the video file repair means has started repairing the video file and before the video file repairing process is completed, the additional information file repair means starts repairing the additional information file related to the video file; After completing the repair process for the additional information file, the repair process for the video file by the video file repair means is completed. A method for controlling a processing apparatus comprising:
17. A program for causing a computer to function as each of the means of the processing device according to any one of claims 1 to 15.
18. A program for causing a computer to execute the control method for a processing device according to claim 16.
Citation Information
Patent Citations
Recording device
JP2010183247A
Recording apparatus, imaging and recording apparatus, recording method, and program
JP2011166542A
Recording device, imaging recording device, recording method, and program
JP2012080361A
Information processing unit, moving image generator, control method, program, and restoration method
JP2013258655A