JP4395282B2 - Image and audio playback device - Google Patents

Image and audio playback device Download PDF

Info

Publication number
JP4395282B2
JP4395282B2 JP2002047068A JP2002047068A JP4395282B2 JP 4395282 B2 JP4395282 B2 JP 4395282B2 JP 2002047068 A JP2002047068 A JP 2002047068A JP 2002047068 A JP2002047068 A JP 2002047068A JP 4395282 B2 JP4395282 B2 JP 4395282B2
Authority
JP
Japan
Prior art keywords
image data
moving image
reproduction
internal memory
speed
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.)
Expired - Fee Related
Application number
JP2002047068A
Other languages
Japanese (ja)
Other versions
JP2003250116A (en
Inventor
秀明 小川
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 Corp
Original Assignee
Fujifilm Corp
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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2002047068A priority Critical patent/JP4395282B2/en
Publication of JP2003250116A publication Critical patent/JP2003250116A/en
Application granted granted Critical
Publication of JP4395282B2 publication Critical patent/JP4395282B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、画像音声記録装置に関するものであり、特に例えばデジタルビデオカメラに適用され、記録媒体に記録された動画データと音声データを再生する画像音声再生装置に関する。
【0002】
【従来の技術】
従来の画像音声再生装置では、記録媒体から再生される動画データは一旦全て内部メモリに格納され、その後JPEG圧縮伸長回路によって伸長処理を施されてモニタに出力されていた。例えば、記録媒体に記録された30秒間の動画データが全て内部メモリに格納され、その後1フレーム毎の伸長処理を経てモニタに出力されていた。
【0003】
しかし、このような従来技術では、再生しようとする動画データのすべてを内部メモリに格納する必要があるため、再生できるデータ量が内部メモリの容量に依存してしまい、内部メモリの容量を超える動画データは再生することができない。また全ての動画データの格納が終了しないと再生が開始されないため、動画を再生するまでに時間がかかってしまう。
【0004】
そこで上記問題点を解決するための動画像再生装置が、特開2000−224535号公報に開示されている。この動画像再生装置では、記録媒体に記録された所望の画像データを1フレームもしくは複数フレームずつ間欠的に読み出し内部メモリに書き込むことによって、内部メモリの容量を抑えることができる。
【0005】
ところが上記公報記載の動画像再生装置では、各フレームの動画データを記録媒体から読み出して内部メモリに書き込む速度が、動画の再生速度よりも遅い場合には、途中で再生が停止してしまう。
【0006】
【発明が解決しようとする課題】
本発明はこのような問題点に鑑みてなされたものであり、例えばCF(コンパクトフラッシュ(登録商標))のようなアクセス速度の遅い記録媒体に記録された大容量の動画データでもスムーズに再生でき、かつ円滑に操作できる画像音声再生装置を提供することを目的とする。
【0007】
【課題を解決するための手段】
上記目的を達成するために、本発明の画像音声再生装置では、記録媒体に記録されたAVIファイルに含まれる動画データを再生表示するに際して、前記AVIファイルのヘッダに含まれる再生速度及びファイル容量を読み出すヘッダ情報読み出し手段と、前記記録媒体からの動画データの読み出し速度を検知するアクセス速度検知手段と、前記動画データの再生表示中、前記記録媒体から読み出した所定量の動画データを逐次格納しておく内部メモリと、前記再生速度及びファイル容量と前記読み出し速度とから、この再生速度と読み出し速度の速度差を補償するために、前記動画データの再生表示以前に前記内部メモリに格納すべき動画データの容量を算出する演算回路と、前記動画データの再生表示に先立ち、前記容量分だけの動画データを前記記録媒体から読み出して前記内部メモリに格納する動画データ先読み手段と、前記内部メモリに記録された動画データを再生表示する再生表示手段とを備える。
【0008】
ここで動画データとは、音声データと所定方法で圧縮された画像データから成る。内部メモリに先読みされた画像データは、画像読み出し手段によって1フレームずつ間欠的に読み出された後、伸長回路によって伸長処理を施され、モニタに出力される。前記画像データに対応する1フレーム分の音声データも、音声読み出し手段によって内部メモリから読み出されスピーカーに出力される。
【0009】
上述のように、動画データを再生する前に所定の容量分だけ内部メモリに先読みすることにより、記録媒体から動画データを読み出して内部メモリに書き込む速度と動画の再生速度の差分を埋めることができるので、スムーズな再生が実現できる。また先読みされる動画データの容量は演算回路により算出された必要最少量だけなので、従来のように全ての動画データを内部メモリに保存するのと比べて、内部メモリの容量が少なくてすみ、また動画再生を開始するまでの時間が短くなる。
【0011】
【発明の実施の形態】
図1は、本発明の画像音声再生装置を搭載したデジタルビデオカメラ10のブロック図である。デジタルビデオカメラ10は、CCDイメージャ12を備えている。CCDイメージャ12の前面には色フィルタが装着され、被写体光はこの色フィルタを介してCCDイメージャ12に照射される。モード切替スイッチ14によりデジタルビデオカメラ10をカメラモードに設定すると、システムコントローラ16から発せられる制御信号18に応じて、タイミングジェネレータ(TG)20はシグナルジェネレータ(SG)22から出力される垂直同期信号および水平同期信号に基づいてタイミング信号を生成し、CCDイメージャ12をプログレッシブスキャン方式で駆動する。この結果、被写体の撮影データがCCDイメージャ12から出力される。出力されたカメラ信号は、CDS/AGC回路24でノイズ除去及びレベル調整を施され、その後A/D変換器26によってデジタルの画像データに変換される。信号処理回路28は、A/D変換器26から出力された画像データにYUV変換を施し、YUVデータを生成する。
【0012】
生成されたYUVデータはデータバス30aを介してメモリ制御回路32に与えられ、メモリ制御回路32はデータバス30bを介して与えられたYUVデータを内部メモリ34に書き込む。これは、CCDイメージャ12がプログレッシブスキャン方式を採用する一方、モニタ36はインタレーススキャン方式を採用するためであり、走査方式の変換のためにYUVデータが一時的に内部メモリ34に格納される。格納されたYUVデータはその後、メモリ制御回路32によってインタレーススキャン方式で読み出され、データバス30aを介してビデオエンコーダ38に与えられる。ビデオエンコーダ38は入力されたYUVデータからNTSCフォーマットに従ったコンポジット画像信号を生成し、モニタ36に入力する。この結果、被写体の動画像がリアルタイムでモニタ36に表示される。
【0013】
ユーザーがシャッタボタン40を1回押すと、システムコントローラ16から制御信号18が発せられる。CPU42は制御信号18を受けて、マイク44、A/D変換器46、信号処理回路48を能動化する。信号処理回路48は、マイク44及びA/D変換器46を経て入力された音声データに所定の処理を施し、処理された音声データはメモリ制御回路32を介して内部メモリ34に書き込まれる。
【0014】
一方、シャッターボタン40の押下に伴って、CPUはJPEG圧縮伸長回路50に画像データ圧縮命令を与える。JPEG圧縮伸長回路50は、メモリ制御回路32にYUVデータの読み出しリクエストを出力し、リクエストに応えて出力された1フレーム分のYUVデータに圧縮処理を施す。圧縮された画像データは、データバス30a、30bを介して再び内部メモリ34に格納される。
【0015】
ユーザーによってシャッタボタン40が再度押下されない限り、デジタルビデオカメラ10は音声データの採取と、JPEG圧縮伸長回路50への圧縮命令を続ける。そのため、音声データ及び圧縮画像データが内部メモリ34に蓄積され続ける。シャッタボタン40が押下されると、CPU42はマイク44、A/D変換器46、信号処理回路48を不能化し、JPEG圧縮伸長回路50への圧縮命令を解除する。そしてメモリ制御回路32に、蓄積した音声データと圧縮画像データの読み出し命令を与える。メモリ制御回路32はこれに応答して、1秒分の音声データと15フレーム分の圧縮画像データを交互に読み出し、読み出された音声データと圧縮画像データはAVIファイルとして記録媒体52に順次記録されていく。
【0016】
図2にAVIファイルの構成を示す。最初のシャッタボタン40の操作時に、記録媒体52にはAVIファイルのヘッダ54が新規に作成されているので、音声データ及び圧縮画像データはヘッダ54以降に順次書き込まれていく。なお、この実施例では1秒分の動画像は15フレームから成り、1秒分の音声データから成る音声データブロック56と、これに続く15フレーム分の圧縮画像データから成る画像データブロック58が互いに対応するものとする。
【0017】
AVIファイルのヘッダ54には、総動画ファイル容量、総フレーム数、動画再生速度等のヘッダ情報60と、先頭フレームのサムネイル画像データ62が書き込まれる。また末尾に設けられたインデックス64には、各音声データブロック56と、各画像フレームの開始アドレスが書き込まれる。このインデックス64に書き込まれた情報により、音声データが1秒毎に、圧縮画像データが1フレーム毎に管理される。
【0018】
モード切替スイッチ14によりデジタルビデオカメラ10が再生モードに設定され、かつ所望のAVIファイルが選択されると、CPU42は選択されたAVIファイルを記録媒体52から検出し、ヘッダ54とインデックス64の情報を読み出してCPU42内に備えられたメモリ42aに書き込む。CPU42は、記録媒体52からの動画データの読み出し速度を検知するアクセス速度検知回路42bと、検知したアクセス速度とヘッダ情報60から先読みするデータ量を算出する演算回路42cを備えており、算出したデータ量分の画像データを内部メモリ34に格納し終わってから、動画の再生を開始させる。
【0019】
具体的に、デジタルビデオカメラ10が再生モードに設定されたときの動作フローを図3に示す。まず最初にステップS100で、CPU42は記録媒体52へのアクセス速度を検知する。次にステップS102で、ユーザーは記録媒体52に記録された複数のAVIファイルの中から所望のAVIファイルを選択すると、ステップS104で、CPU42は選択されたAVIファイルのヘッダ54とインデックス64に記載されている管理情報を読み出し、メモリ42aに格納する。同時に、読み出されたヘッダ情報60がモニタ36に表示されるので、ユーザーは選択したAVIファイルに間違いないことを確認して、ステップS106でセットキー66を押下する。
【0020】
セットキー66が押下されると、CPU42はステップS108で、選択されたAVIファイルのヘッダ情報60から、動画再生速度と総動画ファイル容量を検出する。ステップS110では、S100で検出された記録媒体52へのアクセス速度と、S108で検出された動画再生速度等の情報から、その差分、即ち先読みする動画データの容量を算出する。例えば、記録媒体52へのアクセス速度が0.9MB/s、動画の再生速度が1.0MB/s、総ファイル容量が30MBである場合、先読みする動画データの容量は3MBになる。
【0021】
次にS112でCPU42は、S110で得られた演算結果分だけ内部メモリ34に動画データを格納するよう命令を与える。即ち上述の例の場合、AVIファイルの最初から3MB分の動画データが、動画再生の開始前に記録媒体52から読み出され内部メモリ34に格納される。
【0022】
演算結果分の動画データの格納が終了すると、動画の再生が開始される。図4に動画を再生するときのフローを示す。まずステップS114で、フレーム番号i=0が与えられる。次にステップS116で、CPU42内に設けられている動画データ検知回路42dは、フレーム番号i番目の動画データが内部メモリ34に格納されているかを検知する。i番目の動画データが格納されている場合にはステップS118及びS120に進み、詳しくは後述するが、i番目の画像データの再生と音声データの再生が実行される。
【0023】
その後、ステップS122で未格納の動画データが記録媒体52から一定量だけ読み出され内部メモリ34に格納されると、ステップS124でi=i+1の演算が行われ、フレーム番号が1つだけ進む。ステップS126では、新たにS124で設定されたフレーム番号iが、総フレーム数jより小さいか判定される。i<jを満たしている場合には、フローはS116に戻り、再びステップS116からS126を繰り返すことによって、次のフレームの画像と音声が再生される。なお、S116からS126までのフローは1/15秒で一度完了するように設定されており、S116からS126のフローが繰り返し実行された場合には、画像及び音声の再生は1/15秒毎に間欠的に実施される。一方、i<jを満たしていない場合には、全てのフレーム画像が再生されたということになるので、ステップS128に進み処理は終了する。
【0024】
ここで具体的にステップS118の画像再生処理と、ステップS120の音声再生処理について説明する。ステップS118の画像再生処理では、CPU42は内部メモリ34に格納されたi番目の圧縮画像データの伸長処理をJPEG圧縮伸長回路50に命令する。JPEG圧縮伸長回路50は、メモリ制御回路32を通じて内部メモリ34から1フレーム分の圧縮画像データを読み出し、伸長処理を施す。伸長された1フレーム分の画像データは、再びメモリ制御回路32を介して内部メモリ34内の表示画像エリア34aに書き込まれる。なお伸長処理した画像データを格納する表示画像エリア34aは1フレーム分の容量しか持たないので、ステップS116からS126のフローが繰り返されたとき、表示画像エリア34aは1/15秒毎に上書きされる。表示画像エリア34aの画像データは、1/15秒毎にビデオエンコーダ38から出力される命令に応じて読み出され、ビデオエンコーダ38は画像データをコンポジット画像信号に変換し、モニタ36に出力する。この結果として、ステップS116からS126のフローが繰り返されたときには、1秒間に15の静止画像から成る動画像がモニタ36に表示される。
【0025】
ステップS116の音声出力処理では、CPU42は信号処理回路48に対して1/15秒毎に音声処理を命令する。信号処理回路48はこの命令に応じて、メモリ制御回路32を通じて内部メモリ34から音声データを1/15秒分ずつ読み出し、所定の処理を行う。処理が完了すると、音声データはD/A変換器68を介してスピーカー70から出力される。
【0026】
さて、図4のステップS116で再生フレームi番目の動画データの格納が検出されない場合には、フローはステップS130に進んで再生が一時停止する。
【0027】
次に、再生は一時停止状態のまま、CPU42はステップS132で残りのファイル容量の検出を行う。CPU42は、検出された残りのファイル容量とステップS100で検出されたアクセス速度から、再びステップS134で動画データの先読み量を算出する。そしてCPU42はステップS136で、記録媒体52に保存されている所望のAVIファイルから、未再生部分の動画データを先読み量分だけ内部メモリ34に記録するよう命令を与える。なおこのステップS130からS136までの間、デジタルビデオカメラ10はユーザーによる動画再生の再開指示を受け付けない。このため、動画再生を再開した後、一定時間はスムーズな再生が実現できる。
【0028】
ステップS136で未再生部分の動画データの先読みが完了すると、フローはステップS116に戻って、再び動画の再生が始まる。動画の再生は、ステップS126でフレーム番号iが所望のAVIファイルの総フレーム数jより大きくなり処理が終了するか、または再びステップS116で再生フレームi番目の動画データが検出されなくなって再生が一時停止するまで続く。
【0029】
なお上述の実施例では、本発明の画像音声再生装置はデジタルビデオカメラ10に搭載されているものとしたが、他にもデジタルカメラやPC、PDA等の電子機器に適用が可能である。
【0030】
なお上述の実施例では、記録媒体52から読み出されて再生される画像データはJPEG方式で圧縮された圧縮画像データとしたが、本発明はMPEG方式で圧縮された圧縮画像データを再生する場合にも適用できる。ただし、MPEG方式で圧縮されたデータはストリーム構造となっており、1フレーム分の画像情報を持っているのは基準フレームだけである。このため再生が一時停止した後、再開される画像データの先頭には、複数フレームおきに設けられる基準フレームをもってくるようにしなければならない。
【0031】
【発明の効果】
以上のように、本発明によれば、総ファイル容量や再生速度等の情報とアクセス速度から、円滑に動画を再生するために先読みされるべき動画データの容量を算出する演算回路を備え、動画再生前に演算回路で算出された容量分だけ動画データを読み出し、内部メモリに書き込んでおくことによって、スムーズな動画の再生が実現できる。また先読みされる動画データの容量は演算回路により算出された必要最少量だけなので、従来のように全ての動画データを内部メモリに保存していたときと比べて、内部メモリの容量が少なくてすみ、また動画再生を開始するまでの時間が短くなる。
【図面の簡単な説明】
【図1】本発明の画像音声再生装置を搭載したデジタルビデオカメラのブロック図である。
【図2】AVIファイルの構成を示す図解図である。
【図3】画像音声再生装置の動作の一部を示すフロー図である。
【図4】画像音声再生装置の動作のその他の一部を示すフロー図である。
【符号の説明】
30a、30b データバス
34 内部メモリ
36 モニタ
42c 演算回路
52 記録媒体
54 ヘッダ
70 スピーカー
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image / audio recording apparatus, and more particularly to an image / audio reproduction apparatus that is applied to, for example, a digital video camera and reproduces moving image data and audio data recorded on a recording medium.
[0002]
[Prior art]
In a conventional audio / video reproduction apparatus, all moving image data reproduced from a recording medium is once stored in an internal memory, and then subjected to expansion processing by a JPEG compression / decompression circuit and output to a monitor. For example, all of the 30-second moving image data recorded on the recording medium is stored in the internal memory, and then output to the monitor through the decompression process for each frame.
[0003]
However, in such a conventional technique, it is necessary to store all of the moving picture data to be played back in the internal memory, so the amount of data that can be played depends on the capacity of the internal memory, and the moving picture exceeds the capacity of the internal memory. Data cannot be played back. Further, since the reproduction is not started unless the storage of all the moving image data is completed, it takes time to reproduce the moving image.
[0004]
Therefore, a moving image reproducing apparatus for solving the above problems is disclosed in Japanese Patent Laid-Open No. 2000-224535. In this moving image reproducing apparatus, the capacity of the internal memory can be suppressed by intermittently reading out desired image data recorded on the recording medium one frame or a plurality of frames at a time and writing it in the internal memory.
[0005]
However, in the moving image reproducing apparatus described in the above publication, when the moving image data of each frame is read from the recording medium and written into the internal memory is slower than the moving image reproducing rate, the reproduction stops halfway.
[0006]
[Problems to be solved by the invention]
The present invention has been made in view of such problems, and for example, large-capacity moving image data recorded on a recording medium with a low access speed such as CF (Compact Flash (registered trademark)) can be smoothly reproduced. An object of the present invention is to provide an audio / video reproduction apparatus that can be operated smoothly.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, in the video / audio reproduction device of the present invention, when reproducing and displaying moving image data included in an AVI file recorded on a recording medium, the reproduction speed and file capacity included in the header of the AVI file are set. Header information reading means for reading, access speed detecting means for detecting the reading speed of moving image data from the recording medium, and sequentially storing a predetermined amount of moving image data read from the recording medium during reproduction display of the moving image data The moving image data to be stored in the internal memory before the reproduction display of the moving image data in order to compensate the speed difference between the reproducing speed and the reading speed from the internal memory to be stored, the reproduction speed, the file capacity, and the reading speed. An arithmetic circuit for calculating the capacity of the video, and the video data corresponding to the capacity prior to the playback display of the video data. Comprising a video data read-ahead means for storing in said internal memory reads data from the recording medium, and a reproduction displaying unit for displaying play video data recorded in the internal memory.
[0008]
Here, the moving image data includes audio data and image data compressed by a predetermined method. The image data prefetched in the internal memory is intermittently read out frame by frame by the image reading means, and then subjected to expansion processing by the expansion circuit and is output to the monitor. Audio data for one frame corresponding to the image data is also read from the internal memory by the audio reading means and output to the speaker.
[0009]
As described above, by prefetching a predetermined amount of data into the internal memory before reproducing the moving image data, the difference between the speed at which the moving image data is read from the recording medium and written to the internal memory and the moving image reproduction speed can be filled. Therefore, smooth playback can be realized. In addition, since the capacity of the pre-read video data is only the minimum necessary amount calculated by the arithmetic circuit, the capacity of the internal memory can be reduced compared to storing all the video data in the internal memory as in the past, and The time until video playback starts is shortened.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram of a digital video camera 10 equipped with an image / audio reproduction device of the present invention. The digital video camera 10 includes a CCD imager 12. A color filter is mounted on the front surface of the CCD imager 12, and the subject light is irradiated to the CCD imager 12 through the color filter. When the digital video camera 10 is set to the camera mode by the mode switch 14, the timing generator (TG) 20 and the vertical synchronization signal output from the signal generator (SG) 22 according to the control signal 18 issued from the system controller 16. A timing signal is generated based on the horizontal synchronizing signal, and the CCD imager 12 is driven by a progressive scan method. As a result, shooting data of the subject is output from the CCD imager 12. The output camera signal is subjected to noise removal and level adjustment by the CDS / AGC circuit 24, and then converted to digital image data by the A / D converter 26. The signal processing circuit 28 performs YUV conversion on the image data output from the A / D converter 26 to generate YUV data.
[0012]
The generated YUV data is given to the memory control circuit 32 via the data bus 30a, and the memory control circuit 32 writes the YUV data given via the data bus 30b to the internal memory 34. This is because the CCD imager 12 adopts the progressive scan method, while the monitor 36 adopts the interlaced scan method, and YUV data is temporarily stored in the internal memory 34 for conversion of the scan method. The stored YUV data is then read out by the memory control circuit 32 by the interlace scan method, and is supplied to the video encoder 38 via the data bus 30a. The video encoder 38 generates a composite image signal in accordance with the NTSC format from the input YUV data and inputs the composite image signal to the monitor 36. As a result, the moving image of the subject is displayed on the monitor 36 in real time.
[0013]
When the user presses the shutter button 40 once, the system controller 16 issues a control signal 18. The CPU 42 receives the control signal 18 and activates the microphone 44, the A / D converter 46, and the signal processing circuit 48. The signal processing circuit 48 performs predetermined processing on the audio data input via the microphone 44 and the A / D converter 46, and the processed audio data is written into the internal memory 34 via the memory control circuit 32.
[0014]
On the other hand, as the shutter button 40 is pressed, the CPU gives an image data compression command to the JPEG compression / decompression circuit 50. The JPEG compression / decompression circuit 50 outputs a YUV data read request to the memory control circuit 32 and compresses the YUV data for one frame output in response to the request. The compressed image data is stored again in the internal memory 34 via the data buses 30a and 30b.
[0015]
Unless the shutter button 40 is pressed again by the user, the digital video camera 10 continues to collect audio data and compress the JPEG compression / decompression circuit 50. Therefore, the audio data and the compressed image data are continuously stored in the internal memory 34. When the shutter button 40 is pressed, the CPU 42 disables the microphone 44, the A / D converter 46, and the signal processing circuit 48, and cancels the compression command to the JPEG compression / decompression circuit 50. The memory control circuit 32 is then given a read command for the stored audio data and compressed image data. In response to this, the memory control circuit 32 alternately reads out audio data for 1 second and compressed image data for 15 frames, and the read audio data and compressed image data are sequentially recorded on the recording medium 52 as an AVI file. It will be done.
[0016]
FIG. 2 shows the structure of the AVI file. Since the AVI file header 54 is newly created in the recording medium 52 when the shutter button 40 is operated for the first time, the audio data and the compressed image data are sequentially written after the header 54. In this embodiment, a moving image for one second consists of 15 frames, and an audio data block 56 consisting of audio data for one second and an image data block 58 consisting of compressed image data for 15 frames following each other. It shall correspond.
[0017]
In the header 54 of the AVI file, header information 60 such as the total moving image file capacity, the total number of frames, and the moving image reproduction speed, and the thumbnail image data 62 of the first frame are written. In the index 64 provided at the end, each audio data block 56 and the start address of each image frame are written. With the information written in the index 64, the audio data is managed every second and the compressed image data is managed every frame.
[0018]
When the digital video camera 10 is set to the playback mode by the mode changeover switch 14 and a desired AVI file is selected, the CPU 42 detects the selected AVI file from the recording medium 52 and displays the information of the header 54 and the index 64. Read and write to the memory 42a provided in the CPU 42. The CPU 42 includes an access speed detection circuit 42b that detects the reading speed of the moving image data from the recording medium 52, and an arithmetic circuit 42c that calculates a prefetched data amount from the detected access speed and the header information 60. After the amount of image data is stored in the internal memory 34, the reproduction of the moving image is started.
[0019]
Specifically, FIG. 3 shows an operation flow when the digital video camera 10 is set to the playback mode. First, in step S100, the CPU 42 detects the access speed to the recording medium 52. Next, in step S102, when the user selects a desired AVI file from a plurality of AVI files recorded on the recording medium 52, in step S104, the CPU 42 is described in the header 54 and index 64 of the selected AVI file. Management information is read and stored in the memory 42a. At the same time, since the read header information 60 is displayed on the monitor 36, the user confirms that the selected AVI file is correct and presses the set key 66 in step S106.
[0020]
When the set key 66 is pressed, the CPU 42 detects the moving image playback speed and the total moving image file capacity from the header information 60 of the selected AVI file in step S108. In step S110, the difference between the access speed to the recording medium 52 detected in step S100 and the information such as the moving image playback speed detected in step S108, that is, the capacity of the prefetched moving image data is calculated. For example, when the access speed to the recording medium 52 is 0.9 MB / s, the moving image playback speed is 1.0 MB / s, and the total file capacity is 30 MB, the capacity of the pre-read moving image data is 3 MB.
[0021]
Next, in S112, the CPU 42 gives an instruction to store the moving image data in the internal memory 34 for the calculation result obtained in S110. That is, in the case of the above example, 3 MB of moving image data from the beginning of the AVI file is read from the recording medium 52 and stored in the internal memory 34 before starting the reproduction of the moving image.
[0022]
When the storage of the moving image data for the calculation result is completed, the reproduction of the moving image is started. FIG. 4 shows a flow when reproducing a moving image. First, in step S114, a frame number i = 0 is given. In step S116, the moving image data detection circuit 42d provided in the CPU 42 detects whether or not the i-th moving image data with the frame number i is stored in the internal memory 34. If the i-th moving image data is stored, the process proceeds to steps S118 and S120. As will be described in detail later, reproduction of the i-th image data and reproduction of audio data are executed.
[0023]
Thereafter, when unstored moving image data is read from the recording medium 52 by a certain amount and stored in the internal memory 34 in step S122, the calculation of i = i + 1 is performed in step S124, and the frame number is advanced by one. In step S126, it is determined whether the frame number i newly set in S124 is smaller than the total number of frames j. If i <j is satisfied, the flow returns to S116, and the image and sound of the next frame are reproduced by repeating steps S116 to S126 again. The flow from S116 to S126 is set to be completed once in 1/15 seconds. When the flow from S116 to S126 is repeatedly executed, the reproduction of the image and sound is performed every 1/15 seconds. Implemented intermittently. On the other hand, if i <j is not satisfied, it means that all the frame images have been reproduced, and the process proceeds to step S128 and the process ends.
[0024]
Here, the image reproduction process in step S118 and the audio reproduction process in step S120 will be specifically described. In the image reproduction process of step S118, the CPU 42 instructs the JPEG compression / decompression circuit 50 to decompress the i-th compressed image data stored in the internal memory 34. The JPEG compression / decompression circuit 50 reads compressed image data for one frame from the internal memory 34 through the memory control circuit 32 and performs decompression processing. The decompressed image data for one frame is written into the display image area 34a in the internal memory 34 via the memory control circuit 32 again. Since the display image area 34a for storing the decompressed image data has a capacity of only one frame, the display image area 34a is overwritten every 1/15 second when the flow from step S116 to S126 is repeated. . The image data in the display image area 34a is read in response to a command output from the video encoder 38 every 1/15 second, and the video encoder 38 converts the image data into a composite image signal and outputs it to the monitor 36. As a result, when the flow of steps S116 to S126 is repeated, a moving image composed of 15 still images per second is displayed on the monitor 36.
[0025]
In the audio output process in step S116, the CPU 42 instructs the signal processing circuit 48 to perform audio processing every 1/15 second. In response to this command, the signal processing circuit 48 reads out audio data from the internal memory 34 through the memory control circuit 32 every 1/15 second and performs predetermined processing. When the processing is completed, the audio data is output from the speaker 70 via the D / A converter 68.
[0026]
If it is not detected in step S116 of FIG. 4 that storage of the i-th moving image data in the playback frame is detected, the flow proceeds to step S130 and playback is paused.
[0027]
Next, while the reproduction is paused, the CPU 42 detects the remaining file capacity in step S132. The CPU 42 calculates the prefetching amount of the moving image data again in step S134 from the detected remaining file capacity and the access speed detected in step S100. In step S136, the CPU 42 gives an instruction to record the unreproduced portion of moving image data in the internal memory 34 by the amount of pre-read from the desired AVI file stored in the recording medium 52. Note that during the steps S130 to S136, the digital video camera 10 does not accept a user's instruction to resume moving image playback. For this reason, smooth playback can be realized for a certain period of time after resuming moving image playback.
[0028]
When the prefetching of the moving image data of the unreproduced part is completed in step S136, the flow returns to step S116 and the reproduction of the moving image starts again. In step S126, the playback of the moving image is temporarily stopped because the frame number i is larger than the total number of frames j of the desired AVI file in step S126, or the processing is finished again, or the moving image data for the i-th playback frame is not detected again in step S116. Continue until it stops.
[0029]
In the above-described embodiment, the video / audio reproduction device of the present invention is mounted on the digital video camera 10, but can be applied to other electronic devices such as a digital camera, a PC, and a PDA.
[0030]
In the above-described embodiment, the image data read out and reproduced from the recording medium 52 is compressed image data compressed by the JPEG method, but the present invention reproduces compressed image data compressed by the MPEG method. It can also be applied to. However, data compressed by the MPEG method has a stream structure, and only the reference frame has image information for one frame. For this reason, after the reproduction is paused, it is necessary to bring a reference frame provided every other frame at the head of the resumed image data.
[0031]
【The invention's effect】
As described above, according to the present invention, there is provided an arithmetic circuit that calculates the capacity of video data to be pre-read for smooth playback of a video from information such as the total file capacity and playback speed and the access speed. Smooth moving image reproduction can be realized by reading out moving image data by the capacity calculated by the arithmetic circuit before reproduction and writing it in the internal memory. In addition, since the capacity of the prefetched video data is only the minimum necessary amount calculated by the arithmetic circuit, the capacity of the internal memory can be smaller than when all the video data is stored in the internal memory as in the past. In addition, the time until the start of moving image playback is shortened.
[Brief description of the drawings]
FIG. 1 is a block diagram of a digital video camera equipped with an image / sound reproduction apparatus of the present invention.
FIG. 2 is an illustrative view showing a structure of an AVI file.
FIG. 3 is a flowchart showing a part of the operation of the video / audio reproduction device.
FIG. 4 is a flowchart showing another part of the operation of the video / audio reproduction device.
[Explanation of symbols]
30a, 30b Data bus 34 Internal memory 36 Monitor 42c Arithmetic circuit 52 Recording medium 54 Header 70 Speaker

Claims (1)

記録媒体に記録されたAVIファイルに含まれる動画データを再生表示する画像音声再生装置において、
前記AVIファイルのヘッダに含まれる再生速度及びファイル容量を読み出すヘッダ情報読み出し手段と、
前記記録媒体からの動画データの読み出し速度を検知するアクセス速度検知手段と、
前記動画データの再生表示中、前記記録媒体から読み出した所定量の動画データを逐次格納しておく内部メモリと、
前記再生速度及びファイル容量と前記読み出し速度とから、この再生速度と読み出し速度の速度差を補償するために、前記動画データの再生表示以前に前記内部メモリに格納すべき動画データの容量を算出する演算回路と、
前記動画データの再生表示に先立ち、前記容量分だけの動画データを前記記録媒体から読み出して前記内部メモリに格納する動画データ先読み手段と、
前記内部メモリに記録された動画データを再生表示する再生表示手段とを備えることを特徴とする画像音声再生装置。
In an audio / video reproduction apparatus for reproducing and displaying moving image data included in an AVI file recorded on a recording medium,
Header information reading means for reading the playback speed and file capacity included in the header of the AVI file;
Access speed detecting means for detecting the reading speed of the moving image data from the recording medium;
An internal memory for sequentially storing a predetermined amount of moving image data read from the recording medium during reproduction and display of the moving image data;
In order to compensate for the speed difference between the reproduction speed and the reading speed, the capacity of the moving picture data to be stored in the internal memory before the reproduction display of the moving picture data is calculated from the reproduction speed, the file capacity, and the reading speed. An arithmetic circuit;
Prior to reproducing and displaying the moving image data, moving image data pre-reading means for reading moving image data corresponding to the capacity from the recording medium and storing it in the internal memory;
A video / audio reproduction device comprising: reproduction display means for reproducing and displaying the moving image data recorded in the internal memory .
JP2002047068A 2002-02-22 2002-02-22 Image and audio playback device Expired - Fee Related JP4395282B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002047068A JP4395282B2 (en) 2002-02-22 2002-02-22 Image and audio playback device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002047068A JP4395282B2 (en) 2002-02-22 2002-02-22 Image and audio playback device

Publications (2)

Publication Number Publication Date
JP2003250116A JP2003250116A (en) 2003-09-05
JP4395282B2 true JP4395282B2 (en) 2010-01-06

Family

ID=28660264

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002047068A Expired - Fee Related JP4395282B2 (en) 2002-02-22 2002-02-22 Image and audio playback device

Country Status (1)

Country Link
JP (1) JP4395282B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6926802B2 (en) * 2017-08-08 2021-08-25 日本電気株式会社 Content processing equipment, content processing system, content processing method, and content processing program

Also Published As

Publication number Publication date
JP2003250116A (en) 2003-09-05

Similar Documents

Publication Publication Date Title
JP3398081B2 (en) Digital camera
JP3551181B2 (en) Recording device and recording method
US6671408B1 (en) Motion image reproducing apparatus
JP4904914B2 (en) STREAM GENERATION DEVICE, IMAGING DEVICE, AND STREAM GENERATION METHOD
US7627229B2 (en) Moving image recording apparatus and method of recording moving image
JP4958758B2 (en) Recording apparatus, reproducing apparatus, recording method, reproducing method, and program
JP2003250113A (en) Video audio recording and reproducing apparatus
JP3814565B2 (en) Recording device
JP5600405B2 (en) Image processing apparatus, image processing method, and program
JP4042411B2 (en) Data recording apparatus, data reproducing apparatus, data recording / reproducing method, and imaging apparatus
JP2005039792A (en) Recording apparatus and reproducing apparatus
JP4973497B2 (en) Captured image recording apparatus, captured image recording method, captured image playback apparatus, captured image playback method, and captured image recording / playback system
JP4395282B2 (en) Image and audio playback device
JP3683462B2 (en) Movie display device
JP2003125344A (en) Method and device for recording/reproducing picture and method and device for managing file
JP2000287162A (en) Digital camera and moving picture reproducing device
JP2005318180A (en) Hard disk recorder and video recording apparatus
JP4446669B2 (en) Moving image data recording method and reproducing method thereof, moving image data recording device and reproducing device thereof
JP2007235432A (en) Image sound recorder and image sound recording control program
JP4462660B2 (en) Still image recording apparatus and method, and imaging apparatus
JP4065526B2 (en) Imaging apparatus and recording apparatus
JPH1013721A (en) Image pickup device
JP3524833B2 (en) Image playback device
JP4235052B2 (en) Moving image recording apparatus, image information processing apparatus and method
JP4166148B2 (en) Image recording device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040311

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060331

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060607

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060726

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061214

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070207

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091019

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121023

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121023

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131023

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees