JP2003242717A - Recording and reproducing device - Google Patents

Recording and reproducing device

Info

Publication number
JP2003242717A
JP2003242717A JP2002041039A JP2002041039A JP2003242717A JP 2003242717 A JP2003242717 A JP 2003242717A JP 2002041039 A JP2002041039 A JP 2002041039A JP 2002041039 A JP2002041039 A JP 2002041039A JP 2003242717 A JP2003242717 A JP 2003242717A
Authority
JP
Japan
Prior art keywords
audio
packet
pes
video
average level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002041039A
Other languages
Japanese (ja)
Inventor
Masanobu Koike
正展 小池
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2002041039A priority Critical patent/JP2003242717A/en
Publication of JP2003242717A publication Critical patent/JP2003242717A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To improve the unnaturalness of audio during intermittent reproduction. <P>SOLUTION: In an MPEG encoder 16, the average level value of length equivalent to one audio frame of inputted audio signals is calculated and an identifier indicating the average level value is added to the header of Audio PES prepared from one audio frame. The Audio PES is recorded in the HD of a HDD 20. When reproducing the Audio PES, the identifier added to the Audio PES is compared with a prescribed threshold in a stream processing circuit 22 for the audio, and if the size relation of the identifier and the threshold indicates that the average level value of the audio signals is smaller than a prescribed value, the Audio PES is thinned. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、記録再生装置に関
し、特にたとえば、入力音声信号をパケット方式で符号
化した符号化音声信号を記録媒体に記録するとともに、
記録媒体から符号化音声信号を再生する、記録再生装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a recording / reproducing apparatus, and more particularly to recording an encoded audio signal obtained by encoding an input audio signal in a packet system on a recording medium.
The present invention relates to a recording / reproducing device that reproduces an encoded audio signal from a recording medium.

【0002】[0002]

【従来の技術】MPEG方式を採用するビデオレコーダ
によって録画された番組を再生する場合、MPEG−P
S(PS:Program Stream)は、デマルチプレクサによ
ってビデオPES(Packetized Elementary Stream)お
よびオーディオPESに分離され、ビデオPESおよび
オーディオPESはそれぞれMPEG(Moving Picture
Experts Group)ビデオデコーダおよびMPEGオーデ
ィオデコーダによってデコードされる。これによってデ
ィスプレイに番組映像が表示され、スピーカから番組音
声が出力される。ここで、通常再生から早送り再生に切
り換えると、オーディオPESの復号が中断され、ビデ
オPESを形成するパケットが間欠的に復号される。
2. Description of the Related Art When reproducing a program recorded by a video recorder adopting the MPEG system, MPEG-P is used.
The S (PS: Program Stream) is separated into a video PES (Packetized Elementary Stream) and an audio PES by a demultiplexer, and the video PES and the audio PES are respectively MPEG (Moving Picture).
Experts Group) Video decoder and MPEG audio decoder. As a result, the program image is displayed on the display, and the program sound is output from the speaker. Here, when the normal reproduction is switched to the fast-forward reproduction, the decoding of the audio PES is interrupted, and the packets forming the video PES are intermittently decoded.

【0003】[0003]

【発明が解決しようとする課題】しかし、早送り再生時
に番組音声の出力が中断されると、番組の内容が把握し
にくくなる。一方、オーディオPESを形成するパケッ
トを間欠的に復号すると、復号オーディオ信号のレベル
変化が連続せず、レベル変化の不連続点において音声が
不自然になる。
However, if the output of the program sound is interrupted during the fast-forward reproduction, it becomes difficult to grasp the content of the program. On the other hand, if the packets forming the audio PES are decoded intermittently, the level change of the decoded audio signal is not continuous, and the voice becomes unnatural at the discontinuous point of the level change.

【0004】それゆえに、この発明の主たる目的は、間
欠再生時の音声の不自然さを改善することができる、記
録再生装置を提供することである。
Therefore, a main object of the present invention is to provide a recording / reproducing apparatus capable of improving the unnaturalness of sound during intermittent reproduction.

【0005】[0005]

【課題を解決するための手段】この発明は、入力音声信
号をパケット方式で符号化した符号化音声信号を記録媒
体に記録するとともに、記録媒体から符号化音声信号を
再生する記録再生装置において、入力音声信号の平均レ
ベル値を1パケットに相当する長さ毎に算出する算出手
段、算出手段によって算出された平均レベル値に関連す
る平均レベル情報を符号化音声信号を形成する各々のパ
ケットに埋め込む埋め込み手段、および平均レベル情報
に基づいて符号化音声信号を間欠的に再生する間欠再生
手段を備えることを特徴とする、記録再生装置である。
The present invention provides a recording / reproducing apparatus for recording an encoded audio signal obtained by encoding an input audio signal in a packet system on a recording medium and reproducing the encoded audio signal from the recording medium. Calculation means for calculating the average level value of the input voice signal for each length corresponding to one packet, and average level information related to the average level value calculated by the calculation means is embedded in each packet forming the encoded voice signal. A recording / reproducing apparatus comprising: an embedding means and an intermittent reproducing means for intermittently reproducing an encoded audio signal based on average level information.

【0006】[0006]

【作用】この発明においては、パケット方式で符号化さ
れた音声パケットを間欠的に再生する際に、音声パケッ
トに含まれる音声信号(入力音声信号)の平均レベル値
に基づいて音声パケットを間引くか再生するかを決定す
る。
According to the present invention, when the voice packet encoded by the packet method is intermittently reproduced, the voice packet is thinned out based on the average level value of the voice signal (input voice signal) included in the voice packet. Decide whether to play.

