Video processing apparatus, control method for the same, and program

JP2024169183A5Pending Publication Date: 2026-05-07CANON KK
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
CANON KK
Filing Date
2023-05-25
Publication Date
2026-05-07

AI Technical Summary

Technical Problem

Existing video processing methods struggle to efficiently identify the end file in a series of divided video files recorded over time, especially when the recording is stopped, due to the lack of a clear method to specify the final file based on file names, leading to inefficiencies in searching and editing.

Method used

A video processing device that generates video files with names indicating chronological order and includes a character string indicating the end of the recording, allowing easy identification of the final file.

Benefits of technology

Enables quick and accurate identification of the end file in a series of divided video files, improving search efficiency and editing workflows by providing a clear indication of the file sequence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To easily specify a terminal file at the stop of recording from video files recorded while dividing videos from the start of recording to the stop of recording.SOLUTION: A video processing apparatus generates video files from videos obtained by an imaging unit, and has: an operation unit instructs the start and stop of recording; and a file generation unit that divides videos picked up by the imaging unit in a period from reception of an instruction to start recording from the operation unit until reception of an instruction to stop the recording, into a plurality of time-series partial videos according to a preset division condition, and generates files of the partial videos. Here, in generating the files of the partial videos, the file generation unit generates files of partial videos having file names including information indicating time-series order, and for a terminal partial video at the terminal of the time series, of the plurality of partial videos, generates a file of a partial video having a file name including the information indicating the time-series order and a character string indicating the terminal.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a video processing device, and a control method and program therefor. [Background technology]

[0002] In recent years, broadcasting stations, news agencies, and other news sites have been required to streamline production workflows in order to convey accurate information more quickly than with SNS (Social Networking Services). For this reason, the importance of network transfer, which automatically uploads video files from a camera to a broadcasting station's file server, is increasing. One method for achieving network transfer is to periodically record divided video files on a recording medium attached to the camera, and then sequentially transfer the completed video files to the broadcasting station's file server. The desired video file is searched from the large number of video files stored on the file server, and the extracted video file is edited using NLE (Non Linear Editing) software. If necessary, the video files transferred over the network in small pieces may be combined to make them easier to handle during editing.

[0003] However, this method divides video files periodically, so the division units are small, and the number of files can become huge when recording for a long period of time. As a result, the problem occurs that the desired video file cannot be searched for in a short time. In addition, when combining video files to make them easier to handle during editing, it is necessary to specify the range of files to be combined, but there are cases where the first and last files of a network transfer cannot be identified from the file names.

[0004] To solve these problems, it is conceivable that file searching can be made more efficient by devising file naming rules, thereby making it possible to quickly extract desired video files from a huge number of files.

[0005] Patent Document 1 discloses a method for assigning file names to video files that combine the file name before division and a sequential number when dividing the files. Patent Document 2 discloses a method for assigning file names to video files that combine the shooting date and file number. Patent Document 3 discloses a method for determining the playback order of divided video files from file names that are assigned numbers that indicate the file generation order. And Patent Document 4 discloses a method for dividing video in space and time, and changing the video file names based on metadata of the division information (shooting date, etc.). [Prior art documents] [Patent documents]

[0006] [Patent Document 1] JP 2002-344914 A [Patent Document 2] JP 2005-275978 A [Patent Document 3] JP 2011-160234 A [Patent Document 4] Patent No. 6548500 Summary of the Invention [Problem to be solved by the invention]

[0007] In all of Patent Documents 1 to 3, numbers that indicate the order in which files were generated are added to file names, making it possible to identify the first file at the start of recording. However, if recording is repeated, it is not possible to identify the last file when recording is stopped.

[0008] Patent Document 4 also does not mention a method for identifying the last file when recording is stopped from the file name. It is also possible to identify the last file from metadata stored in the video file, but there is a problem that when there are a huge number of files, it takes a lot of time to open the files and analyze the metadata.

[0009] The present invention has been made in consideration of the above-mentioned problems, and provides a technique for easily identifying the last file at the time recording is stopped, using the file name, from among video files that are recorded in division from the start of recording to the end of recording. [Means for solving the problem]

[0010] In order to solve this problem, for example, a video processing device according to the present invention has the following configuration. A video processing device that generates a video file from a video captured by an imaging means, An operation means for instructing start and stop of recording; a file generating means for dividing an image captured by the imaging means during a period from when an instruction to start recording is received by the operating means to when an instruction to stop recording is received into a plurality of partial images in time series according to a division condition that has been set, and for generating a file for each partial image, The file generation means When generating a file for each partial video, a file for the partial video is generated having a file name including information indicating a chronological order; For a terminal partial video that is the end of the time series among the plurality of partial videos, a file of the partial video is generated having a file name that includes information indicating the chronological order and a character string indicating the end. Effect of the Invention

[0011] According to the present invention, it is possible to easily specify the last file at the time when recording is stopped from among video files that are divided and recorded from the start of recording to the end of recording. [Brief description of the drawings]

[0012] [Figure 1] FIG. 1 is a block diagram showing the configuration of a video processing device according to an embodiment. [Diagram 2] 5 is a flowchart showing a video recording process according to the first embodiment. [Diagram 3] 5 is a flowchart showing a video recording process according to the first embodiment. [Figure 4]10 is a flowchart showing a video recording process according to a second embodiment. [Diagram 5] 10 is a flowchart showing a video recording process according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.

