Imaging device

The imaging device facilitates the restoration of corrupted video files by analyzing and generating playable files from metadata, enabling user-controlled repair processes to maintain high-quality image capturing.

JP2024154102AInactive Publication Date: 2024-10-30PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD

Patent Information

Application Number
JP2023067732
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-18
Publication Date
2024-10-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing imaging devices face challenges in restoring video files that are incomplete due to interruptions during recording, such as power failures, resulting in corrupted files that cannot be played back without the necessary management information.

Method used

The imaging device includes an imaging section, control section, and output section to analyze and repair damaged video files by generating a playable video file from the remaining metadata, allowing users to selectively repair corrupted files based on their operations, thereby updating the video during the repair process.

Benefits of technology

This approach enables easy restoration of video files by allowing users to manage and prioritize repairs, reducing processing load and ensuring high-quality image capturing operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024154102000001_ABST
    Figure 2024154102000001_ABST
Patent Text Reader

Abstract

To provide an imaging device that makes it easy to repair a video file.SOLUTION: An imaging device includes an imaging unit, a control unit, and an output unit. The imaging unit captures an image of a subject to generate imaging data. The control unit executes repair processing for generating a video file by sequentially analyzing information to be used to play a video from a damaged file having a defect as a vide file that can play a video indicated by the imaging data (S7A). The output unit outputs information to be presented to a user. Based on information analyzed in the repair processing, the control unit outputs, at the output unit, a part of a video that corresponds to the information analyzed in the repair processing during a period of time from start of the repair processing for the damaged file until the repair processing is completed (S61, S62).SELECTED DRAWING: Figure 18
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an imaging device that records a moving image file on a recording medium. [Background technology]

[0002] Patent Document 1 discloses a digital camera that repairs or creates management information required for playing video files that include variable-length coded data. A video file in MP4 format includes a Movie Box (mооv) that stores management information in addition to a Media Data Box (mdat) that stores coded video and audio data, and in generating a video file, the mооv is created after the mdat is completed. For this reason, if the generation process of a video file is interrupted due to mechanical trouble or the like, the video file may not include the mооv, and in this case, the video file cannot be played even if the coded data exists.

[0003] The digital camera in Patent Document 1 generates a dummy moov that includes information about the generation rules used to generate a movie file, then starts movie shooting processing, and includes the dummy moov in the movie file before the mdat is completed. This makes it possible to restore the official moov by referencing the dummy moov and analyzing the remaining mdat, even if the generation of the movie file is interrupted. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2013-258655 A Summary of the Invention [Problem to be solved by the invention]

[0005] The present disclosure provides an imaging device that can facilitate repair of video files. [Means for solving the problem]

[0006] In the present disclosure, an imaging device includes an imaging unit, a control unit, and an output unit. The imaging unit captures an image of a subject to generate imaging data. The control unit executes a repair process to generate a video file by sequentially analyzing information used to play the video from a corrupted file having a loss that can play a video indicated by the imaging data. The output unit outputs information to be presented to a user. During the period from when the repair process for the corrupted file is started to when the repair process is completed, the control unit outputs, at the output unit, a part of the video that corresponds to the analyzed information based on the information analyzed in the repair process. Effect of the Invention

[0007] According to the present disclosure, it is possible to facilitate repair of video files in an imaging device. [Brief description of the drawings]

[0008] [Figure 1] FIG. 1 is a diagram showing a configuration of a digital camera according to a first embodiment of the present disclosure. [Diagram 2] A diagram showing the back of a digital camera [Diagram 3] Diagram to explain the structure of a video file [Figure 4] FIG. 1 is a diagram for explaining a recording operation of a video file in a digital camera; [Diagram 5] A diagram for explaining samples and chunks in a video file [Figure 6] Diagram to explain corrupted files when recording video on a digital camera [Figure 7] A flowchart illustrating the operation of video restoration in the digital camera of the first embodiment. [Figure 8] Diagram to explain the operation of video restoration [Figure 9] 1 is a flowchart illustrating a restoration process for a moving image file in the digital camera according to the first embodiment; [Figure 10A]1 is a flowchart illustrating an example of an analysis process of an MDT file in a digital camera according to a first embodiment of the present invention; [Figure 10B] A flowchart illustrating an analysis process of an MDT file subsequent to FIG. 10A. [Figure 11] FIG. 1 is a diagram for explaining recording mode information in the digital camera of the first embodiment; [Figure 12] A flowchart illustrating a display process of the remaining repair time in the digital camera of the first embodiment. [Figure 13] FIG. 1 is a diagram for explaining calculation of remaining repair time [Figure 14] FIG. 13 is a diagram showing a display example in a display process of the remaining repair time. [Figure 15] 11 is a flowchart illustrating an example of an analysis process of an MDT file in a digital camera according to a second embodiment of the present invention; [Figure 16] FIG. 11 is a diagram showing an example of displaying a restoration time in a digital camera according to a modified example of the first embodiment; [Figure 17] FIG. 11 is a diagram for explaining the operation of a digital camera according to a third embodiment. [Figure 18] A flowchart illustrating a playback operation during a restoration process in a digital camera according to a third embodiment. [Figure 19] FIG. 13 shows a display example during playback during repair processing. [Figure 20] 11 is a flowchart illustrating a restoration process for a moving image file in a digital camera according to a third embodiment of the present invention; [Figure 21] 11 is a flowchart illustrating a video / audio playback process in a digital camera according to a third embodiment; [Figure 22] Diagram for explaining video / audio playback processing [Diagram 23] FIG. 1 is a diagram for explaining an example of playback of audio data including multiple channels. [Figure 24] FIG. 13 is a diagram for explaining the operation of a digital camera according to a modification of the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, the embodiments will be described in detail with reference to the drawings as appropriate. However, more detailed explanation than necessary may be omitted. For example, detailed explanation of already well-known matters or duplicate explanation of substantially the same configuration may be omitted. This is to avoid the following explanation becoming unnecessarily redundant and to facilitate understanding by those skilled in the art. Note that the inventor(s) provide the attached drawings and the following explanation so that those skilled in the art can fully understand the present disclosure, and do not intend for them to limit the subject matter described in the claims.

[0010] (Embodiment 1) In the first embodiment, a digital camera capable of capturing an image of a subject and recording moving image data will be described as an example of an imaging device according to the present disclosure.

[0011] 1-1.Configuration 1 is a diagram showing the configuration of a digital camera 100 according to this embodiment. The digital camera 100 of this embodiment includes an image sensor 115, an image processing engine 120, a display monitor 130, and a controller 135. The digital camera 100 also includes a buffer memory 125, a card slot 140, a flash memory 145, an operation unit 150, and a communication module 155. The digital camera 100 also includes a microphone 160, an analog / digital (A / D) converter 165 for the microphone, and an audio processing engine 170. The digital camera 100 also includes, for example, an optical system 110 and a lens driving unit 112.

[0012] The optical system 110 includes a focus lens, a zoom lens, an optical image stabilization lens (OIS), an aperture, a shutter, etc. The focus lens is a lens for changing the focus state of a subject image formed on the image sensor 115. The zoom lens is a lens for changing the magnification of a subject image formed by the optical system. The focus lens, etc. are each composed of one or more lenses.

[0013] Lens driving unit 112 drives a focus lens and the like in optical system 110. Lens driving unit 112 includes a motor, and moves the focus lens along the optical axis of optical system 110 under the control of controller 135. The configuration for driving the focus lens in lens driving unit 112 can be realized by a DC motor, a stepping motor, a servo motor, an ultrasonic motor, or the like. Lens driving unit 112 includes an aperture actuator that drives an aperture in optical system 110 under the control of controller 135.

[0014] The image sensor 115 captures an image of a subject formed via the optical system 110 to generate imaging data. The imaging data constitutes image data indicative of an image captured by the image sensor 115. The image sensor 115 generates new frame image data at a predetermined frame rate (e.g., 30 frames / second). The timing of generating imaging data and electronic shutter operation in the image sensor 115 are controlled by the controller 135. The image sensor 115 can be any of various image sensors, such as a CMOS image sensor, a CCD image sensor, or an NMOS image sensor.

[0015] The image sensor 115 performs operations such as capturing moving images, still images, or through images. The through images are mainly moving images, and are displayed on the display monitor 130 so that the user can determine, for example, a composition for capturing a still image. The image sensor 115 performs various operations such as exposure and electronic shutter. The image sensor 115 is an example of an imaging unit in this embodiment.

[0016] The image processing engine 120 performs various processes on the imaging data output from the image sensor 115 to generate image data, and performs various processes on the image data to generate an image to be displayed on the display monitor 130. The various processes include, but are not limited to, white balance correction, gamma correction, YC conversion processing, electronic zoom processing, compression processing, and expansion processing. The image processing engine 120 may be configured with a hardwired electronic circuit, or may be configured with a microcomputer, processor, etc. using a program.

[0017] The display monitor 130 is an example of a display unit that displays various information. For example, the display monitor 130 displays an image (through image) represented by image data captured by the image sensor 115 and processed by the image processing engine 120. The display monitor 130 also displays a menu screen or the like for the user to perform various settings on the digital camera 100. The display monitor 130 can be configured, for example, by a liquid crystal display device or an organic EL device. A display unit such as the display monitor 130 is an example of an output unit that outputs information to be presented to the user in this embodiment.

[0018] The speaker 132 is an example of an audio reproducing unit that reproduces audio. The speaker 132 converts an electrical signal into audio and outputs the audio based on the audio signal (electrical signal) from the controller 135. The audio reproducing unit such as the speaker 132 is an example of an output unit in this embodiment.

[0019] Operation unit 150 is a collective term for hard keys and soft keys such as operation buttons and operation dials provided on the exterior of digital camera 100, and accepts operations by the user. Operation unit 150 includes, for example, a release button, a mode dial, the touch panel of display monitor 130, a joystick, and the like. Operation unit 150 also includes virtual buttons and icons displayed on display monitor 130. Specific examples of operation unit 150 will be described later.

[0020] The controller 135 is a hardware controller and controls the overall operation of the digital camera 100. The controller 135 includes a CPU and the like, and the CPU executes a program (software) to realize a predetermined function. Instead of a CPU, the controller 135 may include a processor configured with a dedicated electronic circuit designed to realize a predetermined function. That is, the controller 135 can be realized by various processors such as a CPU, an MPU, a GPU, a DSU, an FPGA, an ASIC, etc. The controller 135 may be configured with one or more processors. Furthermore, the controller 135 may be configured with the image processing engine 120 and the like as a single semiconductor chip.

[0021] The buffer memory 125 is a recording medium that functions as a work memory for the image processing engine 120 and the controller 135. The buffer memory 125 is realized by a dynamic random access memory (DRAM) or the like. The flash memory 145 is a non-volatile recording medium. For example, the buffer memory 125 stores various setting information for the digital camera 100.

[0022] Although not shown, the controller 135 may have various internal memories, for example, a built-in ROM. The ROM stores various programs executed by the controller 135. The controller 135 may also have a built-in RAM that functions as a working area for the CPU.

[0023] The card slot 140 is a means for inserting a removable memory card 142. The card slot 140 can electrically and mechanically connect the memory card 142, and writes and reads image data to and from the memory card 142. The memory card 142 is an external memory equipped with an internal recording element such as a flash memory. The memory card 142 can store data such as image data generated by the image processing engine 120. Video data captured by the digital camera 100 is recorded in the memory card 142.