【0007】つまり、まず、算出手段が入力音声信号の
平均値レベルを1音声パケットに相当する音声信号の長
さ毎に算出する。そして、埋め込み手段が算出手段によ
って算出された平均レベル値に関連する平均レベル情報
を、入力音声信号を符号化することによって形成された
音声パケットに埋め込む。さらに、間欠再生手段は、平
均レベル情報に基づいて、音声信号の平均レベル値がた
とえば所定の閾値よりも低いパケットを間引き、平均レ
ベル値が所定の閾値以上である音声パケットのみを再生
する。
That is, first, the calculating means calculates the average value level of the input voice signal for each length of the voice signal corresponding to one voice packet. Then, the embedding unit embeds the average level information related to the average level value calculated by the calculating unit in the voice packet formed by encoding the input voice signal. Further, the intermittent reproduction means thins out the packets whose average level value of the audio signal is lower than a predetermined threshold value based on the average level information, and reproduces only the audio packets whose average level value is equal to or higher than the predetermined threshold value.

【0008】音声パケットの間欠的再生と並行して映像
パケットの間欠的再生を行うハードディスクレコーダの
ような場合、一定の間隔で間引かれる映像パケットに対
して音声パケットの間引く量を調節する。
In the case of a hard disk recorder that performs intermittent reproduction of video packets in parallel with intermittent reproduction of audio packets, the amount by which audio packets are thinned out is adjusted for the video packets thinned out at regular intervals.

【0009】各音声パケットおよび各映像パケットはタ
イムスタンプを含んでおり、このタイムスタンプに応じ
たタイミングで音声パケットおよび映像パケットが再生
される。映像パケットは一定の間隔で間引かれるのに対
し、音声パケットは音声信号の平均レベル値と閾値との
比較の結果に基づいて間引く音声パケットを決定してい
る。そのため、手当てを施さなければ、再生される音声
パケットと映像パケットとの間に時間的なズレが生じて
しまう。
Each audio packet and each video packet includes a time stamp, and the audio packet and the video packet are reproduced at the timing according to this time stamp. The video packets are thinned out at regular intervals, while the voice packets determine the thinned voice packets based on the result of comparison between the average level value of the voice signal and the threshold value. Therefore, if no care is taken, there will be a time lag between the reproduced audio packet and the reproduced video packet.

【0010】そこで、比較手段が音声パケットのタイム
スタンプと映像パケットのタイムスタンプとを比較し、
音声パケットのタイムスタンプが映像パケットのタイム
スタンプよりも大きい場合には、音声パケットの間引き
が多くなっているので、閾値を下げて音声パケットの間
引きを行われにくくする。逆に、音声パケットのタイム
スタンプが映像パケットのタイムスタンプよりも小さい
場合には、閾値を上げて音声パケットの間引きを行われ
易くする。
Then, the comparison means compares the time stamp of the audio packet with the time stamp of the video packet,
When the time stamp of the audio packet is larger than the time stamp of the video packet, the number of audio packets is thinned out. Therefore, the threshold value is lowered to make it difficult to perform audio packet thinning. On the contrary, when the time stamp of the voice packet is smaller than the time stamp of the video packet, the threshold value is raised to facilitate the thinning of the voice packet.

【0011】[0011]

【発明の効果】この発明によれば、音声信号のレベルが
低くて音質に与える影響が少ないパケットを選択して間
引くことができるので間欠再生時の音声の不自然さを改
善できる。
According to the present invention, it is possible to select and thin packets which have a low level of the voice signal and have a small influence on the sound quality, so that the unnaturalness of the voice during intermittent reproduction can be improved.

【0012】この発明の上述の目的,その他の目的,特
徴および利点は、図面を参照して行う以下の実施例の詳
細な説明から一層明らかとなろう。
The above-mentioned objects, other objects, features and advantages of the present invention will become more apparent from the detailed description of the embodiments below with reference to the drawings.

【0013】[0013]

【実施例】図1を参照して、この実施例の記録再生装置
としてのハードディスクレコーダ10は、MPEGエン
コーダ16を含む。MPEGエンコーダ16には、A/
D変換器12によってディジタル化されたビデオ信号と
A/D変換器14によってディジタル化されたオーディ
オ信号とが入力される。つまり、このハードディスクレ
コーダ10は映像と音声とを記録し、また再生すること
ができる。MPEGエンコーダ16に入力されたビデオ
信号とオーディオ信号とは、それぞれビデオPES(パ
ケット)とオーディオPES(パケット)とにエンコー
ドされて出力され、HDD(Hard Disk Drive)20の
図示しないHD(Hard Disk)に記録される。HDに記
録されたビデオ信号(ビデオPES)とオーディオ信号
(オーディオPES)とを再生する場合には、HDから
読み出されたビデオPESとオーディオPESとがそれ
ぞれビデオ用のストリーム処理回路24とオーディオ用
のストリーム処理回路22とに与えられる。なお、この
ハードディスクレコーダ10のHDD20では、HDに
ビデオPESおよびオーディオPESを記録しながら同
時に読み出しを行うことができる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to FIG. 1, a hard disk recorder 10 as a recording / reproducing apparatus of this embodiment includes an MPEG encoder 16. The MPEG encoder 16 has A /
The video signal digitized by the D converter 12 and the audio signal digitized by the A / D converter 14 are input. That is, the hard disk recorder 10 can record and reproduce video and audio. The video signal and the audio signal input to the MPEG encoder 16 are encoded and output as a video PES (packet) and an audio PES (packet), respectively, and are output from an HD (Hard Disk) (not shown) of an HDD (Hard Disk Drive) 20. Recorded in. When reproducing a video signal (video PES) and an audio signal (audio PES) recorded in HD, the video PES and audio PES read from the HD are stream processing circuit 24 for video and audio, respectively. Of the stream processing circuit 22. The HDD 20 of the hard disk recorder 10 can simultaneously read out the video PES and the audio PES while recording them in the HD.

