JP2005037743A - Information processor, method, and program - Google Patents
Information processor, method, and program Download PDFInfo
- Publication number
- JP2005037743A JP2005037743A JP2003275458A JP2003275458A JP2005037743A JP 2005037743 A JP2005037743 A JP 2005037743A JP 2003275458 A JP2003275458 A JP 2003275458A JP 2003275458 A JP2003275458 A JP 2003275458A JP 2005037743 A JP2005037743 A JP 2005037743A
- Authority
- JP
- Japan
- Prior art keywords
- data
- bit rate
- blocks
- reproduction time
- dividing
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は情報処理装置および方法、並びにプログラムに関し、特に、圧縮符号化されているデータの再生時間を算出する情報処理装置および方法、並びにプログラムに関する。 The present invention relates to an information processing apparatus, method, and program, and more particularly, to an information processing apparatus, method, and program for calculating the reproduction time of compression-encoded data.
圧縮符号化されている音声データが広く用いられるようになっている。 Audio data that has been compression-encoded has been widely used.
音声データの圧縮符号化の方式は、大きく分けて、固定ビットレートと可変ビットレートの2種類がある。可変ビットレートの圧縮符号化においては、その時点での音声信号の変化や、その前後での音声信号の変化などを基に、ビットレートを変更するものである。 There are roughly two types of audio data compression coding methods: a fixed bit rate and a variable bit rate. In compression coding at a variable bit rate, the bit rate is changed based on the change in the audio signal at that time, the change in the audio signal before and after the change.
このような、可変ビットレートの音声データの再生時間を表示する場合、全ての音声データを読み取って、フレーム数を取得し、フレームに格納されるサンプル数と、フレーム数と、サンプリング周波数とから再生時間を求めることができる。 When displaying the playback time of such variable bit rate audio data, all the audio data is read, the number of frames is obtained, and playback is performed from the number of samples stored in the frame, the number of frames, and the sampling frequency. You can ask for time.
しかしながら、再生前に、可変ビットレートの音声データの再生時間を表示する場合、正確な再生時間を表示させようとするとき、音声データの全体から音声データに含まれるフレーム数を求める必要があり、表示までに時間がかかるという問題があった。この場合、再生開始までに、時間がかかってしまうことになる。 However, when displaying the playback time of variable bit rate audio data before playback, when trying to display the correct playback time, it is necessary to determine the number of frames included in the audio data from the entire audio data, There was a problem that it took time to display. In this case, it takes time to start reproduction.
一方、迅速に再生時間を表示させようとする場合、実際の再生時間とは大きく異なる、誤差の大きい再生時間を表示してしまうという問題があった。 On the other hand, when promptly displaying the playback time, there is a problem that a playback time with a large error, which is greatly different from the actual playback time, is displayed.
本発明の情報処理装置は、データを複数のブロックに分割する分割手段と、複数のブロックのそれぞれから、所定のデータ量の部分を抽出する抽出手段と、抽出された部分のそれぞれから、ビットレートを示す情報を読み出す読み出し手段と、情報で示されるビットレートの平均と、データ全体のデータ量とからデータの再生時間を算出する算出手段とを含むことを特徴とする。 An information processing apparatus according to the present invention includes a dividing unit that divides data into a plurality of blocks, an extracting unit that extracts a predetermined amount of data from each of the plurality of blocks, and a bit rate from each of the extracted portions. And a calculating means for calculating the reproduction time of the data from the average bit rate indicated by the information and the data amount of the entire data.
分割手段は、データを、8乃至32のいずれかの数のブロックに分割するようにすることができる。 The dividing means can divide the data into any number of blocks from 8 to 32.
抽出手段は、ブロックの内の、データの先頭のブロック以外のブロックのそれぞれから、部分を抽出するようにすることができる。 The extracting means can extract a portion from each of the blocks other than the head block of the data.
抽出手段は、複数のブロックのそれぞれから、4Kバイト乃至8Kバイトのいずれかのデータ量の部分を抽出するようにすることができる。 The extraction means can extract a portion having a data amount of 4 Kbytes to 8 Kbytes from each of the plurality of blocks.
本発明の情報処理方法は、データを複数のブロックに分割する分割ステップと、複数のブロックのそれぞれから、所定のデータ量の部分を抽出する抽出ステップと、抽出された部分のそれぞれから、ビットレートを示す情報を読み出す読み出しステップと、情報で示されるビットレートの平均と、データ全体のデータ量とからデータの再生時間を算出する算出ステップとを含むことを特徴とする。 An information processing method according to the present invention includes a dividing step of dividing data into a plurality of blocks, an extracting step of extracting a predetermined amount of data from each of the plurality of blocks, and a bit rate from each of the extracted portions. And a calculation step of calculating a data reproduction time from the average bit rate indicated by the information and the data amount of the entire data.
本発明のプログラムは、コンピュータに、データを複数のブロックに分割する分割ステップと、複数のブロックのそれぞれから、所定のデータ量の部分を抽出する抽出ステップと、抽出された部分のそれぞれから、ビットレートを示す情報を読み出す読み出しステップと、情報で示されるビットレートの平均と、データ全体のデータ量とからデータの再生時間を算出する算出ステップとを実行させることを特徴とする。 The program according to the present invention includes a dividing step for dividing data into a plurality of blocks, an extracting step for extracting a predetermined amount of data from each of the plurality of blocks, and a bit from each of the extracted portions. A read step for reading information indicating a rate, and a calculation step for calculating a data reproduction time from the average bit rate indicated by the information and the data amount of the entire data are executed.
情報処理装置は、独立した装置であっても良いし、例えば、オーディオプレーヤーの情報処理処理を行うブロックであっても良い。 The information processing apparatus may be an independent apparatus, or may be a block that performs information processing of an audio player, for example.
本発明の情報処理装置および方法、並びにプログラムにおいては、データが複数のブロックに分割され、複数のブロックのそれぞれから、所定のデータ量の部分が抽出され、抽出された部分のそれぞれから、ビットレートを示す情報が読み出され、情報で示されるビットレートの平均と、データ全体のデータ量とからデータの再生時間が算出される。 In the information processing apparatus, method, and program of the present invention, data is divided into a plurality of blocks, a portion having a predetermined data amount is extracted from each of the plurality of blocks, and a bit rate is calculated from each of the extracted portions. Is read out, and the data reproduction time is calculated from the average bit rate indicated by the information and the data amount of the entire data.
可変ビットレートのデータの正確な再生時間を、迅速に算出できる。 Accurate playback time of variable bit rate data can be calculated quickly.
以下に本発明の実施の形態を説明するが、本明細書に記載の発明と、発明の実施の形態との対応関係を例示すると、次のようになる。この記載は、本明細書に記載されている発明をサポートする実施の形態が本明細書に記載されていることを確認するためのものである。従って、発明の実施の形態中には記載されているが、発明に対応するものとして、ここには記載されていない実施の形態があったとしても、そのことは、その実施の形態が、その発明に対応するものではないことを意味するものではない。逆に、実施の形態が発明に対応するものとしてここに記載されていたとしても、そのことは、その実施の形態が、その発明以外の発明には対応しないものであることを意味するものでもない。 Embodiments of the present invention will be described below. The correspondence relationship between the invention described in this specification and the embodiments of the invention is exemplified as follows. This description is intended to confirm that the embodiments supporting the invention described in this specification are described in this specification. Therefore, although there is an embodiment which is described in the embodiment of the invention but is not described here as corresponding to the invention, it means that the embodiment is not It does not mean that it does not correspond to the invention. Conversely, even if an embodiment is described herein as corresponding to an invention, that means that the embodiment does not correspond to an invention other than the invention. Absent.
さらに、この記載は、本明細書に記載されている発明の全てを意味するものではない。換言すれば、この記載は、本明細書に記載されている発明であって、この出願では請求されていない発明の存在、すなわち、将来、分割出願されたり、補正により出現、追加される発明の存在を否定するものではない。 Further, this description does not mean all the inventions described in this specification. In other words, this description is for the invention described in the present specification, which is not claimed in this application, that is, for the invention that will be applied for in the future or that will appear and be added by amendment. It does not deny existence.
請求項1に記載の情報処理装置は、データを複数のブロックに分割する分割手段(例えば、図2のステップS13の処理を実行する図1のCPU11)と、複数のブロックのそれぞれから、所定のデータ量の部分を抽出する抽出手段(例えば、図2のステップS15の処理を実行する図1のCPU11)と、抽出された部分のそれぞれから、ビットレートを示す情報を読み出す読み出し手段(例えば、図2のステップS16の処理を実行する図1のCPU11)と、情報で示されるビットレートの平均と、データ全体のデータ量とからデータの再生時間を算出する算出手段(例えば、図2のステップS19の処理を実行する図1のCPU11)とを含むことを特徴とする。
The information processing apparatus according to
図1は、本発明に係るPDA1の一実施の形態の構成を示すブロック図である。CPU(Central Processing Unit)11は、SDRAM(Synchronous Random Access Memory)12またはフラッシュメモリ13に格納されているオペレーティングシステム、またはアプリケーションプログラム、クラスライブラリなどの各種のプログラムを実行する。
FIG. 1 is a block diagram showing a configuration of an embodiment of a
SDRAM12は、CPU11が実行するプログラムや、その実行において適宜変化するパラメータを格納する。フラッシュメモリ13は、EEPROM(Electrically Erasable Programmable Read Only Memory)の一種であり、一般的には、CPU11が使用するプログラムや演算用のパラメータのうちの基本的に固定のデータを格納する。
The SDRAM 12 stores a program executed by the
CPU11には、フラッシュメモリ13と共通のバスを介して、バッファ14が接続されている。無線LANインターフェース15は、バッファ14を介して、CPU11に接続さている。無線LANインターフェース15は、IEEE(Institute of Electrical and Electronic Engineers)802.11a、IEEE802.11b、またはIEEE802.11gなどの規格に基づき、他の装置またはアクセスポイントなどと無線通信し、データまたは指令などを送受信する。バッファ14は、CPU11から供給され無線LANインターフェース15が送信するデータを一時的に記憶するか、または無線LANインターフェース15が受信しCPU11に供給するデータを一時的に記憶する。
A
ブルートゥースインターフェース16は、ブルートゥース(Bluetooth)規格に基づき、他の装置と無線通信し、データまたは指令などを送受信する。
The Bluetooth
表示部17は、LCD(液晶表示装置)41およびタッチパッド42から構成されている。LCD41は、CPU11から供給されたデータを基に、アイコン、サムネイル、またはテキストなどの画像を表示する。タッチパッド42は、LCD41に積層して設けられている。
The
例えば、表示部17は、CPU11を介して、SDRAM12上の特定のアドレスに割り当てられたビデオメモリ領域のデータを所定のタイミングで読み込み、読み込んだデータを基に、LCD41に画像を表示させる。
For example, the
なお、表示部17は、LCD41に限らず、有機EL(Electro Luminescence)表示装置など、薄型の表示装置を設けるようにしてもよい。
The
タッチパッド42は、押圧による位置の指示の操作に対応したデータ(例えば、指示された位置を示す座標のデータ)をCPU11に供給する。使用者は、LCD41に積層されているタッチパッド42を指またはペンなどで押圧することにより、PDA1に所定のデータまたは動作指示を入力する。
The touch pad 42 supplies data (for example, data of coordinates indicating the instructed position) corresponding to the operation of instructing the position by pressing to the
表示部17は、押圧による圧力を感知するタッチパッド42に限らず、デジタイザやタブレットなど、電磁気的に位置を検出する入力装置を設けるようにしてもよい。また、USB(Universal Serial Bus)インターフェース22を介して、PDA1にマウスを接続し、PDA1は、マウスによって、位置の指示を取得するようにしてもよい。
The
カメラ部18は、CCD(Charge Coupled Device)またはCMOS(Complementary Metal-Oxide Semiconductor)センサを受光素子とするカメラであり、CPU11の制御の基に、静止画像または動画像を撮像して、撮像の結果得られた画像データをCPU11に供給する。
The
オーディオ符号化/復号部19は、CPU11の制御の基に、CPU11から供給された、符号化されている音声データを復号して、アナログの音声信号に変換し、音声信号をスピーカまたはヘッドフォンに供給する。また、オーディオ符号化/復号部19は、CPU11の制御の基に、マイクロフォンから供給されたアナログの音声信号をデジタルデータに変換して、符号化し、その結果得られた音声データをCPU11に供給する。
The audio encoding /
キーボードコントローラ20は、キーボードを制御すると共に、キーボードから供給された信号に対するデータをCPU11に供給する。電源制御部21は、図示せぬ装着されているバッテリまたは接続されているAC(Alternating current)アダプタなどから供給される電源の電圧などを監視して、必要な電源のCPU11乃至赤外線通信部25への供給を制御する。
The keyboard controller 20 controls the keyboard and supplies data for the signal supplied from the keyboard to the
USB(Universal Serial Bus)インターフェース22は、USB規格に基づく、USB機器に接続するためのインターフェースである。例えば、USBインターフェース22には、必要に応じて、USB機器であるドライブ51が接続され、接続されているドライブ51からデータまたはプログラムを入力するとともに、CPU11から供給されたデータをドライブ51に供給する。
The USB (Universal Serial Bus) interface 22 is an interface for connecting to a USB device based on the USB standard. For example, the USB interface 22 is connected to a
ドライブ51は、必要に応じて装着される磁気ディスク61、光ディスク62、光磁気ディスク63、または、半導体メモリ64に記録されているデータまたはプログラムを読み出して、そのデータまたはプログラムを、USBインターフェース22を介して、CPU11またはSDRAM12に供給する。また、ドライブ51は、装着されている磁気ディスク61、光ディスク62、光磁気ディスク63、または半導体メモリ64に、データまたはプログラムを記録させる。
The
メモリカードインターフェース23は、図示せぬメモリカードスロットに装着されているメモリカードから供給されるプログラムまたはデータを取得するとともに、CPU11から供給される各種データを、装着されているメモリカードに供給する。
The
ジョグダイヤル24は、使用者による回転操作または押圧操作に応じた信号をCPU11に供給する。例えば、ジョグダイヤル24は、表示部17に表示されたアイコン、サムネイルまたはテキストなどが使用者によって選択されるとき、回転操作を受けるか、または、本体側への押圧操作を受ける。例えば、表示部17に複数のアイコンが表示されている状態で、ジョグダイヤル24が回転操作を受けた場合、複数のアイコンの中から、所望のアイコンが選択され、ジョグダイヤル24が本体側に押圧されたとき、選択されているアイコンが確定される。そして、確定されたアイコンがアプリケーションプログラムに対応している場合、そのアプリケーションプログラムが起動される。
The
赤外線通信部25は、CPU11から供給されたデータを赤外線信号として、他の機器に送信するとともに、他の機器から送信された赤外線信号を受信して、受信した赤外線信号に対するデータをCPU11に供給する。
The
次に、例えば、MP3(Moving Pictures Experts Group 1 Audio Layer 3)再生プログラムを実行するPDA1における、MP3再生プログラムのモジュールである算出プログラムによる、MP3方式で圧縮符号化されている音声データの再生時間の算出の処理について説明する。
Next, for example, in the
図2は、算出プログラムを実行するPDA1による、MP3方式で圧縮符号化されている音声データの演奏時間(再生時間)を算出する処理を説明するフローチャートである。ステップS11において、算出プログラムは、音声ファイルを読み出す。例えば、算出プログラムは、フラッシュメモリ13から、MP3方式で圧縮符号化されている音声データを格納する音声ファイルを読み出す。
FIG. 2 is a flowchart for explaining processing for calculating the performance time (reproduction time) of audio data compression-encoded by the MP3 method by the
図3は、MP3方式の音声ファイルの構成を示す図である。音声ファイルにおいて、音声データ101の前に、タグ112が付され、音声データ101の後ろに、タグ113が付されている。
FIG. 3 is a diagram showing the structure of an MP3 audio file. In the audio file, a
ステップS12において、算出プログラムは、音声ファイルからタグを除去する。例えば、算出プログラムは、音声ファイルから音声データを抽出するために、読み出した音声ファイルから、音声データの前または後ろに付加されている、付加データであるタグ112およびタグ113を除去する。
In step S12, the calculation program removes the tag from the audio file. For example, in order to extract audio data from the audio file, the calculation program removes the
ステップS13において、算出プログラムは、音声データ101を分割して、分割ブロックとする。例えば、図3で示されるように、算出プログラムは、タグ112およびタグ113が除去されて得られた音声データ101を、均等に16分割して、分割ブロック111−1乃至111−16を得る。
In step S13, the calculation program divides the
なお、音声データ101を分割する数は、実際の使用環境に応じて適正な値を任意に採用することができる。この場合、分割する数が少なすぎると、正確性に欠け、分割する数が多すぎると、迅速性に欠けることになるので、特に、8乃至32のいずれかの数に分割するようにした場合、迅速に正確な再生時間を求めることができる。
Note that an appropriate value can be arbitrarily adopted as the number of the
ステップS14において、算出プログラムは、最初の分割ブロックを捨てる。すなわち、算出プログラムは、分割して得られた分割ブロックのうち、音声データ101の先頭に位置する分割ブロック111を捨てる。
In step S14, the calculation program discards the first divided block. That is, the calculation program discards the divided block 111 located at the head of the
これは、音楽の音声データには、通常、演奏を開始するまでに無音部分が存在する。可変ビットレートの符号化においては、無音部分は、より少ないデータに圧縮符号化されるので、無音部分のビットレートは、小さい。この無音部分のビットレートを含めて再生時間を算出すると、正確な再生時間を算出することができなくなる。そこで、このような全体のビットレートに対して明らかに小さいビットレートの部分を除くことにより、より正確に、再生時間を算出するようにしたものである。 This is because the sound data of music usually has a silent part before the performance is started. In variable bit rate encoding, the silent part is compression encoded into less data, so the bit rate of the silent part is small. If the playback time is calculated including the bit rate of the silent part, it is impossible to calculate the correct playback time. Therefore, the reproduction time is calculated more accurately by removing a portion having a bit rate that is clearly smaller than the overall bit rate.
例えば、図3の分割ブロック111−1が捨てられ、分割ブロック111−2乃至分割ブロック111−16が、ステップS15以降の処理の対象となる。 For example, the divided block 111-1 in FIG. 3 is discarded, and the divided blocks 111-2 to 111-16 are subjected to the processing after step S15.
ステップS15において、算出プログラムは、各分割ブロックからヘッダ読みだしブロックを抽出する。例えば、算出プログラムは、分割ブロック111−2乃至分割ブロック111−16のそれぞれから、所定のデータ量の部分をヘッダ読みだしブロック114−1乃至ヘッダ読みだしブロック114−15として抽出する。より詳細には、例えば、図3で示されるように、算出プログラムは、分割ブロック111−2乃至分割ブロック111−16のそれぞれの先頭から、8Kバイトのデータ量の部分をヘッダ読みだしブロック114−1乃至ヘッダ読みだしブロック114−15として抽出する。 In step S15, the calculation program extracts a header read block from each divided block. For example, the calculation program extracts a predetermined amount of data from each of the divided blocks 111-2 to 111-16 as a header read block 114-1 to a header read block 114-15. More specifically, for example, as shown in FIG. 3, the calculation program reads the header portion of the data amount portion of 8 Kbytes from the head of each of the divided blocks 111-2 to 111-16. 1 to header reading block 114-15 are extracted.
なお、分割ブロック111−2乃至分割ブロック111−16のそれぞれから抽出される部分のデータ量は、8Kバイトに限らず、実際の使用環境に応じて適正な値を任意に採用することができる。データ量が少なすぎると、正確性に欠け、データ量が多すぎると、迅速性に欠けることになるので、特に、4Kバイト乃至8Kバイトのいずれかのデータ量の部分を抽出するようにした場合、迅速に正確な再生時間を求めることができる。 Note that the data amount of the portion extracted from each of the divided blocks 111-2 to 111-16 is not limited to 8 Kbytes, and an appropriate value can be arbitrarily adopted according to the actual use environment. If the amount of data is too small, the accuracy will be lacking, and if the amount of data is too large, the speed will be lacking. Therefore, especially when extracting any part of the data amount from 4 Kbytes to 8 Kbytes. , Can quickly determine the exact playback time.
以下、ヘッダ読みだしブロック114−1乃至ヘッダ読みだしブロック114−15を個々に区別する必要がないとき、単に、ヘッダ読みだしブロック114と称する。 Hereinafter, when it is not necessary to individually distinguish the header reading block 114-1 to the header reading block 114-15, they are simply referred to as a header reading block 114.
ステップS16において、算出プログラムは、各ヘッダ読みだしブロック114からヘッダを読み出す。 In step S <b> 16, the calculation program reads the header from each header reading block 114.
図4は、MP3方式で圧縮符号化されている音声データのヘッダの構造を示す図である。ヘッダの先頭には、12ビットの”1”により構成される同期ワードが配置され、同期ワードに続いて、1ビットの”1”であるIDが配置される。ヘッダには、さらに、レイヤ、プロテクションビット、ビットレートインデックス、サンプリング周波数、パディングビット、プライベートビット、モード、モード拡張、コピーライト、オリジナル/コピー、およびエンファシスなどのデータが格納される。 FIG. 4 is a diagram illustrating a header structure of audio data that has been compression-encoded by the MP3 method. A synchronization word composed of 12 bits “1” is arranged at the head of the header, and an ID of 1 bit “1” is arranged following the synchronization word. The header further stores data such as layer, protection bit, bit rate index, sampling frequency, padding bit, private bit, mode, mode extension, copyright, original / copy, and emphasis.
ヘッダの先頭から17ビット目乃至20ビット目には、そのヘッダが付されたAAU(Audio Access Unit)のビットレートを示すビットレートインデックスが格納される。AAUは、フレームの一例である。図5に示されるように、4ビットのビットレートインディスクが、1(2進数の”0001”)であるとき、AAUのビットレートは、32Kbpsであり、2(2進数の”0010”)であるとき、AAUのビットレートは、40Kbpsであり、3(2進数の”0011”)であるとき、AAUのビットレートは、48Kbpsであり、4(2進数の”0100”)であるとき、AAUのビットレートは、56Kbpsであり、5(2進数の”0101”)であるとき、AAUのビットレートは、64Kbpsである。 In the 17th to 20th bits from the beginning of the header, a bit rate index indicating the bit rate of the AAU (Audio Access Unit) to which the header is attached is stored. AAU is an example of a frame. As shown in FIG. 5, when the 4-bit bit rate disk is 1 (binary number “0001”), the AAU bit rate is 32 Kbps and 2 (binary number “0010”). When the AAU bit rate is 40 Kbps and 3 (binary “0011”), the AAU bit rate is 48 Kbps and 4 (binary “0100”). The bit rate is 56 Kbps, and when it is 5 (binary “0101”), the AAU bit rate is 64 Kbps.
同様に、4ビットのビットレートインディスクが、6(2進数の”0110”)であるとき、AAUのビットレートは、80Kbpsであり、7(2進数の”0111”)であるとき、AAUのビットレートは、96Kbpsであり、8(2進数の”1000”)であるとき、AAUのビットレートは、112Kbpsであり、9(2進数の”1001”)であるとき、AAUのビットレートは、128Kbpsであり、10(2進数の”1010”)であるとき、AAUのビットレートは、160Kbpsである。 Similarly, when the 4-bit bit rate in disk is 6 (binary “0110”), the AAU bit rate is 80 Kbps, and when 7 (binary “0111”), the AAU bit When the rate is 96 Kbps, 8 (binary number “1000”), the AAU bit rate is 112 Kbps, and when 9 (binary number “1001”), the AAU bit rate is 128 Kbps. And 10 (binary “1010”), the AAU bit rate is 160 Kbps.
さらに、4ビットのビットレートインディスクが、11(2進数の”1011”)であるとき、AAUのビットレートは、192Kbpsであり、12(2進数の”1100”)であるとき、AAUのビットレートは、224Kbpsであり、13(2進数の”1101”)であるとき、AAUのビットレートは、256Kbpsであり、14(2進数の”1110”)であるとき、AAUのビットレートは、320Kbpsである。 Further, when the 4-bit bit rate in disk is 11 (binary “1011”), the AAU bit rate is 192 Kbps, and when 12 (binary “1100”), the AAU bit rate. Is 224 Kbps, 13 (binary “1101”), the AAU bit rate is 256 Kbps, and 14 (binary “1110”), the AAU bit rate is 320 Kbps. is there.
このように、ステップS16において、算出プログラムは、各ヘッダ読みだしブロック114からビットレートを示す情報を含むヘッダを読み出す。例えば、図3で示されるように、算出プログラムは、ヘッダ読みだしブロック114−1から、N個のヘッダ115−1−1乃至ヘッダ115−1−Nを読み出す。同様に、算出プログラムは、ヘッダ読みだしブロック114−2乃至ヘッダ読みだしブロック114−15のそれぞれから、配置されているヘッダの全てを読み出す。算出プログラムは、ヘッダ読みだしブロック114−15から、M個のヘッダ115−15−1乃至ヘッダ115−15−Mを読み出す。 As described above, in step S <b> 16, the calculation program reads a header including information indicating the bit rate from each header reading block 114. For example, as shown in FIG. 3, the calculation program reads N headers 115-1-1 to 115-1-N from the header reading block 114-1. Similarly, the calculation program reads all the arranged headers from each of the header reading block 114-2 to the header reading block 114-15. The calculation program reads M headers 115-15-1 to 115-15-M from the header reading block 114-15.
この場合、例えば、算出プログラムは、12ビットの”1”により構成される同期ワードを検出することにより、32ビットのヘッダを検出して、検出したヘッダを読み出す。 In this case, for example, the calculation program detects a 32-bit header by detecting a synchronization word composed of 12 bits of “1”, and reads the detected header.
図2に戻り、ステップS17において、算出プログラムは、各ヘッダから、ビットレートを示す情報の一例であるビットレートインデックスを取得する。すなわち、例えば、上述したように、ビットレートインデックスは、ヘッダの先頭から17ビット目乃至20ビット目に配置されているので、算出プログラムは、ヘッダの先頭から17ビット目乃至20ビット目のデータを抽出することにより、ビットレートインデックスを取得する。 Returning to FIG. 2, in step S <b> 17, the calculation program acquires a bit rate index, which is an example of information indicating the bit rate, from each header. That is, for example, as described above, since the bit rate index is arranged at the 17th to 20th bits from the beginning of the header, the calculation program stores the data at the 17th to 20th bits from the beginning of the header. By extracting, a bit rate index is acquired.
ステップS18において、算出プログラムは、ビットレートの平均を求める。例えば、算出プログラムは、ステップS17の処理で取得したビットレートインデックスのそれぞれに対して、図5で示される、ビットレートインデックスとビットレートとの対応を基に、ビットレートを求めて、求めたビットレートの平均を算出する。 In step S18, the calculation program obtains the average bit rate. For example, the calculation program obtains the bit rate based on the correspondence between the bit rate index and the bit rate shown in FIG. 5 for each of the bit rate indexes obtained in the process of step S17, and obtains the obtained bit. Calculate the average rate.
より具体的には、例えば、算出プログラムは、ヘッダ115−11−1乃至ヘッダ115−15−Mのそれぞれから取得した、0乃至15の値を有するビットレートインデックスのそれぞれを、32Kbps,40Kbps,48Kbps,56Kbps,64Kbps,80Kbps,96Kbps,112Kbps,128Kbps,160Kbps,192Kbps,224Kbps,256Kbps、または320Kbpsのいずれかのビットレートに変換し、変換により求められたビットレートの全てを加算して、その結果をヘッダの数で割り算することにより、ビットレートの平均を算出する。 More specifically, for example, the calculation program converts each of the bit rate indexes having values of 0 to 15 acquired from the headers 115-11-1 to 115-15-M to 32 Kbps, 40 Kbps, and 48 Kbps. , 56 Kbps, 64 Kbps, 80 Kbps, 96 Kbps, 112 Kbps, 128 Kbps, 160 Kbps, 192 Kbps, 224 Kbps, 256 Kbps, or 320 Kbps, add all the bit rates obtained by the conversion, and the result The average bit rate is calculated by dividing by the number of headers.
ステップS19において、算出プログラムは、ステップS18の処理で求められた平均のビットレートおよび音声データ101のデータ量から演奏時間(再生時間)を求める。
In step S19, the calculation program obtains the performance time (reproduction time) from the average bit rate obtained in the process of step S18 and the data amount of the
例えば、算出プログラムは、式(1)を基に、演奏時間(再生時間)を算出する。
演奏時間(秒)=データ量(バイト)×8/平均ビットレート(Kbps) (1)
For example, the calculation program calculates a performance time (reproduction time) based on Expression (1).
Performance time (seconds) = amount of data (bytes) x 8 / average bit rate (Kbps) (1)
ステップS20において、算出プログラムは、ステップS19の処理で求められた演奏時間を表示部17のLCD41に表示させて、処理は終了する。
In step S20, the calculation program displays the performance time obtained in the process of step S19 on the
このように、PDA1は、可変ビットレートで圧縮符号化されている音声データの再生時間を、音声データの一部分から算出することができるので、迅速に再生時間を求めることができる。
As described above, the
次に、3つの音声データの例について、本発明によって算出された演奏時間(再生時間)と、実際の演奏時間(以下、実演奏時間と称する)との比較した結果を示す。以下に示す例において、音声データのサンプリング周波数は、44.1KHzである。 Next, the results of comparison between the performance time (reproduction time) calculated by the present invention and the actual performance time (hereinafter referred to as actual performance time) are shown for three examples of audio data. In the example shown below, the sampling frequency of audio data is 44.1 KHz.
以下に示す結果において、実演奏時間は、式(2)により算出した。
実演奏時間(秒)=総フレーム数×1152/44100 (2)
式(2)において、フレーム数は、AUUの数に相当し、1152は、1フレーム当たりのサンプル数を示す。式(2)において、44100は、サンプリング周波数を示す。
In the results shown below, the actual performance time was calculated by equation (2).
Actual performance time (seconds) = total number of frames x 1152/44100 (2)
In Equation (2), the number of frames corresponds to the number of AUUs, and 1152 indicates the number of samples per frame. In Expression (2), 44100 indicates a sampling frequency.
第1の音声データのデータ量は、4484110バイトで、総フレーム数が10832であった。第1の音声データの実演奏時間は、式(2)より、282.958秒であった。 The data amount of the first audio data was 4484110 bytes, and the total number of frames was 10832. The actual performance time of the first audio data was 282.958 seconds from Equation (2).
これに対して、本発明によって算出された演奏時間(再生時間)は、平均ビットレートが127Kbpsであったので、式(1)より、282.466秒と算出された。これを、実演奏時間と比較すると、(282.958 - 282.466) / 282.958 = 0.00173から、本発明によって算出された演奏時間の誤差は、0.17%であることがわかる。 On the other hand, the performance time (reproduction time) calculated according to the present invention was calculated to be 282.466 seconds from Equation (1) because the average bit rate was 127 Kbps. When this is compared with the actual performance time, from (282.958-282.466) /282.958 = 0.00173, it can be seen that the performance time error calculated by the present invention is 0.17%.
第2の音声データのデータ量は、5168491バイトで、総フレーム数が10845であった。第2の音声データの実演奏時間は、式(2)より、283.298秒であった。 The data amount of the second audio data was 5168491 bytes, and the total number of frames was 10845. The actual performance time of the second audio data was 283.298 seconds from the equation (2).
これに対して、本発明によって算出された演奏時間(再生時間)は、平均ビットレートが148Kbpsであったので、式(1)より、279.377秒と算出された。これを、実演奏時間と比較すると、(283.298 - 279.377) / 283.298 = 0.01384から、本発明によって算出された演奏時間の誤差は、1.38%であることがわかる。 On the other hand, the performance time (reproduction time) calculated according to the present invention was calculated as 279.377 seconds from the equation (1) because the average bit rate was 148 Kbps. When this is compared with the actual performance time, (283.298-279.377) /283.298 = 0.01384, it can be seen that the error in the performance time calculated by the present invention is 1.38%.
第3の音声データのデータ量は、5063074バイトで、総フレーム数が10671であった。第3の音声データの実演奏時間は、式(2)より、278.753秒であった。 The data amount of the third audio data was 5030774 bytes, and the total number of frames was 10671. The actual performance time of the third audio data was 278.753 seconds from Equation (2).
これに対して、本発明によって算出された演奏時間(再生時間)は、平均ビットレートが147Kbpsであったので、式(1)より、275.541秒と算出された。これを、実演奏時間と比較すると、(278.753 - 275.541) / 278.753 = 0.01152から、本発明によって算出された演奏時間の誤差は、1.15%であることがわかる。 On the other hand, the performance time (reproduction time) calculated according to the present invention was calculated as 275.541 seconds from Equation (1) because the average bit rate was 147 Kbps. When this is compared with the actual performance time, (278.753-275.541) /278.753 = 0.01152, it can be seen that the performance time error calculated by the present invention is 1.15%.
このように、本発明においては、可変ビットレートのデータの再生時間を、正確かつ迅速に求めることができる。 As described above, in the present invention, it is possible to accurately and quickly obtain the reproduction time of the variable bit rate data.
なお、音声データは、MP3方式により圧縮符号化されていると説明したが、MP3方式に限らず、所定の単位(例えば、フレーム)毎に所定のビットレートで圧縮符号化され、単位毎にビットレートを示すデータが付される方式の音声データであれば、本発明により再生時間を算出することができる。 The audio data has been described as being compressed and encoded by the MP3 system. However, the audio data is not limited to the MP3 system, and is compressed and encoded at a predetermined bit rate for each predetermined unit (for example, a frame). If it is audio data of a system to which data indicating a rate is attached, the reproduction time can be calculated according to the present invention.
また、PDA1を情報処理装置の一例として説明したが、PDAに限らず、ポータブルプレーヤ、パーソナルコンピュータ、携帯電話機など音声を取り扱う他の種類の装置であってもよい。
The
なお、音声データに限らず、動画像データの再生時間を算出するようにしてもよい。 Note that the playback time of moving image data is not limited to audio data, and may be calculated.
このように、ビットレートと、データ全体のデータ量とからデータの再生時間を算出するようにした場合には、データの再生時間を算出することができる。また、データを複数のブロックに分割し、複数のブロックのそれぞれから、所定のデータ量の部分を抽出し、抽出された部分のそれぞれから、ビットレートを示す情報を読み出し、情報で示されるビットレートの平均と、データ全体のデータ量とからデータの再生時間を算出するようにした場合には、可変ビットレートのデータの正確な再生時間を、迅速に算出することができる。 In this way, when the data reproduction time is calculated from the bit rate and the data amount of the entire data, the data reproduction time can be calculated. Further, the data is divided into a plurality of blocks, a portion having a predetermined data amount is extracted from each of the plurality of blocks, information indicating the bit rate is read from each of the extracted portions, and the bit rate indicated by the information When the data reproduction time is calculated from the average of the data and the data amount of the entire data, the accurate reproduction time of the variable bit rate data can be quickly calculated.
上述した一連の処理は、ハードウェアにより実行させることもできるが、ソフトウェアにより実行させることもできる。一連の処理をソフトウェアにより実行させる場合には、そのソフトウェアを構成するプログラムが、専用のハードウェアに組み込まれているコンピュータ、または、各種のプログラムをインストールすることで、各種の機能を実行することが可能な、例えば汎用のパーソナルコンピュータなどに、記録媒体からインストールされる。 The series of processes described above can be executed by hardware, but can also be executed by software. When a series of processing is executed by software, a program constituting the software may execute various functions by installing a computer incorporated in dedicated hardware or various programs. For example, it is installed from a recording medium in a general-purpose personal computer or the like.
この記録媒体は、図1に示すように、コンピュータとは別に、ユーザにプログラムを提供するために配布される、プログラムが記録されている磁気ディスク61(フレキシブルディスクを含む)、光ディスク62(CD-ROM(Compact Disc-Read Only Memory)、DVD(Digital Versatile Disc)を含む)、光磁気ディスク63(MD(Mini-Disc)(商標)を含む)、若しくは半導体メモリ64などよりなるパッケージメディアにより構成されるだけでなく、コンピュータに予め組み込まれた状態でユーザに提供される、プログラムが記録されているROMや、ハードディスクなどで構成される。
As shown in FIG. 1, the recording medium is distributed to provide a program to a user separately from the computer, and includes a magnetic disk 61 (including a flexible disk) on which the program is recorded, an optical disk 62 (CD- ROM (Compact Disc-Read Only Memory), DVD (including Digital Versatile Disc)), magneto-optical disk 63 (including MD (Mini-Disc) (trademark)), or
なお、上述した一連の処理を実行させるプログラムは、必要に応じてルータ、モデムなどのインタフェースを介して、ローカルエリアネットワーク、インターネット、デジタル衛星放送といった、有線または無線の通信媒体を介してコンピュータにインストールされるようにしてもよい。 The program for executing the series of processes described above is installed in a computer via a wired or wireless communication medium such as a local area network, the Internet, or digital satellite broadcasting via an interface such as a router or a modem as necessary. You may be made to do.
また、本明細書において、記録媒体に格納されるプログラムを記述するステップは、記載された順序に沿って時系列的に行われる処理はもちろん、必ずしも時系列的に処理されなくとも、並列的あるいは個別に実行される処理をも含むものである。 Further, in the present specification, the step of describing the program stored in the recording medium is not limited to the processing performed in chronological order according to the described order, but is not necessarily performed in chronological order. It also includes processes that are executed individually.
1 PDA, 11 CPU, 12 SDRAM, 13 フラッシュメモリ, 15 無線LANインターフェース, 17 表示部, 19 オーディオ符号化/復号部, 61 磁気ディスク, 62 光ディスク, 63 光磁気ディスク, 64 半導体メモリ, 101 音声データ, 111−1乃至111−16 分割ブロック, 114−1乃至114−15 ヘッダ読みだしブロック, 115−1−1乃至115−15−M ヘッダ 1 PDA, 11 CPU, 12 SDRAM, 13 Flash memory, 15 Wireless LAN interface, 17 Display unit, 19 Audio encoding / decoding unit, 61 Magnetic disk, 62 Optical disk, 63 Magneto-optical disk, 64 Semiconductor memory, 101 Audio data, 111-1 thru | or 111-16 division | segmentation block, 114-1 thru | or 114-15 header read block, 115-1-1 thru | or 115-15-M header
Claims (6)
前記データを複数のブロックに分割する分割手段と、
複数の前記ブロックのそれぞれから、所定のデータ量の部分を抽出する抽出手段と、
抽出された前記部分のそれぞれから、ビットレートを示す情報を読み出す読み出し手段と、
前記情報で示される前記ビットレートの平均と、前記データ全体のデータ量とから前記データの前記再生時間を算出する算出手段と
を含むことを特徴とする情報処理装置。 In an information processing apparatus for calculating the reproduction time of compression-encoded data,
Dividing means for dividing the data into a plurality of blocks;
Extraction means for extracting a predetermined amount of data from each of the plurality of blocks;
Read means for reading out information indicating the bit rate from each of the extracted portions;
An information processing apparatus comprising: calculating means for calculating the reproduction time of the data from an average of the bit rate indicated by the information and a data amount of the entire data.
ことを特徴とする請求項1に記載の情報処理装置。 The information processing apparatus according to claim 1, wherein the dividing unit divides the data into any number of 8 to 32 blocks.
ことを特徴とする請求項1に記載の情報処理装置。 The information processing apparatus according to claim 1, wherein the extraction unit extracts the portion from each of the blocks other than the first block of the data in the block.
ことを特徴とする請求項1に記載の情報処理装置。 The information processing apparatus according to claim 1, wherein the extraction unit extracts the portion having a data amount of 4 Kbytes to 8 Kbytes from each of the plurality of blocks.
前記データを複数のブロックに分割する分割ステップと、
複数の前記ブロックのそれぞれから、所定のデータ量の部分を抽出する抽出ステップと、
抽出された前記部分のそれぞれから、ビットレートを示す情報を読み出す読み出しステップと、
前記情報で示される前記ビットレートの平均と、前記データ全体のデータ量とから前記データの前記再生時間を算出する算出ステップと
を含むことを特徴とする情報処理方法。 In an information processing method for calculating a reproduction time of compression-encoded data,
A dividing step of dividing the data into a plurality of blocks;
An extraction step of extracting a predetermined amount of data from each of the plurality of blocks;
A reading step of reading information indicating a bit rate from each of the extracted portions;
An information processing method comprising: calculating the reproduction time of the data from an average of the bit rates indicated by the information and a data amount of the entire data.
前記データを複数のブロックに分割する分割ステップと、
複数の前記ブロックのそれぞれから、所定のデータ量の部分を抽出する抽出ステップと、
抽出された前記部分のそれぞれから、ビットレートを示す情報を読み出す読み出しステップと、
前記情報で示される前記ビットレートの平均と、前記データ全体のデータ量とから前記データの前記再生時間を算出する算出ステップと
を含むことを特徴とするプログラム。 In a program for causing a computer to perform a process of calculating a reproduction time of compression-encoded data,
A dividing step of dividing the data into a plurality of blocks;
An extraction step of extracting a predetermined amount of data from each of the plurality of blocks;
A reading step of reading information indicating a bit rate from each of the extracted portions;
And a calculation step of calculating the reproduction time of the data from an average of the bit rate indicated by the information and a data amount of the entire data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003275458A JP4285135B2 (en) | 2003-07-16 | 2003-07-16 | Information processing apparatus and method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003275458A JP4285135B2 (en) | 2003-07-16 | 2003-07-16 | Information processing apparatus and method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005037743A true JP2005037743A (en) | 2005-02-10 |
JP4285135B2 JP4285135B2 (en) | 2009-06-24 |
Family
ID=34212096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003275458A Expired - Lifetime JP4285135B2 (en) | 2003-07-16 | 2003-07-16 | Information processing apparatus and method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4285135B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007110230A (en) * | 2005-10-11 | 2007-04-26 | Oki Electric Ind Co Ltd | Reproducing time display method of encode data and reproducing apparatus using same |
KR101060490B1 (en) * | 2008-09-02 | 2011-08-30 | 주식회사 코아로직 | Method and device for calculating average bitrate of a file of variable bitrate, and audio device comprising said device |
JP2013125573A (en) * | 2011-12-16 | 2013-06-24 | Toshiba Alpine Automotive Technology Corp | Digital reproduction device |
-
2003
- 2003-07-16 JP JP2003275458A patent/JP4285135B2/en not_active Expired - Lifetime
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007110230A (en) * | 2005-10-11 | 2007-04-26 | Oki Electric Ind Co Ltd | Reproducing time display method of encode data and reproducing apparatus using same |
KR101060490B1 (en) * | 2008-09-02 | 2011-08-30 | 주식회사 코아로직 | Method and device for calculating average bitrate of a file of variable bitrate, and audio device comprising said device |
JP2013125573A (en) * | 2011-12-16 | 2013-06-24 | Toshiba Alpine Automotive Technology Corp | Digital reproduction device |
Also Published As
Publication number | Publication date |
---|---|
JP4285135B2 (en) | 2009-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7038021B2 (en) | Adaptive transfer function for video coding and decoding | |
JP5707647B2 (en) | Method and mobile phone for capturing audio or video files | |
EP2669893A2 (en) | Apparatus and method for high speed visualization of audio stream in an electronic device | |
WO2016000569A1 (en) | Voice communication method and system in game applications | |
EP2667629B1 (en) | Method and apparatus for multi-playing videos | |
KR101229522B1 (en) | Efficient low power retrieval techniques of media data from non-volatile memory | |
JP4987943B2 (en) | Electronic apparatus and image display method | |
US8531469B2 (en) | Media synchronization via image queue | |
US9183837B2 (en) | Apparatus and method for determining bit rate for audio content | |
KR101567449B1 (en) | E-Book Apparatus Capable of Playing Animation on the Basis of Voice Recognition and Method thereof | |
JP4285135B2 (en) | Information processing apparatus and method, and program | |
WO2017107430A1 (en) | Method, apparatus and device for controlling terminal device, and non-volatile computer storage medium | |
CN107431752B (en) | Processing method and portable electronic equipment | |
KR20180020418A (en) | Display apparatus and content display method thereof | |
US20070101270A1 (en) | Method and system for generating a presentation file for an embedded system | |
JP5550446B2 (en) | Electronic apparatus and moving image generation method | |
CN110336804B (en) | Multimedia file recovery method, device and equipment | |
JP5479198B2 (en) | Electronic device and image processing program | |
JP2009186797A (en) | Decoding device and semiconductor device | |
JP2008191473A (en) | Sound data processing device | |
US20080025699A1 (en) | Information processing device and information processing method | |
CN113973226B (en) | Screen recording method, device, equipment and storage medium | |
CN110851410B (en) | File opening method and related equipment | |
JP5550447B2 (en) | Electronic apparatus and method | |
JP2011119786A (en) | Information processor and content display control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060629 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081104 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081111 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090107 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090303 |
|
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: 20090316 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120403 Year of fee payment: 3 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 4285135 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120403 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120403 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130403 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130403 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140403 Year of fee payment: 5 |
|
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 |
|
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 |