[0024] The communication module 155 is a communication module (circuit) that performs communication in compliance with the communication standard IEEE802.11 or Wi-Fi standard. The digital camera 100 can communicate with other devices via the communication module 155. The digital camera 100 may communicate with other devices directly via the communication module 155, or may communicate via an access point. The communication module 155 may be connectable to a communication network such as the Internet. The communication module 155 may also include a circuit or terminal that outputs data to other devices in compliance with the USB or HDMI (registered trademark) standard. The communication module 155 may constitute an output section in the digital camera 100.

[0025] The microphone 160 is an example of a sound collection unit that collects sound. The microphone 160 converts the collected sound into an analog signal, which is an electrical signal, and outputs the analog signal. The microphone 160 may be composed of one or more microphone elements.

[0026] The microphone A / D converter 165 converts an analog signal from the microphone 160 into audio data of a digital signal. The microphone A / D converter 165 is an example of an audio acquisition unit. The microphone 160 may include a microphone element that is external to the digital camera 100. In this case, the digital camera 100 includes an interface circuit for the external microphone 160 as the audio acquisition unit.

[0027] The audio processing engine 170 receives audio data output from an audio acquisition unit such as the A / D converter 165 for a microphone, and performs various types of audio processing on the received audio data. The audio processing engine 170 may be implemented integrally with the image processing engine 120.

[0028] 1-1-1. About the operation unit A specific example of the operation unit 150 will be described with reference to Fig. 2. Fig. 2 is a diagram showing the rear surface of the digital camera 100.

[0029] 2 shows a release button 151, a selection button 152, a decision button 153, and a touch panel 154 as examples of operation unit 150. When operation unit 150 accepts an operation by the user, it transmits various instruction signals to controller 135. Controller 135 inputs the user operation based on the instruction signals.

[0030] The release button 151 is a push-down button. When the release button 151 is operated by the user, the controller 135 records image data captured at the timing of the press operation in the memory card 142 or the like as a recorded image.

[0031] The selection buttons 152 are push-type buttons provided in the up, down, left and right directions. By pressing the selection button 152 in either the up, down, left or right direction, the user can select various condition items displayed on the display monitor 130 or move the cursor.

[0032] The decision button 153 is a push button. When the decision button 153 is pressed by the user while the digital camera 100 is in the shooting mode or the playback mode, the controller 135 displays a menu screen on the display monitor 130. The menu screen is a screen for setting various conditions for shooting / playback. In response to a decision operation in which the decision button 153 is pressed when a setting item for various conditions is selected, the controller 135 finalizes the setting of the selected item.

[0033] Touch panel 154 is disposed so as to overlap with the display screen of display monitor 130, and detects a touch operation on the display screen with a user's finger. This allows the user to perform operations such as various selections on a menu screen displayed on display monitor 130.

[0034] 1-1-2. Video file structure In the digital camera 100 of this embodiment, file formats such as MOV and MP4 can be used when recording moving image data on the memory card 142. The structure of a moving image file in MOV or MP4 format will be described with reference to FIG.

[0035] Fig. 3 is a diagram for explaining the structure of a video file. In the data structure of a video file Dm illustrated in Fig. 3, video data including video and audio is stored according to the MOV or MP4 container standard. The video file Dm is composed of basic units called boxes, and has a hierarchical structure of boxes. At the highest level of the hierarchy of the video file Dm, a file type box (ftyp), a movie box (moov), and a media data box (mdat) are provided.

[0036] "ftyp" is placed at the beginning of the video file Dm and indicates the standard to which the video file Dm conforms. "moov" stores various header information such as meta-information about the video file Dm. The meta-information of the video file Dm manages information such as the frame-level size of the video data. "mdat" stores encoded data obtained by encoding video and audio as stream data that is recorded sequentially when the video is shot.

[0037] In addition to a Movie Header Box (mvhd), video and audio track boxes (trak) are stored in the mоооv. For example, the hierarchy below the video trak includes a Sample Table Box (stbl). The stbl records information indicating how stream data is stored in the video file Dm, including address information indicating the storage location, for example. Figure 3 illustrates an example of the configuration of an stbl according to the IEC_14496-12 standard. The stbl includes multiple boxes, which will be described later, and is provided for each of the video and audio, for example.

[0038] In mdat, video data and audio data are stored alternately for each chunk, which is a collection of video and audio frames or samples. The recording of such a video file Dm will be described later. When playing back a video file Dm, the meta information of mооv is referenced and stream data corresponding to, for example, the desired playback time is obtained from mdat.

[0039] stbl includes stsd (sample descriptions), stts (decoding time to sample), ctts (composition time to sample), stsc (sample to chunk), stsz (sample sizes), stcо (chunk offset), and stss (sync sample table). stsd indicates information about components of samples such as video ES (Video Elementary Stream) or audio ES (Audio Elementary Stream), stts indicates a table of video decoding time and sample number, ctts indicates a table of decoding time and display time, and stsc indicates the number of samples per chunk.

[0040] stsz indicates the sample size of each sample, and is a variable or fixed value for each sample. stcо indicates the offset to the chunk (i.e., the position of the beginning of the chunk in the MDT file D1), and corresponds to the integrated value of the chunk size up to the chunk for each chunk. scsz and stcо are determined, for example, according to the MDT file D1 to be recorded.

[0041] Also, stss indicates the position of an I-frame that can be played back independently in the MDT file D1. Unlike, for example, stsz and stc0 described above, stsd, stts, ctts, stsc, and stss are determined from the recording mode information of the MDT file D1.

[0042] 1-2.Operation The operation of digital camera 100 configured as above will now be described.

[0043] 1-2-1.Video file recording operation The operation of the digital camera 100 according to this embodiment to record a moving image file Dm on the memory card 142 will be described with reference to FIGS.

[0044] 4 is a diagram for explaining the recording operation of a moving image file Dm in the digital camera 100. For example, while recording a moving image, the controller 135 generates an MDT file D1 based on imaging data and audio data obtained as stream data, and records the MDT file D1 on the memory card 142. The MDT file D1 includes mdat.

[0045] Figure 5 is a diagram for explaining samples and chunks in a moving image file Dm. Figure 5(A) illustrates video samples and chunks. Figure 5(B) illustrates audio samples and chunks.

[0046] In the example of video shown in Fig. 5(A), each of I (Intra Coded), B (Bi-directional Predictive Coded), and P (Predictive Coded) frames corresponding to the use of motion compensation prediction is generated as one sample at a frame period of a moving image, etc., based on imaging data. Digital camera 100 records the generated samples in mdat, for example, in chunk units each of which is a collection of multiple consecutive samples. A chunk corresponds to a GOP (Group of Pictures) consisting of, for example, one I frame and one or more B and P frames.

[0047] In the example of audio shown in Fig. 5(B), each frame is generated as one sample based on the audio data. For example, each sample is generated at a 16.6 millisecond period if the audio standard is AAC (Advanced Audio Coding), and at a sampling period if the audio standard is LPCM (Linear Pulse Code Modulation). The digital camera 100 records a series of multiple samples in chunk units in mdat, similar to, for example, video. In the digital camera 100 of this embodiment, each chunk of video and audio is recorded in mdat in approximately 0.5 second units, for example.

[0048] 4, the controller 135 sequentially updates the MDT file D1 by recording video and audio in chunk units to mdat on the memory card 142. The digital camera 100 of this embodiment records meta information D10 about the stream data to be stored in the MDT file D1 in the buffer memory 125 or the like each time the MDT file D1 is updated. At each update, the meta information D10 may record, for example, only the difference from the previous update.

[0049] The controller 135 stops recording of the moving image in response to, for example, a user operation on the operation unit 150, and generates an MVD file Dh based on the latest meta information D10 stored in the buffer memory 125. The MVD file Dh includes ftyp and moov. The generated MVD file Dh is recorded, for example, on the memory card 142.

[0050] The controller 135 generates a moving image file Dm by combining the generated MVD file Dh with the latest MDT file D1, and records the moving image file Dm on the memory card 142. When the moving image file Dm is generated, the file name is renamed according to, for example, the MP4 format or the MOV format.

[0051] 1-2-2. About corrupted files If the recording operation ends abnormally during recording of such a moving image file as described above, for example due to a power outage of the digital camera 100, the moving image file Dm will not be generated normally and a damaged moving image file, i.e., a damaged file, will be recorded. Such a damaged file will be described with reference to FIG. 6.

[0052] 6 is a diagram for explaining a corrupted file when recording a moving image in digital camera 100. If a power outage or the like occurs during a moving image recording operation in digital camera 100, the MDT file D1 recorded in memory card 142 remains, but the meta information D10 held in buffer memory 125 is lost. In this case, an MVD file based on meta information D10 cannot be created, and the remaining MDT file D1 becomes a corrupted file that cannot be played back due to the loss of meta information D10, etc.

[0053] The digital camera 100 of this embodiment is capable of executing an operation for repairing the above-mentioned damaged file so that it can be played back. The digital camera 100 generates a playable moving image file Dm based on the MDT file D1 remaining on the memory card 142, for example.

[0054] Here, a conceivable method is to record meta information D10 on memory card 142 each time MDT file D1 is updated while recording a video, and when a corrupted file occurs, repair is performed based on the meta information D10. With this method, after a corrupted file occurs due to a power outage of digital camera 100, for example, the most recently recorded meta information D10 is associated with the corrupted file at the next startup, and the corrupted file is automatically repaired.

[0055] However, the above method increases the processing load of recording the meta information D10 to the memory card 142, which may limit the processing power available for imaging operations, etc. In addition, automatic restoration using this method has the problem that restoration is performed immediately after the digital camera 100 is started up, since the meta information D10 is used before it is updated, and the next image cannot be captured until restoration is completed.

[0056] Therefore, the digital camera 100 of the present embodiment executes repair of the selected damaged file in response to a user operation to select a specific damaged file as a repair target. As a result, even if there are multiple damaged files, the digital camera 100 can selectively execute repair in response to a user operation, and the use of excessive processing power can be avoided. Furthermore, by selecting the damaged file that the user wants to repair, not only immediately after the digital camera 100 is started, the user can avoid unintended waiting time for repair, and the user's convenience can be improved.

[0057] Furthermore, the digital camera 100 of this embodiment generates an MDV file such as moov by analyzing the MDT file D1 that remains as a corrupted file in response to, for example, a user selection operation, and repairs the corrupted file into a playable video file Dm. In this way, the digital camera 100 that repairs the corrupted file in response to the selection can reduce the processing load during recording compared to, for example, recording the meta information D10 used for automatic repair on the memory card 142 as described above, and makes it easier to perform operations such as capturing videos with higher image quality.

[0058] 1-2-3. Video repair process The video restoration operation performed by the digital camera 100 of this embodiment to restore a damaged video file Dm will be described with reference to FIGS.

[0059] Fig. 7 is a flowchart illustrating the operation of moving image restoration in the digital camera 100 of this embodiment. Each process in this flowchart is executed by the controller 135. Fig. 8 is a diagram for explaining the operation of moving image restoration.

[0060] First, controller 135 inputs a user operation for starting a video restoration operation on a setting menu or the like through operation unit 150 (S1). Fig. 8(A) shows an example of a display of a setting menu screen on display monitor 130 of digital camera 100. For example, controller 135 acquires a result in which a menu item on the setting menu screen (Fig. 8(A)) is selected by a user operation of selection button 152 or the like and is determined by a user operation of decision button 153 or the like.

[0061] 8(A) shows a state in which a tab 42 for setting various information related to image playback is selected on the setting menu screen, and an icon 43 for making settings related to files recorded on memory card 142 is selected. In this case, as a menu item, the display monitor 130 displays "Video Restoration" relating to the operation of video restoration, etc.