【0014】ストリーム処理回路24およびストリーム
処理回路22では、ビデオPESおよびオーディオPE
Sに対して所定のストリーム処理(ビデオPESおよび
オーディオPESの間引きや後述するタイムスタンプの
付け替え)を施す。そして、ストリーム処理が施された
ビデオPESおよびオーディオPESはMPEGデコー
ダ30にそれぞれ出力される。MPEGデコーダ30で
は、PESのヘッダに記録されたタイムスタンプ(PT
S:Presentation Time Stamp)に従った順序でビデオ
PESおよびオーディオPESのデコード(再生出力)
が行われ、デコードされたビデオ信号とオーディオ信号
とがD/A変換器32およびD/A変換器34でそれぞ
れアナログ化されて図示しないモニタやスピーカから出
力される。
In the stream processing circuit 24 and the stream processing circuit 22, the video PES and audio PE are connected.
Predetermined stream processing is performed on S (thinning of video PES and audio PES and replacement of time stamps described later). Then, the video PES and the audio PES subjected to the stream processing are output to the MPEG decoder 30, respectively. In the MPEG decoder 30, the time stamp (PT recorded in the PES header is recorded.
S: Decoding (playback output) of video PES and audio PES in the order according to Presentation Time Stamp)
Then, the decoded video signal and audio signal are converted into analog signals by the D / A converter 32 and the D / A converter 34 and output from a monitor or a speaker (not shown).

【0015】従来のハードディスクレコーダにおいて、
HDD20のランダムアクセス性を利用した機能とし
て、追いつき再生と呼ばれるものがある。この追いつき
再生とは、映像音声を記録しながら再生を行っている際
に、再生を一時的に停止して再び再生を開始する場合、
記録速度よりも速い速度で再生(早送り再生)すること
によって、記録している映像音声に再生を追いつかせる
というものである。従来のハードディスクレコーダで
は、この追いつき再生の実現は、映像データを一定間隔
で間引き、音声データについては出力を停止することに
よって行われている。しかし、音声データの出力を停止
すると内容の把握が困難となり、音声データを一定間隔
で間引くと、音質が低下してしまう。
In the conventional hard disk recorder,
As a function utilizing the random accessibility of the HDD 20, there is a function called catch-up reproduction. This catch-up playback means that when playback is being performed while recording video and audio, when playback is temporarily stopped and playback is restarted,
By reproducing at a speed faster than the recording speed (fast-forward reproduction), the reproduction can be overtaken by the recorded video and audio. In a conventional hard disk recorder, the catch-up reproduction is realized by thinning out video data at regular intervals and stopping output of audio data. However, if the output of the audio data is stopped, it becomes difficult to understand the content, and if the audio data is thinned out at regular intervals, the sound quality will be deteriorated.

【0016】そこで、この実施例のハードディスクレコ
ーダ10では、入力音声の信号レベルを検出し、その信
号レベルに従って音声データの間引きを制御することに
よって、音質の低下(音声の不自然さ)を軽減させる。
Therefore, in the hard disk recorder 10 of this embodiment, the signal level of the input voice is detected and the thinning of the voice data is controlled according to the signal level to reduce the deterioration of the sound quality (unnaturalness of the voice). .

【0017】MPEGエンコーダ16は、具体的には図
2に示すように構成されている。MPEGエンコーダ1
6に入力されたビデオ信号は、MPEGビデオエンコー
ダ40によってビデオPESにエンコードされて出力さ
れる。
The MPEG encoder 16 is specifically constructed as shown in FIG. MPEG encoder 1
The video signal input to 6 is encoded into a video PES by the MPEG video encoder 40 and output.

【0018】一方、オーディオ信号はMPEGオーディ
オエンコーダ44に入力され、1オーディオフレームに
相当するオーディオ信号が平均値演算回路42に与えら
れる。なお、1オーディオフレームに相当するオーディ
オ信号から1つのオーディオPESが形成される。平均
値演算回路42では、1オーディオフレームに相当する
オーディオ信号毎に信号の平均値が算出される。
On the other hand, the audio signal is input to the MPEG audio encoder 44, and the audio signal corresponding to one audio frame is given to the average value calculation circuit 42. In addition, one audio PES is formed from an audio signal corresponding to one audio frame. The average value calculation circuit 42 calculates an average value of signals for each audio signal corresponding to one audio frame.