[0014] First, an overview of this embodiment will be described. It is desired to make the production workflow at the news site and the like more efficient. In this embodiment, for ease of understanding, network transfer will be taken up in which an image taken by a cameraman with a camera at the shooting site is automatically uploaded as a video file to a file server of a broadcasting station. Although the network transfer targets low bit rate video files for proxy editing purposes, it is also possible to simultaneously record high bit rate video files for archiving purposes separately from the network transfer. As a method for realizing network transfer, a method will be described in which divided video files are recorded periodically on a recording medium attached to a camera, and the completed video files are sequentially transferred to a file server of a broadcasting station.

[0015] <Configuration of video processing device> Fig. 1 is a block diagram showing an example of the internal configuration of a video processing device 100 according to this embodiment. As shown in Fig. 1, the video processing device 100 is composed of a bus 101, a CPU 102, a ROM 103, a RAM 104, an operation unit 105, a video recording unit 106, a first recording medium 107, a second recording medium 108, a recording medium control unit 109, a file name generation unit 110, a management information registration unit 111, and a network transfer unit 112.

[0016] The bus 101 is made up of an address bus, a data bus, and a control bus, and is used when communicating commands and data between the components of the video processing device 100.

[0017] The CPU 102 is a processor for reading out and executing the programs stored in the ROM 103 and for controlling each component of the video processing device 100 .

[0018] The ROM 103 is a non-volatile memory that stores programs, various setting information, etc. In order to handle program updates, etc., the ROM 103 is configured as a writable non-volatile memory (such as an EEPROM).

[0019] The RAM 104 is a volatile memory used as a working memory.

[0020] The operation unit 105 is composed of a release button, a cross key for selecting an operation such as menu setting on a UI screen displayed on a TFT liquid crystal display, etc. The operation unit 105 may be realized by a touch panel instead of a physical button. Every time the user presses the release button, the operation unit 105 notifies the video recording unit 106 via the CPU 102 of either a request to start recording video data or a request to stop recording. Along with this notification, the operation unit 105 acquires menu setting values ​​selected by the user as recording setting parameters, and notifies the video recording unit 106 of the same. Here, the recording setting parameters are composed of menu setting values ​​such as a recording mode such as normal recording or network transfer, and a network transfer interval (time). When network transfer is set in the menu, the video is divided at the time set as the network transfer interval, partial video files are generated from each of the divided partial videos, and the partial video files are transferred.

[0021] The video recording unit 106 has an imaging unit including an optical lens and an imaging element, a control unit for controlling the imaging unit, and a processing unit for converting (encoding) the captured video (image data) into data to be recorded on a recording medium (first and second recording media, described later). When a recording start request is notified from the operation unit 105 via the CPU 102, the video recording unit 106 starts recording the captured video data. First, the video recording unit 106 generates captured image data by forming an image of a subject incident through a lens on the imaging element and photoelectrically converting the image. Next, the video recording unit 106 encodes the captured image data based on a video compression standard such as H.264 / MPEG4 AVC, and buffers the generated video data in the RAM 104. Next, the video recording unit 106 multiplexes the video data including the audio data, and sequentially writes the video data as a video file on the first recording medium 107 or the second recording medium 108 via the recording medium control unit 109. The file may be divided and recorded according to a division condition set in advance from the start of recording to the end of recording. The division conditions are the recording time and the file size, and can be freely set by the user. For example, if the division unit is selected as the recording time and the recording time is set in 30-second units, the video recording unit 106 refers to a management table that manages the frame numbers and data size of the video data for those 3 seconds when the period of video shooting matches the set time, and calculates the file division position. When the file division position is reached, the video recording unit 106 closes the current video file, creates a new video file, and continues writing the video data. Next, when the video recording unit 106 is notified of a recording stop request from the operation unit 105 via the CPU 102, it stops recording the video data after writing the final data is completed.

[0022] The first recording medium 107 and the second recording medium 108 are removable recording media such as SD cards, and are attached to the video processing device 100 in order to record video files.

[0023] The recording medium control unit 109 is a control unit for writing and reading data to and from the first recording medium 107 and the second recording medium 108. The recording medium control unit 109 receives a read command notified from the CPU 102, sequentially reads designated areas of the first recording medium 107 and the second recording medium 108 at fixed size intervals, expands the data in the RAM 104, and buffers the data. The recording medium control unit 109 receives a write command notified from the CPU 102, receives data to be written expanded in the RAM 104, and sequentially writes the received data at fixed size intervals to the first recording medium 107 and the second recording medium 108. When the reading or writing is completed, the recording medium control unit 109 notifies the CPU 102 of the completion of the requested process. The recording medium control unit 109 also acquires file system information from the first recording medium 107 and the second recording medium 108 as a recording setting parameter, and notifies the video recording unit 106 of the file system information.