[0062] Based on the result of the user operation acquired in step S1, the controller 135 determines whether the selected menu item is "Video Restoration" in the setting menu screen of Fig. 8(A) (S2). If the video restoration menu item is not selected (NO in S2), the controller 135 repeats the processes of steps S1 to S2.

[0063] When the video repair menu item is selected (YES in S2), the controller 135 extracts repairable corrupted files recorded on the memory card 142, and obtains file information on each corrupted file (S3). For example, the controller 135 extracts files with the extension "MDT" in the memory card 142 as corrupted files. The file information includes, for example, the recording start time of each file, a clip number that identifies each file, the file size of each file, and recording mode information (described later).

[0064] In step S3, the controller 135 obtains, for each extracted file, a recording start time 61 from, for example, the creation date and time of the file, and a clip number 62 from the file name. The controller 135 also calculates an estimate of a recording time 63 indicating the length of the recorded video, for example, based on the file size of each file and the video bit rate recorded in the recording mode information of the file. The recording mode information is information determined by the recording mode, such as shooting settings such as bit rate, and is recorded in the MDT file D1, etc., when video recording starts.

[0065] Based on the acquired file information, controller 135 causes display monitor 130 to display the recoverable damaged files as options for repair targets (S4). Fig. 8(B) is an example of a display when there are two damaged files on memory card 142. Controller 135 causes file information for each of the options for the damaged files to be displayed on the screen of Fig. 8(B), for example (S4).

[0066] For example, when the user selects the menu item in the setting menu screen of Fig. 8(A) and inputs a confirm operation (YES in S1 and S2), the display monitor 130 transitions to a selection screen for damaged files shown in Fig. 8(B). At this time, after transitioning from the setting menu screen of Fig. 7(A) to a display screen showing a message indicating that a recoverable file is being extracted, the selection screen of Fig. 8(B) may be displayed when the extraction is completed.

[0067] 8(B), the display monitor 130 displays "File 1" and "File 2" as options for damaged files to be restored, along with a recording start time 61, a clip number 62, and a recording duration 63. This display of the selection screen allows the user to select a file to be restored by referring to the recording start time 61 of each file, etc.

[0068] 8B, a return icon 54 for touch operation and a decision icon 55 are displayed. The return icon 54 accepts a user operation for returning from the displayed menu screen to a menu screen of a higher hierarchy, etc. The decision icon 55 accepts a decision operation similar to that of the decision button 153.

[0069] The controller 135 inputs a user operation to select a file to be repaired from the options of the repairable damaged files displayed in step S3 at the operation unit 150 (S5). For example, the controller 135 acquires the result of a user operation of the selection button 152 or the like to select an option on the selection screen of FIG. 8(B).

[0070] Furthermore, controller 135 determines whether or not a user operation has been input to instruct repair of the file selected in step S5 (S6). Controller 135 determines the presence or absence of such a repair instruction based on the result of a user operation to confirm the selection of the damaged file with, for example, decision button 153. If there is no instruction to repair the selected file (NO in S6), controller 135 repeats the processes of steps S5 to S6.

[0071] If there is an instruction to repair the selected file (YES in S6), the controller 135 executes a repair process on the selected damaged file (S7). The repair process is a process for generating a playable video file Dm (see Figs. 4 and 6) including an MVD file Dh based on the damaged MDT file D1. The repair process for such a video file (S7) will be described in detail later.

[0072] Fig. 8(C) shows an example of a screen display to which the transition occurs when a file to be repaired is selected from the selection screen of Fig. 8(B). In this embodiment, the controller 135 causes the display monitor 130 to display a progress bar 65 indicating the progress of the repair process while executing the repair process (S7) of the video file. For example, the controller 135 sequentially calculates an estimated value of the remaining time until the repair process is completed for the damaged file being repaired, and updates the display of the progress bar 65 according to the time from the start of the repair process to the calculation time and the calculated remaining time. The display process of the remaining repair time will be described in detail later.

[0073] Furthermore, in the video file repair process (S7), the controller 135 displays a stop icon 56 on the display monitor 130, as shown in FIG. 8C, for example. The stop icon 56 accepts a user operation for interrupting the repair process. The controller 135 interrupts the ongoing repair process in response to the user operation. Such interruption of the repair process can further improve user convenience, for example, by allowing the user to perform the next shooting operation even after the start of the repair process but before it is completed.

[0074] When the repair process for the selected corrupted file is completed, the controller 135 causes the display monitor 130 to display a message indicating that the repair has been completed (S8), as shown in Fig. 8(D), for example. Fig. 8(D) shows an example of a screen to which the screen transitions from the screen (Fig. 8(C)) during the repair process in response to the completion of the process. After that, the display monitor 130 may further transition to a playback screen of the repaired video file.

[0075] Furthermore, if the repair process (S7) of the video file is interrupted by a user operation such as touching the stop icon 56 in FIG. 8(C), a message indicating that the repair process has been interrupted may be displayed in step S8.

[0076] The controller 135 displays a message or the like indicating the completion of the restoration process (S8), and then ends the process of this flowchart.

[0077] According to the above process, in response to a user operation to select a menu item for video repair (S1, S2), repairable corrupted files extracted from files in memory card 142 are presented to the user on display monitor 130 (S3, S4). Then, in response to a user operation to select a file to be repaired from the displayed corrupted files (S5), video file repair processing is executed on the selected file in response to a repair instruction (S6, S7).

[0078] This allows the repair process (S7) of the video file to be selectively executed in response to the user's operation of selecting the damaged file to be repaired, improving user convenience and preventing excessive repair processes. In this way, it is possible to facilitate repair of video files in the digital camera 100.

[0079] Furthermore, according to the above process, for the damaged files that can be repaired, the recording start time 61, clip number 62, and recording time 63 of each file are displayed (S4) based on the acquired file information (S3), for example, as shown in the selection screen of Fig. 8(B). This makes it easier for the user to select the file that matches his / her intention as the file to be repaired. In the above step S3, an example was described in which the clip number 62 of each file is acquired in the file information, but the file name may be acquired instead of the clip number 62, and the file name may be displayed in step S4.

[0080] In FIG. 8B, an example in which two corrupted files are displayed as options has been described, but one corrupted file may be displayed (S4), and a user operation to select the one file may be input in step S5. Also, in FIG. 8B, an example in which file information about multiple corrupted files is displayed on one screen of the display monitor 130 has been described, but such file information for multiple files may be displayed across multiple screens. For example, file information for one file may be displayed per screen. In this case, the selection of the corrupted file in step S5 may be performed in response to switching screens by a user operation such as the left / right selection button 152.

[0081] 1-2-4. Repairing video files The video file restoration process in step S7 of FIG. 8 will be described in detail with reference to FIGS.

[0082] Fig. 9 is a flowchart illustrating the repair process (S7) of a video file in the digital camera 100 of this embodiment. The flowchart in Fig. 9 starts when an instruction to repair a damaged file selected as the target for repair is given (YES in S6).

[0083] The controller 135 analyzes the damaged file to be repaired that is recorded as the MDT file D1 (S11). In a moving image file Dm without any loss, the MVD file Dh includes moov or the like that stores meta information D10. The controller 135 outputs, as an analysis result, information used to generate the MVD file Dh, for example, by analyzing the MDT file D1 in step S11. The MDT file analysis process (S11) will be described in detail later.

[0084] The controller 135 determines whether the ongoing repair process has been interrupted (S12) depending on whether the analysis process of the MDT file D1 (S11) has ended in response to a user operation such as the stop icon 56 in Figure 8 (B) or the like.

[0085] If the repair process is not interrupted and, for example, the process of step S11 is completed after the analysis up to the end of the MDT file D1 (NO in S12), the controller 135 generates an MVD file Dh based on the analysis result in step S11 (S13). For example, in step S13, each box under stbl of moov shown in FIG. 3 is generated.

[0086] When the controller 135 generates an MVD file from the analysis result (S13), it combines the MDT file D1 and the generated MVD file Dh to generate a video file Dm (S14). The controller 135 changes the extension of the combined file according to the file format, for example, MP4 or MOV.

[0087] Thereafter, the controller 135 proceeds to step S8 in FIG. 7, and causes the display monitor 130 to display, for example, a message screen (FIG. 8(D)) indicating the completion of the restoration process.

[0088] On the other hand, if the repair process is interrupted (YES in S12), the controller 135 proceeds to step S8 in FIG. 7 without executing the processes of steps S13 and S14, and displays, for example, a message indicating that the repair process has been interrupted.

[0089] According to the above process, the MDT file D1 recorded as a corrupted file is analyzed (S11), an MVD file Dh is generated from the analysis results (S13), and the MDT file D1 and the MVD file Dh are combined to generate a video file Dm (S14). In this way, the meta information and the like in the MVD file Dh are repaired from the unplayable MDT file D1 through analysis, and a playable video file Dm is obtained.

[0090] 1-2-4-1. MDT file analysis The MDT file analysis process in step S11 in FIG. 9 will be described in detail with reference to FIG. 10 and FIG.

[0091] Fig. 10A is a flowchart illustrating the MDT file analysis process (S11) in the digital camera 100 of this embodiment. Fig. 10B is a flowchart illustrating the MDT file analysis process (S11) subsequent to Fig. 10A. The flowcharts of Figs. 10A and 10B start with the MDT file selected as the damaged file to be repaired.

[0092] First, the controller 135 reads out the recording mode information recorded in, for example, the MDT file D1 (S21). Fig. 11 is a diagram for explaining the recording mode information in the digital camera 100 of this embodiment.

[0093] Fig. 11(A) illustrates an example of an MDT file D1 during video recording. In this embodiment, the recording mode information is stored at the beginning of the MDT file D1 as a skip box (skip) as shown in Fig. 11(A), for example, when video recording starts. During video recording, the stream data in mdat is updated.

[0094] FIG. 11B illustrates an example of the moving image file Dm when the recording of the moving image is stopped normally. In the example of Fig. 11(B), the video file Dm is generated with the skip remaining. The skip is recorded in compliance with the MP4 or MOV format standard, and the video file Dm can be played even if the skip remains at the time of playback. The skip may be deleted when the video file Dm is generated.

[0095] Fig. 11C illustrates information recorded in the skip as recording mode information. For example, the recording mode information includes a container standard corresponding to a file format of MOV or MP4, a video frame rate, parameter set information, a bit rate, and the number of frames per chunk. In the example of Fig. 11C, the recording mode information further includes an audio standard indicating a recording format of audio data such as LPCM or AAC, a size of one audio sample, and the like.

[0096] In the MDT file D1, video chunks and audio chunks are alternately recorded in mdat, as exemplified in Fig. 6 etc. In the MDT file analysis process (S11), the controller 135 sequentially analyzes data from the head of the mdat, and repeatedly executes the processes of analyzing video chunks (S23 to S35) and analyzing audio chunks (S37 to S40) on a chunk-by-chunk basis.

[0097] (1) Video chunk analysis First, the process of analyzing a chunk of a video (S23 to S35) will be described with reference to Fig. 10A. The controller 135 initializes, for example, a frame number i and a chunk number j of the video data to zero values ​​(S22). The frame number i and the chunk number j are variables indicating the indexes of the frame (i.e., sample) and chunk, respectively.

[0098] The controller 135 initializes, for example, the j-th chunk size, i.e., the chunk size of chunk number j, to zero in the array that stores the chunk sizes (S23). For example, when step S22 is executed for the first time, the chunk size of chunk number "0" is initialized to "0".

[0099] In the MP4 or MOV format, stream data is managed in a hierarchical structure and is decoded using information contained in the Network Abstraction Layer (NAL), etc. The NAL is made up of multiple NAL units.