【0019】比較器46は、平均値演算回路42が算出
した平均値とメモリ48に記録されている複数の設定値
との比較を行い、その比較結果を示す識別子(後述する
「A」,「AB」,「B」)をMPEGオーディオエン
コーダ44に与える。MPEGオーディオエンコーダ4
4は、1オーディオフレームに相当するオーディオ信号
をエンコードしてオーディオPESを形成し、比較器4
6から与えられた識別子をオーディオPESのヘッダに
付加する。こうして形成されたオーディオPESはMP
EGエンコーダ16から出力されて、ビデオPESとと
もにHDD20のHDに記録される。
The comparator 46 compares the average value calculated by the average value calculation circuit 42 with a plurality of set values recorded in the memory 48, and shows an identifier ("A", ""AB","B") is applied to the MPEG audio encoder 44. MPEG audio encoder 4
4 encodes an audio signal corresponding to one audio frame to form an audio PES, and a comparator 4
The identifier given from 6 is added to the header of the audio PES. The audio PES thus formed is MP
It is output from the EG encoder 16 and recorded in the HD of the HDD 20 together with the video PES.

【0020】MPEGエンコーダ16におけるオーディ
オ系の動作を、図4に示すフロー図を用いて説明する。
まず、ステップS1において、1オーディオフレーム相
当のオーディオ信号をA/D変換器14から取得し、ス
テップS3において1オーディオフレーム相当のオーデ
ィオ信号の平均値「x」を算出する。
The operation of the audio system in the MPEG encoder 16 will be described with reference to the flow chart shown in FIG.
First, in step S1, an audio signal corresponding to one audio frame is acquired from the A / D converter 14, and in step S3, an average value "x" of the audio signal corresponding to one audio frame is calculated.

【0021】そして、ステップS5では、1オーディオ
フレーム相当のオーディオ信号をエンコードしてオーデ
ィオPESを作成する。
Then, in step S5, an audio signal corresponding to one audio frame is encoded to create an audio PES.

【0022】ステップS7では、平均値「x」が「0」
以上で「A」より小さいかどうかを判断(比較)する。
「0」以上で「A」より小さい場合には、ステップS9
で識別子「A」を当該オーディオPESのヘッダに付加
する。なお、識別子「A」は所定の数値である。以下の
識別子「AB」および「B」も同様である(A<AB<
B)。
In step S7, the average value "x" is "0".
As described above, it is determined (compared) whether it is smaller than "A".
If "0" or more and less than "A", step S9
The identifier "A" is added to the header of the audio PES. The identifier “A” is a predetermined numerical value. The same applies to the following identifiers “AB” and “B” (A <AB <
B).

【0023】一方、ステップS7においてNOと判断さ
れた場合は、ステップS11において、平均値「x」が
「A」以上で「B」より小さいかどうかを判断(比較)
する。「A」以上で「B」より小さい場合には、ステッ
プS13において識別子「AB」を当該オーディオPE
Sのヘッダに付加する。
On the other hand, if NO in step S7, it is determined in step S11 whether the average value "x" is greater than or equal to "A" and less than "B" (comparison).
To do. If "A" or more and less than "B", the identifier "AB" is assigned to the audio PE in step S13.
Add to S header.

【0024】そして、ステップS11においてNOと判
断された場合は、ステップS15において識別子「B」
を当該オーディオPESのヘッダに付加する。
If NO is determined in step S11, the identifier "B" is determined in step S15.
Is added to the header of the audio PES.

【0025】ステップS17では、すべてのオーディオ
信号について平均値「x」を算出してPESを作成する
処理が終了したか、つまりオーディオ信号の入力が終了
したかどうかを判断し、すべてのオーディオ信号につい
てPESの作成を終えている場合は処理を終了する。
In step S17, it is determined whether or not the process of calculating the average value "x" of all the audio signals and creating the PES is completed, that is, whether the input of the audio signals is completed, and all the audio signals are extracted. If the PES has been created, the process ends.

【0026】なお、上述の例では識別子を「A」,「A
B」,「B」の3つとした。つまりオーディオ信号の平
均値を3段階に分けて評価したが、これは説明の都合上
のためであり、実際にはもっと多段階に分けて評価す
る。
In the above example, the identifiers are "A" and "A".
There are three types, "B" and "B". That is, the average value of the audio signal is evaluated in three stages, but this is for convenience of explanation, and in practice, the evaluation is performed in more stages.

【0027】また、オーディオ用のストリーム処理回路
22は、具体的には図3に示すように構成されている。
ストリーム処理回路22に入力されたオーディオPES
は出力制御回路50,PTS(Presentation Time Stam
p)検出回路52および識別子検出回路54に与えられ
る。
The audio stream processing circuit 22 is specifically constructed as shown in FIG.
Audio PES input to the stream processing circuit 22
Is an output control circuit 50, PTS (Presentation Time Stam)
p) It is given to the detection circuit 52 and the identifier detection circuit 54.

【0028】PTS検出回路52では、オーディオPE
SからPTSが検出され、検出されたPTSは比較器2
8に与えられるとともにメモリ60のワークエリアに記
録される。
In the PTS detection circuit 52, the audio PE
PTS is detected from S, and the detected PTS is the comparator 2
8 and is recorded in the work area of the memory 60.

【0029】また、識別子検出回路54では、オーディ
オPESのヘッダから識別子(「A」,「AB」,
「B」)が検出される。検出された識別子は、比較器5
6によって、メモリ58に記憶されている閾値と比較さ
れる。そして、その比較の結果が出力制御回路50に与
えられる。
In the identifier detection circuit 54, the identifiers ("A", "AB",
"B") is detected. The detected identifier is the comparator 5
6 is compared with the threshold value stored in the memory 58. Then, the result of the comparison is given to the output control circuit 50.

【0030】出力制御回路50は、比較器56の比較の
結果に応じて、当該オーディオPESを出力するかそれ
とも間引くかを判断する。オーディオPESを出力する
場合には、以前に間引かれたオーディオPESのPTS
を勘案して当該オーディオPESに記録されているPT
Sを付け替える。オーディオPESはPTSに示される
タイムスタンプに従った順序で再生されるため、オーデ
ィオPESを1つでも間引いた場合には間引いたオーデ
ィオPES以降のオーディオPESのPTSを付け替え
て補正する必要がある。
The output control circuit 50 determines whether to output the audio PES or to thin out the audio PES according to the comparison result of the comparator 56. When outputting an audio PES, the PTS of the previously thinned out audio PES
PT recorded in the audio PES in consideration of
Replace S. Since the audio PES is reproduced in the order according to the time stamp indicated by the PTS, when even one audio PES is thinned out, it is necessary to replace the PTSs of the audio PESs after the thinned audio PES and correct the PES.

