JP2005086345A - Image edit method and apparatus - Google Patents

Image edit method and apparatus Download PDF

Info

Publication number
JP2005086345A
JP2005086345A JP2003314251A JP2003314251A JP2005086345A JP 2005086345 A JP2005086345 A JP 2005086345A JP 2003314251 A JP2003314251 A JP 2003314251A JP 2003314251 A JP2003314251 A JP 2003314251A JP 2005086345 A JP2005086345 A JP 2005086345A
Authority
JP
Japan
Prior art keywords
image file
moving image
frame
character string
file name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003314251A
Other languages
Japanese (ja)
Inventor
Masakazu Nishijima
征和 西嶋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2003314251A priority Critical patent/JP2005086345A/en
Publication of JP2005086345A publication Critical patent/JP2005086345A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image edit method and an apparatus capable of creating a non-redundant file name usable for a file of a subordinate purpose and attaching the name to the file in the case of segmenting still picture data or the like from a moving picture file and storing the segmented data as the file. <P>SOLUTION: The image edit method for extracting optional frame data from the moving picture file and storing the extracted data as a still picture file is characterized in that the method acquires the name of the moving picture file and the number of digits of the total number of frames from the moving picture file, acquires a frame number of the frame data being a storage object in the moving picture file, creates a frame number character string for indicating the frame number expressed in the number of digits of the total number of frames as the displayed number of digits, and uses a character string comprising a combination of the name of the moving picture file and the frame number character string for the name of the still picture file. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、画像編集方法および装置に係り、特に、動画ファイルから静止画データや動画データを切り出してファイルを作成し保存するとき、保存後の静止画ファイルや動画ファイルと元の動画ファイルとの関連がわかるようにファイル名をつけることのできる画像編集方法および装置に関する。   The present invention relates to an image editing method and apparatus, and in particular, when still image data or movie data is cut out from a movie file to create and save the file, the saved still image file or movie file and the original movie file are saved. The present invention relates to an image editing method and apparatus capable of assigning a file name so that the relation can be understood.

近年、デジタルカメラが普及してきている。これらのデジタルカメラには、通常の単写機能の他に動画撮影機能や連写機能を有するものもある。   In recent years, digital cameras have become popular. Some of these digital cameras have a moving image shooting function and a continuous shooting function in addition to a normal single shooting function.

デジタルカメラで撮影された静止画は、JPEG(Joint Photographic Experts Group)などの圧縮・伸張方式による静止画ファイルとしてデジタルカメラ付属の記録メディアに記録され、デジタルカメラで撮影された動画は、Motion JPEG などの動画ファイルとしてデジタルカメラ付属の記録メディアに記録され、その記録メディアは保存用・観賞用として使用されている。なお、Motion JPEG は、各フレーム画像をJPEG方式で圧縮し、一連の画像群として記録する方法であり、再生時は各フレームが連続的に再生される。   Still images shot with a digital camera are recorded on a recording medium attached to the digital camera as a still image file using a compression / decompression method such as JPEG (Joint Photographic Experts Group), and movies shot with a digital camera include Motion JPEG. Are recorded on a recording medium attached to a digital camera, and the recording medium is used for storage and viewing. Motion JPEG is a method in which each frame image is compressed by the JPEG method and recorded as a series of images. Each frame is played back continuously during playback.

ところで、撮影された動画を再生して、例えはゴルフやテニス等におけるフォームをチェックしたいという要求も多くなっている。例えば、ゴルフのスイング動作をチェックしたり、野球でピッチャーが投球フォームをチェックしたり、バッターがバッティングフォームをチェックしたりして、フォームの良否を判定することが良く行われている。この場合、動作の時系列的な変化を一度に表示すれば、フォームの良否判定に便利である。   By the way, there is an increasing demand for playing back a captured video and checking a form in golf, tennis or the like. For example, it is often performed to check the quality of a form by checking a golf swing motion, a pitcher checking a throwing form in baseball, or a batter checking a batting form. In this case, it is convenient for determining the quality of the form if the time-series changes in the operation are displayed at a time.

このような用途に利用できる動画再生機能として、動画ファイルを分解表示する機能を持ったアプリケーションソフトが市販されている。これらのアプリケーションソフトの多くは、動画ファイル内の全てのフレーム画像を一旦分解した後、それら分解後のフレーム画像の全てを一覧表示するようになっている。ところが、このような方式では、全てのフレーム画像が表示されるまでに時間を要し、また、複数のフレーム画像の中から所望のフレーム画像を検索・選択するのに手間を要する。   Application software having a function of disassembling and displaying a moving image file is commercially available as a moving image playback function that can be used for such purposes. In many of these application softwares, after all the frame images in the moving image file are once decomposed, all the frame images after the decomposition are displayed in a list. However, in such a method, it takes time until all frame images are displayed, and it takes time and effort to search and select a desired frame image from a plurality of frame images.

また、このように動画ファイルを連続する静止画データに分解して表示する際、これらの静止画データをプリントなどの二次的な目的に使用することも行われている。このような二次的な目的に使用する場合には、静止画データをファイルとして保存するときに、保存後の静止画ファイルと元の動画ファイルとの関連がわかり、静止画を再生順に表示でき、またできるだけ短いファイル名、さらには異なる静止画データ間で重ならないようなファイル名を割り当てることが求められる。   In addition, when a moving image file is decomposed into continuous still image data and displayed in this way, the still image data is also used for secondary purposes such as printing. When used for such secondary purposes, when you save still image data as a file, you can see the relationship between the saved still image file and the original movie file, and display the still images in the playback order. In addition, it is required to assign a file name that is as short as possible and that does not overlap between different still image data.

しかし、従来のアプリケーションソフトでは、動画ファイルから静止画データを分解し、ファイルとして保存するときの名称として、対象となる静止画の動画ファイルにおける時間的な位置(例えば、hh-mm-ss-xxx( ここで、x はmsec. )のような時刻)を割り当てている。   However, in conventional application software, the still image data is decomposed from the movie file and the time position in the movie file of the target still image (for example, hh-mm-ss-xxx) is used as the name when saving the file. (Where x is a time like msec.).

また、例えば、動画を録画するとともに、動画録画中の撮影指示に伴い静止画を撮影する場合に、撮影指示の時点に相応する動画の部分と静止画との対応を示す関連情報を記憶するようにして、動画録画中に記録された静止画を動画と関連付けて記録するようにしたもの(例えば、特許文献1等参照。)が知られている。
特開2002−290908号公報
Further, for example, when recording a moving image and shooting a still image in accordance with a shooting instruction during the recording of the moving image, related information indicating the correspondence between the portion of the moving image corresponding to the time of the shooting instruction and the still image is stored. Thus, there is known a technique in which a still image recorded during video recording is recorded in association with a video (for example, see Patent Document 1).
Japanese Patent Laid-Open No. 2002-290908

しかしながら、前記従来のような時間的な位置を割り当てたファイル名を使用した場合、動画ファイルと静止画ファイルの関連がファイル名からは特定できない、また、再生時間が数秒の短いファイルであっても時間の単位まで入れ込まれるため、冗長なファイル名となってしまうという問題がある。   However, when a file name assigned with a temporal position as in the prior art is used, the relationship between a moving image file and a still image file cannot be specified from the file name, and even if the file has a short playback time of several seconds. Since the time unit is inserted, there is a problem that the file name becomes redundant.

また、前記特許文献1に記載のものでは、動画録画中に記録された静止画を動画と関連付けて記録するようにしているが、静止画ファイル保存時のファイル名として動画フレーム番号のような特定可能な名称が割り当てられておらず、二次的な目的への利用に向いていないという問題がある。   In addition, in the one described in Patent Document 1, a still image recorded during moving image recording is recorded in association with a moving image. However, a file name such as a moving image frame number is specified as a file name when saving a still image file. There is a problem that possible names are not assigned and are not suitable for secondary purposes.