[0100] The controller 135 detects the beginning of the next (i.e., unanalyzed) NAL unit in the MDT file D1, and obtains size information recorded in 4 bytes at the beginning of the NAL unit (S24). In step S24, for example, a seek operation is appropriately performed to move the reading position of the MDT file D1 to the beginning of the NAL unit. The controller 135 further determines whether the NAL unit from which the size information has been obtained is an access unit boundary (Access Unit Delimiter: AUD) corresponding to the boundary between frames (S24).

[0101] If the NAL unit for which size information has been obtained is not an AUD (NO in S24), the controller 135 seeks to the beginning of the next NAL unit and repeats step S24.

[0102] If the NAL unit is an AUD (YES in S24), the controller 135 initializes the i-th frame size, i.e., the frame size of frame number i, to a zero value in the array that stores the frame sizes (S25). In this way, the frame size is initialized when the parsing position in the MDT file D1 is at the beginning of the frame.

[0103] The controller 135 adds the size information obtained from the NAL unit, that is, the NAL size, to the frame size of the frame number i (S26).

[0104] Next, controller 135 seeks to the beginning of the next NAL unit and acquires the NAL size (S27), similar to step S24. In step S27, controller 135 determines whether the NAL unit is a unit other than a Video Coding Layer (VCL) that contains coded video data, that is, a non-VCL. In one frame, one or more non-VCL and VCL NAL units are stored following the AUD.

[0105] If the NAL unit is non-VCL (YES in S27), the controller 135 repeats the processes from step S26 onwards, and adds the NAL size of the non-VCL to the frame size of frame number i.

[0106] On the other hand, if the NAL unit is not non-VCL (NO in S27), the controller 135 adds the NAL size to the frame size of frame number i (S28), obtains the size of the next NAL unit, and then determines whether the NAL unit is VCL (S29).

[0107] If the NAL unit is a VCL (YES in S29), the controller 135 repeats the processes in steps S28 and after, and adds the NAL size of the VCL to the frame size of the frame number i.

[0108] If the NAL unit is not a VCL (NO in S29), the controller 135 determines whether the NAL unit is an AUD (S30). If the NAL unit is not an AUD (NO in S30), the controller 135 repeats the processes in and after step S28.

[0109] If the NAL unit whose analysis position has been advanced in the above process is an AUD (YES in S30), the controller 135 adds the frame size obtained by adding the NAL size of one frame of frame number i to the chunk size of chunk number j (S31).

[0110] The controller 135 increments the frame number i (S32) and determines whether the frame number i is equal to or greater than the number of frames per chunk, for example by referring to the recording mode information (S33). In this way, it is possible to determine whether the chunk with chunk number j that is being analyzed has any unanalyzed frames.

[0111] If frame number i is not equal to or greater than the number of frames per chunk (NO in S33), the controller 135 returns to step S25 to initialize the frame size of frame number i, and repeats the subsequent processes.

[0112] On the other hand, when one chunk is analyzed and the frame number i is equal to or greater than the number of frames per chunk (YES in S33), the controller 135 increments the chunk number j (S34).

[0113] Furthermore, the controller 135 determines whether or not a user operation to instruct the interruption of the restoration has been input, that is, whether or not an interruption instruction has been given, for example, via the operation unit 150 (S35). In this manner, in the digital camera 100 of this embodiment, the presence or absence of an interruption is determined each time one chunk is analyzed.

[0114] If an interruption instruction has been issued (YES in S35), the controller 135 ends the processing of this flowchart and proceeds to step S8 in FIG. 8 (YES in S12 in FIG. 9).

[0115] On the other hand, if there is no interrupt instruction (NO in S35), the controller 135 proceeds to the process of analyzing the chunk of audio (S37 to S40).

[0116] (2) Audio chunk analysis 10B, the controller 135 refers to, for example, the recording mode information to calculate the sample size of the audio data and the chunk size of the chunk (S37). For example, based on the recording mode information, if the audio standard is LPCM, the sample size is calculated as a value obtained by multiplying the size of one channel by the number of channels, and the chunk size is calculated as a value obtained by multiplying the sample size by the number of samples for each chunk.

[0117] When one chunk is analyzed in step S37, the controller 135 increments the number of chunks of the audio (S38).

[0118] Thereafter, the controller 135 determines, for example, whether the parsing position has reached the end of the MDT file D1, that is, whether the MDT file D1 has been parsed up to the end (S39).

[0119] If the analysis position has not reached the end of the MDT file D1 (NO in S39), the controller 135 determines whether or not an interrupt instruction has been issued (S40), similarly to step S35.

[0120] If there is no interrupt instruction (NO in S40), the controller 135 returns to step S23 and analyzes the next chunk of video (S23 to S35).

[0121] On the other hand, if there is an interrupt instruction (YES in S40), the process of this flowchart ends and proceeds to step S8 in FIG. 8 (YES in S12 in FIG. 9).

[0122] Also, when the analysis position reaches the end of the MDT file D1 (YES in S39), the controller 135 records the analysis result in the memory card 142 or the like, and ends the processing of this flowchart. For example, the analysis result may include recording mode information, video frame number i, chunk number j, frame size array, chunk size array, and the number of video chunks and audio chunks according to chunk number j. After that, an MVD file Dh is generated from the analysis result (NO in S12, S13 in FIG. 9).

[0123] According to the above process, as video and audio chunks are alternately recorded in the MDT file D1, the process of analyzing each chunk (S23-S35, S37-S40) is executed for each chunk. Also, each analysis process can be interrupted after recording the analysis result in response to an interruption command (YES in S35, YES in S40, S36).

[0124] In the above process, an example of calculating the sample size and chunk size for each audio chunk (S37) has been described. For audio data in LPCM format, the same process as step S37 may be executed after reading the recording mode information (S21) instead of for each chunk, and the calculated values ​​may be recorded as the sample size and chunk size for each chunk. On the other hand, for audio data in AAC format, the calculation in step S37 may be executed for each chunk, for example, in the same manner as the process of analyzing the video chunk (S23 to S35).

[0125] In the above process, an example has been described in which it is determined whether the MDT file D1 has been analyzed to the end after analyzing the audio chunk (S39). This determination may be made, for example, during a seek to obtain the NAL size while analyzing a video chunk (S24, etc.). This determination may also be made when reading a file, etc., in the MDT file analysis process (S11).

[0126] 1-2-4-2. Display of remaining repair time The digital camera 100 of this embodiment displays the time remaining until the restoration is completed while the restoration process (S7) of the video file is being executed, as shown in Fig. 8(C), for example. The process of displaying the remaining restoration time will be described with reference to Figs. 12 to 14.

[0127] 12 is a flowchart illustrating the display process of the remaining repair time in the digital camera 100 of this embodiment. The process of this flowchart is executed by the controller 135 in parallel with the process shown in the flowchart of FIG.

[0128] First, the controller 135 judges (S51) whether or not the analyzed file size in the MDT file D1 is a predetermined size, for example, based on the analysis position in the MDT file analysis process (S11) in the video file repair process (S7). The predetermined size is set to a multiple of 200 megabytes (MB), for example, from the viewpoint of being able to update the remaining time display in a relatively short time.

[0129] If the analyzed file size is equal to the predetermined size (YES in S51), the controller 135 calculates the remaining repair time based on the file size of the MDT file D1 and the analyzed file size (S52). Figure 13 is a diagram for explaining the calculation of such remaining repair time.

[0130] Fig. 13(A) shows a state immediately after analysis of MDT file D1 starts, where the remaining unanalyzed area is 2000MB. In this case, in step S53 described below, the progress bar 65 may be left blank on the screen of Fig. 8(C) and displayed on the display monitor 130. Figs. 13(A) to (C) show an example in which a 2000MB MDT file D1 is read from the beginning and analyzed.

[0131] Fig. 13(B) shows a state where analysis has progressed 200 MB from the beginning of MDT file D1 after Fig. 13(A). In the example of Fig. 13(B), controller 135 calculates the remaining repair time in minutes, for example, based on the elapsed time required to analyze 200 MB from the start of analysis and the file size of the remaining 1800 MB that has not been analyzed (S52). Controller 135 acquires, for example, the analysis position and elapsed time for each predetermined size as progress information.

[0132] Fig. 13C shows a state where the analysis has progressed by an additional 200 MB from the example of Fig. 13B. In this example, the remaining repair time is calculated based on the elapsed time from the start of analysis to the analysis of 400 MB and the file size of the remaining 1600 MB.

[0133] After calculating the remaining repair time (S52), the controller 135 updates the display on the display monitor 130 in accordance with the calculated remaining time (S53). For example, on the screen in Fig. 8(C), the display of the progress bar 65 is updated in accordance with the remaining time.

[0134] Fig. 14 is a diagram showing a display example in the display process of the remaining repair time. Fig. 14(A) shows a display example in the case where the remaining repair time is calculated in the state after Fig. 13(B). In step S53, the controller 135 may display the calculated remaining repair time itself in addition to the progress bar 65 similar to Fig. 8(C), as exemplified in Fig. 14(A).

[0135] Fig. 14(B) shows a different display example from Fig. 14(A). For example, if the calculated remaining time exceeds a predetermined time, and the repair will take a long time, a message urging the user to supply power to the digital camera 100 may be further displayed, as shown in Fig. 14(B).

[0136] After updating the display of the remaining restoration time (S53), the controller 135 determines whether the restoration process (S7) of the video file has been completed (S54). If the process (S7) has not been completed (NO in S54), the controller 135 repeats the processes from step S51 onward.

[0137] When the video file repair process (S7) is completed (YES in S54), the controller 135 also ends the process of this flowchart. After that, the controller 135 displays, for example, a message screen of Fig. 8(D) in response to the completion of the repair process (S7) (S8 in Fig. 7).

[0138] According to the above process, while the video file repair process (S7) is being performed, the remaining repair time is calculated (S52) according to the progress of the analysis, and the display of the remaining repair time is updated (S53). This makes it easier for the user to decide whether to perform an operation to interrupt the repair process in progress using the stop icon 56 or the like (see FIG. 8(C)) according to the display of the remaining repair time.

[0139] 1-3. Effects etc. As described above, in this embodiment, the digital camera 100, which is an example of an imaging device, includes the image sensor 115 (an example of an imaging section), the controller 135 (an example of a control section), and the operation section 150. The image sensor 115 captures an image of a subject to generate imaging data. The controller 135 executes a video file repair process, which is an example of a repair process for generating a video file Dm from the MDT file D1 as an example of a damaged file having a loss as a video file Dm capable of playing a video indicated by the imaging data (S7). The operation section 150 inputs a user operation related to the repair process (S1, S5). The controller 135 accepts a user operation to select a specific damaged file from one or more damaged files at the operation section 150 (S5), and executes a repair process on the selected damaged file in response to the user operation (S7).

[0140] As described above, the digital camera 100 of this embodiment executes a repair process on the selected damaged file (S7) in response to a user operation to select a specific file to be repaired from one or more damaged files (S5). This allows the digital camera 100 to selectively execute a repair process on the damaged file that the user wants to repair, making it easier to repair video files.

[0141] Furthermore, in this embodiment, controller 135 does not execute the restoration process on damaged files other than the damaged file selected by the user operation (see S5 to S7). This makes it possible to avoid excessive restoration processes in response to a user operation to select a specific damaged file as the restoration target, even if there are multiple damaged files in digital camera 100.

[0142] In this embodiment, the digital camera 100 further includes a display monitor 130 as an example of a display unit that displays information. In response to a predetermined menu operation on the operation unit 150 (S1, S2), the controller 135 acquires file information on each corrupted file from a memory card 142 (an example of a recording medium) in which one or more corrupted files are stored (S3), and displays the acquired file information on the display monitor 130 (S4). This allows the user to check the corrupted file that he or she wishes to repair at a desired timing, for example, in response to the menu operation, making it easier for the user to repair a video file.