【0031】一方、ビデオ用のストリーム処理回路24
(図3参照)にはビデオPESが入力され、入力された
ビデオPESは出力制御回路70とPTS検出回路72
とにそれぞれ与えられる。追いつき再生の場合、出力制
御回路70はすべてのビデオPESを出力するのではな
く一定の間隔でビデオPESを間引いて間欠的に出力す
る。PTS検出回路72ではビデオPESからPTSを
検出し、検出したPTSを比較器28に与える。
On the other hand, the video stream processing circuit 24
The video PES is input to the input video PES (see FIG. 3), and the input video PES is output to the output control circuit 70 and the PTS detection circuit 72.
Given to and respectively. In the case of catch-up reproduction, the output control circuit 70 does not output all the video PES, but thins out the video PES at regular intervals and outputs the video PES intermittently. The PTS detection circuit 72 detects the PTS from the video PES and supplies the detected PTS to the comparator 28.

【0032】比較器28は、PTS検出回路72から与
えられたビデオPESのPTSとメモリ60から得られ
るオーディオPESのPTSとを比較する。そして、そ
の比較結果がコントローラ26に与えられる。コントロ
ーラ26は、比較の結果に応じてメモリ58に設定され
る閾値を変更し、間引かれるオーディオPESの量を調
整する。閾値を低くすると間引かれるオーディオPES
の量が少なくなり、閾値を高くすると間引かれる量が多
くなる。
The comparator 28 compares the PTS of the video PES supplied from the PTS detection circuit 72 with the PTS of the audio PES obtained from the memory 60. Then, the comparison result is given to the controller 26. The controller 26 changes the threshold value set in the memory 58 according to the comparison result, and adjusts the amount of audio PES to be thinned out. Audio PES decimated by lowering the threshold
Becomes smaller, and the higher the threshold value, the larger the amount thinned out.

【0033】オーディオ用のストリーム処理回路22に
おける動作を、図5に示すフロー図を用いて説明する。
なお、図5のフロー図は追いつき再生を前提として説明
しているがハードディスクレコーダ10は通常の再生も
行えることは言うまでもない。
The operation of the audio stream processing circuit 22 will be described with reference to the flow chart shown in FIG.
Although the flow chart of FIG. 5 is described on the premise of catch-up reproduction, it goes without saying that the hard disk recorder 10 can also perform normal reproduction.

【0034】まず、ステップS21においてメモリ58
に、閾値として「A」,「AB」,「B」のうちの「A
B」を初期値として設定する。また、ステップS23に
おいてメモリ60に設けられたワークエリア「W3」を
ゼロクリアして初期化する。ワークエリア「W3」は間
引いたオーディオPESの累積時間を保持するためのワ
ークエリアである。なお、単に「W3」と表記したとき
には、ワークエリア「W3」に格納されている値を示す
ものとする。以下、他のワークエリアについても同じで
ある。さらに、ステップS25において「間引きフラ
グ」をリセットする。「間引きフラグ」は間引きが行わ
れたかどうかを識別するためのフラグであり、間引きが
行われるとフラグがセット状態にされる。
First, in step S21, the memory 58
In addition, “A” of “A”, “AB”, and “B” is used as the threshold value.
"B" is set as an initial value. In step S23, the work area "W3" provided in the memory 60 is cleared to zero and initialized. The work area “W3” is a work area for holding the accumulated time of the thinned audio PES. Note that when simply expressed as “W3”, it indicates the value stored in the work area “W3”. The same applies to other work areas below. Further, in step S25, the "thinning flag" is reset. The "thinning flag" is a flag for identifying whether or not thinning has been performed, and when thinning is performed, the flag is set.

【0035】ステップS27では、「間引きフラグ」が
セット状態であるかどうかを判断し、セット状態でなけ
ればステップS29において1つのオーディオPESを
HDD20から読み出す。一方、「間引きフラグ」がセ
ット状態であれば、ステップS29をスキップしてオー
ディオPESの読み出しを行わない。
In step S27, it is determined whether the "thinning-out flag" is in the set state. If it is not in the set state, one audio PES is read from the HDD 20 in step S29. On the other hand, if the "thinning-out flag" is in the set state, step S29 is skipped and the audio PES is not read.

【0036】そして、ステップS31ではオーディオP
ESのPTSをワークエリア「W1」に格納(複写)す
る。「間引きフラグ」がリセット状態のとき(ステップ
S29を実行したとき)は、ステップS29で読み出し
たオーディオPESのPTSがワークエリア「W1」に
格納されるが、「間引きフラグ」がセット状態のときに
は、後述のステップS37において読み出されたオーデ
ィオPESのPTSがワークエリア「W1」に格納され
ることになる。
Then, in step S31, the audio P
The PTS of ES is stored (copied) in the work area “W1”. When the "thinning flag" is in the reset state (when step S29 is executed), the PTS of the audio PES read out in step S29 is stored in the work area "W1", but when the "thinning flag" is in the set state, The PTS of the audio PES read out in step S37 described later is stored in the work area "W1".

【0037】ステップS33では、ステップS29もし
くはステップS37において読み出したオーディオPE
Sのヘッダから識別子(「A」,「AB」,「B」のい
ずれか)を取り出し、メモリ58に記憶されている閾値
(「A」,「AB」,「B」のいずれかであるが、はじ
めは「AB」に初期化されている)と比較する。そし
て、識別子が閾値以下である場合には、当該オーディオ
PESの音声信号のレベルが閾値よりも低いことを示し
ており、当該オーディオPESを間引いたとしても再生
される音声に与える影響が小さいので当該オーディオP
ESを間引く。ステップS35では、「間引きフラグ」
をセット状態にする。
In step S33, the audio PE read in step S29 or step S37 is read.
The identifier (any one of “A”, “AB”, and “B”) is extracted from the header of S, and the threshold value (any one of “A”, “AB”, and “B”) stored in the memory 58 is , Which is initialized to "AB" at the beginning). If the identifier is less than or equal to the threshold value, it indicates that the level of the audio signal of the audio PES is lower than the threshold value, and even if the audio PES is thinned out, the influence on the reproduced sound is small, so Audio P
Thin out ES. In step S35, "thinning flag"
To the set state.