[0024] When the file name generation unit 110 receives a file name generation request from the video recording unit 106, it determines and generates a file name to be given to the video file. For example, a file name such as "MVI_0001.MP4" that complies with the DCF standard is generated. Here, "MVI_" is a character representing a prefix including a user-specified character string, and "0001" is a character representing the chronological order of the file number. When a file is divided from the start of recording to the end of recording according to a preset division condition, the file number is incremented by 1 for each file division. Basically, a file name is generated when recording starts, but a file name generation request may be notified when the file name is changed when recording stops.

[0025] When the management information registration unit 111 is notified by the file name generation unit 110 that the file name generation is complete, the management information registration unit 111 registers the file name in management information that manages the file names stored in RAM 104. Furthermore, if the file name is changed when recording is stopped, the management information registration unit 111 deletes the old file name from the management information and re-registers the new file name. The management information may be written as a management file to the first recording medium 107 and the second recording medium 108 while being stored in RAM 104.

[0026] The network transfer unit 112 has a network interface, and when notified of the completion of file closing from the video recording unit 106, it transfers the video file recorded on the second recording medium 108 to an external device such as a preset file server via the Internet using FTP (File Transfer Protocol). The network interface of the network transfer unit 112 may be either wired or wireless.

[0027] [First embodiment] The recording and transfer processing of the video recording unit 106 in the first embodiment will be described below with reference to Figures 2 and 3. Figure 2 shows the processing flow at the start of recording. Note that the video recording unit 106 temporarily buffers the video captured by the imaging unit in the RAM 104, and when a division condition described later is satisfied, determines the file name of a partial video file of the buffered video data (and audio data). Therefore, the description will focus on this point, and the processing related to the imaging process and storage process will not be described in particular.

[0028] In S200, the video recording unit 106 determines whether or not a user has operated to start recording of video based on a signal from the CPU 102. The CPU 102 monitors the user's operation on the operation unit 105, and when it detects that the user has pressed the release button, it notifies the video recording unit 106 that recording has started. The video recording unit 106 determines whether or not video recording has started according to whether or not this notification has been received. If the video recording unit 106 determines that an operation to start recording of video has been performed, it notifies the file name generation unit 110 of a recording start request and transitions to S201. On the other hand, if the video recording unit 106 determines that an operation to start recording has not been performed, it returns the process to S200 and waits for reception of a recording start request.

[0029] In S201, the video recording unit 106 judges whether or not to divide the video file from the start of recording to the end of recording according to a division condition set in advance based on the recording setting parameters acquired from the operation unit 105 or the recording medium control unit 109. Specifically, the video recording unit 106 judges that the file is divided based on the recording setting parameters when the recording mode is network transfer or the file system information is FAT32. On the other hand, the video recording unit 106 judges that the file is not divided when the above conditions are not met. Note that whether or not to perform network transfer is set in advance by the user. Then, when the file is divided, the video recording unit 106 notifies the file name generation unit 110 of the fact and transitions to S202. On the other hand, when the file is not divided, the video recording unit 106 notifies the file name generation unit 110 of the fact and transitions to S206.

[0030] In S202, the video recording unit 106 determines whether or not to transfer the video file over the network based on the recording setting parameters notified from the operation unit 105. If the video recording unit 106 determines to transfer the video file over the network, it notifies the file name generation unit 110 of that effect and transitions to S203. On the other hand, if the video recording unit 106 determines not to transfer the video file over the network, it notifies the file name generation unit 110 of that effect and transitions to S204.

[0031] In S203, the video recording unit 106 sets a division unit of the video file suitable for network transfer in terms of time length based on the recording setting parameters notified from the operation unit 105. For example, the user can select the division unit from options such as 30 seconds, 1 minute, 2 minutes, etc. by changing the menu setting related to the network transfer interval (time) on the operation unit 105. When the video recording unit 106 has completed setting the division unit based on the menu setting, it transitions to S205.

[0032] In S204, the video recording unit 106 sets a division unit of the video file suitable for the recording medium by file size based on the recording setting parameters notified from the recording medium control unit 109. Specifically, if the file system of the recording medium is FAT32, the division unit is set to 4GB (the maximum size that can be managed by FAT32), and if the file system is exFAT, there is essentially no limit to the file size (to be precise, the maximum file size is 256TB), so no division unit is set. Next, when the video recording unit 106 has completed setting the division unit, it transitions to S206.

[0033] In S205, the video recording unit 106 judges whether or not the file is the first file at the start of recording. Specifically, upon receiving a recording start request notified from the operation unit 105, the video recording unit 106 judges whether or not the file name is generated for the first time for the video file. If the file is the first file, the process proceeds to S207. On the other hand, if the file is not the first file, the process proceeds to S208.

[0034] In S206, the file name generation unit 110 sets "MVI_" as a prefix. "MVI" is a character string used in the file name of a video file, and may be determined according to a recording mode such as a recording format (MP4, MXF). For video files that are not divided and video files that are divided based on file size, a character string with "_" added to this character string is used as a prefix. The file name generation unit 110 sets the file number characters to a value obtained by increasing by 1 the file number assigned to the previously recorded file. Next, the file name generation unit 110 notifies the video recording unit 106 and management information registration unit 111 of "[prefix][file number]" as the file name excluding the extension, and transitions to S209.