[0143] In this embodiment, the controller 135 accepts a user operation to select a specific damaged file on the operation unit 150 while displaying the acquired file information on the display monitor 130 (S4, S5). This allows the file information to be presented to the user, making it easier to select the damaged file to be repaired.

[0144] In this embodiment, the file information includes at least one of the corrupted file's recording start time 61, recording duration 63, clip number 62, which is an example of an identification number, and file name (see FIG. 8(B)). Displaying the file information in this manner makes it easier for the user to identify the corrupted file in the options to be repaired.

[0145] In this embodiment, the digital camera 100 further includes a display monitor 130 as an example of a display unit that displays information. During execution of a repair process on a specific corrupted file (S7), the controller 135 causes the display monitor 130 to display the remaining repair time (see FIG. 8(C) and FIG. 14) as an example of information indicating the execution time of the repair process (S51 to S54). This allows the user to check the remaining repair time during execution of the repair process, thereby improving user convenience.

[0146] In this embodiment, while the controller 135 is executing the repair process of the specific damaged file (S7), the controller 135 accepts a user operation to interrupt the repair process at the operation unit 150, and interrupts the repair process of the specific damaged file in response to the user operation to interrupt (S35, S40, S12). This makes it easier for the user to repair the video file, for example by allowing the user to interrupt the repair process before completion even if the repair process has started once by a user operation, and to perform a shooting operation, for example.

[0147] In this embodiment, the defect in the corrupted file is an MVD file Dh including ftyp and moov as an example of management information used for playing a moving image (see Figs. 3, 4, and 6). The controller 135 performs a repair process for the corrupted file (S7) by generating an MVD file Dh based on an MDT file D1 as an example of the corrupted file (S11, S13). This makes it possible to generate a playable moving image file Dm using the MVD file Dh (S14).

[0148] (Embodiment 2) In the first embodiment, the digital camera 100 is described as being capable of interrupting the restoration process (S7) of a video file. In the second embodiment, the digital camera 100 is described as being capable of restarting the interrupted restoration process from the state at the time of interruption.

[0149] Hereinafter, the description of the configuration and operation similar to those of the digital camera 100 according to the first embodiment will be omitted as appropriate, and the digital camera 100 according to this embodiment will be described.

[0150] 15 is a flowchart illustrating an example of MDT file analysis processing (S11A) in the digital camera 100 of this embodiment. In addition to processing (S23 to S35, S37 to S41) similar to the MDT file analysis processing (S11) in embodiment 1, the digital camera 100 of this embodiment also executes processing (S20A, S20B, S36) for resuming the interrupted restoration processing.

[0151] In this embodiment, when an interruption instruction is given (YES in S35), the controller 135 records the analysis results up to the time of interruption in interruption information stored in the memory card 142 or the like (S36). The interruption information includes the analysis position at the time of interruption in addition to information similar to the analysis results recorded in step S41 when the repair process is completed. The analysis position is recorded, for example, by an address corresponding to the position in the MDT file D1 where the analysis results for each chunk have already been obtained.

[0152] Even if there is an interruption instruction in the process of analyzing the chunk of audio (S37 to S40 in FIG. 10B) (YES in S40), controller 135 proceeds to step S36 and records interruption information, as in the above case for video. After recording the interruption information (S36), controller 135 ends the process of this flowchart.

[0153] Thereafter, the controller 135 accepts a user operation in the operation unit 150 to select, for example, the damaged file whose repair process was interrupted as a repair target again and give an instruction to repair the file (S5, S6). In this case, in the MDT file analysis process (S11A) in this embodiment, the processes of steps S20A and S20B are executed instead of the reading of the recording mode information (S21) and the initialization of the frame number i and chunk number j (S22) in the first embodiment.

[0154] First, the controller 135 refers to the memory card 142, for example, to determine whether or not interruption information from a previous MDT file analysis process (S11A) has been recorded for the MDT file D1 being analyzed (S20A).

[0155] If there is interruption information (S20A), the controller 135 refers to the interruption information and sets the analysis results at the time of interruption to various variables, etc. (S20B). For example, from the interruption information, the recording mode information, frame number i, chunk number j, frame size array, chunk size array, number of video chunks, number of audio chunks, and analysis position are set.

[0156] Thereafter, the controller 135 executes the processes from step S23 onward using the analysis results up to the time of interruption.

[0157] On the other hand, if there is no interruption information (NO in S20A), similarly to the analysis process of the MDT file in the first embodiment (S11), the recording mode information is read (S21) and the subsequent analysis process is carried out.

[0158] According to the above process, if interruption information is recorded (YES in S20A), analysis of MDT file D1 is resumed from the interrupted analysis position based on the interruption information (S20B). This shortens the time required for repair after interruption, and also makes it easier for the user to utilize interrupted repair, since it is not necessary to restart from the beginning of MDT file D1 even if the repair process is interrupted. In this way, user convenience can be further improved with regard to repairing video files in digital camera 100.

[0159] As described above, in this embodiment, after the controller 135 suspends the repair process of a specific corrupted file, the controller 135 accepts a user operation on the operation unit 150 instructing the restart of the repair process of the specific corrupted file, and resumes the repair process of the specific corrupted file (S20A, S20B) in response to the user operation instructing the restart (S5, S6). This eliminates the need to execute the repair process again from the beginning of the MDT file D1 where the repair process was suspended, and makes it possible to avoid duplicate repair processes. It is also possible for the user to easily instruct the interruption of the repair process with the intention of restarting it. In this way, it is possible to make it easier to repair video files in the digital camera 100.

[0160] (Embodiment 3) In the first embodiment, the digital camera 100 is described as displaying the remaining time for restoration while performing restoration processing (S7) on a video file. In the third embodiment, the digital camera 100 is described as displaying the video obtained by the restoration processing while performing restoration processing.

[0161] Hereinafter, the description of the configuration and operation similar to those of the digital camera 100 according to the first and second embodiments will be omitted as appropriate, and the digital camera 100 according to this embodiment will be described.

[0162] 3-1. Overview Fig. 17 is a diagram for explaining the operation of the digital camera 100 of this embodiment. Fig. 17 shows an example of the display of the digital camera 100 during execution of restoration processing in this embodiment.

[0163] For example, when the user selects a damaged file to be repaired before the start of the repair process, it is assumed that the user may select the wrong file without knowing which file he or she actually wants to repair. In such a case, for example, after the repair process is completed, the user may discover that a file other than the one he or she intended has been repaired, which may waste the battery power of the digital camera 100 or waste processing time.

[0164] Therefore, the digital camera 100 of this embodiment plays back a part of the video corresponding to the analysis result of the corrupted file obtained sequentially while performing the repair process, as shown in Fig. 17. This allows the user to check the contents of the file being repaired while the repair process is being performed, and can instruct the repair process to be stopped if the file is not what the user intended, for example. This prevents the digital camera 100 from wasting battery power, processing time, etc.

[0165] For example, while analyzing the MDT file D1 in the restoration process, the controller 135 causes the display monitor 130 to display an image indicated by a portion of the video data V1 of the MDT file D1 based on the analysis results obtained on a chunk-by-chunk basis. For example, images of I frames of the analyzed chunks are displayed sequentially as the restoration process progresses. In the example of Fig. 17, while displaying the images, the controller 135 accepts a user operation to instruct the operation unit 150 to interrupt the restoration process using the stop icon 56.

[0166] Furthermore, in the digital camera 100 of this embodiment, when the restoration process is interrupted, the user can select whether or not to generate a video file based on the analysis results up to the time of interruption, as described below. This allows the user to, for example, check an image displayed during the restoration process and, if they determine that the video following that image is unnecessary, to instruct the restoration process to be interrupted.

[0167] The display monitor 130 in FIG. 17 displays an image corresponding to the analysis result midway through the restoration process and a progress bar 65 corresponding to the remaining restoration time, but is not limited to these. For example, it may display the playback time when the currently displayed image is played back out of the recording time 63 of the video.

[0168] 3-2-1. Playback during repair process Fig. 18 is a flowchart illustrating a playback operation during repair processing in the digital camera 100 of this embodiment. The processing of this flowchart is executed in parallel with the analysis processing of the MDT file (S11, Figs. 10A and 10B). In the digital camera 100 of this embodiment, for example, in the analysis processing of the MDT file (S11), the analysis result is stored in the buffer memory 125 or the like in chunk units. For example, every time each processing of analyzing a video chunk (S23 to S35) and analyzing an audio chunk (S37 to S40) is executed, information similar to the interruption information of the second embodiment is updated in the buffer memory 125 as the analysis result of each chunk.

[0169] 18 is periodically executed in synchronization with the analysis process of each chunk in the analysis process (S11) of the MDT file, for example, while the analysis result for each chunk is held in the buffer memory 125. Each process in this flowchart is executed by the controller 135.

[0170] First, the controller 135 acquires analysis information of the MDT file indicating the analysis result for each chunk (S61) from the buffer memory 125. For example, the analysis information acquires, as the analysis position, the position of the video and audio data up to the portion where the analysis process was performed in the MDT file D1, and meta information D10 of the video and audio data, etc.

[0171] Next, the controller 135 performs a process of playing back video and / or audio in the MDT file D1 being analyzed based on the acquired analysis information (S62). The controller 135 outputs video data to the display monitor 130 and / or audio data to the speaker 132 so as to play back video and / or audio corresponding to the analysis position of the analysis information in the MDT file D1, for example. In the example of Fig. 17, one frame of video is played back from the video data V1 according to the analysis information. The video / audio playback process (S62) will be described in detail later.

[0172] After playing back the video and / or audio (S62), the controller 135 determines whether or not a user operation has been performed to interrupt the repair (S63), similar to the determination of an interrupt instruction (S35, S40) in the MDT file analysis process (S11). In the example of Fig. 17, the controller 135 determines whether or not a user operation has been performed to interrupt the repair in response to a stop icon 56 displayed on the display monitor 130 together with the video.

[0173] If there is no interrupt instruction (NO in S63), the controller 135 judges whether or not the analysis process of the MDT file (S11) has ended (S64). If the analysis process has not ended (NO in S64), the controller 135 repeats the processes from step S61 onwards.

[0174] If there is an interruption instruction (YES in S63), the controller 135 further judges whether or not a user operation has been input, for example, on the operation unit 150, to instruct the generation of a video file according to the analysis result up to the time of interruption (S65). FIG. 19 shows an example of a screen displayed on the display monitor 130 when such an instruction to generate a video file is input. FIG. 19 is a diagram showing a display example of a playback operation during a repair process. After an interruption instruction is input on the screen of FIG. 17, for example, the display monitor 130 transitions to the screen of FIG. 19. In the example of FIG. 19, the user can select whether or not to generate a video file by tapping the displayed "Yes" or "No" button.

[0175] If there is an instruction to generate a moving image file (YES in S65), the controller 135 sets a moving image file generation flag to ON (S66). The moving image file generation flag is, for example, a binary flag that manages whether or not a moving image file is generated, and is stored in the buffer memory 125 or the like. When the flag is ON, as described below, a moving image file is generated that can play back video and audio up to the analysis position that was analyzed up to the time when the repair process was interrupted in the MDT file D1.

[0176] On the other hand, if there is no instruction to create a moving image file (NO in S65), the controller 135 sets the creation flag for the moving image file to OFF (S67).

[0177] After setting the generation flag of the video file to on or off (S66, S67), the controller 135 ends the processing of this flowchart. Also, if there is no interrupt instruction (NO in S63) and the analysis processing of the MDT file (S11, S11A) is completed (YES in S64), the controller 135 ends the processing of this flowchart.