本発明はこのような事情に鑑みてなされたもので、動画ファイルから静止画データや動画データを切り出してファイルとして保存するときに、冗長でなく、かつ、二次的目的のファイル使用において利用することのできるファイル名、すなわち具体的には、保存後の静止画ファイルと元の動画ファイルとの関連がわかり、静止画を再生順に表示でき、できるだけ短いファイル名、かつ異なる静止画データ間で重ならないようなファイル名を生成することのできる画像編集方法および装置を提供することを目的とする。   The present invention has been made in view of such circumstances. When still image data or moving image data is cut out from a moving image file and stored as a file, the present invention is not redundant and is used for secondary purpose file use. File name, that is, the relationship between the still image file after saving and the original movie file can be known, the still images can be displayed in the order of playback, the shortest possible file name, and the overlap between different still image data An object of the present invention is to provide an image editing method and apparatus capable of generating a file name that does not become necessary.

前記目的を達成するために、請求項1記載の発明は、動画ファイルから任意フレームデータを抽出して静止画ファイルとして保存する画像編集方法であって、前記動画ファイルから動画ファイル名および総フレーム数の桁数を取得し、前記動画ファイル中の保存対象となっているフレームデータのフレーム番号を取得し、前記フレーム番号を前記動画ファイルの総フレーム数の桁数を表示桁数として表示したフレーム番号文字列を作成し、前記動画ファイル名および前記フレーム番号文字列を組み合わせた文字列を前記静止画ファイル名とすることを特徴とする画像編集方法を提供する。   In order to achieve the above object, the invention described in claim 1 is an image editing method for extracting arbitrary frame data from a moving image file and storing it as a still image file, wherein the moving image file name and the total number of frames are extracted from the moving image file. The frame number of the frame data to be saved in the video file, and the frame number displayed as the number of digits of the total number of frames of the video file. Provided is an image editing method characterized in that a character string is created and a character string obtained by combining the moving image file name and the frame number character string is used as the still image file name.

すなわち、これにより一意に特定できるファイル名となる静止画ファイルが作成されるため、次回分解保存時に重複処理を未然に避けることができる。また、冗長な静止画ファイル名とならず、静止画ファイル名表示時に情報が欠けることが少ない。   That is, since a still image file having a file name that can be uniquely specified is created in this way, it is possible to avoid duplication processing at the time of the next decomposition and storage. In addition, it is not a redundant still image file name, and information is rarely lost when the still image file name is displayed.

このとき、さらに、前記動画ファイルから前記動画ファイルを再生する際のフレームレートを取得し、前記動画ファイル名および前記フレーム番号文字列に前記フレームレートを組み合わせて前記文字列を作成して前記静止画ファイル名とすることが好ましい。このとき、フレームレートを用いて計算することにより、その静止画が動画再生開始後何秒後に現れるかがわかる。   At this time, a frame rate for reproducing the moving image file from the moving image file is further obtained, and the character string is created by combining the frame rate with the moving image file name and the frame number character string to generate the still image. It is preferable to use a file name. At this time, by calculating using the frame rate, it is possible to know how many seconds after the still image starts to be reproduced.

また同様に前記目的を達成するために、請求項3に記載の発明は、動画ファイルから任意フレームデータ群を抽出して動画ファイルとして保存する画像編集方法であって、前記動画ファイルから動画ファイル名および総フレーム数の桁数を取得し、前記動画ファイル中の保存対象となっているフレームデータ群の先頭フレーム番号および最終フレーム番号を取得し、前記先頭フレーム番号および最終フレーム番号に対し、前記動画ファイルの総フレーム数の桁数を表示桁数として表示した、先頭フレーム番号文字列および最終フレーム番号文字列を作成し、前記動画ファイル名および前記先頭フレーム番号文字列および前記最終フレーム番号文字列を組み合わせた文字列を前記保存対象となっているフレームデータ群の動画ファイル名とすることを特徴とする画像編集方法を提供する。   Similarly, in order to achieve the object, the invention according to claim 3 is an image editing method for extracting an arbitrary frame data group from a moving image file and storing it as a moving image file, wherein the moving image file name is extracted from the moving image file. And the number of digits of the total number of frames, the first frame number and the last frame number of the frame data group to be stored in the moving image file are obtained, and the moving image is obtained with respect to the first frame number and the last frame number. The first frame number character string and the last frame number character string are displayed with the number of digits of the total number of frames of the file displayed as the display digit number, and the moving image file name, the first frame number character string, and the last frame number character string are The combined character string is used as the movie file name of the frame data group to be saved. To provide an image editing method comprising and.

これにより、一意に特定できるファイル名となる動画ファイルが作成されるため、次回分解保存時に重複処理を未然に避けることができる。また、冗長なファイル名とならず、ファイル名表示時に情報が欠けることが少ない。   As a result, a moving image file having a uniquely identifiable file name is created, so that duplication processing can be avoided before the next decomposition and storage. Also, the file name is not redundant, and information is rarely lost when the file name is displayed.

このとき、さらに、前記動画ファイルから前記動画ファイルを再生する際のフレームレートを取得し、前記動画ファイル名および前記先頭フレーム番号文字列および最終フレーム番号文字列に前記フレームレートを組み合わせて前記文字列を作成して前記保存対象となっているフレームデータ群の動画ファイル名とすることが好ましい。このとき、フレームレートを用いて計算することにより、前記フレームデータ群の再生時間がわかる。   At this time, a frame rate for reproducing the video file from the video file is further obtained, and the character string obtained by combining the frame rate with the video file name, the first frame number character string, and the last frame number character string. Is preferably used as the moving image file name of the frame data group to be saved. At this time, the reproduction time of the frame data group can be obtained by calculating using the frame rate.

また同様に前記目的を達成するために、請求項5に記載の発明は、動画ファイルから任意フレームデータを抽出して静止画ファイルとして保存する画像編集装置であって、前記動画ファイルから動画ファイル名および総フレーム数の桁数を取得する手段と、前記動画ファイル中の保存対象となっているフレームデータのフレーム番号を取得する手段と、前記フレーム番号を前記動画ファイルの総フレーム数の桁数を表示桁数として表示したフレーム番号文字列を作成する手段と、前記動画ファイル名および前記フレーム番号文字列を組み合わせた文字列を前記静止画ファイル名として生成する静止画ファイル名生成手段を備えたことを特徴とする画像編集装置を提供する。   Similarly, in order to achieve the above object, the invention according to claim 5 is an image editing apparatus that extracts arbitrary frame data from a moving image file and saves it as a still image file. And means for obtaining the number of digits of the total number of frames, means for obtaining the frame number of the frame data to be stored in the moving image file, and the number of digits of the total number of frames of the moving image file. Means for creating a frame number character string displayed as the number of display digits, and still image file name generating means for generating a character string combining the moving image file name and the frame number character string as the still image file name An image editing apparatus characterized by the above is provided.

これにより、請求項1に記載の画像編集方法が実行される。   Thus, the image editing method according to claim 1 is executed.

このとき、さらに、前記動画ファイルから前記動画ファイルを再生する際のフレームレートを取得する手段を備え、前記静止画ファイル名生成手段は、前記動画ファイル名および前記フレーム番号文字列に前記フレームレートを組み合わせて前記文字列を作成して前記静止画ファイル名とすることが好ましい。   At this time, it further comprises means for acquiring a frame rate for reproducing the moving image file from the moving image file, and the still image file name generating means adds the frame rate to the moving image file name and the frame number character string. It is preferable that the character string is created in combination to form the still image file name.

また同様に前記目的を達成するために、請求項7に記載の発明は、動画ファイルから任意フレームデータ群を抽出して動画ファイルとして保存する画像編集装置であって、前記動画ファイルから動画ファイル名および総フレーム数の桁数を取得する手段と、前記動画ファイル中の保存対象となっているフレームデータ群の先頭フレーム番号および最終フレーム番号を取得する手段と、前記先頭フレーム番号および最終フレーム番号に対し、前記動画ファイルの総フレーム数の桁数を表示桁数として表示した、先頭フレーム番号文字列および最終フレーム番号文字列を作成する手段と、前記動画ファイル名および前記先頭フレーム番号文字列および前記最終フレーム番号文字列を組み合わせた文字列を前記保存対象となっているフレームデータ群の動画ファイル名として生成する動画ファイル名生成手段を備えたことを特徴とする画像編集装置を提供する。   Similarly, in order to achieve the above object, the invention according to claim 7 is an image editing apparatus for extracting an arbitrary frame data group from a moving image file and saving it as a moving image file. And means for obtaining the number of digits of the total number of frames, means for obtaining the first frame number and the last frame number of the frame data group to be stored in the moving image file, and the first frame number and the last frame number. On the other hand, a means for creating a first frame number character string and a last frame number character string displaying the number of digits of the total number of frames of the moving image file as a display digit number, the moving image file name, the first frame number character string, and the Frame data for which the character string combining the final frame number character string is the storage target To provide an image editing apparatus characterized by comprising a video file name generating means for generating a moving image file name.