[0035] In S207, the file name generation unit 110 sets the prefix to "MVIB", which is "MVI", indicating that it is a video file, plus the initials of "Begin", indicating the start of recording. The file name generation unit 110 also sets the file number to a value obtained by increasing by 1 the file number assigned to the previously recorded file. Next, the file name generation unit 110 sets "[prefix][file number]" as the file name excluding the extension, notifies the video recording unit 106 and management information registration unit 111 of the completion of file name generation, and transitions to S209.

[0036] In addition, when this device records video for the first time in a day, the file number at the start of recording shall be set to "1."

[0037] In S208, file name generation unit 110 sets "MVID", which is the initial letter of "Duration", indicating that recording is in progress (in the middle of recording), as a prefix to "MVI", which indicates that it is a video file. In addition, the file number is set to a value incremented by 1. Next, file name generation unit 110 notifies video recording unit 106 and management information registration unit 111 of "[prefix][file number]" as the file name excluding the extension, and transitions to S209.

[0038] In S209, when management information registration section 111 is notified by file name generation section 110 that the file name generation is complete, management information registration section 111 registers the file name in management information, and the process proceeds to S210.

[0039] In S210, the video recording unit 106 generates a dummy header that stores header information for repairing a video file that has been damaged due to a momentary power interruption or the like, and writes it to the first recording medium 107 and the second recording medium 108. At this time, the file name of the dummy header is set to "[prefix][file number].DMV". Here, the prefix and file number use the prefix notified by the file name generation unit 110. Next, the video recording unit 106 transitions to S211.

[0040] In S211, the video recording unit 106 determines whether or not the file is the first file at the start of recording. If the video recording unit 106 determines that it is the first file, the process proceeds to S212. In S212, since the relevant file is the first file at the start of recording, the video recording unit 106 records an additional information file including the news report title and the like in XML (eXtensible Markup Language) format, and then proceeds to S213. At this time, the file name of the metadata information is set to "[prefix][file number].XML". Here, the prefix and file number use the prefix notified by the file name generation unit 110.

[0041] On the other hand, if the video recording unit 196 determines in S211 that the corresponding file is not the first file, the process proceeds to S213.

[0042] In S213, the video recording unit 106 records a data file in which the video data and audio data are multiplexed. At this time, the file name is set to "[prefix][file number].DAT". Here, the prefix and file number use the prefix notified by the file name generation unit 110.

[0043] Next, the process flow after the start of recording will be described with reference to the flowchart in Fig. 3. It should be understood that this figure shows the process following the flowchart in Fig. 2.

[0044] In S300, the video recording unit 106 determines whether or not there has been a command from the user to stop recording. The CPU 102 monitors the user's operation on the operation unit 105, and upon detecting that the user has pressed the button release button again, notifies the video recording unit 106 that recording has been stopped. The video recording unit 106 determines whether or not video recording has been stopped according to whether or not this notification has been received. If the video recording unit 106 determines to stop recording, it notifies the file name generation unit 110 of a request to stop recording, and transitions to S302. On the other hand, if the video recording unit 106 determines that recording has not been stopped (recording continues), transitions to S301.

[0045] In S301, the video recording unit 106 determines whether the video data being recorded meets the division conditions (whether the file being recorded is of a set size, or whether the video data has a set duration). If the video recording unit 106 determines that the division conditions are met, it transitions to S310 to close the video file being recorded and create a new video file. If the video recording unit 106 determines that the division conditions are not met, it transitions to S300 to continue recording.

[0046] In S302, the video recording unit 106 creates a header file that stores various information related to the video data (resolution, frame rate, etc.), and the process proceeds to S303.

[0047] In S303, the video recording unit 106 combines the header file and the data file in the recording medium. The created video file name is "[prefix][file number].MP4". Here, the prefix and file number used are the prefix notified by the file name generation unit 110. When the video recording unit 106 completes the combining process, the process proceeds to S304.

[0048] In S304, the video recording unit 106 deletes the dummy header file from the recording medium. After completing the deletion, the video recording unit 106 notifies the network transfer unit 112 of the completion of closing the file, and the process proceeds to S305.

[0049] In S305, the video recording unit 106 judges whether or not the video file has been divided from the start of recording to the end of recording according to a division condition set in advance based on the recording setting parameters notified from the operation unit 105 or the recording medium control unit 109. Specifically, the video recording unit 106 judges that the file has been divided if the recording mode is network transfer or the file system information is FAT32 based on the recording setting parameters. On the other hand, if the video recording unit 106 judges that the above conditions do not apply, it judges that the file has not been divided. Next, if the video recording unit 106 judges that the file has been divided, it notifies the file name generation unit 110 to that effect and transitions to S306. On the other hand, if the video recording unit 106 judges that the file has not been divided, it ends the current flow.

[0050] In S306, the video recording unit 106 determines whether or not there will be network transfer based on the recording setting parameters notified from the operation unit 105. If there will be network transfer, the video recording unit 106 notifies the file name generation unit 110 accordingly, and the process proceeds to S307. On the other hand, if the video recording unit 106 determines that there will be no network transfer, the current flow ends.

[0051] In S307, the file name generation unit 110 changes the prefix of the last file when recording stops from "MVID" to "MVIE", which is "MVI", which indicates that it is a video file, plus "End", which indicates the end. Next, the file name generation unit 110 notifies the management information registration unit 111 of the completion of file name generation, and the process proceeds to S308.