【0038】当該オーディオPESを間引くとき、間引
くオーディオPESの次のオーディオPESのPTSを
ストリームが連続するように補正する必要がある。
When thinning out the audio PES, it is necessary to correct the PTS of the audio PES next to the thinning audio PES so that the stream is continuous.

【0039】そこで、ステップS37において、次のオ
ーディオPESを読み出し、読み出したオーディオPE
SのPTSをステップS39においてワークエリア「W
2」に格納(複写)し、ステップS41において「W
2」−「W1」をワークエリア「W3」に加算する。こ
れにより、ワークエリア「W3」には、間引かれたオー
ディオPESを再生した場合に費やされる時間が累積さ
れる。そして、ステップS43では、間引くオーディオ
PESの次のオーディオPESのPTSを「W2」−
「W3」の値に付け替える。つまり、この「W2」−
「W3」の値が、間引かれるオーディオPESの次のオ
ーディオPESのPTSであり、この値に付け替えるこ
とによって、間引かれるオーディオPESの前後のオー
ディオPESにおいてストリームの連続性が保たれる。
Therefore, in step S37, the next audio PES is read, and the read audio PE is read.
The PTS of S is set to the work area "W in step S39.
2 ”(copy), and in step S41“ W
2 ”-“ W1 ”is added to the work area“ W3 ”. As a result, the work area “W3” accumulates the time spent when the thinned audio PES is played back. Then, in step S43, the PTS of the audio PES next to the thinned audio PES is set to "W2"-.
Replace with the value of "W3". In other words, this "W2"-
The value of "W3" is the PTS of the audio PES next to the audio PES to be thinned out, and by replacing with this value, the continuity of the stream is maintained in the audio PES before and after the audio PES to be thinned out.

【0040】間引かれるオーディオPESはMPEGデ
コーダ30のバッファ(図示せず)に格納されることな
く破棄されるので、このオーディオPESは再生されな
い。MPEGデコーダ30のバッファに格納されたPE
Sがデコードされて再生される。
The thinned audio PES is not stored in the buffer (not shown) of the MPEG decoder 30 and is discarded, so that the audio PES is not reproduced. PE stored in the buffer of the MPEG decoder 30
S is decoded and reproduced.

【0041】ステップS53では、比較器28(図3参
照)において、PTS検出回路72から得られるビデオ
PESのPTSと、PTS検出回路52から得られるオ
ーディオPESのPTSとの比較を行う。そして、ビデ
オPESのPTSの方がオーディオPESのPTSより
も小さいときは、オーディオPESの間引きがビデオP
ESの間引きより多くなっていることを意味しているの
で、ステップS55において、メモリ58に設定されて
いる閾値を一つ下げてオーディオPESの間引きが行わ
れにくくする。閾値を3段階としているこの実施例で
は、閾値を「AB」から「A」に変更する(A<A
B)。また、ビデオPESのPTSがオーディオPES
のPTS以上である場合には、オーディオPESの間引
きがビデオPESの間引きより少なくなっているので、
ステップS57において閾値を一つ上げて「AB」から
「B」に変更してオーディオPESの間引きが行われ易
くする(AB<B)。
In step S53, the comparator 28 (see FIG. 3) compares the PTS of the video PES obtained from the PTS detection circuit 72 with the PTS of the audio PES obtained from the PTS detection circuit 52. When the PTS of the video PES is smaller than the PTS of the audio PES, the audio PES is thinned out to the video PES.
Since it means that the number is smaller than that of the ES decimation, in step S55, the threshold value set in the memory 58 is lowered by one to make it difficult to decimate the audio PES. In this embodiment in which the threshold is set to three levels, the threshold is changed from "AB" to "A" (A <A
B). Also, the PTS of the video PES is the audio PES.
If it is equal to or higher than the PTS, the audio PES thinning is less than the video PES thinning,
In step S57, the threshold value is increased by one to change from "AB" to "B" to facilitate the decimation of the audio PES (AB <B).

【0042】この実施例では説明の都合上、識別子およ
び閾値を「A」,「AB」,「B」の3段階としたが、
実際にはより多段階の識別子および閾値としてより細や
かに制御を行う。
In this embodiment, the identifier and the threshold are set to three levels of "A", "AB", and "B" for convenience of description.
Actually, more detailed control is performed as the identifiers and thresholds in more stages.

【0043】ステップS59ではすべてのオーディオP
ESについての処理が終わったかどうかを判断し、終わ
っていなければステップS27に戻る。一方、すべての
オーディオPESについての処理が終わっていれば動作
を終了する。
In step S59, all audio P
It is determined whether or not the processing for ES is completed, and if not completed, the process returns to step S27. On the other hand, if the processing has been completed for all audio PESs, the operation ends.

【0044】ステップS33において、識別子が閾値以
下でないと判断すると、当該オーディオPESの間引き
は行わない。しかし、当該オーディオPES以前に間引
きを行っている場合には、当該オーディオPESのPT
Sを補正する必要がある。ただし、間引きが行われてい
る場合には既にPTSの補正が行われている(ステップ
S43)ので、ここ(ステップS47)での補正は行わ
ない。
If it is determined in step S33 that the identifier is not less than the threshold value, the audio PES is not thinned out. However, when thinning is performed before the audio PES, the PT of the audio PES is
It is necessary to correct S. However, if the PTS is already thinned out, the PTS has already been corrected (step S43), so the correction here (step S47) is not performed.