これにより、請求項3に記載の画像編集方法が実行される。   Thereby, the image editing method according to claim 3 is executed.

このとき、さらに、前記動画ファイルから前記動画ファイルを再生する際のフレームレートを取得する手段を備え、前記動画ファイル名生成手段は、前記動画ファイル名および前記先頭フレーム番号文字列および最終フレーム番号文字列に前記フレームレートを組み合わせて前記文字列を作成して前記保存対象となっているフレームデータ群の動画ファイル名とすることが好ましい。   At this time, it further comprises means for acquiring a frame rate for reproducing the moving picture file from the moving picture file, and the moving picture file name generating means includes the moving picture file name, the first frame number character string, and the last frame number character. It is preferable that the character string is created by combining the frame rate with a column to make a moving image file name of the frame data group to be stored.

本発明に係る画像編集方法および装置によれば、動画ファイル名およびフレーム番号文字列を組み合わせた文字列によりファイル名を生成しているため、そのファイル名により静止画あるいは動画データであるフレームデータ群を一意に特定でき、次回分解保存時に重複処理を未然に避けることが可能となるとともに、冗長なファイル名とならず、ファイル名表示時に情報が欠けることが少ないという効果を有する。   According to the image editing method and apparatus of the present invention, the file name is generated by a character string that combines the moving image file name and the frame number character string, so that the frame data group that is still image or moving image data by the file name. Can be specified uniquely, and it becomes possible to avoid duplication processing at the time of the next decomposition and storage, and there is an effect that the file name is not redundant and information is hardly lost when the file name is displayed.

以下、添付図面に従って、本発明に係る画像編集方法および装置を実施するための最良の形態について詳細に説明する。   The best mode for carrying out an image editing method and apparatus according to the present invention will be described below in detail with reference to the accompanying drawings.

図1は、本発明に係る画像編集方法を実施するための画像編集装置の第1実施形態の概略構成を概念的に示すブロック図である。   FIG. 1 is a block diagram conceptually showing a schematic configuration of a first embodiment of an image editing apparatus for carrying out an image editing method according to the present invention.

図1に示すように、画像編集装置1は、動画データの入力手段としてのデジタルカメラ2と接続されており、デジタルカメラ2から入力された動画データに対して所定の画像編集処理を施すものである。なお、ここでは動画データの入力手段としてデジタルカメラ2を示しているが、これは例示であり、動画データ入力手段はデジタルカメラに限定されるものではない。例えば、デジタルビデオカメラや動画データが記録されたCDやDVD等から動画データを入力するようにしてもよいし、あるいはインターネット等のネットワークを介して動画データを受け取るようにしてもよい。   As shown in FIG. 1, an image editing apparatus 1 is connected to a digital camera 2 as moving image data input means, and performs predetermined image editing processing on moving image data input from the digital camera 2. is there. Although the digital camera 2 is shown here as the moving image data input means, this is merely an example, and the moving image data input means is not limited to the digital camera. For example, the moving image data may be input from a digital video camera or a CD or DVD on which moving image data is recorded, or the moving image data may be received via a network such as the Internet.

画像編集装置1は、動画ファイル名・総フレーム桁数取得手段1a、フレームデータ抽出手段1b、フレーム番号取得手段1c、フレーム番号文字列作成手段1d、静止画ファイル名生成手段1e、静止画ファイルメモリ1f等を含んで構成されている。   The image editing apparatus 1 includes a moving image file name / total frame digit number acquiring unit 1a, a frame data extracting unit 1b, a frame number acquiring unit 1c, a frame number character string generating unit 1d, a still image file name generating unit 1e, and a still image file memory. 1f and the like.

動画ファイル名・総フレーム桁数取得手段1aは、デジタルカメラ2から入力された動画ファイル(動画データ)のタグ情報から、例えば「fname」等の動画ファイル名および動画ファイルの総フレーム数の桁数を取得するものである。   The moving image file name / total frame digit number obtaining means 1a obtains the moving image file name such as “fname” and the number of digits of the total frame number of the moving image file from the tag information of the moving image file (moving image data) input from the digital camera 2. Is something to get.

フレームデータ抽出手段1bは、静止画ファイルを作成するために、例えば、入力された動画ファイルをディスプレイ等のモニタに再生してユーザが選択した切り出し対象となるフレームデータを抽出するものである。なお、ユーザによる切り出し対象の選択方法は特には限定されず、例えば、先頭コマ、刻み幅および分割フレーム数等を指定する方法等様々な方法が適用可能である。   In order to create a still image file, for example, the frame data extraction unit 1b reproduces an input moving image file on a monitor such as a display and extracts frame data to be cut out selected by the user. Note that the selection method of the clipping target by the user is not particularly limited, and various methods such as a method of designating the top frame, the step size, the number of divided frames, and the like can be applied.

フレーム番号取得手段1cは、切り出し対象コマの動画ファイル内での絶対番号をそのコマのフレーム番号として取得するものである。フレーム番号文字列作成手段1dは、フレーム番号取得手段1cが取得したフレーム番号を、入力動画ファイルの総フレーム数の桁数を表示桁数として表示してフレーム番号文字列を作成するものである。例えば、フレーム番号が31で、総フレーム数の桁数が4桁の場合、フレーム番号を0031と4桁で表現して、これに例えばjpg等の拡張子を付加して、「0031.jpg」のようなフレーム番号文字列を作成する。   The frame number acquisition unit 1c acquires the absolute number in the moving image file of the cut-out frame as the frame number of the frame. The frame number character string creation means 1d creates a frame number character string by displaying the frame number acquired by the frame number acquisition means 1c as the number of digits of the total number of frames of the input moving image file. For example, when the frame number is 31 and the number of digits of the total number of frames is 4, the frame number is expressed as 0031 and 4 digits, and an extension such as jpg is added to this to add “0031.jpg” Create a frame number string such as

静止画ファイル名生成手段1eは、上で取得した動画ファイル名および上で作成されたフレーム番号文字列を組み合わせた文字列として静止画ファイル名を生成するものである。例えば、上の例で言うと、動画ファイル名が「fname」で、フレーム番号文字列が「0031.jpg」の場合、「fname_0031.jpg」が静止画ファイル名として生成される。   The still image file name generation means 1e generates a still image file name as a character string combining the moving image file name acquired above and the frame number character string generated above. For example, in the above example, when the moving image file name is “fname” and the frame number character string is “0031.jpg”, “fname_0031.jpg” is generated as the still image file name.

静止画ファイルメモリ1fは、ユーザによって選択され、抽出されたフレームデータを上で生成された静止画ファイル名とともに、静止画ファイルとして保存するためのものである。   The still image file memory 1f is for storing the frame data selected and extracted by the user as a still image file together with the still image file name generated above.

なお、実際には画像編集装置1は、本発明に係る画像編集方法を実施するためのプログラムを有するパソコン(パーソナル・コンピュータ)によって構成され、動画ファイル名、総フレーム桁数取得、フレーム番号取得、フレーム番号文字列作成、静止画ファイル名生成等の処理はすべてパソコン内のCPUや主メモリにおいて行われる。以下、これについて説明する。   Actually, the image editing apparatus 1 is constituted by a personal computer (personal computer) having a program for executing the image editing method according to the present invention, and includes a moving image file name, total frame digit acquisition, frame number acquisition, Processing such as frame number character string creation and still image file name generation is all performed in the CPU and main memory in the personal computer. This will be described below.

図2に、本発明に係る画像編集装置としての機能を備えたパソコンのハードウエア構成例をブロック図で示す。すなわち、図1の画像編集装置1は、ここではパソコンによって実現されており、同じ符号を付してパソコン1とする。   FIG. 2 is a block diagram showing a hardware configuration example of a personal computer provided with a function as an image editing apparatus according to the present invention. That is, the image editing apparatus 1 shown in FIG. 1 is realized by a personal computer here, and is denoted by the same reference numeral as the personal computer 1.