[0052] In S308, when management information registration unit 111 is notified by file name generation unit 110 that file name generation is complete, it deregisters the original video file name from the management information, registers the changed video file name, and transitions to S309.

[0053] In S309, when the network transfer unit 112 receives a file close completion notification from the video recording unit 106, it transfers the completed video file to an external file server that has been set in advance. With S309, the current flow ends.

[0054] S310 to S312 have the same processing flow as S302 to S304 described above.

[0055] In S313, similarly to S305, the video recording unit 106 determines whether or not the video file has been divided from the start of recording to the end of recording, in accordance with the division conditions that have been preset based on the recording setting parameters notified from the operation unit 105 and the recording medium control unit 109. If the video recording unit 106 determines that the file has been divided, it transitions to S314, and if it determines that the file has not been divided, it transitions to S201.

[0056] In S314, the video recording unit 106 determines whether or not there will be network transfer based on the recording setting parameters notified from the operation unit 105. If there will be network transfer, the process proceeds to S315. On the other hand, if the video recording unit 106 determines there will be no network transfer, the process proceeds to S201 in FIG.

[0057] In S315, when the network transfer unit 112 receives a file closing completion notification from the video processing unit, it transfers the completed video file to a preset external file server. Then, the video recording unit 106 transitions to S201 in FIG.

[0058] In the first embodiment, a method of assigning a unique prefix according to the recording mode or the like as a naming rule for video files has been described, but this method may be replaced with a suffix.

[0059] As a result of the above, even if a video (scene) is shot and recorded in several separate sessions over the course of a day, the start, middle, and end files that make up each video and their timeline order can be uniquely determined from their file names.

[0060] The size of the file of the partial video that indicates the end of a series of videos depends on the timing at which the user issues an instruction to stop recording, and will not be the set size or time length that is the division condition.

[0061] In the above first embodiment, the video recording unit 106 and other individual processing units perform joint processing, but the CPU 102 may execute a program to realize processing corresponding to each processing unit. This is also true for the second embodiment described below.

[0062] [Second embodiment] The process flow for recording and transferring video data in the second embodiment will be described with reference to FIGS.

[0063] FIG. 4 shows a process flow at the start of recording in the second embodiment.

[0064] In S400, the video recording unit 106 determines whether or not the user has operated to start recording the video based on a signal from the CPU 102. This determination process is the same as S200 in Fig. 2. If the video recording unit 106 determines that the user has instructed to start recording the video, it notifies the file name generation unit 110 of a request to start recording and transitions to S401. On the other hand, if the video recording unit 106 determines that the user has not instructed to start recording the video, it returns the process to S400 and waits for the instruction.

[0065] In S401, the video recording unit 106 determines whether or not to divide the video file from the start of recording to the end of recording according to a division condition set in advance based on the recording setting parameters acquired from the operation unit 105 or the recording medium control unit 109. Specifically, the video recording unit 106 determines that the file is divided if the recording mode is network transfer or the file system information is FAT32 based on the recording setting parameters. On the other hand, the video recording unit 106 determines that the file is not divided if the above conditions are not met. If the video recording unit 106 determines that the file is divided, it notifies the file name generation unit 110 of that effect and transitions to S402. On the other hand, if the video recording unit 106 determines that the file is not divided, it notifies the file name generation unit 110 of that effect and transitions to S406.

[0066] In S402, the video recording unit 106 determines whether or not to transfer the video file over the network based on the recording setting parameters notified from the operation unit 105. If the video recording unit 106 determines to transfer the video file over the network, it notifies the file name generation unit 110 of that effect and transitions to S403. On the other hand, if the video recording unit 106 determines not to transfer the video file over the network, it notifies the file name generation unit 110 of that effect and transitions to S404.

[0067] In S403, the video recording unit 106 sets a time length as a division unit of the video file suitable for network transfer based on the recording setting parameters notified from the operation unit 105. For example, the CPU 102 can change a menu setting related to the network transfer interval to allow the user to select from options such as 30 seconds, 1 minute, and 2 minutes as the division unit. When the video recording unit 106 has completed setting the division unit based on the menu setting, the process proceeds to S405.

[0068] In S404, the video recording unit 106 sets a division unit of the video file suitable for the recording medium by file size based on the recording setting parameters notified from the recording medium control unit 109. Specifically, if the file system is FAT32, the division unit is set to 4 GB, and if it is exFAT, the division unit is not set because the file is not divided. Then, when the video recording unit 106 has completed setting the division unit, it transitions to S406.

[0069] In S405, the video recording unit 106 determines whether or not the file is the first file at the start of recording. Specifically, upon receiving a recording start request notified from the operation unit 105, the video recording unit 106 makes this determination based on whether or not the file name is generated for the first time for the video file. If the video recording unit 106 determines that the file is the first file, the process proceeds to S407. If the video recording unit 106 determines that the file is not the first file, the process proceeds to S408.

[0070] In S406, the file name generation unit 110 sets "MVI_" as the prefix. The file name generation unit 110 also sets the file number to the file number of the previously recorded file increased by 1. Next, the file name generation unit 110 notifies the video recording unit 106 and management information registration unit 111 of "[prefix][file number]" as the file name excluding the extension, and the process proceeds to S409.