【0045】ステップS45において、「間引きフラ
グ」がセット状態であるかどうかを判断し、セット状態
でない場合には、ステップS47において、当該オーデ
ィオPESのPTSを「W1」−「W3」の値に付け替
える。一方、「間引きフラグ」がセット状態である場合
には、ステップS47をスキップする。そして、ステッ
プS49において、「間引きフラグ」をリセット状態に
する。
In step S45, it is determined whether or not the "thinning flag" is in the set state, and if it is not in the set state, the PTS of the audio PES is replaced with the value of "W1"-"W3" in step S47. . On the other hand, when the “thinning flag” is in the set state, step S47 is skipped. Then, in step S49, the "thinning flag" is reset.

【0046】ステップS51では、このオーディオPE
SをMPEGデコーダ30のバッファに格納してデコー
ドを行う。こうしてこのオーディオPESは再生され
る。次にステップS53に進むが、ステップS53以降
の動作は上述した通りであるので説明を省略する。
In step S51, the audio PE
S is stored in the buffer of the MPEG decoder 30 and decoded. In this way, this audio PES is reproduced. Next, the process proceeds to step S53, but since the operation after step S53 is as described above, the description will be omitted.

【0047】以上に説明したように、この実施例のハー
ドディスクレコーダ10によれば、追いつき再生を行う
際、オーディオPESに含まれる音声信号の平均レベル
値を算出し、平均レベル値が低いオーディオPESのみ
を間引いて間欠再生を行う。したがって、オーディオP
ESが間引かれたことによる音声への影響が少なくてす
み、間欠再生による音声の不自然さを抑えることができ
る。
As described above, according to the hard disk recorder 10 of this embodiment, when the catch-up reproduction is performed, the average level value of the audio signals included in the audio PES is calculated, and only the audio PES having the low average level value is calculated. To thin out to perform intermittent playback. Therefore, audio P
It is possible to reduce the influence of the thinned ES on the sound, and it is possible to suppress the unnatural sound due to the intermittent reproduction.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の一実施例の全体構成を示すブロック
図である。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention.

【図2】MPEGエンコーダの一構成例を示すブロック
図である。
FIG. 2 is a block diagram showing a configuration example of an MPEG encoder.

【図3】ストリーム処理回路の一構成例を示すブロック
図である。
FIG. 3 is a block diagram illustrating a configuration example of a stream processing circuit.

【図4】MPEGエンコーダの動作を示すフロー図であ
る。
FIG. 4 is a flowchart showing the operation of the MPEG encoder.

【図5】ストリーム処理回路の動作を示すフロー図であ
る。
FIG. 5 is a flowchart showing the operation of the stream processing circuit.

【図6】ストリーム処理回路の動作を示すフロー図であ
る。
FIG. 6 is a flowchart showing the operation of the stream processing circuit.

【符号の説明】[Explanation of symbols]

10 …ハードディスクレコーダ 16 …MPEGエンコーダ 20 …HDD(Hard Disk Drive) 22 …ストリーム処理回路 26 …コントローラ 30 …MPEGデコーダ 42 …平均値演算回路 46 …比較器 50 …出力制御回路 56 …比較器 10 ... Hard disk recorder 16 ... MPEG encoder 20 ... HDD (Hard Disk Drive) 22 ... Stream processing circuit 26 ... Controller 30 ... MPEG decoder 42 ... Average value calculation circuit 46 ... Comparator 50 ... Output control circuit 56 ... Comparator

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5C053 FA23 GB11 GB37 HA24 HA27 JA01 JA07 JA12 KA22 KA25 5D044 AB05 AB07 BC01 CC04 DE02 DE03 DE12 DE49 DE55 FG09 FG24 GK08 GK12 5D045 DA20    ─────────────────────────────────────────────────── ─── Continued front page    F-term (reference) 5C053 FA23 GB11 GB37 HA24 HA27                       JA01 JA07 JA12 KA22 KA25                 5D044 AB05 AB07 BC01 CC04 DE02                       DE03 DE12 DE49 DE55 FG09                       FG24 GK08 GK12                 5D045 DA20

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】入力音声信号をパケット方式で符号化した
音声パケットを記録媒体に記録するとともに、前記記録
媒体から前記音声パケットを再生する記録再生装置にお
いて、 前記入力音声信号の平均レベル値を1音声パケットに相
当する長さ毎に算出する算出手段、 前記算出手段によって算出された前記平均レベル値に関
連する平均レベル情報を各々の音声パケットに埋め込む
埋め込み手段、および前記平均レベル情報に基づいて前
記音声パケットを間欠的に再生する第1間欠再生手段を
備えることを特徴とする、記録再生装置。
1. A recording / reproducing apparatus for recording an audio packet obtained by encoding an input audio signal in a packet system on a recording medium and reproducing the audio packet from the recording medium, wherein an average level value of the input audio signal is 1 Calculating means for calculating each length corresponding to a voice packet; embedding means for embedding average level information related to the average level value calculated by the calculating means in each voice packet; and the calculating means based on the average level information. A recording / reproducing apparatus comprising a first intermittent reproducing means for intermittently reproducing a voice packet.
【請求項2】前記第1間欠再生手段は、前記平均レベル
情報を各々の前記音声パケットから検出する検出手段、
前記検出手段によって検出された前記平均レベル情報が
示す平均レベル値を閾値と比較する比較手段、および前
記平均レベル値が前記閾値を上回る前記音声パケットを
復号する復号手段を含む、請求項1記載の記録再生装
置。
2. The first intermittent reproduction means detects the average level information from each of the voice packets,
2. The method according to claim 1, further comprising: comparing means for comparing an average level value indicated by the average level information detected by the detecting means with a threshold value; and decoding means for decoding the voice packet having the average level value exceeding the threshold value. Recording / playback device.
【請求項3】入力映像信号をパケット方式で符号化した
映像パケットを一定の間隔で間引くことによって間欠的
に再生する第2間欠再生手段をさらに備え、 各前記音声パケットおよび各前記映像パケットは再生さ
れるタイミングを示すタイムスタンプをそれぞれ含み、 前記音声パケットのタイムスタンプと前記映像パケット
のタイムスタンプとを比較する比較手段、および前記比
較手段の比較の結果、前記音声パケットのタイムスタン
プが前記映像パケットのタイムスタンプよりも大きいと
きに前記閾値を下げ、前記音声パケットのタイムスタン
プが前記映像パケットのタイムスタンプよりも小さいと
きに前記閾値を上げる閾値制御手段をさらに備える、請
求項2記載の記録再生装置。
3. A second intermittent reproduction means for intermittently reproducing the video packets obtained by encoding the input video signal in a packet system at regular intervals, and reproducing the audio packets and the video packets. Comparing means for comparing the time stamp of the audio packet with the time stamp of the video packet, and the result of the comparison means comparing the time stamp of the audio packet with the video packet. 3. The recording / reproducing apparatus according to claim 2, further comprising threshold control means for lowering the threshold when the time stamp of the audio packet is smaller than that of the video packet, and raising the threshold when the time stamp of the audio packet is smaller than the time stamp of the video packet. .
JP2002041039A 2002-02-19 2002-02-19 Recording and reproducing device Pending JP2003242717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002041039A JP2003242717A (en) 2002-02-19 2002-02-19 Recording and reproducing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002041039A JP2003242717A (en) 2002-02-19 2002-02-19 Recording and reproducing device