図2に示すようにパソコン1は、主として各構成要素の動作を制御する中央処理装置(CPU)10と、装置の制御プログラムが格納されたり、プログラム実行時の作業領域となる主メモリ12と、パソコン1のオペレーティングシステム(OS)、パソコン1に接続された周辺機器のデバイスドライバ、本発明に係る画像編集方法を実行するプログラムを含む各種のアプリケーションソフトウエア、ユーザの画像等が格納されるハードディスク装置14と、CD−ROMドライブ16と、表示用データを一時記憶する表示メモリ18と、この表示メモリ18からの画像データ、文字データ等により画像や文字等を表示するCRTモニタや液晶モニタ等のモニタ装置20と、キーボード22と、位置入力装置としてのマウス24と、マウス24の状態を検出してモニタ装置20上のマウスポインタの位置やマウス24の状態等の信号をCPU10に出力するマウスコントローラ26と、デジタルカメラ2と接続して画像データ等の入力が可能なUSB(Universal Serial Bus)などのインターフェース27と、上記各構成要素を接続するバス28とから構成されている。   As shown in FIG. 2, the personal computer 1 includes a central processing unit (CPU) 10 that mainly controls the operation of each component, a main memory 12 that stores a control program for the device, and serves as a work area when the program is executed. Hard disk device in which an operating system (OS) of the personal computer 1, device drivers of peripheral devices connected to the personal computer 1, various application software including a program for executing the image editing method according to the present invention, user images, etc. 14, a CD-ROM drive 16, a display memory 18 for temporarily storing display data, and a monitor such as a CRT monitor or a liquid crystal monitor for displaying images, characters, etc. by image data, character data, etc. from the display memory 18. A device 20, a keyboard 22, a mouse 24 as a position input device, and a mouse 2 The mouse controller 26 that outputs a signal such as the position of the mouse pointer on the monitor device 20 and the state of the mouse 24 to the CPU 10 and the digital camera 2 connected to the USB ( It is composed of an interface 27 such as a universal serial bus) and a bus 28 for connecting the above components.

すなわち、図1との対応を簡単に示すと、動画ファイル名・総フレーム桁数取得手段1a、フレームデータ抽出手段1b、フレーム番号取得手段1c、フレーム番号文字列作成手段1dおよび静止画ファイル名生成手段1eは、CPU10、主メモリ12等で構成され、静止画ファイルメモリ1fは、ハードディスク装置14で構成される。   That is, the correspondence with FIG. 1 is simply shown. Moving image file name / total frame digit number obtaining means 1a, frame data extracting means 1b, frame number obtaining means 1c, frame number character string creating means 1d and still image file name generation The means 1e is composed of the CPU 10, the main memory 12, etc., and the still image file memory 1f is composed of the hard disk device 14.

尚、上記構成のパソコン1は、ハードディスク装置14に格納されている、本発明に係る画像編集方法を実行するためのプログラムを除いて周知のものであるため、各構成要素の詳細な説明については省略する。この画像編集プログラムは、例えば、デジタルカメラ2の購入時に同梱されているCD−ROMなどに記録されており、このCD−ROMをパソコン1のCD−ROMドライブ16にセットすることにより、パソコン1にインストールすることができる。また、図示しない通信手段を介して画像編集プログラムを提供するサーバからダウンロードすることもできる。   The personal computer 1 having the above-described configuration is well-known except for the program for executing the image editing method according to the present invention, which is stored in the hard disk device 14. Omitted. The image editing program is recorded on, for example, a CD-ROM included when the digital camera 2 is purchased. By setting the CD-ROM in the CD-ROM drive 16 of the personal computer 1, the personal computer 1 Can be installed on. It can also be downloaded from a server that provides an image editing program via communication means (not shown).

次に本発明の画像編集装置の第1実施形態の作用である画像編集方法について図3のフローチャートに沿って説明する。   Next, an image editing method as an operation of the first embodiment of the image editing apparatus of the present invention will be described with reference to the flowchart of FIG.

まず、図3のステップS100において、動画ファイルを読み込む。動画ファイルの入力方法は特に限定はされないが、例えば図1あるいは図2に示すように、デジタルカメラ2から画像編集装置1としてのパソコン1にインターフェース27を介して入力される。入力された動画ファイルはハードディスク装置14に格納される。   First, in step S100 of FIG. 3, a moving image file is read. The input method of the moving image file is not particularly limited. For example, as shown in FIG. 1 or 2, the moving image file is input from the digital camera 2 to the personal computer 1 as the image editing apparatus 1 via the interface 27. The input moving image file is stored in the hard disk device 14.

次に、ステップS110において、動画ファイル名・総フレーム桁数取得手段1aにより、読み込んだ動画ファイルの動画ファイル名および総フレーム数の桁数を取得する。   Next, in step S110, the moving image file name / total frame digit number acquisition means 1a acquires the moving image file name of the read moving image file and the number of digits of the total frame number.

次に、ステップS120において、分解フレーム数n、開始フレーム、刻み幅stepを指定する。例えば、ユーザはモニタ装置20に再生された動画を見ながら、マウス24やキーボード22等を用いて、任意のフレームで再生を停止して開始フレームを指定するとともに、抽出するフレームの数を示す分解フレーム数nおよび抽出するフレームの間隔を示す刻み幅stepを入力する。これにより、指定された開始フレームより、刻み幅stepで、分解フレーム数n個のフレームデータが静止画として抽出されることになる。   Next, in step S120, the number of decomposed frames n, the start frame, and the step size step are designated. For example, while viewing the moving image reproduced on the monitor device 20, the user uses the mouse 24, the keyboard 22, etc. to stop the reproduction at an arbitrary frame and specify the start frame, and also shows the number of frames to be extracted. The number n of frames and the step size step indicating the interval between frames to be extracted are input. As a result, frame data of n number of decomposed frames is extracted as a still image with a step size from the designated start frame.

パソコン1は、指定された開始フレームの動画ファイルにおける絶対フレーム番号sfを算出する。絶対フレーム番号sfの算出方法は特に限定はされず、フレーム数をカウントしてもよいし、動画再生開始からの時間を動画ファイルのヘッダー情報に記録されているフレームレートで除算することによって算出してもよい。   The personal computer 1 calculates the absolute frame number sf in the moving image file of the designated start frame. The method for calculating the absolute frame number sf is not particularly limited. The absolute frame number sf may be counted by dividing the time from the start of video playback by the frame rate recorded in the header information of the video file. May be.

次に、ステップS130において、抽出するフレーム数のカウンタiを初期値0とする。また、ステップS140において、これから抽出するフレーム番号を算出する。今、刻み幅をstepとすると、抽出フレーム番号Xは、次の式(1)によって算出される。   Next, in step S130, the counter i for the number of frames to be extracted is set to an initial value 0. In step S140, the frame number to be extracted is calculated. Now, assuming that the step size is step, the extracted frame number X is calculated by the following equation (1).

X = sf + i*step ・・・・・・(1)
次にステップS150において、静止画として抽出される抽出フレームXに対する静止画ファイル名を生成する。例えば、図4(a)に示すような、総フレーム数8765の動画ファイルDSCF0001.aviが入力された場合を例にとって説明する。いま、開始フレーム(先頭コマ)のフレーム(コマ)番号31、刻み幅2、分解フレーム数15のJPEG静止画を作成するように指定されているとする。まず、上で動画ファイル名DSCF0001.aviから拡張子.aviを除いた動画ファイル名DSCF0001が取得されている。一方、開始フレームのフレーム番号31から動画ファイルの総フレーム数8765の桁数4にあわせて4桁として作成されたフレーム番号0031に拡張子.jpgを付加したフレーム番号文字列0031.jpgを作成する。そして、図4(b)に示すように、動画ファイル名DSCF0001とフレーム番号文字列0031.jpgを組み合わせた文字列DSCF0001_0031.jpgを静止画ファイル名として生成する。
X = sf + i * step (1)
In step S150, a still image file name for the extracted frame X extracted as a still image is generated. For example, as shown in FIG. 4A, a moving image file DSCF0001. A case where avi is input will be described as an example. Now, it is assumed that it is designated to create a JPEG still image having a frame (frame) number 31 of the start frame (first frame), a step size of 2, and a resolution frame number of 15. First, the moving image file name DSCF0001. Extension from avi. The moving image file name DSCF0001 excluding avi is acquired. On the other hand, the extension .frame is set to the frame number 0031 created as 4 digits from the frame number 31 of the start frame to 4 digits of the total number of frames 8765 of the moving image file. Frame number character string with jpg added 0031. jpg is created. Then, as shown in FIG. 4B, the moving image file name DSCF0001 and the frame number character string 0031. a character string DSCF0001_0031. jpg is generated as a still image file name.