[0071] In S407, the file name generation unit 110 sets "[MVI][alphabet]" as the prefix. Specifically, the [alphabet] is updated in order from "A" to "Z" for each recording period from the start of recording to the end of recording. Note that the [alphabet] does not have to be limited to one character, and character codes other than the alphabet may be used. The file name generation unit 110 also sets the file number following the prefix to a value obtained by incrementing the file number of the previously recorded file by 1. The file name generation unit 110 then notifies the video recording unit 106 and management information registration unit 111 of "[prefix][file number]" as the file name excluding the extension, and transitions to S409.

[0072] In S408, the file name generation unit 110 sets the prefix used previously as the prefix. In other words, the same prefix is ​​assigned throughout the recording period from the start of recording to the end of recording. The file name generation unit 110 also sets the file number to the file number of the previously recorded file, increased by 1. Next, the file name generation unit 110 notifies the video recording unit 106 and management information registration unit 111 of "[prefix][file number]" as the file name excluding the extension, and the process proceeds to S409.

[0073] In S409, when management information registration section 111 is notified by file name generation section 110 that file name generation is complete, management information registration section 111 registers the file name in management information, and the process proceeds to S410.

[0074] In S410, the video recording unit 106 generates a dummy header that stores header information for repairing a video file that has been damaged due to a momentary power interruption or the like, and writes it to the first recording medium 107 and the second recording medium 108. At this time, the file name of the dummy header is set to "[prefix][file number].DMV". Here, the prefix and file number use the prefix notified by the file name generation unit 110. Then, the video recording unit 106 transitions to S411.

[0075] In S411, the video recording unit 106 determines whether the file to be recorded is the first file at the start of recording. If the video recording unit 106 determines that it is the first file, it records an additional information file including the news report title and the like in XML (eXtensible Markup Language) format, and transitions to S413. At this time, the file name of the metadata information is set to "[prefix][file number].XML". Here, the prefix and file number are the prefix notified by the file name generation unit 110. On the other hand, if the video recording unit 106 determines that it is not the first file, it transitions to S413.

[0076] In S413, the video recording unit 106 records a data file in which the video data and audio data are multiplexed. At this time, the file name is set to "[prefix][file number].DAT". Here, the prefix and file number use the prefix notified by the file name generation unit 110.

[0077] Next, the process flow after the start of recording will be described with reference to the flowchart in Fig. 5. It should be understood that this figure shows the process following the flowchart in Fig. 4.

[0078] In S500, the video recording unit 106 determines whether or not there has been an instruction from the user to stop recording video data, similar to S300 in Fig. 3. If the video recording unit 106 determines that there has been an instruction to stop recording, it notifies the file name generation unit 110 of a request to stop recording, and transitions to S502. On the other hand, if the video recording unit 106 determines that there has been no instruction to stop recording, it transitions to S501.

[0079] In S501, the video recording unit 106 determines whether the video data being recorded matches the division condition. If the video recording unit 106 determines that the division condition is met, it transitions to S508 to close the video file being recorded and create a new video file. If the video recording unit 106 determines that the division condition is not met, it transitions to S500 to continue recording.

[0080] In S502, the video recording unit 106 creates a header file that stores various information related to the video data (resolution, frame rate, etc.), and the process proceeds to S503.

[0081] In S503, the video recording unit 106 combines the header file and the data file in the recording medium. The file name of the video file created by combining is "[prefix][file number].MP4". Here, the prefix and file number used are the prefix notified by the file name generation unit 110. When the video recording unit 106 completes this combining process, the process proceeds to S504.

[0082] In S504, the video recording unit 106 deletes the dummy header file from the recording medium. Upon completing this deletion, the video recording unit 106 notifies the network transfer unit 112 of the completion of closing the file, and the process proceeds to S505.

[0083] In S505, the video recording unit 106 determines whether or not the video file has been divided from the start of recording to the end of recording according to a division condition set in advance based on the recording setting parameters notified from the operation unit 105 or the recording medium control unit 109. Specifically, the video recording unit 106 determines that the file has been divided based on the recording setting parameters if the recording mode is network transfer or the file system information is FAT32. On the other hand, the video recording unit 106 determines that the file has not been divided if the above conditions are not met. Next, if the video recording unit 106 determines that the file has been divided, it notifies the file name generation unit 110 to that effect and transitions to S506. On the other hand, if the video recording unit 106 determines that the file has not been divided, it ends the current flow.

[0084] In S506, the video recording unit 106 determines whether or not there will be network transfer based on the recording setting parameters notified from the operation unit 105. If the video recording unit 106 determines that there will be network transfer, it notifies the file name generation unit 110 to that effect, and transitions to S506-1. On the other hand, if the video recording unit 106 determines that there will be no network transfer, it ends the current flow.

[0085] In S506-1, the file name generation unit 110 changes the prefix of the last file when recording stops from "[MVI][alphabet]" to "[MVI][alphabet][E]" which adds the initial letter "End" indicating the end to "MVI" which indicates that it is a video file. Next, the file name generation unit 110 notifies the management information registration unit 111 of the completion of file name generation, and the process proceeds to S506-2.

