JP2005026990A - Digital recording and reproducing device - Google Patents
Digital recording and reproducing device Download PDFInfo
- Publication number
- JP2005026990A JP2005026990A JP2003189818A JP2003189818A JP2005026990A JP 2005026990 A JP2005026990 A JP 2005026990A JP 2003189818 A JP2003189818 A JP 2003189818A JP 2003189818 A JP2003189818 A JP 2003189818A JP 2005026990 A JP2005026990 A JP 2005026990A
- Authority
- JP
- Japan
- Prior art keywords
- error
- data
- frame
- unit
- pes packet
- 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.)
- Withdrawn
Links
Images
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、デジタル画像データを含むコンテンツデータを記録、再生するデジタル記録再生装置に関する。
【0002】
【従来の技術】
MPEG(Moving Picture Experts Group)方式により圧縮された画像データを記録、再生するデジタル記録再生装置が用いられている。
MPEG方式では、Iフレーム(ピクチャ内符号化画像)、Pフレーム(ピクチャ間予測符号化画像)等を含むGOP(Group of Picture)によって複数の画像を表現している。Iフレームは、DCT(Discrete Cosine Transform:離散コサイン変換)量子化によって画像データを符号化したものである。Pフレームは、過去の画像データから予測したデータと現在の画像データとの差分を符号化したものである。GOPは、PES(Packetized Elementary Stream)パケットに分割して、伝送、記録等がなされる。MPEG方式で圧縮された画像データを再生するには、Iフレームを復号化し、これを基礎としてPフレーム等を復号化する。この結果、複数の画像データが時系列的に再生される。
なお、Iフレームを含むPESパケットを検出し、インデックスファイルを作成することで、早送り再生等をスムーズに行う技術が開示されている(特許文献1参照)。
【0003】
【特許文献1】
特開2000−224543
【0004】
【発明が解決しようとする課題】
しかしながら、従来のデジタル記録再生装置では画像データに誤りが混入していた場合に、画像の再生が良好に行われない場合があった。特にIフレームのデータに誤りが有るときには、画像の乱れが大きくなり易い。
本発明はこのような課題を解決するためになされたもので、画像データに誤りが混入していた場合でも画像の再生を良好に行えるデジタル記録再生装置を提供することを目的としている。
【0005】
【課題を解決するための手段】
上記目的を達成するために本発明に係るデジタル記録再生装置は、コンテンツデータに含まれ、かつピクチャ内符号化およびピクチャ間符号化されたデジタル画像データをパケット化したPESパケットが、ピクチャ内符号化データを含むか否かを検出するIフレーム検出部と、前記PESパケットがエラーを含むか否かを検出するエラー検出部と、前記PESパケットのコンテンツデータ中での相対位置を検出する相対位置検出部と、前記Iフレーム検出部による検出結果を表すIフレームフラグ、前記エラー検出部によるエラー検出結果を表すエラーフラグ、および前記相対位置検出部による検出結果を表すオフセット、を含むインデックスデータを作成するインデックス作成部と、を具備することを特徴とする。
【0006】
コンテンツデータ中のPESパケットがエラーを含むか否かを検出し、その検出結果を表すエラーフラグを含むインデックスデータが作成される。このため、コンテンツデータの再生の際にこのインデックスデータを参照することで、エラーを含むPESパケットを再生しないことが可能となる。また、インデックスデータはPESパケットがピクチャ内符号化データを含むか否かを表すIフレームフラグ、PESパケットのコンテンツデータ中での相対位置を表すオフセットを含む。このため、Iフレームのみを再生することで、早送り、早戻し等の特殊再生を効率的に行うことができる。
【0007】
(1)ここで、前記エラー検出部が、前記ピクチャ内符号化データがエラーを含むか否かを検出してもよい。
ピクチャ内符号化データは画像再生の基礎となるデータなので、これがエラーを含む場合にピクチャ間符号化データ等よりも影響が大きい。このため、ピクチャ内符号化データのみをチェックしてPESパケットの良否を判断できる。
【0008】
(2)デジタル記録再生装置が、前記インデックス作成部によって作成されたインデックスデータを記録媒体に記録するインデックスデータ保存部、をさらに具備してもよい。
インデックスデータを記録媒体等に記録しておくことで、コンテンツデータの再生を効率的に行える。
【0009】
(3)デジタル記録再生装置が、前記インデックス作成部によって作成されたインデックスデータに基づいて、コンテンツデータを再生するコンテンツデータ再生部をさらに具備してもよい。
インデックスデータを用いたコンテンツデータの再生が効率的に行える。
【0010】
ここで、前記コンテンツデータ再生部が、前記Iフレームフラグに基づいて、ピクチャ内符号化データを再生してもよい。
ピクチャ内符号化データのみを再生することで(ピクチャ間符号化データ等を再生から除外)、早送り、早戻し等の特殊再生を効率的に行える。
【0011】
前記コンテンツデータ再生部が、前記エラーフラグに基づいて、エラーを含まないPESパケットを再生してもよい。
エラーを含むPESパケットを再生から除外することで、画像の良好な再生が可能となる。
【0012】
【発明の実施の形態】
以下、本発明の実施の形態について説明する。
図1は、本発明の実施の形態に係るデジタル記録再生装置10を示すブロック図である。図1に示すように、デジタル記録再生装置10は、記録媒体20、記録装置30、再生装置40を備え、画像データおよび音声データを含むコンテンツデータの記録、再生を行う。
【0013】
記録媒体20は、ハードディスク、DVD(Digital Versatile Disc)等の記録媒体一般を意味し、コンテンツファイル保存領域21、及びインデックスファイル保存領域22を有する。
コンテンツファイル保存領域21は、オーディオ(音声)及びビデオ(画像)のPESパケットを含むコンテンツファイルを保存する記録媒体20上の領域である。インデックスファイル保存領域22は、コンテンツファイル保存領域21に保存されたコンテンツファイルに対応するインデックスファイルを保存する記録媒体20上の領域である。
【0014】
記録装置30は、記録媒体20のコンテンツファイル保存領域21にオーディオ及びビデオのPESパケットを含むコンテンツファイルを、インデックスファイル保存領域22にインデックスファイルをそれぞれ保存する。
記録装置30は、受信部301、選択部302,復調・誤り訂正検出部303、デマルチプレクサ304、コンテンツファイル保存部305、PESヘッダ検出部306、アドレスカウンタ307、Iフレーム検出部308、Iフレーム誤り検出部309、インデックスファイル作成部310、及びインデックスファイル保存部311を備える。
【0015】
受信部301は、受信アンテナを有し、放送局より多重送信された送信信号を受信する。
選択部302には、視聴者が選択した番組チャネルのサービスID(番組No)が設定され、受信部301によって受信された放送信号から、そのサービスIDに対応した映像/音声のビットストリームを復調・誤り訂正検出部303に出力する。なお、サービスIDは図示しない入力装置(例えば、押しボタン、リモコン)により入力される。
【0016】
復調・誤り訂正検出部303は、選択部302から入力されたビットストリームの復調及び誤り訂正を行い、MPEGシステムで規定されているトランスポートストリーム(TS)パケットに変換し、これをデマルチプレクサ304に出力する。
デマルチプレクサ304は、復調・誤り訂正検出部303から入力されたTSパケットより、1プログラムのオーディオとビデオのPESパケットをデマルチプレクス(分離化)して、出力する。この出力先は、通常使用時には再生装置40であり、記録時には再生装置40およびコンテンツファイル保存部305(更に、PESヘッダ検出部306、およびIフレーム検出部308)である(映像を表示しながら記録できる)。
コンテンツファイル保存部305は、デマルチプレクサ304から入力されたオーディオとビデオのPESパケットをコンテンツファイルとしてコンテンツファイル保存領域21に保存する。
【0017】
PESヘッダ検出部306は、デマルチプレクサ304から入力されたビデオPESパケットよりPESヘッダの検出を行い、このPESヘッダ内に含まれるビデオPESパケットの先頭アドレス、及びPTS(Presentation Time Stamp)の情報をインデックスファイル作成部310に出力するものであり、相対位置検出部として機能する。ここで、PTSとは、再生出力の時刻管理情報である。
アドレスカウンタ307は、PESヘッダ検出部306でPESヘッダを検出したときビデオPESパケットのデータ数を計測するものである。
【0018】
Iフレーム検出部308は、デマルチプレクサ304から入力されたビデオPESパケットからIフレーム(ピクチャ内符号化データ)の検出を行い、その検出結果を表すIフレームフラグをIフレーム検出部308経由でインデックスファイル作成部310に出力する。Iフレーム検出部308は、ビデオPESパケットに「CI」および「I−VOP」が含まれる場合にIフレームが検出されたと判定する。
【0019】
Iフレーム誤り検出部309は、Iフレーム検出部308から入力されたビデオPESパケットからIフレームの誤り検出を行うものであり、エラー検出部として機能する。そして、検出結果たるエラーフラグを、Iフレーム検出部308から入力されたIフレームフラグと共に、インデックスファイル作成部310に出力する。
既述のように、復調・誤り訂正検出部303からは誤り訂正が行われたTSパケットが出力されるが、TSパケット中に誤りを訂正しきれなかったPESパケット(特に、Iフレーム)が残る場合がある。このため、Iフレーム誤り検出部309がPESパケットの所定の項目をチェックすることで誤り検出を行う。
【0020】
図2は、PESパケットのデータ内容を表す模式図である。ここで、図2の(1)の「PES_info_n」は、n番目(n=1〜N)のIフレームを含むビデオのES(Elementary Stream)に含まれるパラメータを示す。(2)は「PES_info_1」の細部、(3)は「PES_info_1」中の「PES_info」の細部、(4)は「PES_info_1」中の「I_picture_info」の細部をそれぞれ表す。
Iフレーム誤り検出部309は、図2(1)の「PES_info_1」で示す各パラメータの妥当性、(3)の「PTS_info」で示すPTSの値が正しいかのチェックを行なう。その結果、正しくないと判定されたIフレームに対応するエラーフラグを出力する。
【0021】
インデックスファイル作成部310は、PESヘッダ検出部306、及びIフレーム誤り検出部309から入力された各情報を基に、ビデオPESパケット(コンテンツデータ)に対応するインデックスファイルを作成する。
インデックスファイル保存部311は、インデックスファイル作成部310で作成されたインデックスファイルをインデックスファイル保存領域22に保存する。
【0022】
図3は、インデックスファイル作成部310によって作成されたインデックスファイルの例を表す模式図である。インデックスファイルには、各PESパケットに対応するように、Iフレームフラグ、エラーフラグ、オフセットが対応して順に記録される。
ここで、IフレームフラグはIフレーム検出部308から出力され、PESパケット中のIフレームの有無を表す情報である。Iフレームがある(CI+I−VOPが含まれる)場合に「1」、Iフレームがない(CI+I−VOPが含まれない)場合に「0」となる。
エラーフラグは、Iフレーム誤り検出部309から出力され、各Iフレーム中のエラーの有無を表す情報である。エラーが含まれる場合に「1」、エラーが含まれない場合に「0」となる。
オフセットは、コンテンツファイルの先頭よりのPESパケットの位置をバイトで表す情報である。オフセットは、PESヘッダ検出部306より出力されたPESパケットの先頭アドレスの情報に基づきインデックスファイル作成部310が作成する。
【0023】
再生装置40は、記録媒体20のインデックスファイル保存領域22に保存されたインデックスファイルに基づき、コンテンツファイル保存領域21に保存されたコンテンツファイルを再生する。
再生装置40は、ユーザインターフェイス制御部401、インデックスファイル読出部402、コンテンツファイル読出部403、再生モード制御部404、PESパケットバッファ405、A/Vデコーダ406、画像復号部407、モニタ408,音声復号部409、スピーカ410を備える。
【0024】
ユーザインターフェイス制御部401は、ユーザにより入力された通常再生または特殊再生(早送り、早戻し等)の再生命令を再生モード制御部404に出力する。なお、再生命令の入力は図示しない入力装置(例えば、押しボタン、リモコン)を用いて行われる。
【0025】
インデックスファイル読出部402は、再生モード制御部404からの指示によりインデックスファイル保存領域22からインデックスファイルを読み出し、再生モード制御部404に出力する。
コンテンツファイル読出部403は、再生モード制御部404からの指示によりコンテンツファイル保存領域21からオーディオとビデオのPESパケットを取り出し、PESパケットバッファ405に出力する。
【0026】
再生モード制御部404は、ユーザインターフェイス制御部401より通常再生命令が入力されると、PESパケットバッファ405の空き容量に応じて、コンテンツファイル保存領域21からのデータ転送をコンテンツファイル読出部403に指示する。
また、再生モード制御部404は、ユーザインターフェイス制御部401より特殊再生命令が入力されると、インデックスファイル読出部402から得たインデックスファイルに基づいて、コンテンツファイル保存領域21からのデータ転送をコンテンツファイル読出部403に指示する。
【0027】
PESパケットバッファ405は、入力されたPESパケットデータを、A/Vデコーダ406からの要求信号を受けてA/Vデコーダ406に出力する。PESパケットデータの入力元は通常使用時および記録時にはデマルチプレクサ304であり、再生時にはコンテンツファイル読出部403である。
【0028】
A/Vデコーダ406は、入力されたオーディオとビデオのPESパケットデータをデコードし、ビデオデータは画像復号部407に、オーディオデータは音声復号部409にそれぞれ出力する。
画像復号部407は、A/Vデコーダ406から受け取ったビデオデータをテレビ出力信号に変換し、モニタ408に出力する。
音声復号部409は、A/Vデコーダ406から受け取ったオーディオデータをアナログ信号に変換し、スピーカ410に出力する。
【0029】
(デジタル記録再生装置10の動作)
次にデジタル記録再生装置10の動作を説明する。
A.通常使用時
まず、放送をそのまま視聴する場合につき説明する。
受信アンテナによって放送局より受信した放送信号は受信部301を経由して選択部302に出力される。選択部302は、放送信号から設定された番組チャネルのサービスIDに対応した映像/音声のビットストリームを選択する。
【0030】
復調・誤り訂正検出部303は、選択部302から入力されたビットストリームの復調及び誤り訂正を行い、TSパケットに変換する。デマルチプレクサ304は、TSパケットから1プログラムのオーディオとビデオのPESパケットを分離、出力する。
オーディオとビデオのPESパケットは、PESパケットバッファ405を経由して、A/Vデコーダ406でデコードされ、ビデオデータは画像復号部407に、オーディオデータは音声復号部409にそれぞれ出力する。この結果、モニタ408,スピーカ410によって放送を視聴できる。
【0031】
B.記録時
放送局から受信された画像データをコンテンツファイルとして記録媒体20に記録する場合を考える。
この記録時における受信部301、選択部302、復調・誤り訂正検出部303の動作内容は通常使用時と同様である。即ち、受信された放送信号から番組チャネルのサービスIDに対応した映像/音声のビットストリームが選択される。
【0032】
(1)コンテンツファイルの記録
デマルチプレクサ304は、オーディオとビデオのPESパケットを分離、出力することは通常使用時と変わりないが、その出力先にコンテンツファイル保存部305が加わる。その結果、PESパケットを含むコンテンツファイルがコンテンツファイル保存領域21に記録される。
なお、PESパケットはPESパケットバッファ405にも出力されるので、通常使用時と同様にモニタ408,スピーカ410によって放送を視聴できる。
【0033】
(2)インデックスファイルの作成・記録
コンテンツファイルの記録と並行して、インデックスファイル作成部310、及びインデックスファイル保存部311によるインデックスファイルの作成、記録が行われる。
インデックスファイルの作成に先だって以下の処理が行われる。即ち、Iフレーム検出部がビデオPESパケットからIフレームの検出を行い、Iフレームフラグを出力する。また、Iフレーム誤り検出部309が検出されたIフレーム中の誤りを検出し、エラーフラグを出力する。また、PESヘッダ検出部が入力されたビデオPESパケットよりPESヘッダの検出を行い、このPESヘッダ内に含まれるビデオPESパケットの先頭アドレスを出力する。インデックスファイル作成部310は、この先頭アドレスをコンテンツファイルの先頭から換算したオフセットに換算する。
【0034】
インデックスファイル作成部310は、これらIフレームフラグ、エラーフラグ、オフセットからインデックスファイルを生成し、インデックスファイル保存部311がこのインデックスファイルをインデックスファイル保存領域22に保存する。
【0035】
C.再生時
記録媒体20に記録されたコンテンツファイルを再生する場合を考える。
この場合、再生の速度(通常速度、早送り)、再生の方向(順方向、逆方向)がユーザインターフェイス制御部401から入力された再生命令により決定される。通常再生は通常速度での順方向再生であり、これ以外での再生は特殊再生となる。
【0036】
これらの再生状態の指定に従って、インデックスファイル保存領域22からのインデックスファイル読出部402によるインデックスファイルの読み出し、コンテンツファイル読出部403によるコンテンツファイル保存領域21からのコンテンツデータの読み出しが並行して行われる。
【0037】
(1)インデックスファイルの読み出し
再生命令に従い、再生モード制御部404がインデックスファイル読出部402によるインデックスファイルの読み出しの方向および読み出しの速度を制御する。
順再生の場合にはインデックスファイルが先頭から末尾の方向に、逆再生の場合にはインデックスファイルが末尾から先頭の方向に読み取られる。また、画像の再生を通常速度より大きい速度で行う場合には、これに応じてインデックスファイルの読み取りも高速で行われる。
但し、インデックスファイルの読み出しが、再生命令で表されるコンテンツファイルの再生方向、速度と必ずしも対応しなくてもよい。例えば、インデックスファイルの内容を一時的に保持するバッファを用いれば、再生命令の内容に依存することなくインデックスファイルの読み取りを行える。
【0038】
(2)コンテンツファイルの読み出し、再生
読み出されたインデックスファイルに従って、再生モード制御部404がコンテンツファイル読出部403によるコンテンツデータの読み出しを制御する。インデックスファイルに従ってコンテンツファイルの読み出しが行われることで、再生される画像の乱れの防止や早送り再生の容易化が実現される。
【0039】
エラーの無いIフレームに基づく画像の再生を行う(エラーの有るIフレームは用いない)ことで、再生画像の乱れを防止できる。例えば、図3に示したインデックスファイルで、番号1,2、4,5,14,16,17の順に再生を行ない、その途中の番号のPESパケットは画像の再生に用いないことができる。
この例では、エラーの無い(エラーフラグ:0)Iフレーム(Iフレームフラグ:1)のみを再生に用いている。エラーの有るIフレーム(エラーフラグ:1)を再生に用いないことで、不良な画像の再生を防止できる。なお、Iフレームが含まれないPESパケットを画像の再生に用いないのは、早送りを容易に行うためである。
通常誤ったIフレームを再生すれば画像が壊れて表示されたり、最悪の場合は表示されず表示が途切れたりするが、誤ったIフレームを再生しないので画像が壊れることなく、画像表示が途切れることなくコンテンツの早送りが実現可能となる。
【0040】
早送りを行わないような場合に、エラーの無い(エラーフラグ:0)Iフレーム(Iフレームフラグ:1)のみでなく、その後に続くPフレーム等を含むPESパケットを画像の再生に用いることも可能である。例えば、図3に示したインデックスファイルで、番号1〜9、14〜17の順に再生を行ない、エラーの無いIフレームの間に存在するIフレームを含まないPESパケット(Pフレーム等)を再生に利用できる。
【0041】
また、Iフレームを間引いて再生することで再生の速度をより大きくすることが容易になる。
図4は、再生速度と「CI+I−VOP」データの抽出(Iフレームの間引き)との関係を表す模式図である。
図4の(1)の通常再生ではIフレーム以外のPフレーム等も含めて画像の再生を行い、時間に対して多数の画像を再生することで滑らかな動きでの動画の再生を可能としている。
これに対して、(2)の早送り1ではIフレームに対応する「CI+I−VOP」を抽出することで早送り・早戻しを容易に実現している。さらに、(3)の早送り2ではIフレームに対応する「CI+I−VOP」(Iフレーム)を間引いて抽出することで、より速度の速い早送り・早戻しを容易に実現している。
【0042】
このようなIフレームの間引きは、例えば、インデックスファイルの作成時にIフレームフラグとして1を付与するPESファイルを削減することで行える。また、インデックスファイル上ではIフレームを間引かず、再生時に再生に利用するIフレームを間引くことで行っても差し支えない。
【0043】
このようなIフレームの間引きを行う場合にIフレームに誤りが有れば、Iフレームが飛び越して再生される。
図5(A)〜(C)は、早送りにおけるIフレームの誤りと再生状態との関係を表す模式図である。図中「○」が誤りの無いIフレームを「×」が誤りの有るIフレームを表す。
図5の(A)はIフレームに誤りがない場合を表し、Iフレームを1個置きに間引いて再生している。(B)はIフレームに誤りがある場合を表し、誤りの有るIフレームを飛び越して再生している。(C)は誤りが有るIフレームが複数続く場合であり、誤りの無いIフレームに至るまで飛んで画像の再生を行っている。
図6(A)〜(C)は、早戻しにおけるIフレームの誤りと再生状態との関係を表す模式図である。「○」が誤りの無いIフレームを「×」が誤りの有るIフレームを表す。図5と同様に、誤りがあるIフレームを飛び越し、誤りの無いIフレームのみを用いて画像の再生を行っている。
【0044】
【発明の効果】
以上説明したように、本発明によれば画像データに誤りが混入していた場合でも画像の再生を良好に行えるデジタル記録再生装置を提供することができる。
【図面の簡単な説明】
【図1】本発明の1実施形態に係るデジタル記録再生装置の構成を表すブロック図である。
【図2】PESパケットのデータ内容を表す模式図である。
【図3】インデックスファイル作成部によって作成されたインデックスファイルの例を表す模式図である。
【図4】再生速度とIフレームの間引きとの関係を表す模式図である。
【図5】早送りにおけるIフレームの誤りと再生状態との関係を表す模式図である。
【図6】早戻しにおけるIフレームの誤りと再生状態との関係を表す模式図である。
【符号の説明】
10…デジタル記録再生装置、 20…記録媒体、 21…コンテンツファイル保存領域、 22…インデックスファイル保存領域、 30…記録装置、 40…再生装置、301…受信部、302…選択部、303…復調・誤り訂正検出部、304…デマルチプレクサ、305…コンテンツファイル保存部、306…PESヘッダ検出部、307…アドレスカウンタ、308…Iフレーム検出部、309…Iフレーム誤り検出部、310…インデックスファイル作成部、311…インデックスファイル保存部、401…ユーザインターフェイス制御部、402…インデックスファイル読出部、403…コンテンツファイル読出部、404…再生モード制御部、405…PESパケットバッファ、406…A/Vデコーダ、407…画像復号部、408…モニタ、409…音声復号部、410…スピーカ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a digital recording / reproducing apparatus for recording and reproducing content data including digital image data.
[0002]
[Prior art]
2. Description of the Related Art Digital recording / reproducing apparatuses that record and reproduce image data compressed by an MPEG (Moving Picture Experts Group) method are used.
In the MPEG system, a plurality of images are represented by GOP (Group of Pictures) including I frames (intra-picture encoded images), P frames (inter-picture predictive encoded images), and the like. The I frame is obtained by encoding image data by DCT (Discrete Cosine Transform) quantization. The P frame is obtained by encoding a difference between data predicted from past image data and current image data. The GOP is divided into PES (Packetized Elementary Stream) packets and transmitted, recorded, and the like. In order to reproduce the image data compressed by the MPEG method, the I frame is decoded, and the P frame or the like is decoded based on this. As a result, a plurality of image data is reproduced in time series.
In addition, a technique for smoothly performing fast-forward playback or the like by detecting a PES packet including an I frame and creating an index file is disclosed (see Patent Document 1).
[0003]
[Patent Document 1]
JP 2000-224543 A
[0004]
[Problems to be solved by the invention]
However, in the conventional digital recording / reproducing apparatus, when an error is mixed in image data, the image may not be reproduced satisfactorily. In particular, when there is an error in the data of the I frame, the disturbance of the image tends to increase.
The present invention has been made to solve such a problem, and an object of the present invention is to provide a digital recording / reproducing apparatus capable of satisfactorily reproducing an image even when an error is mixed in the image data.
[0005]
[Means for Solving the Problems]
In order to achieve the above object, a digital recording / reproducing apparatus according to the present invention provides a PES packet obtained by packetizing digital image data included in content data and subjected to intra-picture coding and inter-picture coding. An I frame detection unit for detecting whether or not data is included; an error detection unit for detecting whether or not the PES packet includes an error; and a relative position detection for detecting a relative position in the content data of the PES packet. Index data including an I frame flag representing a detection result by the I frame detection unit, an error flag representing an error detection result by the error detection unit, and an offset representing a detection result by the relative position detection unit And an index creation unit.
[0006]
Whether or not the PES packet in the content data includes an error is detected, and index data including an error flag indicating the detection result is created. For this reason, it is possible to prevent the PES packet including an error from being reproduced by referring to the index data when reproducing the content data. The index data includes an I frame flag indicating whether or not the PES packet includes intra-picture encoded data, and an offset indicating a relative position in the content data of the PES packet. For this reason, special reproduction such as fast forward and fast reverse can be efficiently performed by reproducing only the I frame.
[0007]
(1) Here, the error detection unit may detect whether or not the intra-picture encoded data includes an error.
Since intra-picture encoded data is data that is the basis of image reproduction, when this includes an error, the influence is greater than inter-picture encoded data. Therefore, the quality of the PES packet can be determined by checking only the encoded data in the picture.
[0008]
(2) The digital recording / reproducing apparatus may further include an index data storage unit that records the index data created by the index creation unit on a recording medium.
By recording the index data on a recording medium or the like, it is possible to efficiently reproduce the content data.
[0009]
(3) The digital recording / reproducing apparatus may further include a content data reproducing unit that reproduces content data based on the index data created by the index creating unit.
The content data using the index data can be efficiently reproduced.
[0010]
Here, the content data reproduction unit may reproduce the intra-picture encoded data based on the I frame flag.
By reproducing only the intra-picture encoded data (inter-picture encoded data or the like is excluded from reproduction), special reproduction such as fast forward and fast reverse can be performed efficiently.
[0011]
The content data reproducing unit may reproduce a PES packet that does not include an error based on the error flag.
By excluding PES packets including errors from reproduction, it is possible to reproduce images favorably.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below.
FIG. 1 is a block diagram showing a digital recording / reproducing
[0013]
The
The content
[0014]
The
The
[0015]
The
The
[0016]
The demodulation / error
The
The content
[0017]
The PES
The
[0018]
The I
[0019]
The I frame
As described above, the demodulated / error
[0020]
FIG. 2 is a schematic diagram showing the data contents of the PES packet. Here, “PES_info_n” in (1) of FIG. 2 indicates parameters included in an ES (Elementary Stream) of a video including an nth (n = 1 to N) I frame. (2) represents details of “PES_info_1”, (3) represents details of “PES_info” in “PES_info_1”, and (4) represents details of “I_picture_info” in “PES_info_1”.
The I frame
[0021]
The index
The index
[0022]
FIG. 3 is a schematic diagram illustrating an example of an index file created by the index
Here, the I frame flag is information that is output from the I
The error flag is information output from the I frame
The offset is information representing the position of the PES packet from the beginning of the content file in bytes. The offset is created by the index
[0023]
The
The
[0024]
The user
[0025]
The index
The content
[0026]
When a normal playback command is input from the user
Also, when a special playback command is input from the user
[0027]
The
[0028]
The A /
The
The audio decoding unit 409 converts the audio data received from the A /
[0029]
(Operation of the digital recording / reproducing apparatus 10)
Next, the operation of the digital recording / reproducing
A. In normal use, the case of viewing a broadcast as it is first will be described.
The broadcast signal received from the broadcast station by the reception antenna is output to the
[0030]
The demodulation / error
The audio and video PES packets are decoded by the A /
[0031]
B. Consider a case where image data received from a broadcasting station at the time of recording is recorded on the
The operation contents of the
[0032]
(1) Content file recording The
Since the PES packet is also output to the
[0033]
(2) Creation and recording of index file In parallel with recording of the content file, creation and recording of an index file are performed by the index
Prior to creation of the index file, the following processing is performed. That is, the I frame detection unit detects an I frame from the video PES packet and outputs an I frame flag. The I frame
[0034]
The index
[0035]
C. Consider a case where a content file recorded on the
In this case, the reproduction speed (normal speed, fast forward) and the reproduction direction (forward direction, reverse direction) are determined by the reproduction command input from the user
[0036]
In accordance with the designation of the playback state, the index
[0037]
(1) The reproduction
In the case of forward reproduction, the index file is read from the beginning to the end, and in the case of reverse reproduction, the index file is read from the end to the beginning. When the image is reproduced at a speed higher than the normal speed, the index file is read at a high speed accordingly.
However, the reading of the index file does not necessarily correspond to the playback direction and speed of the content file represented by the playback command. For example, if a buffer that temporarily holds the contents of the index file is used, the index file can be read without depending on the contents of the reproduction command.
[0038]
(2) Reading and playback of content file The playback
[0039]
By reproducing an image based on an I frame having no error (not using an I frame having an error), it is possible to prevent the reproduced image from being disturbed. For example, in the index file shown in FIG. 3, reproduction is performed in the order of
In this example, only an I frame (I frame flag: 1) with no error (error flag: 0) is used for reproduction. By not using an errored I frame (error flag: 1) for reproduction, it is possible to prevent reproduction of a defective image. The reason why the PES packet not including the I frame is not used for image reproduction is to facilitate fast-forwarding.
Normally, if an incorrect I frame is played back, the image is displayed broken, or in the worst case, it is not displayed and the display is interrupted. However, since the incorrect I frame is not played back, the image display is interrupted without breaking the image. Content can be fast-forwarded.
[0040]
When fast-forwarding is not performed, it is possible to use not only an error-free (error flag: 0) I frame (I frame flag: 1) but also a PES packet including a subsequent P frame or the like for image reproduction. It is. For example, with the index file shown in FIG. 3, playback is performed in the order of
[0041]
In addition, it is easy to increase the playback speed by thinning out the I frames.
FIG. 4 is a schematic diagram showing the relationship between the playback speed and the extraction of “CI + I−VOP” data (thinning out I frames).
In the normal playback shown in FIG. 4 (1), images are played back including P frames other than I frames, and a large number of images are played back over time, thereby making it possible to play back moving images with smooth motion. .
On the other hand, in the fast-forward 1 of (2), “CI + I−VOP” corresponding to the I frame is extracted to easily realize fast-forward and fast-reverse. Further, in the
[0042]
Such thinning out of I frames can be performed, for example, by reducing PES files to which 1 is assigned as an I frame flag when creating an index file. In addition, the I frame may not be thinned out on the index file, and the I frame used for reproduction during the reproduction may be thinned out.
[0043]
When such I frame decimation is performed, if there is an error in the I frame, the I frame is skipped and reproduced.
FIGS. 5A to 5C are schematic diagrams showing the relationship between an I-frame error in fast-forwarding and the playback state. In the figure, “◯” represents an I frame having no error, and “X” represents an I frame having an error.
FIG. 5A shows a case where there is no error in the I frame, and reproduction is performed by thinning out every other I frame. (B) shows a case where there is an error in the I frame, and the I frame having the error is skipped and reproduced. (C) shows a case where a plurality of I frames having errors continue, and images are reproduced by skipping to I frames having no errors.
FIGS. 6A to 6C are schematic diagrams showing the relationship between the error of the I frame and the playback state in fast reverse. “O” indicates an I frame without an error, and “X” indicates an I frame with an error. Similar to FIG. 5, an I frame with an error is skipped, and an image is reproduced using only an I frame without an error.
[0044]
【The invention's effect】
As described above, according to the present invention, it is possible to provide a digital recording / reproducing apparatus capable of satisfactorily reproducing an image even when an error is mixed in the image data.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a digital recording / reproducing apparatus according to an embodiment of the present invention.
FIG. 2 is a schematic diagram showing data contents of a PES packet.
FIG. 3 is a schematic diagram illustrating an example of an index file created by an index file creation unit.
FIG. 4 is a schematic diagram showing a relationship between reproduction speed and I frame thinning.
FIG. 5 is a schematic diagram showing a relationship between an I-frame error and a reproduction state in fast-forwarding.
FIG. 6 is a schematic diagram showing a relationship between an I-frame error and a reproduction state in fast reverse.
[Explanation of symbols]
DESCRIPTION OF
Claims (6)
前記PESパケットがエラーを含むか否かを検出するエラー検出部と、
前記PESパケットのコンテンツデータ中での相対位置を検出する相対位置検出部と、
前記Iフレーム検出部による検出結果を表すIフレームフラグ、前記エラー検出部によるエラー検出結果を表すエラーフラグ、および前記相対位置検出部による検出結果を表すオフセット、を含むインデックスデータを作成するインデックス作成部と、
を具備することを特徴とするデジタル記録再生装置。An I frame detection unit that detects whether or not a PES packet that is packetized digital image data that is included in content data and that has been subjected to intra-picture encoding and inter-picture encoding includes intra-picture encoded data;
An error detection unit for detecting whether the PES packet includes an error;
A relative position detector for detecting a relative position in the content data of the PES packet;
Index creation unit that creates index data including an I frame flag that represents a detection result by the I frame detection unit, an error flag that represents an error detection result by the error detection unit, and an offset that represents a detection result by the relative position detection unit When,
A digital recording / reproducing apparatus comprising:
ことを特徴とする請求項1記載のデジタル記録再生装置。2. The digital recording / reproducing apparatus according to claim 1, wherein the error detection unit detects whether or not the intra-picture encoded data includes an error.
をさらに具備することを特徴とする請求項1記載のデジタル記録再生装置。An index data storage unit for recording the index data created by the index creation unit on a recording medium;
The digital recording / reproducing apparatus according to claim 1, further comprising:
さらに具備することを特徴とする請求項1記載のデジタル記録再生装置。The digital recording / reproducing apparatus according to claim 1, further comprising a content data reproducing unit that reproduces content data based on the index data created by the index creating unit.
ことを特徴とする請求項4記載のデジタル記録再生装置。5. The digital recording / reproducing apparatus according to claim 4, wherein the content data reproducing unit reproduces intra-picture encoded data based on the I frame flag.
ことを特徴とする請求項4記載のデジタル記録再生装置。5. The digital recording / reproducing apparatus according to claim 4, wherein the content data reproducing unit reproduces a PES packet not including an error based on the error flag.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003189818A JP2005026990A (en) | 2003-07-01 | 2003-07-01 | Digital recording and reproducing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003189818A JP2005026990A (en) | 2003-07-01 | 2003-07-01 | Digital recording and reproducing device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2005026990A true JP2005026990A (en) | 2005-01-27 |
Family
ID=34187915
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003189818A Withdrawn JP2005026990A (en) | 2003-07-01 | 2003-07-01 | Digital recording and reproducing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2005026990A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007109329A (en) * | 2005-10-14 | 2007-04-26 | Canon Inc | Picture data recording apparatus, picture data reproducing apparatus, picture data recording method, program, and recording medium |
US7688726B2 (en) | 2007-10-30 | 2010-03-30 | Kabushiki Kaisha Toshiba | Broadcast reception apparatus, TS packet reproduction apparatus, broadcast reception method and program |
-
2003
- 2003-07-01 JP JP2003189818A patent/JP2005026990A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007109329A (en) * | 2005-10-14 | 2007-04-26 | Canon Inc | Picture data recording apparatus, picture data reproducing apparatus, picture data recording method, program, and recording medium |
US7688726B2 (en) | 2007-10-30 | 2010-03-30 | Kabushiki Kaisha Toshiba | Broadcast reception apparatus, TS packet reproduction apparatus, broadcast reception method and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4837868B2 (en) | Method and apparatus for editing digital video recordings, and recordings produced by such methods | |
US9390754B2 (en) | Video trick mode system | |
US6993251B1 (en) | Method and apparatus for concealing disk soft errors in recorded digital television signals | |
US7266288B2 (en) | Video/audio playback apparatus and video/audio playback method | |
JP4226873B2 (en) | Digital broadcast program recording method and digital broadcast receiver | |
JPH08181946A (en) | Image data coding method and device, image data recording medium, image data decoding method and device | |
US7826718B2 (en) | Method and apparatus to facilitate the efficient implementation of trick modes in a personal video recording system | |
JP2005039308A6 (en) | Digital broadcast program recording method, reproduction method, and digital broadcast receiver | |
US8260124B2 (en) | Method and apparatus for reproducing digital broadcast and method of recording digital broadcast | |
US8380038B2 (en) | Broadcasting station apparatus and recording/reproducing apparatus | |
JP2002077820A (en) | Accumulating/reproducing device and digital broadcast transmitting device | |
US8254764B2 (en) | Recording apparatus, image reproducing apparatus, and special reproduction method therefor | |
JP2008294638A (en) | Transmission system, recording apparatus, transmission method, recording method, and program | |
JP2005026990A (en) | Digital recording and reproducing device | |
JP4763589B2 (en) | Playback device and playback method thereof | |
US20080292263A1 (en) | Accessibility of Graphics During and After Trick Play | |
JP2002033712A (en) | Packet processor and packet output method therefor | |
JP2013012265A (en) | Reproduction device and reproduction method | |
JP4941128B2 (en) | Video processing device | |
US20050152671A1 (en) | Apparatus and method for video signal recording/reproducing | |
JP5016335B2 (en) | Playback apparatus and playback method | |
KR100563731B1 (en) | Apparatus and method for trick play in digital broadcasting receiver | |
JP2004253052A (en) | Information recording medium, and information recording device | |
JP2005086434A (en) | Video recording and reproducing apparatus, reception apparatus, control method, and control program | |
JP2006217229A (en) | Digital broadcast receiving device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20060905 |