[0178] According to the above process, while the MDT file analysis process (S11) is being performed, analysis information is acquired (S61), video and / or audio that is part of the video being restored is played back based on the analysis information (S62), and the presence or absence of an instruction to interrupt the restoration is determined (S63). This allows the user to check the part of the video being restored that is being played back while the MDT file D1 is being analyzed during the operation of restoring the video in the digital camera 100, making it easier to decide, for example, whether or not to perform a user operation to instruct the restoration to be interrupted.

[0179] Furthermore, in this embodiment, when an interruption instruction is given (YES in S63), a generation flag for the video file is set to ON or OFF (S66, S67) in response to an instruction to generate a video file by a user operation (S65). According to such an instruction to generate, a video file that can be played up to the part corresponding to the analysis information at the time of interruption is generated. In this way, for example, when a user checks a part of the video being repaired and gives an instruction to interrupt the repair process, the user can select whether or not to generate a video file up to the time of interruption.

[0180] 3-2-2. Repairing video files The video file restoration process in which an MVD file analysis process (S11) is executed in parallel with the above playback operations (S61 to S67) will be described with reference to FIG.

[0181] 20 is a flowchart illustrating the restoration process (S7A) of a moving image file in the digital camera 100 of this embodiment. In this embodiment, in addition to the same processes (S11 to S14) as the restoration process (S7, FIG. 9) in embodiment 1, processes (S15 to S17) are executed according to the generation flag of the moving image file that is set when the restoration process is interrupted.

[0182] If the restoration process is interrupted during the analysis process (S11) of the MVD file (YES in S12), the controller 135 determines whether the generation flag of the video file is on or not (S15).

[0183] If the video file generation flag is on (YES in S15), the controller 135 generates an MVD file Dh as the analysis result at the time of interruption, similarly to step S13, based on the analysis information acquired in step S61 of FIG. 18 (S16).

[0184] The controller 135 combines the MDT file D1 that is the target of the analysis process (S11) with the generated MVD file Dh to generate a moving image file in the same manner as in step S14 (S17). The moving image file is recorded, for example, on the memory card 142.

[0185] Thereafter, the controller 135 ends the process of this flowchart and returns to step S8 in Fig. 7. If the generation flag of the moving image file is off (NO in S15), the controller 135 does not execute the processes of steps S16 and S17 and ends the process of this flowchart. After such a repair process of the moving image file (S7A) ends, the generated moving image file may be played from the beginning.

[0186] According to the above process, if the video file generation flag is on (YES in S15) when the repair process is interrupted (YES in S12), a video file is generated from the analysis results of the MDT file D1 at the time of interruption (S16, S17). As a result, when the video file generation flag is turned on by the instruction to generate a video file (YES in S65, S66 in FIG. 18), a video file capable of playing video for the period corresponding to the analysis results up to the time of interruption in the MDT file D1 is obtained.

[0187] In the above, an example has been described in which the analysis process of the MDT file is performed in the same manner as step S11 in embodiment 1, but a process of recording the analysis result at the time of interruption in the interruption information (S36 in FIG. 15) may be performed in the same manner as step S11A in embodiment 2. In this case, it is possible to resume the repair process using the interruption information.

[0188] Furthermore, the restoration process may be resumed using a video file generated from the analysis result at the time of interruption in steps S16 and S17. For example, instead of steps S20A and S20B in the MDT file analysis process (S11A) of the second embodiment, when the controller 135 determines that there is a video file generated at the time of interruption, it may read out meta information D10 from the mоооv of the video file. In this case, the analysis result at the time of interruption can be set from the meta information D10 instead of the interruption information, and the process from step S23 onwards can be resumed, and recording of the interruption information (S36) need not be executed.

[0189] 3-2-3.Video / audio playback processing The video / audio playback process (S62) in the playback operation (FIG. 18) during the above-mentioned restoration process (S7A) will be described below with reference to FIGS. 21 to 23.

[0190] 21 is a flowchart illustrating the video / audio playback process (S62) in the digital camera 100 of this embodiment. The process of this flowchart is executed in a state in which the analysis information is acquired in step S61 of FIG. 18, for example, every time a video or audio chunk is analyzed in the MDT file analysis process (S11).

[0191] In the digital camera 100 of this embodiment, for example, before executing a restoration process (S7A) of a moving image file, settings related to the playback operation during the restoration process are made in response to a user operation in a predetermined setting menu, etc. For example, in response to an operation of selecting one or both of video and audio as the playback target, and an operation of specifying the channel to be played back for audio data having multiple channels, which will be described later, setting information indicating the selected or specified playback target is held in the buffer memory 125.

[0192] In the process of FIG. 21, first, the controller 135 refers to the setting information of the buffer memory 125, for example, to determine whether or not the video is to be played back (S71).

[0193] If the video is to be played back (YES in S71), the controller 135 reads video data from the MDT file D1 based on the acquired analysis information, and outputs the video data to the display monitor 130 (S72). The controller 135 plays back the video of the video data based on the recording mode information included in the analysis information. In the example of Fig. 17, for example, an I-frame image corresponding to the latest analysis position in the analysis information is displayed, and the display is maintained until the execution cycle of the next step S72.

[0194] Next, the controller 135 judges whether or not audio is to be reproduced based on the setting information (S73). If video is not to be reproduced (NO in S71), the controller 135 does not execute step S72 and proceeds to the judgment of step S73.

[0195] If audio is to be reproduced (YES in S73), the controller 135 determines, for example, whether audio data for a predetermined period has been accumulated in the buffer memory 125 (S74). The predetermined period is set from the viewpoint of collectively outputting audio data for a period long enough for the user to recognize the audio, for example, one second.

[0196] If the audio data for the predetermined period has not been accumulated (NO in S74), the controller 135 buffers the audio data read from the MDT file D1 based on the analysis information by storing it in the buffer memory 125 (S75). After executing step S75, the controller 135 ends the processing of this flowchart. Thereafter, with the audio data being stored, the analysis information of the next chunk is obtained (S61 in FIG. 18), and the processing of this flowchart is executed again.

[0197] On the other hand, if audio data for a predetermined period has been stored (YES in S74), the controller 135 outputs audio data of the channel designated in the setting information from the audio data to the speaker 132 (S76). Such audio playback will be described with reference to Figs. 22 and 23.

[0198] Fig. 22 is a diagram for explaining the video / audio playback process (S62). In the example of Fig. 22, two chunks of audio data are accumulated as audio data for a predetermined period, and when the next chunk of video data is output to the display monitor 130, the accumulated audio data is output to the speaker 132 (S76).

[0199] Fig. 23 is a diagram for explaining an example of playback of audio data including multiple channels. Fig. 23 shows an example in which four-channel monaural audio data A1 is stored in an MDT file D1. When shooting a video, the digital camera 100 of this embodiment can record audio data corresponding to each type of audio in different channels according to user settings. For example, when the microphone 160 includes multiple microphone elements, audio for each channel is recorded, such as the announcer's voice in channel 1 of the four channels, background music in channel 2, environmental sound on the right side of the subject in channel 3, and environmental sound on the left side in channel 4.

[0200] 23, channel 1 is specified as the playback target, and in step S76, the audio data of channel 1 is selectively output to speaker 132. Controller 135 determines the recording format of the audio data, such as monaural 4-channel, based on the analysis information, and calculates the storage position of each channel in the audio data. When a combination of multiple channels is specified as the playback target, the audio data of the multiple channels may be output simultaneously.

[0201] After outputting the voice data (S76), the controller 135 ends the processing of this flowchart.

[0202] According to the above video / audio playback process (S62), video data is output to the display monitor 130 (S71, S72) and / or audio data is output to the speaker 132 (S73-S76) based on the analysis information in the MDT file analysis process (S11). This allows the user to confirm the video and / or audio according to the analysis information as part of the video up to the analyzed portion in the MDT file D1.

[0203] In the above process, the audio data is output when a predetermined period of time has been buffered (YES in S74, S76). This makes it easier for the user to recognize the audio played back based on the audio data, and makes it easier to identify the video recorded in the MDT file D1 being analyzed by the audio as well.

[0204] In Fig. 22, an example in which buffered audio data and the video data of the next chunk are output in synchronization has been described, but the synchronous playback of audio and video is not limited to this. For example, the video of the first chunk in Fig. 22 may be synchronously played back with the audio of the following first and second chunks, or the video of the second chunk may be synchronously played back with the audio of the first to third chunks before and after it. In addition, both may be played back simultaneously when the analysis of the video and audio in a predetermined analysis range is completed. In addition, the video and audio to be synchronized may be changed and played back as the analysis of the MDT file D1 progresses.

[0205] In the above process, for audio data having multiple channels, audio data of a channel designated by the user is output (S76). This allows, for example, audio recorded on a specific channel when shooting a video to be selectively played back in the restoration process, making it easier to identify the video that was shot. Although monaural 4-channel audio data has been exemplified above, audio data may have 3 or less channels or 5 or more channels. For stereo audio data, for example, the left and right channels may be played back simultaneously, or one of them may be played back according to a user's designation.

[0206] 3-3. Effects etc. As described above, in this embodiment, the digital camera 100, which is an example of an imaging device, includes the image sensor 115 (an example of an imaging unit), the controller 135 (an example of a control unit), the display monitor 130, and the speaker 132 (an example of an output unit). The image sensor 115 captures an image of a subject to generate imaging data. The controller 135 executes a video file repair process, which is an example of a repair process for generating a video file Dm, by sequentially analyzing information used for playing a video, such as meta information D10, from the MDT file D1 as an example of a damaged file having a loss as a video file Dm capable of playing a video indicated by the imaging data (S7A). The display monitor 130 and the speaker 132 output information to be presented to the user (S62, S71 to S76). During the period from when the repair process (S7A) for the corrupted file is started until the repair process is completed, the controller 135 outputs a portion of the video corresponding to the analysis information, which is an example of information analyzed in the repair process, on the display monitor 130 and / or the speaker 132 (S61, S62).

[0207] As described above, the digital camera 100 of this embodiment outputs (S61, S62) a part of the video corresponding to the analysis information, based on the analysis information sequentially obtained during the execution of the video file repair process (S7A). This makes it possible to present to the user a part of the video according to the obtained analysis information for the damaged file during the repair process, making it easier for the user to repair the video file.

[0208] In this embodiment, the digital camera 100 further includes an operation unit 150. The controller 135 starts a repair process in response to a user operation of selecting a specific damaged file from one or more damaged files as an example of a predetermined user operation on the operation unit 150 (S5, S7A), and outputs a part of the video corresponding to the analyzed analysis information during execution of the started repair process (S7A) (S61, S62). This makes it possible to output a part of the video during execution of the repair process for the specific damaged file selected in response to the user operation.

[0209] In this embodiment, the controller 135 outputs (S62) a part of the video corresponding to the analysis information while executing the repair process (S7A), and then accepts a user operation to interrupt the repair process at the operation unit 150, and interrupts the repair process for the corrupted file in response to the user operation to interrupt (S63, S35, S40). This allows the user to, for example, check a part of the output video while the repair process is being executed, and then perform an operation to interrupt the repair process.

[0210] In this embodiment, the output section of digital camera 100 includes display monitor 130 as an example of a display section that displays images. Controller 135 causes display monitor 130 to display an I-frame (an example of an image) of a video included in a portion of a moving image (S62, S72). This makes it easier for a user to determine, for example, from the displayed image whether a damaged file being repaired is the intended file.