次にステップS160において、この絶対フレーム番号X(図4の例では、番号0031のフレーム)を抽出し、静止画ファイル名DSCF0001_0031.jpgをつけて保存する。   Next, in step S160, the absolute frame number X (the frame of number 0031 in the example of FIG. 4) is extracted, and the still image file name DSCF0001_0031. Save with jpg.

次にステップS170において、抽出するフレーム数のカウンタiを1インクリメントする。ステップS180において、分解フレーム数nと比較し、カウンタiが、まだ分解フレーム数nを超えていない場合には、ステップS140に戻り、フレーム番号を刻み幅stepだけ増やした次のフレームを抽出する。図4の例では、刻み幅2増やしたフレーム番号33のフレームデータが抽出対象となり、静止画ファイル名DSCF0001_0033.jpgが生成される。このようにして、カウンタiが分解フレーム数15に達するまで、フレーム番号を2ずつ増やしながらフレームの抽出を行い、15個のフレームデータの抽出が行われる。このとき最後の抽出フレームの静止画ファイル名はDSCF0001_0059.jpgとなる。   In step S170, the counter i for the number of frames to be extracted is incremented by one. In step S180, the counter i is compared with the number of decomposed frames n. If the counter i has not yet exceeded the number of decomposed frames n, the process returns to step S140, and the next frame is extracted by increasing the frame number by the increment step. In the example of FIG. 4, the frame data of frame number 33 with an increment of 2 is the extraction target, and the still image file name DSCF0001_0033. jpg is generated. In this way, until the counter i reaches the number of decomposed frames 15, the number of frames is extracted while incrementing the frame number by 2, and 15 pieces of frame data are extracted. At this time, the still image file name of the last extracted frame is DSCF0001_0059. jpg.

なお、上で説明した例では、開始フレームから所定刻み幅で分解フレーム数だけフレームを抽出するようにしていたが、フレームの分解方法の指定はこれに限定されるものではない。例えば、図5に示すように、ユーザはモニタ装置20の表示画面30の動画再生領域30aに動画を再生しながら、コマ調整キー30bをクリックして任意のフレームで再生を停止して開始フレームを指定し、コマ数指定キー30cをクリックしてコマ数を指定し、分解方法選択キー30dにより、停止したコマの前後にわたり指定コマ数分を抽出するように指定することもできる。抽出した静止画は静止画表示領域30eに表示される。また、任意のフレームを指定して、プリントキー30fをクリックすることにより、静止画をプリントアウトすることもできる。   In the example described above, frames are extracted from the start frame by the number of decomposed frames at a predetermined step size. However, designation of the frame decomposition method is not limited to this. For example, as shown in FIG. 5, the user clicks the frame adjustment key 30b while playing a moving image in the moving image reproduction area 30a of the display screen 30 of the monitor device 20, and stops the reproduction at an arbitrary frame and displays a start frame. It is also possible to specify the number of frames by specifying the number of frames by clicking the frame number specification key 30c, and to extract the specified number of frames before and after the stopped frame by the separation method selection key 30d. The extracted still image is displayed in the still image display area 30e. Also, a still image can be printed out by designating an arbitrary frame and clicking the print key 30f.

また、あるいは図6に示すように、モニタ装置20の表示画面40の動画再生領域40aに動画を再生し、コマ調整キー40bにより動画再生を停止して、開始フレーム40cを指定した後、再度動画を再生し、再び停止して終了フレーム40dを指定して、その間を指定コマ数分として指定してもよい。このようにして、動画ファイルを分解して抽出された静止画ファイル42が、生成された静止画ファイル名により保存される。   Alternatively, as shown in FIG. 6, the moving image is reproduced in the moving image reproduction area 40a of the display screen 40 of the monitor device 20, the moving image reproduction is stopped by the frame adjustment key 40b, the start frame 40c is designated, and then the moving image is reproduced again. May be reproduced, stopped again, the end frame 40d may be designated, and the interval between them may be designated as the designated number of frames. In this way, the still image file 42 extracted by disassembling the moving image file is stored with the generated still image file name.

このように、本実施形態によれば、動画ファイルから静止画データを切り出して静止画ファイルとして保存する際、フレーム番号とともに元の動画ファイルの動画ファイル名を組み合わせるようにしたため、保存後の静止画ファイルと元の動画ファイルとの関連もわかり、静止画を元の動画ファイルの再生順に表示することができる。さらに、一意に特定できるファイル名となる静止画ファイルが作成されるため、次回分解保存時に重複処理を未然に避けることが可能となる。また冗長なファイル名とならず、できるだけ短いファイル名とし、異なる静止画データ間で重ならないようなファイル名とすることができるとともに、ファイル名表示時に情報が欠けることが少ないという効果を有する。また、二次的な使用にも利用可能である。   As described above, according to the present embodiment, when the still image data is cut out from the moving image file and saved as the still image file, the moving image file name of the original moving image file is combined with the frame number. You can also see the relationship between the file and the original video file, and still images can be displayed in the playback order of the original video file. Furthermore, since a still image file having a file name that can be uniquely specified is created, it is possible to avoid duplication processing at the time of the next decomposition and storage. In addition, the file name can be made as short as possible and not overlapped between different still image data, and there is an effect that information is hardly lost when the file name is displayed. It can also be used for secondary use.

次に、本発明の第2実施形態について説明する。   Next, a second embodiment of the present invention will be described.

図7に、本発明に係る画像編集方法を実施するための画像編集装置の第2実施形態の概略構成をブロック図で概念的に示す。   FIG. 7 conceptually shows, in a block diagram, a schematic configuration of a second embodiment of an image editing apparatus for carrying out the image editing method according to the present invention.

図7に示すように、本第2実施形態の画像編集装置1も基本的に図1に示す第1実施形態と同様である。第2実施形態が前述した第1実施形態と違う点は、第2実施形態の画像編集装置1が、フレームレート取得手段1gをさらに有し、静止画ファイル名にフレームレートを付け加えるようにしたことである。   As shown in FIG. 7, the image editing apparatus 1 of the second embodiment is basically the same as that of the first embodiment shown in FIG. The second embodiment is different from the first embodiment described above in that the image editing apparatus 1 of the second embodiment further includes a frame rate acquisition unit 1g and adds a frame rate to the still image file name. It is.

フレームレート取得手段1gは、入力された動画ファイルを再生する際、1秒間に表示されるフレーム数を示すフレームレートを動画ファイルのタグ情報から取得するものである。フレームレートは、1秒間に10フレーム(10fps)あるいは1秒間に30フレーム(30fps)等のように動画サイズで、ひとつ決まっている。   The frame rate acquisition means 1g acquires the frame rate indicating the number of frames displayed per second from the tag information of the moving image file when reproducing the input moving image file. One frame rate is determined by the moving image size such as 10 frames (10 fps) per second or 30 frames (30 fps) per second.

フレームレート取得手段1gは、動画ファイルのヘッダ情報からフレームレートを取得すると、これを静止画ファイル名生成手段1eに引き渡す。静止画ファイル名生成手段1eは、一方でフレーム番号文字列作成手段1dからフレーム番号文字列を受け取り、動画ファイル名、フレームレートおよびフレーム番号文字列を組み合わせた文字列を作り、これで静止画ファイル名を生成する。   When the frame rate acquisition unit 1g acquires the frame rate from the header information of the moving image file, the frame rate acquisition unit 1g passes it to the still image file name generation unit 1e. On the other hand, the still image file name generation unit 1e receives the frame number character string from the frame number character string generation unit 1d, creates a character string combining the moving image file name, the frame rate, and the frame number character string. Generate a name.

フレームレート取得手段1g以外の構成要素については、前記第1実施形態と同様であるので、図1と同様の符号を付して詳しい説明は省略する。   Since the components other than the frame rate acquisition unit 1g are the same as those in the first embodiment, the same reference numerals as those in FIG.