[0086] In S506-2, when management information registration unit 111 is notified by file name generation unit 110 that file name generation is complete, it deregisters the original video file name from the management information, registers the changed video file name, and transitions to S507.

[0087] In S507, when the network transfer unit 112 receives a file closing completion notification from the video processing unit, it transfers the completed video file to an external file server. Then, the video recording unit 106 ends the current flow with S507.

[0088] S508 to S510 have the same processing flow as S502 to S504 described above, and therefore the description thereof will be omitted.

[0089] In S511, the video recording unit 106 determines whether or not the video file has been divided from the start of recording to the end of recording, similarly to S505, in accordance with the division conditions that have been preset based on the recording setting parameters notified from the operation unit 105 and the recording medium control unit 109. If the video recording unit 106 determines that the file has been divided, the process proceeds to S512. On the other hand, if the video recording unit 106 determines that the file has not been divided, the process proceeds to S401 in FIG.

[0090] In S512, the video recording unit 106 determines whether or not there will be network transfer based on the recording setting parameters notified from the operation unit 105. If the video recording unit 106 determines that there will be network transfer, the process proceeds to S513. On the other hand, if the video recording unit 106 determines that there will be no network transfer, the process proceeds to S401 in FIG.

[0091] In S513, when the network transfer unit 112 receives a file closing completion notification from the video processing unit, it transfers the completed video file to an external file server. Then, the video recording unit 106 transitions to S401 in FIG.

[0092] As described above, according to the second embodiment, when multiple videos are recorded in one day, the individual videos are not mixed up, and the start and end files of each video can be easily identified.

[0093] In the above description, a method of assigning a unique prefix according to the recording mode, etc., as a naming rule for video files has been described. However, this method may be replaced with a suffix.

[0094] In addition, in the above first and second embodiments, the image processing device 100 has been described as a device including an imaging unit (typically a video camera or a smartphone), but it may also be an information processing device with an external imaging unit or imaging device.

[0095] (Other Examples) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.

[0096] The disclosure of this specification includes the following image processing device, method, and program. (Item 1) A video processing device that generates a video file from a video captured by an imaging means, An operation means for instructing start and stop of recording; a file generating means for dividing an image captured by the imaging means during a period from when an instruction to start recording is received by the operating means to when an instruction to stop recording is received into a plurality of partial images in time series according to a division condition that has been set, and for generating a file for each partial image, The file generation means When generating a file for each partial video, a file for the partial video is generated having a file name including information indicating a chronological order; For a final partial video that is the end of the time series among the plurality of partial videos, a file of the partial video having a file name including information indicating the time series order and a character string indicating the end is generated. 13. A video processing device comprising: (Item 2) The file generating means determines, as a file name for each partial video file, a file name including a character string obtained by combining a predetermined character string and a number indicating the chronological order. 2. The video processing device according to item 1, (Item 3) The file generation means a character string including a character indicating that the video is the first video among the plurality of video portions in a time series is used as the predetermined character string for a file name of the first video portion, The file name of the final partial video among the plurality of partial videos uses a character string including a character indicating that the video is the final video as the predetermined character string. 3. The image processing device according to item 1 or 2. (Item 4) The file generation means a character string including a character indicating that the video is a midpoint video is used as the predetermined character string for a file name of a video portion that is neither the first video portion nor the last video portion among the plurality of video portions; 4. The video processing device according to item 3, (Item 5) The file generation means The file name of the first part of the video is a character string obtained by adding a character indicating that it is the beginning to a first character string indicating that it is a video file, and using this character string as the predetermined character string; In the file name of the end portion video, a character string obtained by adding a character indicating that it is the end to the first character string is used as the predetermined character string. 4. The video processing device according to item 3, (Item 6) 6. The video processing device according to any one of items 1 to 5, further comprising a setting unit for setting the division condition. (Item 7) 7. The video processing device according to any one of items 1 to 6, wherein the division conditions include a file size of a partial video or a time length of a partial video. (Item 8) The video processing device further includes a transfer unit that transfers the partial video file to a preset external device every time the file generation unit generates the partial video file. 8. The video processing device according to any one of items 1 to 7, (Item 9) When a video file is transferred to the external device by the transfer means, the file generation means divides the video captured by the imaging means during the period from when an instruction to start recording is received by the operation means to when an instruction to stop recording is received into a plurality of partial videos in accordance with a first division condition, and generates a file for each partial video; When the transfer means does not transfer the video file to the external device, the file generation means generates a video file without dividing the video captured by the imaging means during the period from when the operation means receives an instruction to start recording to when the operation means receives an instruction to stop recording, in accordance with the first division condition. 9. The video processing device according to item 8, (Item 10) a setting means for setting whether or not the transfer means transfers the video to an external device and the duration of the partial video to be transferred in response to a user operation; The file generating means determines the first division condition based on the duration of the partial video set by the setting means. 10. The video processing device according to item 9, (Item 11) When the transfer means does not transfer the video file to the external device, the file generation means divides the video captured by the imaging means during the period from when the operation means receives an instruction to start recording to when the operation means receives an instruction to stop recording into a plurality of partial videos according to a second division condition different from the first division condition, and generates a file for each partial video. 10. The video processing device according to item 9, (Item 12) The first division condition is a condition regarding a time of the partial video, and the second division condition is a condition regarding a file size of the partial video. Item 12. The video processing device according to item 11, (Item 13) 1. A method for controlling a video processing device having an imaging means and an operation means, the method comprising the steps of: a file generating step of dividing an image captured by the imaging means during a period from when an instruction to start recording is received by the operating means to when an instruction to stop recording is received into a plurality of partial images in time series according to a division condition that has been set, and generating a file for each partial image; The file generation step includes: When generating a file for each partial video, a file for the partial video is generated having a file name including information indicating a chronological order; For a final partial video that is the end of the time series among the plurality of partial videos, a file of the partial video having a file name including information indicating the time series order and a character string indicating the end is generated. 23. A method for controlling a video processing device comprising the steps of: (Item 14) A program that, when read and executed by a computer, causes the computer to function as each of the means possessed by the device described in any one of items 1 to 12.

