JP4739898B2 - Reproduction time display method of encoded data and reproduction apparatus using the same - Google Patents

Reproduction time display method of encoded data and reproduction apparatus using the same Download PDF

Info

Publication number
JP4739898B2
JP4739898B2 JP2005296532A JP2005296532A JP4739898B2 JP 4739898 B2 JP4739898 B2 JP 4739898B2 JP 2005296532 A JP2005296532 A JP 2005296532A JP 2005296532 A JP2005296532 A JP 2005296532A JP 4739898 B2 JP4739898 B2 JP 4739898B2
Authority
JP
Japan
Prior art keywords
time
reproduction
encoded data
data
playback
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
JP2005296532A
Other languages
Japanese (ja)
Other versions
JP2007110230A (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.)
Lapis Semiconductor Co Ltd
Original Assignee
Oki Semiconductor 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 Oki Semiconductor Co Ltd filed Critical Oki Semiconductor Co Ltd
Priority to JP2005296532A priority Critical patent/JP4739898B2/en
Publication of JP2007110230A publication Critical patent/JP2007110230A/en
Application granted granted Critical
Publication of JP4739898B2 publication Critical patent/JP4739898B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Description

本発明は、MP3(MPEG-1Audio Layer 3)形式、WMA(Windows(登録商標) Media Audio)形式等の圧縮された音楽や映像等を記録したエンコードデータにおけるデータシーク(早送り/巻き戻し)後の再生再開時刻を算出してこの再生再開時刻を表示するエンコードデータの再生時刻表示方法と、これを用いたオーディオ、ビデオ等の再生装置に関するものである。   In the present invention, after data seek (fast forward / rewind) in encoded data recording compressed music or video in MP3 (MPEG-1 Audio Layer 3) format, WMA (Windows (registered trademark) Media Audio) format, etc. The present invention relates to a reproduction time display method of encoded data for calculating a reproduction resumption time and displaying the reproduction resumption time, and a reproduction apparatus for audio, video, etc. using the same.

従来、MP3形式等の圧縮された音楽や映像を記録したエンコードデータの再生時刻を表示する機能を有する再生装置において、音楽のエンコードデータを再生するオーディオ装置に関する技術として、例えば、次のような文献に記載されるものがあった。   Conventionally, as a technique related to an audio apparatus for reproducing music encoded data in a reproducing apparatus having a function of displaying the reproduction time of encoded data recording compressed music or video such as MP3 format, for example, the following document There was something described in.

特開2004−45590号公報JP 2004-45590 A

従来のこの種のオーディオ装置では、特許文献1に記載されているように、オーディオデータがMP3等の所定の音声圧縮方法に従って符号化されたエンコードデータを、曲毎にファイル化して記憶媒体(例えば、DVD(Digital Versatile Disc)、ハードディスク等)に記憶しておき、連続的に、あるいは所望の曲を指定して再生する機能や、曲毎の演奏時間及び再生時刻を表示する機能等を有している。   In a conventional audio apparatus of this type, as described in Patent Document 1, encoded data obtained by encoding audio data according to a predetermined audio compression method such as MP3 is filed for each song and stored in a storage medium (for example, , DVD (Digital Versatile Disc), hard disk, etc.) and have the function to play continuously or specify a desired song, the function to display the playing time and playback time for each song, etc. ing.

再生機能は、例えば、個別回路(ハードウェア)により実現したり、あるいは、中央処理装置(以下「CPU」という。)を用いたソフトウェアコーデック等により実現している。装置を小型化する場合、ハードウェアで実現すると装置が大型化するので、ソフトウェアコーデック等で実現する方法が採用されている。 The reproduction function is realized by, for example, an individual circuit (hardware) or a software codec using a central processing unit (hereinafter referred to as “CPU”). In the case of downsizing the device, the size of the device increases when realized by hardware, and therefore a method realized by a software codec or the like is employed.

例えば、ソフトウェアコーデックで再生機能を実現する場合、エンコードデータにおけるデータシーク(早送り/巻き戻し)後の再生再開時刻を表示するためには、再生再開時刻を算出することが必要になる。従来のエンコードデータにおけるデータシーク後の再生再開時刻の算出方法としては、例えば、図6や図7に示すような方法が知られている。 For example, when the playback function is realized by a software codec , it is necessary to calculate the playback restart time in order to display the playback restart time after data seek (fast forward / rewind) in the encoded data. As a conventional method for calculating the playback resumption time after data seek in encoded data, for example, methods shown in FIGS. 6 and 7 are known.

図6は、従来のエンコードデータにおける再生時刻算出方法を示す図、図7は、従来の他のエンコードデータにおける再生時刻算出方法を示す図である。   FIG. 6 is a diagram showing a reproduction time calculation method in conventional encoded data, and FIG. 7 is a diagram showing a reproduction time calculation method in other conventional encoded data.