図8に、本第2実施形態において生成された静止画ファイル名の例を示す。本実施形態では、静止画ファイル名にフレームレートをも組み合わせるようにしている。すなわち、図8に示すように、本実施形態の静止画ファイル名は、動画ファイル名DSCF0001とフレーム番号文字列0031.jpgとの間にフレームレート(例えば10)をアンダーバーで結んで挿入して、DSCF0001_10_0031.jpg等とするようにしている。   FIG. 8 shows an example of a still image file name generated in the second embodiment. In this embodiment, the frame rate is combined with the still image file name. That is, as shown in FIG. 8, the still image file name of this embodiment includes a moving image file name DSCF0001 and a frame number character string 0031. The frame rate (for example, 10) is inserted between the jpg and underline with an underbar, and DSCF0001 — 10 — 0031. jpg etc.

このように、フレームレートを静止画ファイル名に入れるようにしたため、フレーム番号をフレームレートで割ることにより、元の動画ファイルを再生した場合に、動画再生開始後、何秒後にそのフレームが現れるかという時間を知ることができる。   In this way, since the frame rate is included in the still image file name, when the original movie file is played by dividing the frame number by the frame rate, how many seconds after the movie starts playing the frame appears. You can know the time.

次に、本発明の第3実施形態について説明する。   Next, a third embodiment of the present invention will be described.

図9に、本発明に係る画像編集方法を実施するための画像編集装置の第3実施形態の概略構成をブロック図で概念的に示す。   FIG. 9 conceptually shows a schematic configuration of a third embodiment of an image editing apparatus for carrying out the image editing method according to the present invention in a block diagram.

本第3実施形態は、前記2つの実施形態のように動画ファイルから静止画データを切り出してファイルとして保存するものではなく、動画ファイルから動画データ(フレームデータ群)を切り出して動画ファイルとして保存するものである。   The third embodiment does not cut out still image data from a moving image file and saves it as a file as in the two embodiments, but cuts out moving image data (frame data group) from the moving image file and saves it as a moving image file. Is.

図9に示すように、本実施形態の画像編集装置100は、動画データを入力するためのデジタルカメラ200と接続されており、動画ファイル名・総フレーム桁数取得手段100a、フレームデータ群抽出手段100b、先頭/最終フレーム番号取得手段100c、先頭/最終フレーム番号文字列作成手段100d、動画ファイル名生成手段100eおよび動画ファイルメモリ100fを含んで構成される。本実施形態の画像編集装置100も具体的には、本実施形態の画像編集方法処理プログラムを有する、図2に示すようなパソコン1によって構成される。   As shown in FIG. 9, the image editing apparatus 100 of the present embodiment is connected to a digital camera 200 for inputting moving image data, and includes a moving image file name / total frame digit number obtaining unit 100a, a frame data group extracting unit. 100b, head / final frame number acquisition means 100c, head / final frame number character string creation means 100d, moving picture file name generation means 100e and moving picture file memory 100f. Specifically, the image editing apparatus 100 of the present embodiment is also configured by a personal computer 1 having the image editing method processing program of the present embodiment as shown in FIG.

動画ファイル名・総フレーム桁数取得手段100aは、第1実施形態と同様であり、入力された動画ファイルのヘッダ情報から動画ファイル名および総フレーム数の桁数を取得するものである。フレームデータ群抽出手段100bは、ユーザの指定により、入力動画ファイルから動画ファイルとして保存すべき所定のフレームデータ群を抽出するものである。   The moving image file name / total frame digit acquisition means 100a is the same as in the first embodiment, and acquires the moving image file name and the number of digits of the total number of frames from the header information of the input moving image file. The frame data group extraction unit 100b extracts a predetermined frame data group to be stored as a moving image file from the input moving image file in accordance with user designation.

先頭/最終フレーム番号取得手段100cは、その抽出すべきフレームデータ群の最初のフレームの番号と、最後のフレームの番号を取得するものである。先頭/最終フレーム番号文字列作成手段100dは、先頭フレーム番号および最終フレーム番号から、それぞれ先頭フレーム番号文字列および最終フレーム番号文字列を作成するものである。先頭フレーム番号文字列および最終フレーム番号文字列の作成方法は、第1実施形態と同様である。   The first / last frame number acquisition unit 100c acquires the first frame number and the last frame number of the frame data group to be extracted. The first / last frame number character string creating means 100d creates a first frame number character string and a last frame number character string from the first frame number and the last frame number, respectively. The method of creating the first frame number character string and the last frame number character string is the same as in the first embodiment.

動画ファイル名生成手段100eは、動画ファイル名と先頭フレーム番号文字列および最終フレーム番号文字列とを組み合わせて動画ファイル名を生成するものである。動画ファイルメモリ100fは、抽出されたフレームデータ群に今生成された動画ファイル名を付して動画ファイルとして記憶するものである。   The moving image file name generation unit 100e generates a moving image file name by combining the moving image file name, the first frame number character string, and the last frame number character string. The moving image file memory 100f stores the extracted frame data group as a moving image file with the currently generated moving image file name.

以下、本実施形態の作用を説明する。   Hereinafter, the operation of the present embodiment will be described.

まず、デジタルカメラ200から動画ファイルを読み込む。具体的には、デジタルカメラ200から画像編集装置100としてのパソコン1にインターフェース27を介して入力される。入力された動画ファイルはハードディスク装置14に格納される。   First, a moving image file is read from the digital camera 200. Specifically, the data is input from the digital camera 200 to the personal computer 1 as the image editing apparatus 100 via the interface 27. The input moving image file is stored in the hard disk device 14.

次に、動画ファイル名・総フレーム桁数取得手段100aにより、読み込んだ動画ファイルのヘッダー情報から、動画ファイル名および総フレーム数の桁数を取得する。   Next, the moving image file name and the total frame digit number acquisition means 100a acquire the moving image file name and the total number of frames from the header information of the read moving image file.

次に、ユーザが、例えば図6に示したようなモニタ装置20の表示画面40を見ながら、抽出したいフレームデータ群の開始フレーム(先頭フレーム)40cと終了フレーム(最終フレーム)40dをマウス24やキーボード22等を用いて指定する。すると先頭/最終フレーム番号取得手段100cは、先頭フレーム番号および最終フレーム番号を取得する。また、先頭/最終フレーム番号文字列作成手段は、これから先頭フレーム番号文字列および最終フレーム番号文字列をそれぞれ作成する。また、動画ファイル名生成手段100eは、動画ファイル名と先頭フレーム番号文字列および最終フレーム番号文字列を組み合わせて動画ファイル名としての文字列を生成する。   Next, while the user views the display screen 40 of the monitor device 20 as shown in FIG. 6, for example, the start frame (first frame) 40c and the end frame (final frame) 40d of the frame data group to be extracted are set to the mouse 24 or This is specified using the keyboard 22 or the like. Then, the head / last frame number acquisition unit 100c acquires the head frame number and the last frame number. Also, the head / last frame number character string creating means creates a head frame number character string and a last frame number character string from now on. The moving image file name generating unit 100e generates a character string as a moving image file name by combining the moving image file name, the first frame number character string, and the last frame number character string.

フレームデータ群は生成された動画ファイル名とともに動画ファイルとして動画ファイルメモリ100fに保存される。   The frame data group is stored in the moving image file memory 100f as a moving image file together with the generated moving image file name.

このように本実施形態によれば、開始フレームと終了フレームを指定することにより、入力された動画ファイルの任意の部分を切り出して動画ファイルとして保存することができる。さらにその際、保存される動画ファイルの動画ファイル名に元の動画ファイル名が組み合わされているため、元の動画ファイルとの関連もわかり、さらに二次的な使用にも利用可能である。   Thus, according to the present embodiment, by designating the start frame and the end frame, it is possible to cut out an arbitrary part of the input moving image file and save it as a moving image file. Further, at that time, since the original moving image file name is combined with the moving image file name of the stored moving image file, the relationship with the original moving image file can be understood and further used for secondary use.

次に、本発明の第4実施形態について説明する。   Next, a fourth embodiment of the present invention will be described.

図10に、本発明に係る画像編集方法を実施するための画像編集装置の第4実施形態の概略構成をブロック図で概念的に示す。   FIG. 10 conceptually shows a schematic configuration of a fourth embodiment of an image editing apparatus for carrying out the image editing method according to the present invention in a block diagram.