[0097] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]

[0098] 100...video processing device, 101...bus, 102...CPU, 103...ROM, 104...RAM, 105...operation unit, 106...video recording unit, 107...first recording medium, 108...second recording medium, 109...recording medium control unit, 110...file name generation unit, 111...management information registration unit, 112...network transfer unit

Claims

1. A video processing device that generates a video file from a video captured by an imaging means, An operation means for instructing start and stop of recording; a file generating means for dividing an image captured by the imaging means during a period from when an instruction to start recording is received by the operating means to when an instruction to stop recording is received into a plurality of partial images in time series according to a division condition that has been set, and for generating a file for each partial image, The file generation means When generating a file for each partial video, a file for the partial video is generated having a file name including information indicating a chronological order; For a final partial video that is the end of the time series among the plurality of partial videos, a file of the partial video having a file name including information indicating the time series order and a character string indicating the end is generated.

13. A video processing device comprising:

2. The file generating means determines, as a file name for each partial video file, a file name including a character string obtained by combining a predetermined character string and a number indicating the chronological order.

2. The image processing device according to claim 1.

3. The file generation means a character string including a character indicating that the video is the first video among the plurality of video portions in a time series is used as the predetermined character string for a file name of the first video portion, The file name of the final partial video among the plurality of partial videos uses a character string including a character indicating that the video is the final video as the predetermined character string.

2. The image processing device according to claim 1.

4. The file generation means a character string including a character indicating that the video is a midpoint video is used as the predetermined character string for a file name of a video portion that is neither the first video portion nor the last video portion among the plurality of video portions; 4. The image processing device according to claim 3.

5. The file generation means The file name of the first portion of the video is a character string obtained by adding a character indicating that it is the beginning to a first character string indicating that it is a video file, and using this character string as the predetermined character string; a character string obtained by adding a character indicating that the file is an end to the first character string is used as the predetermined character string for the file name of the end portion video; 4. The image processing device according to claim 3.

6. 2. The video processing apparatus according to claim 1, further comprising a setting unit for setting the division condition.

7. The image processing device according to claim 1 , wherein the division conditions include a file size of the partial image or a time length of the partial image.

8. The video processing device further includes a transfer unit that transfers the partial video file to a preset external device every time the file generation unit generates the partial video file.

2. The image processing device according to claim 1.

9. When a video file is transferred to the external device by the transfer means, the file generation means divides the video captured by the imaging means during the period from when an instruction to start recording is received by the operation means to when an instruction to stop recording is received into a plurality of partial videos in accordance with a first division condition, and generates a file for each partial video; When the transfer means does not transfer the video file to the external device, the file generation means generates a video file without dividing the video captured by the imaging means during the period from when the operation means receives an instruction to start recording to when the operation means receives an instruction to stop recording, in accordance with the first division condition.

9. The image processing device according to claim 8.

10. a setting means for setting whether or not the transfer means transfers the video to an external device and the duration of the partial video to be transferred in response to a user operation; the file generating means determines the first division condition based on the duration of the partial video set by the setting means. The image processing device according to claim 9 .

11. When the transfer means does not transfer the video file to the external device, the file generation means divides the video captured by the imaging means during the period from when the operation means receives an instruction to start recording to when the operation means receives an instruction to stop recording into a plurality of partial videos according to a second division condition different from the first division condition, and generates a file for each partial video. The image processing device according to claim 9 .

12. the first division condition is a condition regarding a time of the partial video, and the second division condition is a condition regarding a file size of the partial video. The image processing device according to claim 11 .

13. 1. A method for controlling a video processing device having an imaging means and an operation means, the method comprising the steps of: a file generating step of dividing an image captured by the imaging means during a period from when an instruction to start recording is received by the operating means to when an instruction to stop recording is received into a plurality of partial images in time series according to a division condition that has been set, and generating a file for each partial image; The file generation step includes: When generating a file for each partial video, a file for the partial video is generated having a file name including information indicating a chronological order; For a final partial video that is the end of the time series among the plurality of partial videos, a file of the partial video having a file name including information indicating the time series order and a character string indicating the end is generated.

23. A method for controlling a video processing device comprising the steps of:

14. A program for causing a computer to execute the steps of the method according to claim 13 when the program is read and executed by the computer.