[0211] In this embodiment, the output section of digital camera 100 includes speaker 132 as an example of an audio playback section that plays back audio. Controller 135 causes speaker 132 to play back audio included in part of the video (S76). This makes it easier for the user to determine, for example, from the played audio whether a damaged file being repaired is the intended file.

[0212] In this embodiment, the video file includes audio data having multiple channels, such as four mono channels. The controller 135 outputs the audio of a specific channel among the multiple channels based on the audio data (S76). This makes it easier to identify whether the file is the intended one by outputting the audio of that channel, for example, when an easily identifiable audio is recorded in a specific channel specified by the user.

[0213] In this embodiment, the digital camera 100 further includes a buffer memory 125 as an example of a storage unit for storing data. The controller 135 stores audio data indicating audio in a part of a video for a predetermined period in the buffer memory 125 based on the analysis information in the restoration process (S7A) (S74, S75), and outputs the stored audio data (S76). This makes it possible to play back the audio buffered for a predetermined period, making it easier for the user to recognize the played-back audio.

[0214] In this embodiment, after outputting a part of the moving image (S62), the controller 135 receives a user operation on the operation unit 150 to instruct completion of the repair process (S7A), and generates a moving image file capable of playing up to the part of the moving image corresponding to the analysis information analyzed in the repair process in response to the user operation to instruct completion (S65-S67, S15-S17). This allows the user to instruct completion of the ongoing repair process by operation, for example, when the user determines from the part of the output moving image that the rest of the moving image is unnecessary. Also, in response to the instruction to complete, a moving image file up to the analyzed part is obtained, making it easier to repair the moving image file even if it is only partway through the moving image.

[0215] (Modification of the third embodiment) In the above-described third embodiment, the digital camera 100 is described, which plays back images and the like as part of a moving image being repaired based on analysis information of a specific damaged file (i.e., MDT file D1) to be repaired while performing repair processing (S7A) of a moving image file. For example, before the user selects a damaged file to be repaired, the vicinity of the beginning of each repairable damaged file may be analyzed, and thumbnail images corresponding to each damaged file may be displayed based on the obtained analysis information. Such a modified example of the third embodiment will be described with reference to FIG. 24.

[0216] Fig. 24 is a diagram for explaining the operation of the digital camera 100 according to a modification of the third embodiment. Fig. 24 shows an example in which two MDT files D1 and D2 are stored as damaged files in the memory card 142. In this modification, for example, when displaying a recoverable file (S4 in Fig. 7), the controller 135 displays thumbnail images of the MDT files D1 and D2 based on the video data V10 and V20 obtained by analyzing the MDT files D1 and D2, respectively. In this way, thumbnail images of recoverable files are displayed in response to a user operation to select a menu item for video recovery (S1, S2), for example.

[0217] For example, in step S4, controller 135 executes an analysis process (S11) of each of MDT files D1 and D2. Controller 135 determines whether the analysis position has progressed to the first I frame of the first chunk, based on the analysis results and recording mode information, etc., that are sequentially obtained, for example, in the video chunk analysis process (S23 to S35 in FIG. 10A). If the analysis position has progressed to such a top frame, controller 135 interrupts the analysis process, and displays the image of the top frame as a thumbnail image on display monitor 130, based on the analysis results, etc.

[0218] With thumbnail images of the MDT files D1 and D2 displayed as described above, the controller 135 accepts a user operation to select a file to be restored on the operation unit 150 (S5 in FIG. 7). This makes it easier for the user to select a file to be restored by checking a portion of the video recorded in each of the MDT files D1 and D2 (see S6 and S7).

[0219] In Fig. 24, an example in which only a thumbnail image is displayed for each MDT file D1, D2 has been described, but a recording start time 61, a clip number 62, and a recording time 63 may also be displayed. A thumbnail image of one file may be displayed per screen, and the screen may be switched in response to a user operation of a selection button 152 or the like. In this case, for example, an order according to the recording start times of multiple recoverable files may be displayed on each screen. In Fig. 24, an example in which two MDT files D1, D2 are damaged files has been described, but thumbnail images can be displayed in the same manner even if there are three or more MDT files or even if there is only one MDT file.

[0220] As described above, in this modification, the digital camera 100 further includes the operation unit 150, and the output unit of the digital camera 100 includes the display monitor 130 that displays images. In response to a user operation (an example of a predetermined user operation) of selecting a menu item for video restoration on the operation unit 150 (S1, S2), the controller 135 causes the display monitor 130 to display thumbnail images as images showing parts of videos for each of one or more damaged files (S4), and accepts a user operation of selecting a specific damaged file from the one or more damaged files on the operation unit 150 while the images of each damaged file are displayed (see FIG. 24). This also makes it easier for the user to select a specific damaged file as a restoration target on the digital camera 100, making it easier to restore the video file.

[0221] As described above, in this embodiment, the controller 135 outputs a part of the video corresponding to the analyzed information based on the information analyzed in the repair process on the display monitor 130 and / or the speaker 132 (an example of an output unit) during the period from when the repair process for the corrupted file is started to when the repair process is completed (see Figs. 17 and 24). This makes it possible to output a part of the video recorded in the corrupted file, making it easier for the user to identify whether or not the corrupted file is one that the user wants to repair, and thus facilitating the repair of the video file.

[0222] (Other embodiments) As described above, the first and second embodiments have been described as examples of the technology disclosed in the present application. However, the technology in the present disclosure is not limited to these, and can be applied to embodiments in which modifications, substitutions, additions, omissions, etc. are appropriately performed. In addition, it is also possible to combine the components described in the above embodiments to create new embodiments.

[0223] In the above-described first embodiment, an example has been described in which the remaining time for restoration is displayed using a progress bar 65 or the like while the restoration process (S7) of a video file is being performed in the digital camera 100 (see FIG. 8(C) and FIG. 11). In this embodiment, the time required for restoration may be displayed not only while step S7 is being performed, but also, for example, when displaying a restoreable file (S4). Such a modified example of the first embodiment will be described with reference to FIG. 16.

[0224] Fig. 16 shows an example of how repair times are displayed in digital camera 100 according to a modification of embodiment 1. In the display example of Fig. 16, display monitor 130 displays, on a selection screen for files to be repaired, "Repair time" indicating the time from start to completion of repair processing for each selected file in addition to the same items as in Fig. 8(B) of embodiment 1 (S4). In digital camera 100 according to this modification, controller 135, for example, when extracting file information (S3), calculates an estimate of the repair time in addition to the recording time of each file.

[0225] For example, the digital camera 100 of this modified example may store in advance in the flash memory 145 or the like a table that associates recording mode information such as the recording time of a file and the frame rate of the video with the actual measured value of the time required to repair the file. The controller 135 can calculate an estimate of the repair time by, for example, referring to the table and the recording mode information in each MDT file D1 of the options.

[0226] As described above, in this modification, before executing a repair process on a specific damaged file, the controller 135 causes the display monitor 130 to display the repair time as an example of information indicating the execution time of the repair process (S4). This makes it easier for the user to decide whether or not to issue a repair instruction for the specific damaged file (see S6).

[0227] In each of the above embodiments, the controller 135 displays the remaining repair time (see FIG. 8C and FIG. 14) or the repair time (see FIG. 16) on the display monitor 130 during (S7) or before (S4) the repair process for a specific corrupted file, as an example of information indicating the execution time of the repair process. Display of such execution time is not limited to either during or before the repair process, but may be performed both during and before the repair process.

[0228] In each of the above embodiments, an example has been described in which, in the extraction of file information (S3), files with the extension "MDT" are extracted as options for repair targets. In this embodiment, furthermore, for example, by referring to the recording mode information of the MDT file D1, depending on whether the container standard is MOV or MP4, only files of one container standard may be extracted. For example, only files in the MOV format may be extracted and displayed as repairable files (S4).

[0229] In each of the above embodiments, an example has been described in which the MDT file analysis process (S11, S11A) alternately analyzes each of the video and audio chunks (S23 to S35, S37 to S40). In this embodiment, the digital camera 100 may refer to the recording mode information of the MDT file D1, for example, before executing step S37, to determine whether the audio data is of an analyzable standard. For example, if the audio data is recorded in a format other than LPCM, the MDT file analysis process (S11, S11A) may be terminated without executing the processes after step S37, or only the video chunks may be analyzed. The above determination may also be made when reading out the recording mode information (S21).

[0230] In each of the above embodiments, an example has been described in which the recording mode information is stored at the beginning of the MDT file D1, as shown in Fig. 11(A). The recording mode information may be recorded in a file separate from the MDT file D1, and in this embodiment, it is recorded on the memory card 142, for example, as a text file. The recording mode information may include information other than the information exemplified in Fig. 11(C), or may include only a part of the information in Fig. 11(C). For example, a recording mode may be set in advance according to a combination of the image quality, frame rate, bit rate, etc. of the video, and a database in which the recording mode is associated with other information may be stored in the flash memory 145 or the like and referenced as the recording mode information.

[0231] In each of the above embodiments, an example has been described in which, in the video file repair process (S7), if the repair is interrupted (YES in S12), the process related to the generation of the video file Dm (S13, S14) is not executed and the repair process is terminated. In this embodiment, if the repair is interrupted (YES in S12), an MVD file Dh may be generated based on the analysis result of the MDT file D1 up to the time of interruption by a process similar to steps S13 and S14, and a video file Dm that can be played up to the point where analysis was possible may be generated. Also, if an analysis error or the like occurs during the analysis of the MDT file D1, repair may be performed using the analysis result up to the time the error occurred, as in the case of interruption.

[0232] In each of the above embodiments, an example has been described in which interruption information in the MDT file analysis process (S11, S11A) is recorded on the memory card 142. In this embodiment, the interruption information may be recorded on a non-volatile recording medium in the body of the digital camera 100, such as the flash memory 145.

[0233] In the above embodiments, in the analysis process of the MDT file (S11, S11A), an example was described in which it was determined whether or not there was an interruption instruction for each chunk of video and audio, such as for each GOP of video (S35, S40). In this embodiment, the presence or absence of an interruption instruction may be determined not only for each chunk, but also for each NAL unit or frame, or the determination may be performed for a period greater than the period corresponding to one chunk. For example, if the presence or absence of an interruption instruction is determined for each NAL unit or frame, the repair process can be interrupted more quickly than when the determination is made on a chunk-by-chunk basis. In addition, if an interruption instruction is given when it is expected that the repair will be completed soon, such as when the remaining repair time calculated in the process shown in FIG. 12 is less than a predetermined time, a message or the like may be displayed on the display monitor 130 to confirm to the user whether or not to perform an interruption.

[0234] In the above-described third embodiment, in the analysis process (S11) of the MDT file, the analysis information held for each video and audio chunk is updated, and the analysis information is acquired at a cycle corresponding to one chunk, and the operation of Fig. 18 is performed. In the present embodiment, the analysis information may be updated at a cycle longer or shorter than the cycle, and the operation of Fig. 18 may be performed.

[0235] In the above third embodiment, an example has been described in which an I frame is played back for each chunk of video in the video / audio playback process (S62). In this embodiment, the I frame may be played back at a predetermined frequency, such as once every 10 seconds, instead of for each chunk. The playback frequency may be set by a user operation in a predetermined setting menu or the like. Images of frames other than I frames may also be displayed.

[0236] In the above-described third embodiment, an example has been described in which an I-frame image corresponding to the latest analysis position is displayed during video playback in the video / audio playback process (S62). In this embodiment, for example, frame images corresponding to the analysis results for each chunk from the beginning of the MDT file D1 may be stored in the buffer memory 125 or the like, and the stored frame images may be displayed sequentially at a predetermined time interval in response to a user operation to instruct video playback.