図10に示すように、本第4実施形態の画像編集装置100も基本的に図9に示す第3実施形態と同様である。第4実施形態が前述した第3実施形態と違う点は、第4実施形態の画像編集装置100が、フレームレート取得手段100gをさらに有し、動画ファイル名にフレームレートを付け加えるようにしたことである。   As shown in FIG. 10, the image editing apparatus 100 of the fourth embodiment is basically the same as that of the third embodiment shown in FIG. The fourth embodiment is different from the third embodiment described above in that the image editing apparatus 100 according to the fourth embodiment further includes a frame rate acquisition unit 100g and adds a frame rate to the moving image file name. is there.

フレームレート取得手段100gは、入力された動画ファイルを再生する際、1秒間に表示されるフレーム数を示すフレームレートを動画ファイルのタグ情報から取得するものである。   The frame rate acquisition unit 100g acquires the frame rate indicating the number of frames displayed per second from the tag information of the moving image file when playing the input moving image file.

フレームレート取得手段100gは、動画ファイルのヘッダー情報からフレームレートを取得すると、これを動画ファイル名生成手段100eに引き渡す。動画ファイル名生成手段1eは、一方で先頭/最終フレーム番号文字列作成手段100dからフレーム番号文字列を受け取り、動画ファイル名、フレームレートおよび先頭フレーム番号文字列および最終フレーム番号文字列を組み合わせた文字列を作り、これで動画ファイル名を生成する。   When the frame rate acquisition unit 100g acquires the frame rate from the header information of the moving image file, the frame rate acquisition unit 100g passes it to the moving image file name generation unit 100e. On the other hand, the moving image file name generating means 1e receives the frame number character string from the first / last frame number character string creating means 100d and combines the moving image file name, frame rate, first frame number character string, and last frame number character string. Create a sequence and generate a movie file name.

フレームレート取得手段100g以外の構成要素については、前記第3実施形態と同様であるので、図9と同様の符号を付して詳しい説明は省略する。   Since the components other than the frame rate acquisition unit 100g are the same as those in the third embodiment, the same reference numerals as those in FIG.

本実施形態によれば、動画ファイル名にフレームレートを追加するようにしたため、開始フレームと最終フレーム間のフレーム数をフレームレートで割れば動画再生に要する時間を知ることができる。   According to the present embodiment, since the frame rate is added to the moving image file name, the time required for moving image reproduction can be obtained by dividing the number of frames between the start frame and the final frame by the frame rate.

以上、本発明の画像編集方法および装置について詳細に説明したが、本発明は、以上の例には限定されず、本発明の要旨を逸脱しない範囲において、各種の改良や変更を行ってもよいのはもちろんである。   The image editing method and apparatus of the present invention have been described in detail above, but the present invention is not limited to the above examples, and various improvements and modifications may be made without departing from the spirit of the present invention. Of course.

本発明に係る画像編集方法を実施するための画像編集装置の第1実施形態の概略構成を概念的に示すブロック図である。1 is a block diagram conceptually showing a schematic configuration of a first embodiment of an image editing apparatus for performing an image editing method according to the present invention. 本発明に係る画像編集装置としての機能を備えたパソコンのハードウエア構成例を示すブロック図である。It is a block diagram which shows the hardware structural example of the personal computer provided with the function as an image editing apparatus which concerns on this invention. 第1実施形態の画像編集方法を示すフローチャートである。It is a flowchart which shows the image editing method of 1st Embodiment. (a)は入力された動画ファイルの例を示す説明図であり、(b)は生成された静止画ファイル名の例を示す説明図である。(A) is explanatory drawing which shows the example of the input moving image file, (b) is explanatory drawing which shows the example of the produced | generated still image file name. 動画ファイルから静止画ファイルを作成する際の分割方法の例を示す説明図である。It is explanatory drawing which shows the example of the division | segmentation method at the time of creating a still image file from a moving image file. 同じく動画ファイルから静止画ファイルを作成する際の分割方法の他の例を示す説明図である。It is explanatory drawing which shows the other example of the division | segmentation method at the time of producing a still image file from a moving image file similarly. 本発明に係る画像編集方法を実施するための画像編集装置の第2実施形態の概略構成を概念的に示すブロック図である。It is a block diagram which shows notionally the schematic structure of 2nd Embodiment of the image editing apparatus for enforcing the image editing method concerning this invention. 第2実施形態において生成された静止画ファイル名の例を示す説明図である。It is explanatory drawing which shows the example of the still image file name produced | generated in 2nd Embodiment. 本発明に係る画像編集方法を実施するための画像編集装置の第3実施形態の概略構成を概念的に示すブロック図である。It is a block diagram which shows notionally the schematic structure of 3rd Embodiment of the image editing apparatus for enforcing the image editing method which concerns on this invention. 本発明に係る画像編集方法を実施するための画像編集装置の第4実施形態の概略構成を概念的に示すブロック図である。It is a block diagram which shows notionally the schematic structure of 4th Embodiment of the image editing apparatus for enforcing the image editing method which concerns on this invention.

符号の説明Explanation of symbols

1、100…画像編集装置(パソコン)、1a、100a…動画ファイル名・総フレーム桁数取得手段、1b、100b…フレームデータ抽出手段、1c…フレーム番号取得手段、1d…フレーム番号文字列作成手段、1e…静止画ファイル名生成手段、1f…静止画ファイルメモリ、2…デジタルカメラ、100b…フレームデータ群抽出手段、100c…先頭/最終フレーム番号取得手段、100d…先頭/最終フレーム番号文字列作成手段、100e…動画ファイル名生成手段、100f…動画ファイルメモリ、10…CPU、12…主メモリ、14…ハードディスク装置、16…CD−ROMドライブ、18…表示メモリ、20…モニタ装置、22…キーボード、24…マウス、26…マウスコントローラ、27…I/F、28…バス   DESCRIPTION OF SYMBOLS 1,100 ... Image editing apparatus (personal computer), 1a, 100a ... Moving image file name and total frame digit number acquisition means, 1b, 100b ... Frame data extraction means, 1c ... Frame number acquisition means, 1d ... Frame number character string creation means 1e ... Still image file name generation means, 1f ... Still image file memory, 2 ... Digital camera, 100b ... Frame data group extraction means, 100c ... First / last frame number acquisition means, 100d ... First / last frame number character string creation Means, 100e ... Moving picture file name generating means, 100f ... Moving picture file memory, 10 ... CPU, 12 ... Main memory, 14 ... Hard disk device, 16 ... CD-ROM drive, 18 ... Display memory, 20 ... Monitor device, 22 ... Keyboard 24 ... mouse, 26 ... mouse controller, 27 ... I / F, 28 ... bar

Claims (8)