Publications (1)

Publication Number Publication Date
JP2003242717A true JP2003242717A (en) 2003-08-29

Family

ID=27781554

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002041039A Pending JP2003242717A (en) 2002-02-19 2002-02-19 Recording and reproducing device

Country Status (1)

Country Link
JP (1) JP2003242717A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007094234A (en) * 2005-09-30 2007-04-12 Sony Corp Data recording and reproducing apparatus and method, and program thereof
EP1801781A1 (en) * 2004-10-12 2007-06-27 Sony Corporation Data structure, information processing device, information processing method, transmission device, transmission method, multiplexing device, multiplexing method, and program
CN100454889C (en) * 2004-03-10 2009-01-21 联发科技股份有限公司 Method for acquiring load-bearing data in packetized basic data stream and relevant apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100454889C (en) * 2004-03-10 2009-01-21 联发科技股份有限公司 Method for acquiring load-bearing data in packetized basic data stream and relevant apparatus
EP1801781A1 (en) * 2004-10-12 2007-06-27 Sony Corporation Data structure, information processing device, information processing method, transmission device, transmission method, multiplexing device, multiplexing method, and program
EP1801781A4 (en) * 2004-10-12 2009-03-25 Sony Corp Data structure, information processing device, information processing method, transmission device, transmission method, multiplexing device, multiplexing method, and program
US7782846B2 (en) 2004-10-12 2010-08-24 Sony Corporation Data structure, information processing device, information processing method, transmission device, transmission method, multiplexing device, multiplexing method, and program
JP2007094234A (en) * 2005-09-30 2007-04-12 Sony Corp Data recording and reproducing apparatus and method, and program thereof
US8275473B2 (en) 2005-09-30 2012-09-25 Sony Corporation Data recording and reproducing apparatus, method of recording and reproducing data, and program therefor

Similar Documents

Publication Publication Date Title
JP4891898B2 (en) Stream data recording apparatus, stream data recording / reproducing apparatus, stream data reproducing apparatus, stream data editing apparatus, stream recording method, and stream reproducing method
US6163646A (en) Apparatus for a synchronized playback of audio-video signals
US6078725A (en) Apparatus for a synchronized playback of audio-video signals
JP2001359051A (en) Information processing unit and information processing method, and recording medium
JP2004104728A (en) Video camera capable of editing data, data editing and recording program, data recording apparatus, and recording medium
WO2016129303A1 (en) Image processing device, image capturing device, image processing method, and program
JP2003242717A (en) Recording and reproducing device
JP2002010254A (en) Feature point detection method and record reproduction device
JP2003324690A (en) Video record playback device
JP2004164731A (en) Device and method for recording, recording medium, and program
JPH11353804A (en) Recording and reproducing apparatus and method therefor, and providing medium
JP6742515B2 (en) CODED VIDEO REPRODUCTION DEVICE AND CODED VIDEO REPRODUCTION METHOD
JP2008098689A (en) Image data processing apparatus and method thereof, program and recording medium
JP4464101B2 (en) Transport stream editing method and apparatus
JP3888204B2 (en) Recording apparatus and method, reproducing apparatus and method, recording medium, and program
JP2004120476A (en) Broadcasting receiver with recording and reproducing function
JP2002033712A (en) Packet processor and packet output method therefor
JP2004253052A (en) Information recording medium, and information recording device
JP5641915B2 (en) Image processing apparatus and control method thereof
JP2009171277A (en) Apparatus and method for recoding information data stream
JP4722005B2 (en) Recording / playback device
JP4196475B2 (en) Reproduction apparatus and method, and recording and / or reproduction apparatus and method
JP2008234798A (en) Device and method for setting cue point, information reproducing device, and information recording device
JP3892759B2 (en) Recording / reproducing apparatus, recording apparatus, reproducing apparatus, and recording / reproducing method
JP2006101229A (en) Video reproducing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061205

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070410