[0237] In the above third embodiment, an example was described in which a moving image file that can be played up to a certain point in the moving image is generated (S15-S17) based on the analysis result at the time of interruption depending on whether or not a user operation is performed to generate a moving image file during the restoration process (S65-S67 in FIG. 18). In this embodiment, it is not necessary to accept an instruction to generate a moving image file, and it is not necessary to execute the process (S65-S67, S15-S17) in accordance with the generation instruction.

[0238] In the above-described third embodiment, an example was described in which the video file repair process (S7A) is executed in response to a user operation to select a damaged file to be repaired (S5). In this embodiment, the repair process (S7A) is not limited to such a user operation, and may be started, for example, when the digital camera 100 is started up and a damaged file recorded on the memory card 142 is detected.

[0239] In the above-described third embodiment, a modified example was described in which thumbnail images were displayed by analyzing each corrupted file before outputting a portion of the video during the repair process (S7A). In this embodiment, after the thumbnail images are displayed, it is not necessary to output a portion of the video during the repair process (S7A).

[0240] In this embodiment, a digital camera 100, which is an example of an imaging device, includes an image sensor 115 (an example of an imaging unit) that captures an image of a subject and generates imaging data, a controller 135 (an example of a control unit) that executes a repair process (S7A) that generates a video file Dm by sequentially analyzing information used for playing a video from a damaged file having a defect as a video file Dm capable of playing a video indicated by the imaging data, an operation unit 150 that inputs a user operation related to the repair process (S7A), and a display monitor 130 (an example of a display unit) that displays an image. In response to a user operation (an example of a predetermined user operation) that selects a menu item for video repair on the operation unit 150 (S1, S2), the controller 135 displays a thumbnail image (an example of an image showing a part of a video) for each of one or more damaged files on the display monitor 130 (S4), and accepts a user operation to select a specific damaged file from the one or more damaged files on the operation unit 150 while the image of each damaged file is displayed (see FIG. 24) (S5).

[0241] As described above, the digital camera 100 of this embodiment accepts a user operation to select a damaged file to be repaired (S5) while displaying thumbnail images of each damaged file in response to a menu operation for video repair (S1, S2). This allows the user to check the contents of each damaged file before starting the repair process (S7A) for the selected damaged file, making it easier to select, for example, the intended file to be repaired. This also makes it easier to repair video files.

[0242] In each of the above embodiments, the digital camera 100 is described as being capable of interrupting the restoration process, but there may be cases where the digital camera 100 does not accept a user operation to interrupt the restoration process. In this case, for example, in the MDT file analysis process (S11) similar to that of the first embodiment, the processes related to interruption (S35, S36, S40) may not be executed.

[0243] In each of the above embodiments, the digital camera 100 has been described as recording a video file on the memory card 142 as an example of a recording medium. The digital camera 100 of the present embodiment may record a video file on an external recording device such as an SSD (Solid State Drive) as a recording medium, not limited to the memory card 142. The digital camera 100 may also record a video file on an external recording device such as a data server via a communication network, for example, by the communication module 155, and may perform a repair operation on the video file recorded on such an external recording device. These various external recording devices are examples of recording media in the present embodiment.

[0244] In each of the above embodiments, an example has been described in which the digital camera 100 displays a damaged file selection screen (FIG. 8(B)) or the like on the display monitor 130, but this is not limiting. For example, the digital camera 100 of this embodiment may display a selection screen similar to that of FIG. 8(B) on an external display or the like via the communication module 155.

[0245] In each of the above embodiments, an example has been described in which the digital camera 100 is provided with the display monitor 130 and the speaker 132. In this embodiment, the digital camera 100 may be provided with an output terminal or a communication circuit for outputting video data to an external display or the like or for outputting audio data to an external speaker, instead of one or both of the display monitor 130 and the speaker 132. The output terminal and the communication circuit are examples of an output unit in this embodiment.

[0246] In each of the above embodiments, the digital camera 100 is provided with the optical system 110 and the lens driving unit. The imaging device of the present embodiment does not need to include the optical system 110 and the lens driving unit, and may be, for example, an interchangeable lens type camera.

[0247] In the above embodiments, the digital camera 100 has been described as an example of an imaging device, but the imaging device is not limited to this. The imaging device of the present disclosure may be any electronic device having a video shooting function (for example, a video camera, a smartphone, a tablet terminal, etc.).

[0248] In each of the above embodiments, an example of performing a video repair operation in an imaging device has been described, but the present disclosure is not limited thereto. The technology of the present disclosure may be realized not only in an imaging device, but also in an information processing device that does not have a video shooting function. The information processing device of this embodiment includes a control unit that executes a repair process to generate a video file from a damaged file having a defect as a video file capable of playing a video represented by imaging data generated by capturing an image of a subject, and an operation unit that inputs a user operation related to the repair process. The control unit accepts a user operation to select a specific damaged file from one or more damaged files in the operation unit, and executes the repair process on the selected damaged file in response to the user operation.

[0249] This also makes it easier for the user of the information processing device to repair a damaged video file, similar to the above-described embodiments.

[0250] As described above, the embodiments have been described as examples of the technology in the present disclosure, and the accompanying drawings and detailed description have been provided for this purpose.

[0251] Therefore, among the components described in the attached drawings and the detailed description, not only are there components essential for solving the problem, but there may also be components that are not essential for solving the problem in order to illustrate the above technology. Therefore, the fact that such non-essential components are described in the attached drawings or the detailed description should not be interpreted as immediately indicating that such non-essential components are essential.

[0252] Aspects of the present disclosure As described above, the present disclosure includes the following aspects.

[0253] (First aspect) an imaging unit that captures an image of a subject and generates imaging data; a control unit that executes a repair process to generate a video file capable of playing the video represented by the imaging data by sequentially analyzing information used for playing the video from a damaged file having a defect, the video file being capable of playing the video; an output unit that outputs information to be presented to a user; The control unit is During the period from when the repair process for the corrupted file is started to when the repair process is completed, a part of the video corresponding to the analyzed information is outputted from the output unit based on information analyzed in the repair process. Imaging device.

[0254] (Second aspect) an operation unit for inputting a user operation related to the restoration process, The control unit is starting the repair process in response to a predetermined user operation on the operation unit; During the execution of the initiated repair process, outputting a portion of the video corresponding to the analyzed information. The imaging device according to the first aspect.

[0255] (Third aspect) The control unit is outputting a part of the video corresponding to the analyzed information during the execution of the restoration process, and then receiving a user operation on the operation unit to instruct interruption of the restoration process; The repair process of the damaged file is interrupted in response to a user operation instructing the interruption. The imaging device according to the second aspect.

[0256] (Fourth aspect) the output unit includes a display unit that displays an image; The control unit causes an image included in the part of the moving image to be displayed on the display unit. The imaging device according to the second or third aspect.

[0257] (Fifth aspect) the output unit includes an audio playback unit that plays back audio; The control unit causes the audio playback unit to play back audio included in the part of the video. The imaging device according to any one of the second to fourth aspects.

[0258] (Sixth aspect) the video file includes audio data having multiple channels; The control unit outputs a sound of a specific channel among the plurality of channels based on the sound data. The imaging device according to a fifth aspect.

[0259] (Seventh aspect) Further comprising a storage unit for storing data, The control unit stores in the storage unit audio data indicating audio in a portion of the video for a predetermined period of time based on information analyzed in the restoration process, and outputs the stored audio data. The imaging device according to the fifth or sixth aspect.

[0260] (Eighth aspect) The control unit is After outputting a portion of the video, a user operation for instructing completion of the restoration process is accepted at the operation unit, In response to a user operation instructing completion of the restoration process, a video file capable of playing up to a portion of the video corresponding to the information analyzed in the restoration process is generated. The imaging device according to any one of the second to seventh aspects.

[0261] (Ninth aspect) an operation unit for inputting a user operation related to the restoration process, the output unit includes a display unit that displays an image; The control unit is displaying, on the display unit, an image showing a part of the video for each of the one or more corrupted files in response to a predetermined user operation on the operation unit; A user operation for selecting a specific damaged file from the one or more damaged files is accepted on the operation unit while the image of each damaged file is displayed. The imaging device according to the first aspect.

[0262] (Tenth aspect) an imaging unit that captures an image of a subject and generates imaging data; a control unit that executes a repair process to generate a video file capable of playing the video represented by the imaging data by sequentially analyzing information used for playing the video from a damaged file having a defect, the video file being capable of playing the video; an operation unit for inputting a user operation related to the restoration process; A display unit for displaying an image, the control unit, in response to a predetermined user operation on the operation unit, causes a display unit to display an image showing a portion of a video for each of the one or more corrupted files, and accepts a user operation on the operation unit to select a specific corrupted file from the one or more corrupted files while the image of each corrupted file is displayed; Imaging device. [Industrial Applicability]

[0263] The present disclosure is applicable to an imaging device that records a moving image file on a recording medium. [Explanation of symbols]

[0264] 100 Digital Camera 115 Image Sensor 120 Image Processing Engine 125 Buffer Memory 130 Display Monitor 132 Speaker 135 Controller 140 Card Slots 142 Memory Card 145 Flash Memory 150 Operation section

Claims

1. an imaging unit that captures an image of a subject and generates imaging data; a control unit that executes a repair process to generate a video file capable of playing the video represented by the imaging data by sequentially analyzing information used for playing the video from a damaged file having a defect, the video file being capable of playing the video; an output unit that outputs information to be presented to a user; The control unit is During the period from when the repair process for the corrupted file is started to when the repair process is completed, a part of the video corresponding to the analyzed information is outputted from the output unit based on information analyzed in the repair process. Imaging device.

2. an operation unit for inputting a user operation related to the restoration process, The control unit is starting the repair process in response to a predetermined user operation on the operation unit; During the execution of the initiated repair process, outputting a portion of the video corresponding to the analyzed information. The imaging device according to claim 1 .

3. The control unit is outputting a part of the video corresponding to the analyzed information during the execution of the restoration process, and then receiving a user operation on the operation unit to instruct interruption of the restoration process; The repair process of the damaged file is interrupted in response to a user operation instructing the interruption. The imaging device according to claim 2 .

4. the output unit includes a display unit that displays an image; The control unit causes an image included in the part of the moving image to be displayed on the display unit. The imaging device according to claim 2 .

5. the output unit includes an audio playback unit that plays back audio; The control unit causes the audio playback unit to play back audio included in the part of the video. The imaging device according to claim 2 .

6. the video file includes audio data having multiple channels; The control unit outputs a sound of a specific channel among the plurality of channels based on the sound data. The imaging device according to claim 5 .

7. Further comprising a storage unit for storing data, The control unit stores, in the storage unit, audio data indicating audio in a portion of the video for a predetermined period of time based on information analyzed in the restoration process, and outputs the stored audio data. The imaging device according to claim 5 .

8. The control unit is After outputting a portion of the video, a user operation for instructing completion of the restoration process is accepted at the operation unit, In response to a user operation instructing completion of the restoration process, a video file capable of playing up to a portion of the video corresponding to the information analyzed in the restoration process is generated. The imaging device according to claim 2 .

9. an operation unit for inputting a user operation related to the restoration process, the output unit includes a display unit that displays an image; The control unit is displaying, on the display unit, an image showing a part of the video for each of the one or more corrupted files in response to a predetermined user operation on the operation unit; A user operation for selecting a specific damaged file from the one or more damaged files is accepted on the operation unit while the image of each damaged file is displayed. The imaging device according to claim 1 .

Citation Information

Patent Citations

  • Information processing unit, moving image generator, control method, program, and restoration method

    JP2013258655A

Cited By

  • Tool rest and machine tool

    WO2026053528A1