動画ファイルから任意フレームデータを抽出して静止画ファイルとして保存する画像編集方法であって、
前記動画ファイルから動画ファイル名および総フレーム数の桁数を取得し、
前記動画ファイル中の保存対象となっているフレームデータのフレーム番号を取得し、 前記フレーム番号を前記動画ファイルの総フレーム数の桁数を表示桁数として表示したフレーム番号文字列を作成し、
前記動画ファイル名および前記フレーム番号文字列を組み合わせた文字列を前記静止画ファイル名とすることを特徴とする画像編集方法。
An image editing method for extracting arbitrary frame data from a video file and saving it as a still image file,
Obtain the video file name and the total number of digits from the video file,
Obtaining a frame number of the frame data to be saved in the video file, creating a frame number character string displaying the frame number as the number of digits of the total number of frames of the video file;
An image editing method, wherein a character string combining the moving image file name and the frame number character string is used as the still image file name.
請求項1に記載の画像編集方法であって、さらに、前記動画ファイルから前記動画ファイルを再生する際のフレームレートを取得し、前記動画ファイル名および前記フレーム番号文字列に前記フレームレートを組み合わせて前記文字列を作成して前記静止画ファイル名とすることを特徴とする画像編集方法。   2. The image editing method according to claim 1, further comprising: obtaining a frame rate for reproducing the moving image file from the moving image file, and combining the frame rate with the moving image file name and the frame number character string. An image editing method, wherein the character string is created and used as the still image file name. 動画ファイルから任意フレームデータ群を抽出して動画ファイルとして保存する画像編集方法であって、
前記動画ファイルから動画ファイル名および総フレーム数の桁数を取得し、
前記動画ファイル中の保存対象となっているフレームデータ群の先頭フレーム番号および最終フレーム番号を取得し、
前記先頭フレーム番号および最終フレーム番号に対し、前記動画ファイルの総フレーム数の桁数を表示桁数として表示した、先頭フレーム番号文字列および最終フレーム番号文字列を作成し、
前記動画ファイル名および前記先頭フレーム番号文字列および前記最終フレーム番号文字列を組み合わせた文字列を前記保存対象となっているフレームデータ群の動画ファイル名とすることを特徴とする画像編集方法。
An image editing method for extracting an arbitrary frame data group from a video file and saving it as a video file,
Obtain the video file name and the total number of digits from the video file,
Obtain the first frame number and the last frame number of the frame data group to be saved in the video file,
For the first frame number and the last frame number, create the first frame number character string and the last frame number character string, displaying the number of digits of the total number of frames of the moving image file as the display digit number,
An image editing method, wherein a character string obtained by combining the moving image file name, the first frame number character string, and the last frame number character string is used as a moving image file name of the frame data group to be saved.
請求項3に記載の画像編集方法であって、さらに、前記動画ファイルから前記動画ファイルを再生する際のフレームレートを取得し、前記動画ファイル名および前記先頭フレーム番号文字列および最終フレーム番号文字列に前記フレームレートを組み合わせて前記文字列を作成して前記保存対象となっているフレームデータ群の動画ファイル名とすることを特徴とする画像編集方法。   4. The image editing method according to claim 3, further comprising: obtaining a frame rate for reproducing the moving image file from the moving image file, the moving image file name, the first frame number character string, and the last frame number character string. An image editing method characterized in that the character string is created by combining the frame rate and the moving image file name of the frame data group to be saved is used. 動画ファイルから任意フレームデータを抽出して静止画ファイルとして保存する画像編集装置であって、
前記動画ファイルから動画ファイル名および総フレーム数の桁数を取得する手段と、
前記動画ファイル中の保存対象となっているフレームデータのフレーム番号を取得する手段と、
前記フレーム番号を前記動画ファイルの総フレーム数の桁数を表示桁数として表示したフレーム番号文字列を作成する手段と、
前記動画ファイル名および前記フレーム番号文字列を組み合わせた文字列を前記静止画ファイル名として生成する静止画ファイル名生成手段を備えたことを特徴とする画像編集装置。
An image editing device that extracts arbitrary frame data from a video file and saves it as a still image file,
Means for obtaining the video file name and the total number of frames from the video file;
Means for obtaining a frame number of frame data to be stored in the video file;
Means for creating a frame number character string in which the number of digits of the total number of frames of the moving image file is displayed as the number of display digits.
An image editing apparatus comprising: a still image file name generation unit configured to generate a character string combining the moving image file name and the frame number character string as the still image file name.
請求項5に記載の画像編集装置であって、さらに、前記動画ファイルから前記動画ファイルを再生する際のフレームレートを取得する手段を備え、前記静止画ファイル名生成手段は、前記動画ファイル名および前記フレーム番号文字列に前記フレームレートを組み合わせて前記文字列を作成して前記静止画ファイル名とすることを特徴とする画像編集装置。   6. The image editing apparatus according to claim 5, further comprising means for obtaining a frame rate for reproducing the moving image file from the moving image file, wherein the still image file name generating means includes the moving image file name and the moving image file name. An image editing apparatus characterized in that the character string is created by combining the frame number character string with the frame rate to obtain the still image file name. 動画ファイルから任意フレームデータ群を抽出して動画ファイルとして保存する画像編集装置であって、
前記動画ファイルから動画ファイル名および総フレーム数の桁数を取得する手段と、
前記動画ファイル中の保存対象となっているフレームデータ群の先頭フレーム番号および最終フレーム番号を取得する手段と、
前記先頭フレーム番号および最終フレーム番号に対し、前記動画ファイルの総フレーム数の桁数を表示桁数として表示した、先頭フレーム番号文字列および最終フレーム番号文字列を作成する手段と、
前記動画ファイル名および前記先頭フレーム番号文字列および前記最終フレーム番号文字列を組み合わせた文字列を前記保存対象となっているフレームデータ群の動画ファイル名として生成する動画ファイル名生成手段を備えたことを特徴とする画像編集装置。
An image editing apparatus that extracts an arbitrary frame data group from a video file and saves it as a video file,
Means for obtaining the video file name and the total number of frames from the video file;
Means for obtaining a first frame number and a last frame number of a frame data group to be stored in the moving image file;
Means for creating a first frame number character string and a last frame number character string, wherein the number of digits of the total number of frames of the moving image file is displayed as the number of display digits with respect to the first frame number and the last frame number;
A moving image file name generating unit configured to generate a moving image file name and a character string combining the first frame number character string and the last frame number character string as a moving image file name of the frame data group to be saved; An image editing apparatus characterized by the above.
請求項7に記載の画像編集装置であって、さらに、前記動画ファイルから前記動画ファイルを再生する際のフレームレートを取得する手段を備え、前記動画ファイル名生成手段は、前記動画ファイル名および前記先頭フレーム番号文字列および最終フレーム番号文字列に前記フレームレートを組み合わせて前記文字列を作成して前記保存対象となっているフレームデータ群の動画ファイル名とすることを特徴とする画像編集装置。   8. The image editing apparatus according to claim 7, further comprising means for obtaining a frame rate for reproducing the moving image file from the moving image file, wherein the moving image file name generating means includes the moving image file name and the moving image file name. An image editing apparatus, wherein the character string is created by combining the frame rate with the first frame number character string and the last frame number character string, and the moving image file name of the frame data group to be saved is obtained.
JP2003314251A 2003-09-05 2003-09-05 Image edit method and apparatus Pending JP2005086345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003314251A JP2005086345A (en) 2003-09-05 2003-09-05 Image edit method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003314251A JP2005086345A (en) 2003-09-05 2003-09-05 Image edit method and apparatus

Publications (1)

Publication Number Publication Date
JP2005086345A true JP2005086345A (en) 2005-03-31

Family

ID=34414924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003314251A Pending JP2005086345A (en) 2003-09-05 2003-09-05 Image edit method and apparatus

Country Status (1)

Country Link
JP (1) JP2005086345A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9667825B2 (en) 2013-08-27 2017-05-30 Canon Kabushiki Kaisha Information processing apparatus, method for controlling the information processing apparatus, and recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9667825B2 (en) 2013-08-27 2017-05-30 Canon Kabushiki Kaisha Information processing apparatus, method for controlling the information processing apparatus, and recording medium

Similar Documents

Publication Publication Date Title
KR20070090751A (en) Image displaying method and video playback apparatus
JP2005197913A (en) Apparatus and method for image processing
JP5701017B2 (en) Movie playback apparatus, movie playback method, computer program, and storage medium
JP6949612B2 (en) Video playback device, its control method, and program
JP2010212875A (en) Video player and video playback method
JP2010045765A (en) Reproducing apparatus
JP3997256B1 (en) Playback device and program for playback device
JP2007036752A (en) System, method and program for reproducing contents
JP2008010979A (en) Camera apparatus
JP2010268195A (en) Video content editing program, server, apparatus and method
JP2007243925A (en) Content reproducing apparatus, content reproducing method, and content reproduction program
JP2006060279A (en) Motion image reproducing apparatus
KR20080082149A (en) Method and apparatus for changing text-based subtitle
JP2005086345A (en) Image edit method and apparatus
JP2005167822A (en) Information reproducing device and information reproduction method
JP2005150923A (en) Image editing method and apparatus
JP2018074337A (en) Moving image processing device, moving image processing method, and program
JP4458785B2 (en) Image management device
JP2004080615A (en) Image-editing apparatus
JP2009123003A (en) Capture image recording apparatus and capture image recording program
JP2005117182A (en) Image display apparatus, image display method, program, and recording medium
JP4328265B2 (en) Moving image processing apparatus, moving image processing method, and program
WO2023047657A1 (en) Information processing device and information processing method
JP2004064383A (en) Image editing device and recording media
JPH1138954A (en) Picture display device, picture display method, and medium in which picture display program is recorded