図6に示すエンコードデータの再生時刻算出方法では、1曲分のエンコードデータ1において、先頭2−1から、データシーク後の再生再開位置2−2までのエンコードデータ1aを、デコーダ3でデコード(復号化)し、このデコード後のデコードデータ4のサイズを求め、このサイズから再生再開位置2−2の再生時刻を計算している。   In the encoded data reproduction time calculation method shown in FIG. 6, in the encoded data 1 for one song, the encoded data 1a from the beginning 2-1 to the reproduction resume position 2-2 after data seek is decoded by the decoder 3 ( The size of the decoded data 4 after decoding is obtained, and the reproduction time at the reproduction restart position 2-2 is calculated from this size.

図7に示す他のエンコードデータの再生時刻算出方法では、例えば、リアルタイム再生用のストリーミング形式のエンコードデータを使用している。ストリーミング形式のエンコードデータの場合、特許文献1等に記載されているように、1曲分のエンコードデータ5が、複数のフレーム(デコード単位)FR0,FR1,FR2,FR3,FR4,FR5,・・・により構成されている。各フレームFR0,・・・には、それぞれヘッダデータFHがあり、このヘッダデータFHの中にフレームFR0,FR1,・・・が再生される時刻を算出できるデータが存在している。データシーク後の再生再開位置6の再生再開時刻を求める場合は、その再生再開位置6におけるフレーム(例えば、FR3)のヘッダデータFHを利用して再生再開時刻を計算している。   In another encoding data reproduction time calculation method shown in FIG. 7, for example, encoded data in a streaming format for real-time reproduction is used. In the case of streaming format encoded data, as described in Patent Document 1, etc., one piece of encoded data 5 is composed of a plurality of frames (decoding units) FR0, FR1, FR2, FR3, FR4, FR5,.・ It is composed of. Each frame FR0,... Has header data FH, and the header data FH includes data capable of calculating the time at which the frames FR0, FR1,. When the playback restart time at the playback restart position 6 after data seek is obtained, the playback restart time is calculated using the header data FH of the frame (for example, FR3) at the playback restart position 6.

従来の図6や図7のようなエンコードデータの再生時刻算出方法では、次の(a)〜(c)のような課題があった。   The conventional encoding data reproduction time calculation method as shown in FIGS. 6 and 7 has the following problems (a) to (c).

(a) 図6の再生時刻算出方法
例えば、ソフトウェアコーデックを用いてエンコードデータを再生するオーディオ装置において、図6のように、データシーク等の操作によってエンコードデータ1の途中から再生再開する場合、現在(再生再開位置2−2)の再生再開時刻を計算するために、エンコードデータ1の最初(先頭2−1)から再生再開位置2−2までをデコードし、このデコードデータ4のサイズを求めて再生再開時刻を計算しているが、このような方法だと、演算処理に時間が掛かり、再生開始のレスポンス(応答)が悪くなる。
(A) Reproduction time calculation method of FIG. 6 For example, in an audio apparatus that reproduces encoded data using a software codec, when reproduction is resumed from the middle of encoded data 1 by an operation such as data seek as shown in FIG. In order to calculate the reproduction resume time at (reproduction resume position 2-2), the first encoded data 1 (the beginning 2-1) to the reproduction resume position 2-2 are decoded, and the size of the decoded data 4 is obtained. The playback restart time is calculated, but with such a method, the computation process takes time and the playback start response (response) becomes worse.

(b) 図7の再生時刻算出方法
ストリーミング形式のエンコードデータの場合、図7のような再生時刻算出方法では、再生開始位置6のフレーム(例えば、FR3)を取得するまでの時間が掛かり、やはり再生開始のレスポンスが悪くなる。
(B) Playback Time Calculation Method in FIG. 7 In the case of streaming format encoded data, the playback time calculation method as shown in FIG. 7 takes time until the frame (for example, FR3) at the playback start position 6 is acquired. The playback start response is poor.

(c) レスポンス向上の方法
前記(a)、(b)におけるレスポンス向上の方法として、例えば、デコードデータ1又はフレームFR0,FR1,・・・の時間情報を予めテーブル(記憶媒体)として確保しておき、再生再開時刻の計算処理を短縮させる方法も考えられるが、装置の小型化のために、テーブルを作成するための十分なメモリ領域を用意できないオーディオ装置では、実装が困難である。
(C) Response improvement method As a response improvement method in (a) and (b), for example, time information of decoded data 1 or frames FR0 , FR1,... Is secured in advance as a table (storage medium). In addition, a method of shortening the calculation process of the reproduction restart time is conceivable, but it is difficult to implement in an audio apparatus that cannot prepare a sufficient memory area for creating a table due to downsizing of the apparatus.

このような(a)〜(c)の課題は、オーディオ装置以外のビデオ装置等の再生装置についても言えることである。   Such problems (a) to (c) are also applicable to playback devices such as video devices other than audio devices.

従来の課題を解決するために、本発明におけるエンコーデータの再生時刻表示方法では、エンコードデータに対するデコードデータの平均サイズを予め算出し、前記エンコードデータのシーク後においては、前記エンコードデータの先頭から前記シーク後の再生再開位置までのサイズと、前記平均サイズから、前記デコードデータの先頭から前記再生再開位置までの第1のサイズを予測し、前記第1のサイズを前記デコードデータの時間あたりのサイズで除算して、前記再生再開位置における第1の予測時刻を算出して表示し、前記エンコードデータの前記シーク後における、前記エンコードデータの再生再開後においては、前記デコードデータの前記再生再開位置から現在再生中の再生位置までの第2のサイズを、前記デコードデータの時間あたりのサイズで除算した後に前記第1の予測時刻に加算して、前記再生位置の第2の予測時刻を算出し、前記第2の予測時刻を再生時刻として表示する。 In order to solve the conventional problems, the reproduction time display method of encode data in the present invention, in advance to calculate the average size of the decoded data for the encoded data, after the seek of the encoded data, from the head of the encoded data A first size from the beginning of the decoded data to the reproduction resuming position is predicted from the size to the reproduction resuming position after the seek and the average size, and the first size per time of the decoded data is predicted. The first predicted time at the reproduction resume position is calculated and displayed by dividing by the size, and after reproduction of the encoded data after the seek of the encoded data, the reproduction resume position of the decoded data from the second size to the playback position it is currently played, the decoded data Is added to the first prediction time after divided by the size of somewhere between, it calculates a second estimated time of the playback position, displaying the second prediction time as the playback time.

本発明における他のエンコーデータの再生時刻表示方法では、複数のフレームによって構成されたエンコードデータにおける前記フレームの平均再生時間を予め算出し、前記エンコードデータのシーク後においては、前記エンコードデータの先頭から前記シーク後の再生再開位置までのフレーム数と、前記平均再生時間から、前記再生再開位置における第1の予測時刻を算出して表示し、前記エンコードデータの前記シーク後における、前記エンコードデータの再生再開後においては、前記再生再開位置から現在再生中の再生位置までのフレーム数を前記平均再生時間で除算した後、前記第1の予測時刻に加算して、前記再生位置の第2の予測時刻を算出し、前記第2の予測時刻を再生時刻として表示する。 In other encode data playback time display method in the present invention, previously calculated average playback time of the frame in the encoding data composed of a plurality of frames, after the seek of the encoded data, the head of the encoded data The first predicted time at the playback restart position is calculated and displayed from the number of frames to the playback restart position after seek and the average playback time, and the encoded data after the seek of the encoded data is displayed. After resuming reproduction, the number of frames from the reproduction resumption position to the reproduction position currently being reproduced is divided by the average reproduction time, and then added to the first prediction time to obtain a second prediction of the reproduction position . The time is calculated and the second predicted time is displayed as the reproduction time.

本発明における再生装置では、エンコードデータの再生及び早送り/巻き戻しを行う再生手段と、前記エンコードデータにおける再生再開位置及び早送り/巻き戻し位置の時刻を表示する表示手段と、前記発明におけるエンコードデータの再生時刻表示方法をプログラムにより実行する制御手段とを有している。   In the playback apparatus according to the present invention, playback means for playing back and fast forward / rewind encoded data, display means for displaying the time of the playback restart position and fast forward / rewind position in the encoded data, Control means for executing the reproduction time display method by a program.

本発明のエンコーダデータの再生時刻表示方法及びそれを用いた再生装置によれば、早送り/巻き戻し後、再生再開時の時刻を予測し算出するようにしているので、従来のように再生再開位置までのデコードデータ又はストリーミングデータ取得を行ってから時刻を算出する方法よりも、処理時間を短縮出来、従来のような大きなメモリ領域を必要とするテーブルを作成しなくとも、再生再開時のレスポンスを向上させることが可能となる。更に、表示時刻と実際の再生位置の時刻とに誤差が生じている場合でも、表示時刻が調整されるので、正確な時刻を表示することが出来る。   According to the playback time display method of encoder data and the playback apparatus using the same according to the present invention, the playback restart time is predicted and calculated after fast forward / rewind. The processing time can be shortened compared to the method of calculating the time after acquiring the decoded data or streaming data up to this time, and the response at the time of resuming playback can be obtained without creating a table that requires a large memory area as in the past. It becomes possible to improve. Furthermore, even when there is an error between the display time and the actual playback position time, the display time is adjusted, so that an accurate time can be displayed.

発明を実施するための最良の形態として、以下、本発明の実施例を説明する。As the best mode for carrying out the invention, examples of the present invention will be described below.

(実施例1の構成)
図2は、本発明の実施例1におけるエンコードデータの再生装置を示す概略の構成図である。
(Configuration of Example 1)
FIG. 2 is a schematic configuration diagram showing the encoded data reproducing apparatus according to the first embodiment of the present invention.

このエンコードデータの再生装置は、従来の図6のようなエンコードデータ1、あるいは、従来の図7のようなストリーミング形式のエンコードデータ5をソフトウェアコーデックを用いて再生する装置である。ストリーミング形式のエンコードデータ5としては、例えば、オーディオデータがMP3形式、WMA形式等の圧縮符号化方式により符号化された種々のデータが適用出来る。   This reproduction apparatus for encoded data is an apparatus for reproducing the conventional encoded data 1 as shown in FIG. 6 or the conventional encoded data 5 in the streaming format as shown in FIG. 7 using a software codec. As the streaming format encoded data 5, for example, various data in which audio data is encoded by a compression encoding method such as MP3 format or WMA format can be applied.

図2の再生装置は、信号伝送用の内部バス10を有し、この内部バス10には、装置全体をプログラム制御する制御手段(例えば、CPUで構成された制御部)11、ワークデータ等を格納する随時読み書き可能なメモリ(RAM)で構成されたデータメモリ12、ソフトウェアコーデック等のプログラムを格納する読み出し専用メモリ(ROM)で構成されたプログラムメモリ13、及び、符号化されたエンコードデータ(図6のエンコードデータ1又は図7のエンコードデータ5)が曲毎にファイル化されて格納されるフラッシュメモリ等の記憶媒体で構成されたデータ格納部14が接続されている。なお、制御部11は、再生手段としての機能も有している。 The reproduction apparatus shown in FIG. 2 has an internal bus 10 for signal transmission. The internal bus 10 includes control means (for example, a control unit configured by a CPU) 11 for controlling the entire apparatus, work data, and the like. A data memory 12 composed of a memory (RAM) that can be read and written at any time, a program memory 13 composed of a read-only memory (ROM) for storing a program such as a software codec , and encoded encoded data (see FIG. The data storage unit 14 is connected to a storage medium such as a flash memory in which the encoded data 1 of FIG. 6 or the encoded data 5) of FIG. The control unit 11 also has a function as a reproducing unit.

内部バス10には、更に、再生開始、再生終了、早送り/巻き戻し等を操作するためのボタン等を有する操作部15、音声を出力するためのヘッドホン端子等の音声出力部16、データを表示するための表示手段(例えば、液晶ディスプレイ(LCD)等で構成された表示部)17、及び、信号の入/出力(以下「I/O」という。)を行うI/Oポート18等が接続されている。   The internal bus 10 further displays an operation unit 15 having buttons for operating playback start, playback end, fast forward / rewind, etc., an audio output unit 16 such as a headphone terminal for outputting audio, and data. Display means (for example, a display unit composed of a liquid crystal display (LCD)) 17 and an I / O port 18 for inputting / outputting signals (hereinafter referred to as “I / O”) are connected. Has been.

(エンコードデータの再生方法)
図6又は図7のような1曲分のエンコードデータ1又は5が複数曲、曲毎にファイル化されて図2のデータ格納部14に格納されているとする。
(How to play encoded data)
Assume that one piece of encoded data 1 or 5 as shown in FIG. 6 or FIG. 7 is filed for each piece of music and stored in the data storage unit 14 of FIG.

図2の操作部15から、再生するための曲名のデータを入力すると、制御部11は、プログラムメモリ13に格納された再生プログラムに従い、入力された曲名のデータに対応する1曲分のエンコードデータ1又は5をデータ格納部14から読み出し、データメモリ12に格納する。制御部11は、プログラムメモリ13に格納されたソフトウェアコーデックのプログラムに従い、データメモリ12に格納されたエンコードデータ1又は5をデコードし、1曲分の再生時間を表示部17に表示し、再生時刻を表示部17に表示させつつ、再生した音声を音声出力部16から出力させる。再生が終了すると、制御部11の制御により、音声出力部16及び表示部17の動作が停止する。 When the song title data to be played back is input from the operation unit 15 in FIG. 2, the control unit 11 follows the playback program stored in the program memory 13 and encodes data for one song corresponding to the input song title data. 1 or 5 is read from the data storage unit 14 and stored in the data memory 12. The control unit 11 decodes the encoded data 1 or 5 stored in the data memory 12 in accordance with the software codec program stored in the program memory 13, displays the playback time for one song on the display unit 17, and plays back the playback time. Is displayed on the display unit 17 and the reproduced audio is output from the audio output unit 16. When the reproduction is completed, the operations of the audio output unit 16 and the display unit 17 are stopped under the control of the control unit 11.

(図1のエンコードデータの再生時刻表示方法の概要)
図1は、本発明の実施例1におけるエンコードデータの再生時刻表示方法を示すフローチャートである。
(Outline of reproduction time display method of encoded data in FIG. 1)
FIG. 1 is a flowchart showing a reproduction time display method for encoded data according to the first embodiment of the present invention.

図2の操作部15により、早送り/巻き戻しの操作入力があると(ステップS10)、制御部11の制御により、エンコードデータ1又は5におけるデータシークが行われ、例えば、図6の再生再開位置2−2又は図7の再生再開位置6で停止する。   When there is a fast forward / rewind operation input through the operation unit 15 in FIG. 2 (step S10), data seek in the encoded data 1 or 5 is performed under the control of the control unit 11, for example, the reproduction resume position in FIG. It stops at 2-2 or the playback restart position 6 in FIG.

次に、制御部11は、プログラムに従い、現在位置(図6の再生再開位置2−2又は図7の再生再開位置6)を演算(計算)し(ステップS20)、この計算結果に基づき、現在位置の予測時刻を計算し(ステップS30)、この予測時刻を表示部17に表示させる(ステップS40)。   Next, the control unit 11 calculates (calculates) the current position (the reproduction resume position 2-2 in FIG. 6 or the reproduction resume position 6 in FIG. 7) according to the program (step S20). The predicted position time is calculated (step S30), and the predicted time is displayed on the display unit 17 (step S40).

ここで、図6のエンコードデータ1を使用する場合は、予め、エンコードデータ1のフォーマット、ビットレート、及びサンプリング周波数を基に、このエンコードデータ1に対するデコードデータの平均サイズが、制御部11により算出されてデータメモリ12等に格納されている。制御部11では、その平均サイズと現在位置(再生再開位置2−2)までのエンコードデータ1aのサイズを求め、このエンコードデータ1aに対するデコードデータ4のサイズを予測し、現在位置の予測時刻を算出して表示部17に表示させる。制御部11は、再生再開後、予測した再生時刻に、デコードデータ4から求めた再生時間を加算して、再生時刻を表示部17に表示させる。   Here, when the encoded data 1 of FIG. 6 is used, the control unit 11 calculates the average size of the decoded data for the encoded data 1 based on the format, bit rate, and sampling frequency of the encoded data 1 in advance. And stored in the data memory 12 or the like. The control unit 11 calculates the average size and the size of the encoded data 1a up to the current position (reproduction resume position 2-2), predicts the size of the decoded data 4 for the encoded data 1a, and calculates the predicted time of the current position. And displayed on the display unit 17. After the reproduction is resumed, the control unit 11 adds the reproduction time obtained from the decoded data 4 to the predicted reproduction time, and causes the display unit 17 to display the reproduction time.

同様に、図7のストリーミング形式のエンコードデータ5を使用する場合も、予め制御部11により、フレームFR0,FR1,・・・の平均再生時間が算出されてデータメモリ12等に格納されている。制御部11では、その平均再生時間に基づき、現在位置(再生再開位置6)の予測時刻を算出して表示部17に表示させる。制御部11は、再生再開後、フレームヘッダFHの時間情報から現在位置の時刻を算出して表示部17に表示させる。   Similarly, when the encoded data 5 in the streaming format shown in FIG. 7 is used, the average reproduction time of the frames FR0, FR1,... Is calculated in advance by the control unit 11 and stored in the data memory 12 or the like. Based on the average playback time, the control unit 11 calculates the predicted time of the current position (playback resume position 6) and displays it on the display unit 17. After the reproduction is resumed, the control unit 11 calculates the time at the current position from the time information of the frame header FH and causes the display unit 17 to display it.

但し、上記の方法によって算出した予測時刻は、平均値から求めた時刻であるため、再生再開時の予測時刻と、実際に再生される位置の時刻に誤差が生じてしまう。この誤差を補正するため、制御部11によって表示調整を行い(ステップS50)、処理を終了する(ステップS60)。   However, since the predicted time calculated by the above method is a time obtained from the average value, an error occurs between the predicted time when the reproduction is resumed and the time of the position where the reproduction is actually performed. In order to correct this error, display adjustment is performed by the control unit 11 (step S50), and the process ends (step S60).

早送り/巻き戻しが実行し続けられた場合は、図1のステップS20〜S50の処理を繰り返し実行する。   When the fast forward / rewind is continuously executed, the processes of steps S20 to S50 in FIG. 1 are repeatedly executed.

(図1中のデコードデータの平均サイズの求め方)
図1中のデコードデータの平均サイズ(例えば、PCM(Pulse Code Modulation)データのサイズ)は、(1)式から算出出来る。
PCMデータのサイズ=サンプリング周波数×サンプリングサイズ
×チャンネル数・・・(1)
但し、サンプリング周波数;アナログ信号からディジタル信号への変換を1秒間
に行う回数(例、32KHz、44.1KHz)
サンプリングサイズ;アナログ信号からディジタル信号へ変換する時、サ
ンプリングした波形の高さを表現するビット数
(例、8ビット、16ビット)
チャンネル数;モノラル(1個)、ステレオ(2個)
(How to find the average size of decoded data in Fig. 1)
The average size of the decoded data in FIG. 1 (for example, the size of PCM (Pulse Code Modulation) data) can be calculated from equation (1).
PCM data size = sampling frequency x sampling size
× Number of channels (1)
However, sampling frequency: Conversion from analog signal to digital signal for 1 second
Number of times (eg, 32KHz, 44.1KHz)
Sampling size: When converting from an analog signal to a digital signal,
Number of bits representing the height of the sampled waveform
(Example: 8 bits, 16 bits)
Number of channels: monaural (1), stereo (2)

例えば、サンプリング周波数を44.1KHz、サンプリングサイズを16ビット、チャンネル数をステレオ(2個)とした時の(1)式を計算すると、次のようになる。
PCMデータのサイズ=44100(44.1KHz)×16×2
=1411200ビット=176400バイト(毎秒)
For example, calculating equation (1) when the sampling frequency is 44.1 KHz, the sampling size is 16 bits, and the number of channels is stereo (2) is as follows.
PCM data size = 44100 (44.1 KHz) x 16 x 2
= 1411200 bits = 176400 bytes (per second)

(図1中のフレームの平均再生時間の求め方)
(a) WMA形式の場合
フレームの平均再生時間は、(2)式から算出出来る。
1フレーム当たりの平均再生時間=1曲の再生時間 ÷ 1曲のフレーム数・・・(2)
但し、1曲の再生時間 = Duration(再生時間)−Preroll(曲が再生されるまで
の無音時間)
1曲のフレーム数 = Packets
(Duration、Preroll、Packetsは、WMA形式の仕様上、エンコードデータ
内に存在するデータである。)
(How to find the average playback time of frames in Fig. 1)
(A) In the case of WMA format The average frame playback time can be calculated from equation (2).
Average playback time per frame = playback time of one song ÷ number of frames per song (2)
However, the playback time of one song = Duration (playback time)-Preroll (until the song plays)
(Silence time)
Number of frames in one song = Packets
(Duration, Preroll, and Packets are encoded data according to the WMA format specification.
It is data that exists inside. )

例えば、1曲の再生時間=1分、フレーム数=60個の場合、フレームの平均再生時間は1秒となる。   For example, when the playback time of one song = 1 minute and the number of frames = 60, the average playback time of frames is 1 second.

(b) MP3形式の場合
仕様上、1フレームに1152個のオーディオデータが含まれているので、サンプリング周波数44.1KHzのデータの場合、フレームの平均再生時間は、次のようになる。
1152÷44100=0.0261秒 (1秒:x=44100:1152)
(B) In the case of MP3 format Since 1152 pieces of audio data are included in one frame due to the specification, in the case of data with a sampling frequency of 44.1 KHz, the average playback time of the frame is as follows.
1152 ÷ 44100 = 0.0261 seconds (1 second: x = 44100: 1152)

(図1中の現在位置計算、予測時刻計算例)
図3は、図1中の現在位置計算(S20)、及び予測時刻計算(S30)の例を示すフローチャートである。
(Current position calculation, predicted time calculation example in Fig. 1)
FIG. 3 is a flowchart showing an example of the current position calculation (S20) and the predicted time calculation (S30) in FIG.

ステップS10において、操作部15により、早送りが5回入力されると、ステップS20において、現在位置が計算される。例えば、入力前のフレーム番号が100とすると、フレーム番号を+5加算して105となる。次に、ステップS30において、早送り/巻き戻し中に表示する時刻は、(3)式によってエンコードデータ5中をシークした後のフレーム位置の予測時刻が計算される。
予測時刻=1フレーム当たりの平均再生時間×フレーム位置(=フレーム番号)
・・・(3)
例えば、フレームの平均再生時間が1秒、フレームの位置が60番目である場合は、
1×60=60秒
となる。
In step S10, when fast-forwarding is input five times by the operation unit 15, the current position is calculated in step S20. For example, if the frame number before input is 100, +5 is added to the frame number to obtain 105. Next, in step S30, the predicted time of the frame position after seeking the encoded data 5 is calculated by the equation (3) as the time to be displayed during fast forward / rewind.
Predicted time = average playback time per frame x frame position (= frame number)
... (3)
For example, if the average frame playback time is 1 second and the frame position is 60th,
1 × 60 = 60 seconds.

なお、予測時刻をデコードデータの平均サイズから計算する場合、例えば、ファイルの先頭から1Mバイトの位置である時は、
1048576(1Mバイト)÷176400=5.9秒
(1048576:176400=x:1)
となる。
In addition, when calculating the predicted time from the average size of the decoded data, for example, when the position is 1 Mbyte from the beginning of the file,
1048576 (1 Mbyte) ÷ 176400 = 5.9 seconds (1048576: 176400 = x: 1)
It becomes.

このようにして求められた予測時刻は、図1のステップS40で表示される。再生再開時は、再生を再開するフレームから、そのフレームの位置時刻(=Presentation Time、この時刻はWMA形式の仕様上、エンコードデータ内に存在するデータである。)を取得して再生時刻を再計算(=Presentation Time−Preroll)する。この時、再計算した時刻と表示中の時刻に誤差が生じている場合は、図1のステップS50で表示調整が行われる。   The predicted time obtained in this way is displayed in step S40 in FIG. When resuming playback, the position time of the frame (= Presentation Time, which is data existing in the encoded data according to the WMA format specification) is acquired from the frame where playback is resumed, and the playback time is restarted. Calculate (= Presentation Time-Preroll). At this time, if there is an error between the recalculated time and the displayed time, display adjustment is performed in step S50 of FIG.

(図1の表示調整例)
図4は、図1中の表示調整例を示すフローチャートである。
図2の制御部11に再生時刻通知要求があると(ステップS51)、制御部11では、再計算した時刻が表示時刻より大きいか否かを判定する(ステップS52)。判定結果が「再計算した時刻<表示時刻」の時には、再生再開直前の表示時刻を表示部17に表示させ(ステップS53)、表示調整処理を終了する(ステップS60)。判定結果が「再計算した時刻≧表示時刻+1s(秒)」の時には、(再生再開直前の表示時刻+1s)を表示部17に表示させ(ステップS54)、表示調整処理を終了する(ステップS60)。又、判定結果が「再計算した時刻≧表示時刻、且つ、再計算した時刻<表示時刻+1s」の時には、再計算した時刻を表示部17に表示させ(ステップS55)、表示調整処理を終了する(ステップS60)。
(Example of display adjustment in Fig. 1)
FIG. 4 is a flowchart showing an example of display adjustment in FIG.
When there is a reproduction time notification request in the control unit 11 of FIG. 2 (step S51), the control unit 11 determines whether or not the recalculated time is greater than the display time (step S52). When the determination result is “recalculated time <display time”, the display time immediately before the resumption of reproduction is displayed on the display unit 17 (step S53), and the display adjustment process is ended (step S60). When the determination result is “recalculated time ≧ display time + 1s (seconds)”, (display time immediately before resuming reproduction + 1s) is displayed on the display unit 17 (step S54), and the display adjustment process is terminated (step S60). . When the determination result is “recalculated time ≧ display time and recalculated time <display time + 1s”, the recalculated time is displayed on the display unit 17 (step S55), and the display adjustment process is terminated. (Step S60).

図5(a)、(b)は、図4の表示調整例を示す図である。
図5(a)は、再生再開時にフレームヘッダFHから算出した時刻(例えば、“00:59”)が表示中の時刻(例えば、“1:00”)より小さい場合の表示調整例を示す図である。
5A and 5B are diagrams showing an example of display adjustment in FIG.
FIG. 5A is a diagram showing a display adjustment example when the time (for example, “00:59”) calculated from the frame header FH at the time of resuming reproduction is smaller than the displayed time (for example, “10:00”). It is.

この場合、表示時刻の巻き戻りを防ぐために、再生時刻が表示中の時刻を越えるまで表示中の時刻を表示し続ける。再生位置の時刻が表示中の時刻を越えると、その後は再生位置の時刻に合わせて表示時刻を更新する。   In this case, in order to prevent rewinding of the display time, the display time is continuously displayed until the reproduction time exceeds the display time. When the time at the playback position exceeds the time being displayed, the display time is updated in accordance with the time at the playback position.

図5(b)は、再生再開時にフレームヘッダFHから算出した時刻(例えば、“1:01”)が表示中の時刻(例えば、“1:00”)より秒桁以上大きい場合の表示調整例を示す図である。   FIG. 5B shows a display adjustment example when the time (for example, “1:01”) calculated from the frame header FH at the time of resuming reproduction is larger than the currently displayed time (for example, “10:00”) by at least a second digit. FIG.

この場合、表示時刻の時刻飛び(“1:01”から再生したように見える)を防ぐために、1秒以内(図中例:300ms後)に表示時刻を更新する。その後は、再生位置の時間に合わせて表示時刻を更新する。   In this case, the display time is updated within one second (in the figure: after 300 ms) in order to prevent time skip of the display time (which seems to have been reproduced from “1:01”). Thereafter, the display time is updated in accordance with the time of the reproduction position.

(実施例1の効果)
本実施例1によれば、早送り/巻き戻し後、再生再開時の時刻を予測し算出するようにしているので、従来のように再生再開位置までのデコードデータ又はストリーミングデータ取得を行ってから時刻を算出する方法よりも、処理時間を短縮出来、従来のような大きなメモリ領域を必要とするテーブルを作成しなくとも、再生再開時のレスポンスを向上させることが可能となる。更に、表示時刻と実際の再生位置の時刻とに誤差が生じている場合でも、表示時刻が調整されるので、正確な時刻を表示することが出来る。
(Effect of Example 1)
According to the first embodiment, after fast-forwarding / rewinding, the time at which playback is resumed is predicted and calculated. Therefore, the time after obtaining decode data or streaming data up to the playback resume position as in the past is obtained. The processing time can be shortened as compared with the method of calculating, and the response at the time of resuming reproduction can be improved without creating a table that requires a large memory area as in the prior art. Furthermore, even when there is an error between the display time and the actual playback position time, the display time is adjusted, so that an accurate time can be displayed.

なお、本発明は、上記実施例1に限定されず、種々の変形や利用形態が可能である。この変形や利用形態としては、例えば、次の(A)、(B)のようなものがある。
(A) 図6、図7のエンコードデータ1,5の形式、図2の再生装置の構成、及び、図3、図4の処理内容は、図示以外のものに変更出来る。
(B) 実施例1では、音楽のエンコードデータを再生するオーディオ装置について説明したが、音楽及び映像のエンコードデータを再生するビデオ装置といった、エンコードされた音楽や映像等を記録したデータの再生及び早送り/巻き戻しを行う機能を持ち、且つ、再生位置及び早送り/巻き戻し位置の時刻を表示する機能を持つ種々の再生装置に適用出来る。
In addition, this invention is not limited to the said Example 1, A various deformation | transformation and utilization form are possible. Examples of such modifications and usage forms include the following (A) and (B).
(A) The formats of the encoded data 1 and 5 in FIGS. 6 and 7, the configuration of the playback apparatus in FIG. 2, and the processing contents in FIGS. 3 and 4 can be changed to those other than those shown in the figure.
(B) In the first embodiment, the audio apparatus that reproduces music encoded data has been described. However, the reproduction and fast-forwarding of data that records encoded music, video, and the like, such as a video apparatus that reproduces music and video encoded data. The present invention can be applied to various playback devices having a function of performing / rewinding and a function of displaying the time of the playback position and the fast forward / rewind position.

本発明の実施例1における再生時刻表示方法を示すフローチャートである。It is a flowchart which shows the reproduction time display method in Example 1 of this invention. 本発明の実施例1における再生装置を示す構成図である。It is a block diagram which shows the reproducing | regenerating apparatus in Example 1 of this invention. 図1中の現在位置計算、及び予測時刻計算の例を示すフローチャートである。It is a flowchart which shows the example of the present position calculation in FIG. 1, and prediction time calculation. 図1中の表示調整例を示すフローチャートである。It is a flowchart which shows the example of a display adjustment in FIG. 図4の表示調整例を示す図である。It is a figure which shows the example of a display adjustment of FIG. 従来のエンコードデータの再生時刻算出方法を示す図である。It is a figure which shows the reproduction time calculation method of the conventional encoding data. 従来の他のエンコードデータの再生時刻算出方法を示す図である。It is a figure which shows the reproduction time calculation method of the other conventional encoding data.

符号の説明Explanation of symbols

11 制御部
12 データメモリ
13 プログラムメモリ
14 データ格納部
15 操作部
16 音声出力部
17 表示部
DESCRIPTION OF SYMBOLS 11 Control part 12 Data memory 13 Program memory 14 Data storage part 15 Operation part 16 Audio | voice output part 17 Display part

Claims (5)

エンコードデータに対するデコードデータの平均サイズを予め算出し、
前記エンコードデータのシーク後においては、
前記エンコードデータの先頭から前記シーク後の再生再開位置までのサイズと、前記平均サイズから、前記デコードデータの先頭から前記再生再開位置までの第1のサイズを予測し、
前記第1のサイズを前記デコードデータの時間あたりのサイズで除算して、前記再生再開位置における第1の予測時刻を算出して表示し、
前記エンコードデータの前記シーク後における、前記エンコードデータの再生再開後においては、
前記デコードデータの前記再生再開位置から現在再生中の再生位置までの第2のサイズを、前記デコードデータの時間あたりのサイズで除算した後に前記第1の予測時刻に加算して、前記再生位置の第2の予測時刻を算出し、
前記第2の予測時刻を再生時刻として表示することを特徴とするエンコードデータの再生時刻表示方法。
Calculate the average size of the decoded data with respect to the encoded data in advance,
After seeking the encoded data,
Predicting a first size from the beginning of the decoded data to the reproduction restart position from the size from the beginning of the encoded data to the reproduction resume position after the seek and the average size;
Dividing the first size by the size per time of the decoded data to calculate and display a first predicted time at the playback resume position;
After resuming reproduction of the encoded data after the seek of the encoded data,
The second size of the decoded data from the reproduction restart position to the currently reproduced reproduction position is divided by the size of the decoded data per time, and then added to the first predicted time to obtain the reproduction position of the reproduction data. Calculate a second predicted time;
A method for displaying a reproduction time of encoded data, wherein the second predicted time is displayed as a reproduction time.
複数のフレームによって構成されたエンコードデータにおける前記フレームの平均再生時間を予め算出し、
前記エンコードデータのシーク後においては、
前記エンコードデータの先頭から前記シーク後の再生再開位置までのフレーム数と、前記平均再生時間から、前記再生再開位置における第1の予測時刻を算出して表示し、
前記エンコードデータの前記シーク後における、前記エンコードデータの再生再開後においては、
前記再生再開位置から現在再生中の再生位置までのフレーム数を前記平均再生時間で除算した後、前記第1の予測時刻に加算して、前記再生位置の第2の予測時刻を算出し、
前記第2の予測時刻を再生時刻として表示することを特徴とするエンコードデータの再生時刻表示方法。
Previously calculated average playback time of the frame in the encoding data composed of a plurality of frames,
After seeking the encoded data,
From the number of frames from the beginning of the encoded data to the playback restart position after the seek and the average playback time, a first predicted time at the playback restart position is calculated and displayed,
After resuming reproduction of the encoded data after the seek of the encoded data,
After dividing the number of frames from the playback resume position to the currently playing playback position by the average playback time, add the first predicted time to calculate a second predicted time of the playback position ;
A method for displaying a reproduction time of encoded data, wherein the second predicted time is displayed as a reproduction time.
前記エンコードデータは、前記フレームに係る再生時刻を算出できるデータを有するヘッダデータを備えた前記複数のフレームによって構成され
前記エンコードデータの前記シーク後における、前記エンコードデータの前記再生再開後においては、
前記現在再生中の前記フレームが備えている前記ヘッダデータから算出した前記再生時刻が、前記第の予測時刻を超えるまで前記第の予測時刻を表示し、前記ヘッダデータから算出した前記再生時刻が、前記第2の予測時刻を超えた後には前記ヘッダデータから算出した前記再生時刻を表示することを特徴とする請求項2に記載のエンコードデータの再生時刻表示方法。
The encoded data is constituted by the plurality of frames having a header data having the data can be calculated reproduction time according to said frame,
After resuming playback of the encoded data after the seek of the encoded data,
Wherein the playback time the frame is calculated from the header data comprises currently playing, until said more than second predicted time to display the second prediction time, the reproduction time calculated from the header data 3. The reproduction time display method for encoded data according to claim 2, wherein the reproduction time calculated from the header data is displayed after the second predicted time is exceeded .
前記エンコードデータの前記シーク後における、前記エンコードデータの前記再生再開後においては、
前記現在再生中の前記フレームが備えている前記ヘッダデータから算出した前記再生時刻が、前記第の予測時刻よりも1秒以上大きい場合には、1秒以内に表示されている前記第2の予測時刻を前記ヘッダデータから算出した前記再生時刻に更新することを特徴とする請求項3に記載のエンコードデータの再生時刻表示方法。
After resuming playback of the encoded data after the seek of the encoded data,
Wherein the playback time the frame is calculated from the header data includes the currently reproduced, wherein, when more than one second greater than the second prediction time is within one second, the displayed second 4. The reproduction time display method for encoded data according to claim 3, wherein the predicted time is updated to the reproduction time calculated from the header data .
エンコードデータの再生及び早送り/巻き戻しを行う再生手段と、
前記エンコードデータにおける再生再開位置及び早送り/巻き戻し位置の時刻を表示する表示手段と、
請求項1〜4のいずれか1項に記載のエンコードデータの再生時刻表示方法をプログラムにより実行する制御手段と、
を有することを特徴とする再生装置。
Reproduction means for performing reproduction and fast forward / rewind of encoded data;
Display means for displaying the playback resume position and fast forward / rewind position time in the encoded data;
Control means for executing the reproduction time display method for encoded data according to any one of claims 1 to 4 by a program,
A playback apparatus comprising:
JP2005296532A 2005-10-11 2005-10-11 Reproduction time display method of encoded data and reproduction apparatus using the same Expired - Fee Related JP4739898B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005296532A JP4739898B2 (en) 2005-10-11 2005-10-11 Reproduction time display method of encoded data and reproduction apparatus using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005296532A JP4739898B2 (en) 2005-10-11 2005-10-11 Reproduction time display method of encoded data and reproduction apparatus using the same

Publications (2)

Publication Number Publication Date
JP2007110230A JP2007110230A (en) 2007-04-26
JP4739898B2 true JP4739898B2 (en) 2011-08-03

Family

ID=38035751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005296532A Expired - Fee Related JP4739898B2 (en) 2005-10-11 2005-10-11 Reproduction time display method of encoded data and reproduction apparatus using the same

Country Status (1)

Country Link
JP (1) JP4739898B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0877752A (en) * 1994-08-31 1996-03-22 Matsushita Electric Ind Co Ltd Reproducing time managing device
JP4284844B2 (en) * 2000-08-30 2009-06-24 ソニー株式会社 Information processing apparatus, information processing method, and recording medium
JP4285135B2 (en) * 2003-07-16 2009-06-24 ソニー株式会社 Information processing apparatus and method, and program

Also Published As

Publication number Publication date
JP2007110230A (en) 2007-04-26

Similar Documents

Publication Publication Date Title
US7609938B2 (en) Recording and reproducing apparatus, and editing method
JP2005519537A5 (en)
US7515814B2 (en) Reproducing apparatus and reproducing method for video and audio data paired as growth rings
JP2006221714A (en) Encoded digital audio reproduction apparatus
JP4739898B2 (en) Reproduction time display method of encoded data and reproduction apparatus using the same
US20050195720A1 (en) Data processing apparatus, data processing method, reproducing apparatus, and reproducing method
JP4542805B2 (en) Variable speed reproduction method and apparatus, and program
JP4284844B2 (en) Information processing apparatus, information processing method, and recording medium
JPH08293157A (en) Recording and reproducing method for variable frame length high efficiency coded data
US20070248315A1 (en) Reproducing Device and Reproducing Method
JP2007095155A (en) Method and apparatus for choosing content
JP3727689B2 (en) Digital audio recording / reproducing device
JP4529859B2 (en) Audio playback device
JP2003162299A (en) Speech reproducing circuit, decoding circuit, and device and method for reproducing speech
JP2010123225A (en) Record reproducing apparatus and record reproducing method
JP2005310306A (en) Reproduction time display device and reproduction time calculation method
JP2004334968A (en) Recording controller and its method, recording medium and program
JP2009020922A (en) Reproducing device, program, and reproduction method
JP2004145929A (en) Optical disk player and optical disk playback method
JP2007188592A (en) Video signal recording controller and video signal recording control method
JP2002063781A (en) Sound information processing device and method therefor
JPH07287600A (en) Voice storage device
JP2006139835A (en) Recording apparatus, recording method and on-vehicle audio system
JP2004303409A (en) Digital voice signal reproduction system
JP3998459B2 (en) Information recording apparatus and information recording method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080728

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20081203

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20090408

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100303

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100309

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100416

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101116

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101224

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: 20110405

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110428

R150 Certificate of patent or registration of utility model

Ref document number: 4739898

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140513

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees