Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4527672B2 - Recording apparatus, recording method, recording system, distribution apparatus, and distribution method - Google Patents
[go: Go Back, main page]

JP4527672B2 - Recording apparatus, recording method, recording system, distribution apparatus, and distribution method - Google Patents

Recording apparatus, recording method, recording system, distribution apparatus, and distribution method Download PDF

Info

Publication number
JP4527672B2
JP4527672B2 JP2006024331A JP2006024331A JP4527672B2 JP 4527672 B2 JP4527672 B2 JP 4527672B2 JP 2006024331 A JP2006024331 A JP 2006024331A JP 2006024331 A JP2006024331 A JP 2006024331A JP 4527672 B2 JP4527672 B2 JP 4527672B2
Authority
JP
Japan
Prior art keywords
data
recording
error
packet
acquired
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
JP2006024331A
Other languages
Japanese (ja)
Other versions
JP2007208598A (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.)
NEC Embedded Products Ltd
Original Assignee
NEC Embedded Products 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 NEC Embedded Products Ltd filed Critical NEC Embedded Products Ltd
Priority to JP2006024331A priority Critical patent/JP4527672B2/en
Publication of JP2007208598A publication Critical patent/JP2007208598A/en
Application granted granted Critical
Publication of JP4527672B2 publication Critical patent/JP4527672B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Description

本発明は、記録装置、記録方法、記録システム、配信装置および配信方法に関し、特には、送信用データを受信し、その送信用データを記録用データに変換して記録する記録装置、記録方法、記録システム、配信装置および配信方法に関する。   The present invention relates to a recording apparatus, a recording method, a recording system, a distribution apparatus, and a distribution method, and in particular, a recording apparatus, a recording method for receiving transmission data, converting the transmission data into recording data, and recording the data. The present invention relates to a recording system, a distribution device, and a distribution method.

近年、デジタル放送番組等のデジタルコンテンツを受信し、そのデジタルコンテンツを記録する家庭用ホームサーバまたはデジタルレコーダ等の録画装置が知られている。   2. Description of the Related Art In recent years, recording devices such as home home servers or digital recorders that receive digital content such as digital broadcast programs and record the digital content are known.

近年盛んになっているデジタル放送(地上デジタル放送、BS/CSデジタル放送)は、MPEG2規格に準拠した送信用データ、具体的には、MPEG2−TS形式のデジタルデータで伝送されている。録画装置は、番組であるMPEG2−TSの中のTSパケット(送信用データ)を受信すると、そのTSパケットをMPEG2−PSのPSパケットに変換し、MPEG2−PS形式の番組をHDDまたはDVD等の記録媒体に記録する。   Digital broadcasting (terrestrial digital broadcasting, BS / CS digital broadcasting), which has become popular in recent years, is transmitted as transmission data compliant with the MPEG2 standard, specifically, MPEG2-TS format digital data. When the recording device receives a TS packet (transmission data) in MPEG2-TS, which is a program, the recording device converts the TS packet into an MPEG2-PS PS packet, and converts the MPEG2-PS format program to an HDD, DVD, or the like. Record on a recording medium.

録画装置は、例えば、気象状態の影響により、TSパケットを正常に受信できない場合がある。   For example, the recording apparatus may not be able to normally receive TS packets due to the influence of weather conditions.

特許文献1(特開2002−281081号公報)には、通信衛星からの受信に失敗したTSパケットの再送を基地局に要求し、そのTSパケットを基地局から公衆回線を介して受信する記録装置が記載されている。
特開2002−281081号公報
Japanese Patent Application Laid-Open No. 2002-281081 discloses a recording apparatus that requests a base station to retransmit a TS packet that has failed to be received from a communication satellite and receives the TS packet from the base station via a public line. Is described.
JP 2002-281081 A

特許文献1に記載された記録装置は、受信に失敗したTSパケットを基地局に再送させるので、TSパケットの受信誤りを修正できる。しかしながら、この記録装置は、TSパケットから変換されたPSパケットにエラーが発生した場合、そのエラーを修正できない。このため、この記録装置は、エラーを含むデータの補完を高速で行うことができない。   Since the recording apparatus described in Patent Literature 1 retransmits TS packets that have failed to be received to the base station, it is possible to correct TS packet reception errors. However, this recording device cannot correct an error when an error occurs in a PS packet converted from a TS packet. For this reason, this recording apparatus cannot complement data including errors at high speed.

本発明の目的は、記録用データにエラーが生じても、エラーを含むデータの補完を高速で行うことが可能な記録装置、記録方法、記録システム、配信装置および配信方法を提供することである。   An object of the present invention is to provide a recording apparatus, a recording method, a recording system, a distribution apparatus, and a distribution method capable of performing high-speed interpolation of data including an error even if an error occurs in recording data. .

上記目的を達成するため、本発明の記録装置は、コンテンツを形成する複数の送信用データを送信する所定配信装置と、前記複数の送信用データおよび該複数の送信用データから変換された複数の記録用データを送信可能な特定配信装置と、に通信可能な記録装置であって、前記所定配信装置から前記複数の送信用データを受信する受信部と、前記特定配信装置と通信して前記複数の送信用データおよび前記記録用データを取得する通信部と、前記受信部が受信した複数の送信用データを前記複数の記録用データに変換する変換部と、前記複数の記録用データを記録する記録媒体と、前記受信部が受信した各送信用データでのエラーを検出する第1検出部と、前記変換部が変換した各記録用データでのエラーを検出する第2検出部と、前記第1検出部が前記エラーを検出すると、前記特定配信装置から該エラーが検出された送信用データに対応する送信用データを前記通信部を介して取得し、該エラーを含む送信用データを該取得した送信用データに変更した後、前記変換部に前記変換を実行させ、前記第2検出部が前記エラーを検出すると、該特定配信装置から該エラーが検出された記録用データに対応する記録用データを該通信部を介して取得し、該エラーを含む記録用データを該取得した記録用データに変更した後、前記複数の記録用データを前記記録媒体に記録する制御部とを含む。   In order to achieve the above object, a recording apparatus of the present invention includes a predetermined distribution device that transmits a plurality of transmission data forming content, a plurality of transmission data and a plurality of transmission data converted from the plurality of transmission data. A recording device capable of communicating with a specific distribution device capable of transmitting recording data, a receiving unit configured to receive the plurality of transmission data from the predetermined distribution device, and the plurality of the plurality of data in communication with the specific distribution device A communication unit that acquires the transmission data and the recording data, a conversion unit that converts the plurality of transmission data received by the reception unit into the plurality of recording data, and the plurality of recording data A recording medium; a first detection unit that detects an error in each transmission data received by the reception unit; a second detection unit that detects an error in each recording data converted by the conversion unit; When the detection unit detects the error, it acquires the transmission data corresponding to the transmission data in which the error is detected from the specific distribution device via the communication unit, and acquires the transmission data including the error After changing to transmission data, when the conversion unit executes the conversion and the second detection unit detects the error, the recording data corresponding to the recording data in which the error is detected from the specific distribution device And a control unit that records the plurality of recording data on the recording medium after the recording data including the error is changed to the acquired recording data.

また、本発明の記録方法は、コンテンツを形成する複数の送信用データを送信する所定配信装置と、前記複数の送信用データおよび該複数の送信用データから変換された複数の記録用データを送信可能な特定配信装置と、に通信可能な記録装置が行う記録方法であって、前記所定配信装置から前記複数の送信用データを受信する受信ステップと、前記受信された複数の送信用データを前記複数の記録用データに変換する変換ステップと、前記受信された各送信用データでのエラーを検出する第1検出ステップと、前記変換された各記録用データでのエラーを検出する第2検出ステップと、前記第1検出ステップで前記エラーが検出されると、該エラーが検出された送信用データに対応する送信用データを前記特定配信装置から取得し、該エラーを含む送信用データを該取得した送信用データに変更した後、前記複数の送信用データを前記複数の記録用データに変換する変更ステップと、前記第2検出ステップで前記エラーが検出されると、該エラーが検出された記録用データに対応する記録用データを前記特定配信装置から取得し、該エラーを含む記録用データを該取得した記録用データに変更した後、前記複数の記録用データを記録媒体に記録する制御ステップとを含む。   Further, the recording method of the present invention transmits a plurality of transmission data forming a content, a plurality of transmission data, and a plurality of recording data converted from the plurality of transmission data. A recording method performed by a recording device capable of communicating with a specific distribution device capable of receiving the plurality of transmission data from the predetermined distribution device, and the received plurality of transmission data A converting step for converting into a plurality of recording data; a first detecting step for detecting an error in each of the received transmission data; and a second detecting step for detecting an error in each of the converted recording data. When the error is detected in the first detection step, the transmission data corresponding to the transmission data in which the error is detected is acquired from the specific distribution device, and the error is detected. When the error is detected in the changing step of converting the plurality of transmission data into the plurality of recording data and the second detection step after changing the transmission data including the transmission data to the acquired transmission data The recording data corresponding to the recording data in which the error is detected is acquired from the specific distribution device, the recording data including the error is changed to the acquired recording data, and then the plurality of recording data And a control step for recording the information on a recording medium.

また、本発明の記録システムは、上記所定配信装置と、上記特定配信装置と、上記記録装置とを含む。   The recording system of the present invention includes the predetermined distribution device, the specific distribution device, and the recording device.

上記発明によれば、送信用データでエラーが検出されると、記録装置は、エラーが検出された送信用データを取得し、記録用データでエラーが検出されると、エラーが検出された記録用データを取得する。このため、記録用データにエラーが生じても、必要なデータのみが取得され、エラーを含むデータの補完を高速で行うことが可能になる。   According to the invention, when an error is detected in the transmission data, the recording device acquires the transmission data in which the error is detected, and when an error is detected in the recording data, the recording in which the error is detected. Get data. For this reason, even if an error occurs in the recording data, only necessary data is acquired, and it becomes possible to complement data including the error at high speed.

なお、前記記録用データは、ヘッダ部とデータ部とを有し、上記記録装置は、前記記録用データのデータ部でのエラーを検出する第3検出部をさらに含み、前記制御部は、前記第3検出部の検出結果に応じて、前記特定配信装置から取得する前記データ部の範囲を決定し、該決定された範囲のデータ部を前記通信部を介して該特定配信装置から取得し、該取得したデータ部に対応する前記記録用データのデータ部を該取得したデータ部に変更した後、前記記録用データを前記記録媒体に記録することが望ましい。   The recording data has a header part and a data part, and the recording apparatus further includes a third detection part for detecting an error in the data part of the recording data, and the control part In accordance with the detection result of the third detection unit, the range of the data part to be acquired from the specific distribution device is determined, the data part of the determined range is acquired from the specific distribution device through the communication unit, It is desirable to record the recording data on the recording medium after changing the data portion of the recording data corresponding to the acquired data portion to the acquired data portion.

上記発明によれば、さらに、エラーの内容により、特定配信装置から取り寄せるデータ部の範囲が変更される。必要となるデータ部の量は、エラーの内容に応じて変動する。例えば、データ全般に影響を及ぼすエラーであると、データ全体を取り寄せる必要があるが、一部のデータにのみ影響を及ぼすエラーであると、その一部のデータのみを取り寄せればよくなる。   According to the said invention, the range of the data part ordered from a specific delivery apparatus is further changed with the content of an error. The amount of data part required varies depending on the content of the error. For example, if the error affects all data, the entire data needs to be obtained. If the error affects only a part of the data, only the part of the data needs to be obtained.

このため、記録用データにエラーが生じても、必要なデータのみを取得することが可能になり、エラーを含むデータの補完を高速で行うことが可能になる。   For this reason, even if an error occurs in the recording data, only necessary data can be acquired, and the data including the error can be complemented at high speed.

また、本発明の記録装置は、コンテンツを形成する複数の送信用データを送信する所定配信装置と、前記複数の送信用データおよび該複数の送信用データから変換されたヘッダ部とデータ部とを有する複数の記録用データを送信可能な特定配信装置と、に通信可能な記録装置であって、前記所定配信装置から前記複数の送信用データを受信する受信部と、前記特定配信装置と通信して前記複数の送信用データおよび前記記録用データを取得する通信部と、前記受信部が受信した複数の送信用データを前記複数の記録用データに変換する変換部と、前記複数の記録用データを記録する記録媒体と、前記変換部が変換した各記録用データのデータ部でのエラーを検出する検出部と、前記検出部の検出結果に応じて、前記特定配信装置から取得する前記データ部の範囲を決定し、該決定された範囲のデータ部を該特定配信装置から取得し、該取得したデータ部に対応する前記記録用データのデータ部を該取得したデータ部に変更した後、前記記録用データを前記記録媒体に記録する制御部とを含む。   The recording apparatus of the present invention includes a predetermined distribution device that transmits a plurality of transmission data forming content, a plurality of transmission data, and a header portion and a data portion converted from the plurality of transmission data. A recording device capable of communicating with a specific distribution device capable of transmitting a plurality of recording data, the receiving device receiving the plurality of transmission data from the predetermined distribution device, and communicating with the specific distribution device A communication unit that acquires the plurality of transmission data and the recording data, a conversion unit that converts the plurality of transmission data received by the reception unit into the plurality of recording data, and the plurality of recording data Is acquired from the specific distribution device according to a detection result of the detection unit, a detection unit that detects an error in a data part of each recording data converted by the conversion unit, The range of the data portion is determined, the data portion of the determined range is acquired from the specific distribution device, and the data portion of the recording data corresponding to the acquired data portion is changed to the acquired data portion And a controller for recording the recording data on the recording medium.

また、本発明の記録方法は、コンテンツを形成する複数の送信用データを送信する所定配信装置と、前記複数の送信用データおよび該複数の送信用データから変換されたヘッダ部とデータ部とを有する複数の記録用データを送信可能な特定配信装置と、に通信可能な記録装置が行う記録方法であって、前記所定配信装置から前記複数の送信用データを受信する受信ステップと、前記受信された複数の送信用データを前記複数の記録用データに変換する変換ステップと、前記変換された各記録用データのデータ部でのエラーを検出する検出ステップと、前記検出ステップでの検出結果に応じて、前記特定配信装置から取得する前記データ部の範囲を決定し、該決定された範囲のデータ部を該特定配信装置から取得し、該取得したデータ部に対応する前記記録用データのデータ部を該取得したデータ部に変更した後、前記記録用データを記録媒体に記録する制御ステップとを含む。   Also, the recording method of the present invention comprises a predetermined distribution device for transmitting a plurality of transmission data forming a content, the plurality of transmission data, and a header portion and a data portion converted from the plurality of transmission data. A recording method performed by a recording device capable of communicating with a specific distribution device capable of transmitting a plurality of recording data, the receiving method receiving the plurality of transmission data from the predetermined distribution device, and the reception A conversion step for converting the plurality of transmission data into the plurality of recording data, a detection step for detecting an error in the data portion of each of the converted recording data, and a detection result in the detection step And determining the range of the data portion acquired from the specific distribution device, acquiring the data portion of the determined range from the specific distribution device, and corresponding to the acquired data portion After that it has the data section of the recording data by changing the data unit that is the acquired, and a control step of recording the recording data on the recording medium.

また、本発明の記録システムは、上記所定配信装置と、上記特定配信装置と、上記記録装置とを含む。   The recording system of the present invention includes the predetermined distribution device, the specific distribution device, and the recording device.

上記発明によれば、エラーの内容により、特定配信装置から取り寄せるデータ部の範囲が変更される。必要となるデータの量は、エラーの内容に応じて変動する。このため、記録用データにエラーが生じても、必要なデータのみを取得することが可能になり、エラーを含むデータの補完を高速で行うことが可能になる。   According to the said invention, the range of the data part ordered from a specific delivery apparatus is changed with the content of an error. The amount of data required varies depending on the content of the error. For this reason, even if an error occurs in the recording data, only necessary data can be acquired, and the data including the error can be complemented at high speed.

また、本発明の配信装置は、コンテンツを形成する複数の送信用データ、および、該複数の送信用データから変換された複数の記録用データを、再送要求を送信した記録装置に送信する配信装置であって、前記複数の送信用データおよび前記複数の記録用データを保存する記憶部と、前記記録装置と通信する通信部と、前記通信部が特定の前記送信用データの再送を要求する旨の再送要求を受け付けると、前記記憶部に保存された前記特定の送信用データを前記通信部を介して前記記録装置に送信し、前記通信部が特定の前記記録用データの再送を要求する旨の再送要求を受け付けると、前記記憶部に保存された前記特定の記録用データを前記通信部を介して前記記録装置に送信する制御部とを含む。   In addition, the distribution apparatus of the present invention transmits a plurality of transmission data forming content and a plurality of recording data converted from the plurality of transmission data to the recording apparatus that has transmitted the retransmission request. A storage unit storing the plurality of transmission data and the plurality of recording data, a communication unit communicating with the recording device, and the communication unit requesting retransmission of the specific transmission data When the retransmission request is received, the specific transmission data stored in the storage unit is transmitted to the recording apparatus via the communication unit, and the communication unit requests retransmission of the specific recording data. And a control unit that transmits the specific recording data stored in the storage unit to the recording apparatus via the communication unit.

また、本発明の配信方法は、コンテンツを形成する複数の送信用データ、および、該複数の送信用データから変換された複数の記録用データを保存し、再送要求を送信した記録装置に該送信用データおよび該記録用データを送信する配信装置が行う配信方法であって、前記記録装置から特定の前記送信用データの再送を要求する旨の送信用データ再送要求を受け付ける第1受付ステップと、前記送信用データ再送要求が受け付けられると、前記保存された前記特定の送信用データを前記記録装置に送信する送信用データ送信ステップと、前記記録装置から特定の前記記録用データの再送を要求する旨の記録用データ再送要求を受け付ける第2受付ステップと、前記記録用データ再送要求が受け付けられると、前記保存された前記特定の記録用データを前記記録装置に送信する記録用データ送信ステップとを含む。   In addition, the distribution method of the present invention stores a plurality of transmission data forming content and a plurality of recording data converted from the plurality of transmission data, and transmits the transmission request to a recording apparatus that has transmitted a retransmission request. A distribution method performed by a distribution device that transmits the trust data and the recording data, a first reception step of receiving a transmission data retransmission request for requesting retransmission of the specific transmission data from the recording device; When the transmission data retransmission request is accepted, a transmission data transmission step of transmitting the stored specific transmission data to the recording device, and requesting retransmission of the specific recording data from the recording device A second receiving step for accepting a recording data retransmission request to the effect, and when the recording data resending request is accepted, the stored specific recording data And a recording data transmitting step of transmitting over data to the recording device.

上記発明によれば、記録装置が必要とするデータを適切に配信することが可能になる。   According to the above invention, it is possible to appropriately distribute data required by the recording apparatus.

本発明によれば、記録用データにエラーが生じても、エラーを含むデータの補完を高速で行うことが可能になる。   According to the present invention, even if an error occurs in recording data, it is possible to complement data including the error at high speed.

以下、本発明の実施例を図面を参照して説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の一実施例の記録システムを示したブロック図である。   FIG. 1 is a block diagram showing a recording system according to an embodiment of the present invention.

図1において、記録システムは、デジタル放送局1と、録画サーバ2と、記録装置3とを含む。   In FIG. 1, the recording system includes a digital broadcasting station 1, a recording server 2, and a recording device 3.

デジタル放送局1は、所定配信装置の一例であり、複数のTSパケット(送信用データ)で構成されたMPEG2−TS、すなわち、番組(コンテンツ)を無線送信する。なお、各TSパケットは、188Byteであり、ヘッダ部とデータ部とを有する。   The digital broadcasting station 1 is an example of a predetermined distribution device, and wirelessly transmits MPEG2-TS composed of a plurality of TS packets (transmission data), that is, a program (content). Each TS packet is 188 bytes and has a header part and a data part.

録画サーバ2は、特定配信装置の一例である。録画サーバ2は、デジタル放送局にて用意された放送予備サーバであり、チューナ21と、記憶部22と、TS−PS変換部23と、通信部24と、制御部25とを含む。   The recording server 2 is an example of a specific distribution device. The recording server 2 is a broadcast standby server prepared by a digital broadcasting station, and includes a tuner 21, a storage unit 22, a TS-PS conversion unit 23, a communication unit 24, and a control unit 25.

チューナ21は、デジタル放送局1から送信された、番組であるMPEG2−TSを構成する複数のTSパケットを受信する。   The tuner 21 receives a plurality of TS packets constituting the program MPEG2-TS transmitted from the digital broadcasting station 1.

記憶部22は、チューナ21にて受信されたMPEG2−TSの中の各TSパケットを、そのMPEG2−TSの中のTSパケットの位置を特定するTSパケット特定情報と、そのMPEG2−TS(番組)を特定する配信データ特定情報と、に関連づけて保存する。   The storage unit 22 receives each TS packet in the MPEG2-TS received by the tuner 21, TS packet specifying information for specifying the position of the TS packet in the MPEG2-TS, and the MPEG2-TS (program). Is stored in association with the distribution data specifying information for specifying.

TSパケット特定情報としては、例えば、TSパケットヘッダにあるパケット識別子(PID)が用いられる。パケット識別子は、制御部25によって、TSパケットヘッダから抽出される。   As the TS packet specifying information, for example, a packet identifier (PID) in the TS packet header is used. The packet identifier is extracted from the TS packet header by the control unit 25.

配信データ特定情報としては、例えば、地上波データ放送等で流れてくるEPG等を基にした番組コードが用いられる。番組コードは、制御部25によって、EPG等から抽出される。   As the distribution data specifying information, for example, a program code based on EPG or the like flowing in terrestrial data broadcasting or the like is used. The program code is extracted from the EPG or the like by the control unit 25.

また、記憶部22は、MPEG2−TS(番組)の中の複数のTSパケットから変換された、MPEG2−PS(番組)を構成する複数のPSパケットを、その変換時のビットレートと、そのMPEG2−PSの中のPSパケットの位置を特定するPSパケット特定情報と、そのMPEG2−PSを特定する配信データ特定情報と、に関連づけて保存する。   The storage unit 22 converts a plurality of PS packets constituting the MPEG2-PS (program) converted from a plurality of TS packets in the MPEG2-TS (program), the bit rate at the time of the conversion, and the MPEG2 -The PS packet specifying information for specifying the position of the PS packet in the PS and the distribution data specifying information for specifying the MPEG2-PS are stored in association with each other.

PSパケット特定情報としては、PSパケットヘッダにパケット識別子(PID)が含まれていれば、そのパケット識別子が用いられる。パケット識別子は、制御部25によって、PSパケットヘッダから抽出される。または、制御部25が、保存されるPSパケットがMPEG2−PSの中の何番目のパケットかを、カウンタ等を用いてカウントし、そのカウント値をPSパケット特定情報として用いてもよい。   As the PS packet specifying information, if a packet identifier (PID) is included in the PS packet header, the packet identifier is used. The packet identifier is extracted from the PS packet header by the control unit 25. Alternatively, the control unit 25 may count the number of the stored PS packet in the MPEG2-PS using a counter or the like, and use the count value as the PS packet specifying information.

MPEG2−PS(番組)を特定するための配信データ特定情報は、例えば、地上波データ放送等で流れてくるEPG等を基にした番組コードである。番組コードは、制御部25によって、EPG等から抽出される。   The distribution data specifying information for specifying MPEG2-PS (program) is, for example, a program code based on EPG or the like that flows in terrestrial data broadcasting or the like. The program code is extracted from the EPG or the like by the control unit 25.

なお、記憶部22は、互いに異なるビットレートごとに、MPEG2−PSを構成する複数のPSパケットを保存する。   In addition, the memory | storage part 22 preserve | saves several PS packet which comprises MPEG2-PS for every mutually different bit rate.

また、記憶部22には、記録装置識別番号表が保存されており、この記録装置識別番号表には、データを再送してよい記録装置3に付与された記録装置識別番号が記載されている。   The storage unit 22 stores a recording device identification number table, and the recording device identification number table describes the recording device identification number assigned to the recording device 3 that may retransmit the data. .

TS−PS変換部(MPEGデコーダ)23は、チューナ21が受信した、MPEG2−TSの中の複数のTSパケット(送信用データ)を、MPEG2−PSを構成する複数のPSパケット(記録用データ)に変換する。   The TS-PS conversion unit (MPEG decoder) 23 converts a plurality of TS packets (transmission data) in the MPEG2-TS received by the tuner 21 into a plurality of PS packets (recording data) constituting the MPEG2-PS. Convert to

TS−PS変換部23は、制御部25にて指定された任意のビットレートで、複数のTSパケットを複数のPSパケットに変換する。PSパケットは、2048Byteであり、ヘッダ部とデータ部とを含む。   The TS-PS converter 23 converts a plurality of TS packets into a plurality of PS packets at an arbitrary bit rate specified by the controller 25. The PS packet is 2048 bytes and includes a header part and a data part.

通信部24は、インターネット等の通信回線4を介して記録装置3と通信する。なお、通信回線4は、インターネットに限らず適宜変更可能である。   The communication unit 24 communicates with the recording device 3 via the communication line 4 such as the Internet. The communication line 4 is not limited to the Internet and can be changed as appropriate.

制御部25は、例えばCPUであり、プログラムを実行することによって種々の機能を実行し、録画サーバ2全体を制御する。   The control unit 25 is, for example, a CPU, executes various functions by executing a program, and controls the entire recording server 2.

例えば、制御部25は、チューナ21が受信した、MPEG2−TSを構成する複数のTSパケットを記憶部22に保存する。このとき、制御部25は、MPEG2−TSの中のTSパケットを、そのMPEG2−TSの中のTSパケットの位置を特定するTSパケット特定情報と、そのMPEG2−TSを特定する配信データ特定情報(番組コード)と、に関連づけて保存する。   For example, the control unit 25 stores a plurality of TS packets constituting the MPEG2-TS received by the tuner 21 in the storage unit 22. At this time, the control unit 25 determines the TS packet in the MPEG2-TS, TS packet specifying information for specifying the position of the TS packet in the MPEG2-TS, and distribution data specifying information for specifying the MPEG2-TS ( (Program code) and saved.

受信されたTSパケットにPSI/SI(MPEG2−TSで番組を特定する情報)が含まれていると、制御部25は、このPSI/SIをTSパケットから抽出し、このPSI/SIを、配信データ特定情報として用いてもよい。   If the received TS packet includes PSI / SI (information specifying a program in MPEG2-TS), the control unit 25 extracts the PSI / SI from the TS packet, and distributes the PSI / SI. It may be used as data specifying information.

なお、制御部25は、パケットの先頭でSync Byteという8bit固有の値(0x47 h)を検出すると、そのパケットがTSパケットであると認識する。   Note that when the control unit 25 detects an 8-bit unique value (0x47 h) called Sync Byte at the head of the packet, the control unit 25 recognizes that the packet is a TS packet.

また、制御部25は、TS−PS変換部23に、記憶部22に保存されたMPEG2−TSの中の複数のTSパケットを、互いに異なる複数のビットレートで、MPEG2−PSを構成する複数のPSパケットに変換させる。   Further, the control unit 25 causes the TS-PS conversion unit 23 to convert a plurality of TS packets in the MPEG2-TS stored in the storage unit 22 into a plurality of MPEG2-PSs having a plurality of different bit rates. It is converted into a PS packet.

また、制御部25は、TS−PS変換部23が変換したMPEG2−PS(複数のPSパケット)を、記憶部22に保存する。このとき、制御部25は、MPEG2−PSの中の各PSパケットを、そのMPEG2−PSの中のPSパケットの位置を特定するPSパケット特定情報と、TS−PS変換のビットレートと、そのMPEG2−PS(番組)を特定する配信データ特定情報(番組コード)と、に関連づけて保存する。   In addition, the control unit 25 stores the MPEG2-PS (a plurality of PS packets) converted by the TS-PS conversion unit 23 in the storage unit 22. At this time, the control unit 25 determines each PS packet in the MPEG2-PS, PS packet specifying information for specifying the position of the PS packet in the MPEG2-PS, a bit rate for TS-PS conversion, and the MPEG2 -Stored in association with distribution data specifying information (program code) specifying PS (program).

なお、制御部25は、パケットの先頭でpack start codeという32bit固有の値(00 00 01 BA h)を検出すると、そのパケットがPSパケットであると認識する。   When the control unit 25 detects a 32-bit unique value (00 00 01 BA h) called pack start code at the beginning of the packet, the control unit 25 recognizes that the packet is a PS packet.

また、制御部25は、通信部24が記録装置3から再送要求情報を受け付けると、その再送要求情報に応じたデータを、通信部24を介して記録装置3に送信する。   When the communication unit 24 receives retransmission request information from the recording device 3, the control unit 25 transmits data corresponding to the retransmission request information to the recording device 3 via the communication unit 24.

記録装置3は、例えば、家庭用ホームサーバあるいはデジタルレコーダであり、デジタル放送局1から送信された番組、すなわち、複数のTSパケットで構成されたMPEG2−TSを受信し、そのMPEG2−TSの中の複数のTSパケットをMPEG2−PSを構成する複数のPSパケットに変換し、その複数のPSパケットで構成されたMPEG2−PS(番組)を記録する。記録装置3は、MPEGデータの有用性をMPEG文法の観点から多段階でチェックする。   The recording device 3 is, for example, a home server for home use or a digital recorder. The recording device 3 receives a program transmitted from the digital broadcasting station 1, that is, an MPEG2-TS composed of a plurality of TS packets. Are converted into a plurality of PS packets constituting MPEG2-PS, and MPEG2-PS (program) composed of the plurality of PS packets is recorded. The recording device 3 checks the usefulness of MPEG data in multiple stages from the viewpoint of MPEG grammar.

記録装置3は、チューナ31と、TSエラー検出部32と、TS−PS変換部33と、PSエラー検出部34と、データエラー検出部35と、記録メディア36と、作業用メモリ37と、通信部38と、制御部39とを含む。   The recording apparatus 3 includes a tuner 31, a TS error detection unit 32, a TS-PS conversion unit 33, a PS error detection unit 34, a data error detection unit 35, a recording medium 36, a work memory 37, a communication A unit 38 and a control unit 39 are included.

チューナ31は、デジタル放送局1から送信された、MPEG2−TS(番組)を構成する複数のTSパケットを受信する。なお、チューナ31は、例えば、気象状態の影響により、TSパケットを正常に受信できない場合がある。   The tuner 31 receives a plurality of TS packets constituting the MPEG2-TS (program) transmitted from the digital broadcasting station 1. Note that the tuner 31 may not be able to normally receive TS packets due to, for example, the influence of weather conditions.

TSエラー検出部32は、第1検出部の一例であり、チューナ31が受信した各TSパケットでのエラーを検出する。   The TS error detection unit 32 is an example of a first detection unit, and detects an error in each TS packet received by the tuner 31.

例えば、TSエラー検出部32は、MPEG2−TS内の各TSパケットに記録された再生時刻が順番どおりになっていないと、順番が狂っているTSパケットでエラーが生じていると判断する。   For example, if the playback time recorded in each TS packet in MPEG2-TS is not in order, the TS error detection unit 32 determines that an error has occurred in the TS packet out of order.

または、TSエラー検出部32は、MPEG2−TS内の各TSパケットのヘッダに記録されたデータ長がTSパケット内の実際のデータ長と異なっていると、そのTSパケットでエラーが生じていると判断する。   Alternatively, if the data length recorded in the header of each TS packet in MPEG2-TS is different from the actual data length in the TS packet, the TS error detection unit 32 determines that an error has occurred in the TS packet. to decide.

TS−PS変換部(MPEGデコーダ)33は、チューナ31が受信した、MPEG2−TSの中の複数のTSパケット(送信用データ)を、MPEG2−PSを構成する複数のPSパケット(記録用データ)に変換する。   The TS-PS converter (MPEG decoder) 33 converts a plurality of TS packets (transmission data) in the MPEG2-TS received by the tuner 31 into a plurality of PS packets (recording data) constituting the MPEG2-PS. Convert to

TS−PS変換部33は、制御部39にて指定された任意のビットレートで、複数のTSパケットを複数のPSパケットに変換する。   The TS-PS converter 33 converts a plurality of TS packets into a plurality of PS packets at an arbitrary bit rate specified by the controller 39.

なお、TS−PS変換部33は、MPEG2−TS(複数のTSパケット)をMPEG2−PS(複数のPSパケット)に正常に変換できない場合がある。   The TS-PS converter 33 may not normally convert MPEG2-TS (a plurality of TS packets) to MPEG2-PS (a plurality of PS packets).

PSエラー検出部34は、第2検出部の一例であり、TS−PS変換部33が変換したMPEG2−PSの内の各PSパケットでのエラーを検出する。   The PS error detection unit 34 is an example of a second detection unit, and detects an error in each PS packet in the MPEG2-PS converted by the TS-PS conversion unit 33.

例えば、PSエラー検出部34は、MPEG2−PS内の各PSパケットのヘッダに記録された再生時刻が順番どおりになっていないと、順番が狂っているPSパケットでエラーが生じていると判断する。   For example, if the playback time recorded in the header of each PS packet in MPEG2-PS is not in order, the PS error detection unit 34 determines that an error has occurred in an out-of-order PS packet. .

または、PSエラー検出部34は、MPEG2−PS内の各PSパケットのヘッダに記録されたデータ長がPSパケット内の実際のデータ長と異なっていると、そのPSパケットでエラーが生じていると判断する。   Alternatively, if the data length recorded in the header of each PS packet in MPEG2-PS is different from the actual data length in the PS packet, the PS error detection unit 34 determines that an error has occurred in the PS packet. to decide.

データエラー検出部35は、第3検出部の一例であり、TS−PS変換部33が変換したMPEG2−PS内の各PSパケットのデータ部でのエラーを検出する。   The data error detector 35 is an example of a third detector, and detects an error in the data part of each PS packet in MPEG2-PS converted by the TS-PS converter 33.

記録メディア36は、例えば、HDDまたはDVD等の記録媒体である。   The recording medium 36 is a recording medium such as an HDD or a DVD, for example.

作業用メモリ37は、制御部39にて使用される。   The work memory 37 is used by the control unit 39.

通信部38は、通信回線4を介して録画サーバ2と通信する。   The communication unit 38 communicates with the recording server 2 via the communication line 4.

制御部39は、例えばメモリ等を含むCPUであり、記録装置3を特定するための記録装置識別番号を記憶し、また、プログラムを実行することによって種々の機能を実行し、記録装置3全体を制御する。   The control unit 39 is a CPU including a memory or the like, for example, stores a recording device identification number for specifying the recording device 3, executes various functions by executing a program, and controls the entire recording device 3. Control.

例えば、制御部39は、チューナ31が受信した、MPEG2−TSを構成する複数のTSパケットを作業用メモリ37に一時的に保存する。このとき、制御部39は、MPEG2−TSの中のTSパケットを、そのMPEG2−TSの中のTSパケットの位置を特定するTSパケット特定情報と、そのMPEG2−TS(番組)を特定する配信データ特定情報と、に関連づけて保存する。   For example, the control unit 39 temporarily stores, in the work memory 37, a plurality of TS packets constituting the MPEG2-TS received by the tuner 31. At this time, the control unit 39 determines the TS packet in the MPEG2-TS, TS packet specifying information for specifying the position of the TS packet in the MPEG2-TS, and distribution data for specifying the MPEG2-TS (program). Save it in association with specific information.

TSパケット特定情報としては、例えば、TSパケットヘッダにあるパケット識別子(PID)が用いられ、このパケット識別子は、制御部39によって、TSパケットヘッダから抽出される。   As the TS packet specifying information, for example, a packet identifier (PID) in the TS packet header is used, and this packet identifier is extracted from the TS packet header by the control unit 39.

配信データ特定情報としては、例えば、地上波データ放送等で流れてくるEPG等を基にした番組コードが用いられ、この番組コードは、制御部39によって、EPG等から抽出される。なお、制御部39は、受信されたTSパケットにPSI/SI(MPEG2−TSで番組を特定する情報)が含まれていると、このPSI/SIをTSパケットから抽出し、このPSI/SIを、配信データ特定情報として用いてもよい。   As the distribution data specifying information, for example, a program code based on EPG or the like flowing in terrestrial data broadcasting or the like is used, and this program code is extracted from the EPG or the like by the control unit 39. Note that if the received TS packet includes PSI / SI (information specifying a program in MPEG2-TS), the control unit 39 extracts the PSI / SI from the TS packet, and extracts the PSI / SI. It may be used as distribution data specifying information.

デジタル放送局1が送信したMPEG2−TSの各TSパケットに対して、録画サーバ2と記録装置3とで、同じTSパケット特定情報および配信データ特定情報が関連づけられる。   The same TS packet specifying information and distribution data specifying information are associated with each TS packet of MPEG2-TS transmitted by the digital broadcasting station 1 in the recording server 2 and the recording device 3.

なお、制御部39は、パケットの先頭でSync Byteという8bit固有の値(0x47 h)を検出すると、そのパケットがTSパケットであると認識する。   When the control unit 39 detects an 8-bit unique value (0x47 h) called Sync Byte at the head of the packet, the control unit 39 recognizes that the packet is a TS packet.

制御部39は、作業用メモリ37に保存されたMPEG2−TSのTSパケットを順次TSエラー検出部32に提供し、TSエラー検出部32に、各TSパケットでのエラーを検出させる。   The control unit 39 sequentially provides the TS packets of MPEG2-TS stored in the work memory 37 to the TS error detection unit 32, and causes the TS error detection unit 32 to detect an error in each TS packet.

制御部39は、TSエラー検出部32がエラーを検出すると、そのエラーが検出されたTSパケットを、通信部38を介して録画サーバ2から取り寄せる。   When the TS error detection unit 32 detects an error, the control unit 39 obtains the TS packet in which the error is detected from the recording server 2 via the communication unit 38.

制御部39は、そのエラーを含むTSパケットを、作業メモリ37上で、その取り寄せたTSパケットに変更した後、TS−PS変換部33に、それらTSパケットから構成されるMPEG2−TSを、複数のPSパケットから構成されるMPEG2−PSに変換させる。   The control unit 39 changes the TS packet including the error to the TS packet obtained in the working memory 37, and then transmits a plurality of MPEG2-TSs composed of the TS packets to the TS-PS conversion unit 33. It is converted into MPEG2-PS composed of PS packets.

制御部39は、TS−PS変換部33が変換した、複数のPSパケットからなるMPEG2−PSを作業用メモリ37に一時的に保存する。このとき、制御部39は、MPEG2−PSの中の各PSパケットを、そのMPEG2−PSの中のPSパケットの位置を特定するPSパケット特定情報と、TS−PS変換のビットレートと、そのMPEG2−PS(番組)を特定する配信データ特定情報と、に関連づけて保存する。   The control unit 39 temporarily stores in the work memory 37 the MPEG2-PS composed of a plurality of PS packets converted by the TS-PS conversion unit 33. At this time, the control unit 39 determines each PS packet in the MPEG2-PS, PS packet specifying information for specifying the position of the PS packet in the MPEG2-PS, the bit rate of TS-PS conversion, and the MPEG2 -Stored in association with distribution data specifying information for specifying PS (program).

PSパケット特定情報としては、PSパケットヘッダにパケット識別子(PID)が含まれていれば、そのパケット識別子が用いられ、このパケット識別子は、制御部39によって、PSパケットヘッダから抽出される。または、制御部39が、保存されるPSパケットがMPEG2−PSの中の何番目のパケットかを、カウンタ等を用いてカウントし、そのカウント値をPSパケット特定情報として用いてもよい。   As the PS packet specifying information, if a packet identifier (PID) is included in the PS packet header, the packet identifier is used. The packet identifier is extracted from the PS packet header by the control unit 39. Alternatively, the control unit 39 may count the number of PS packets stored in the MPEG2-PS using a counter or the like, and use the count value as PS packet specifying information.

MPEG2−PS(番組)を特定するための配信データ特定情報としては、例えば、地上波データ放送等で流れてくるEPG等を基にした番組コードが用いられ、この番組コードは、制御部39によって、EPG等から抽出される。   As distribution data specifying information for specifying MPEG2-PS (program), for example, a program code based on EPG or the like flowing in terrestrial data broadcasting or the like is used. , Extracted from EPG and the like.

同じPSパケットに対して、録画サーバ2と記録装置3とで、同じPSパケット特定情報、同じビットレートおよび同じ配信データ特定情報が関連づけられる。   The same PS packet identification information, the same bit rate, and the same distribution data identification information are associated with the same PS packet in the recording server 2 and the recording device 3.

なお、制御部39は、パケットの先頭でpack start codeという32bit固有の値(00 00 01 BA h)を検出すると、そのパケットがPSパケットであると認識する。   Note that when the control unit 39 detects a 32-bit unique value (00 00 01 BA h) called pack start code at the beginning of the packet, the control unit 39 recognizes that the packet is a PS packet.

制御部39は、作業用メモリ37に保存されたMPEG2−PSのPSパケットを順次PSエラー検出部34に提供し、PSエラー検出部34に、各PSパケットのヘッダ部でのエラーを検出させる。   The control unit 39 sequentially supplies the MPEG2-PS PS packets stored in the work memory 37 to the PS error detection unit 34, and causes the PS error detection unit 34 to detect an error in the header portion of each PS packet.

制御部39は、PSエラー検出部34がエラーを検出すると、そのエラーが検出されたPSパケットを、通信部38を介して録画サーバ2から取り寄せる。   When the PS error detection unit 34 detects an error, the control unit 39 obtains a PS packet in which the error is detected from the recording server 2 via the communication unit 38.

制御部39は、そのエラーを含むPSパケットを、作業用メモリ37上で、その取り寄せたPSパケットに変更する。その後、制御部39は、作業用メモリ37に保存されたMPEG2−PSのPSパケットを順次データエラー検出部35に提供し、データエラー検出部35に、各PSパケットのデータ部でのエラーを検出させる。   The control unit 39 changes the PS packet including the error to the acquired PS packet on the work memory 37. Thereafter, the control unit 39 sequentially provides the MPEG2-PS PS packets stored in the work memory 37 to the data error detection unit 35, and detects an error in the data portion of each PS packet. Let

制御部39は、データエラー検出部35がエラーを検出すると、データエラー検出部35の検出結果に応じて、録画サーバ2から取り寄せるデータ部の範囲を決定し、その決定された範囲のデータ部を録画サーバ2から取り寄せる。   When the data error detection unit 35 detects an error, the control unit 39 determines the range of the data portion to be obtained from the recording server 2 in accordance with the detection result of the data error detection unit 35, and the data portion within the determined range is determined. Order from the recording server 2.

制御部39は、作業用メモリ37上で、その取り寄せたデータ部に対応するデータ部を、その取り寄せたデータ部に変更する。その後、制御部39は、作業用メモリ37に保存されているMPEG2−PSを、記録メディア36に記録する。   The control unit 39 changes the data part corresponding to the acquired data part on the work memory 37 to the acquired data part. Thereafter, the control unit 39 records the MPEG2-PS stored in the work memory 37 on the recording medium 36.

次に、動作を説明する。   Next, the operation will be described.

図2は、記録装置3の動作を説明するためのフローチャートである。以下、図2を参照して、記録装置3を中心にして記録システムの動作を説明する。   FIG. 2 is a flowchart for explaining the operation of the recording apparatus 3. Hereinafter, the operation of the recording system will be described with reference to FIG.

デジタル放送局1が、複数のTSパケットで構成されたMPEG2−TS(番組)を無線送信すると、録画サーバ2および記録装置3は、そのMPEG2−TSを受信する。   When the digital broadcasting station 1 wirelessly transmits MPEG2-TS (program) composed of a plurality of TS packets, the recording server 2 and the recording device 3 receive the MPEG2-TS.

録画サーバ2では、チューナ21がデジタル放送局1から送信されたMPEG2−TSを受信すると、制御部25は、チューナ21が受信した、MPEG2−TSを構成する複数のTSパケットを記憶部22に保存する。このとき、制御部25は、MPEG2−TSの中のTSパケットを、TSパケット特定情報と、配信データ特定情報(番組コード)と、に関連づけて保存する。   In the recording server 2, when the tuner 21 receives the MPEG2-TS transmitted from the digital broadcasting station 1, the control unit 25 stores a plurality of TS packets constituting the MPEG2-TS received by the tuner 21 in the storage unit 22. To do. At this time, the control unit 25 stores the TS packet in the MPEG2-TS in association with the TS packet specifying information and the distribution data specifying information (program code).

続いて、制御部25は、TS−PS変換部23に、記憶部22に保存されたMPEG2−TSの中の複数のTSパケットを、互いに異なる複数のビットレートで、MPEG2−PSを構成する複数のPSパケットに変換させる。   Subsequently, the control unit 25 causes the TS-PS conversion unit 23 to convert a plurality of TS packets in the MPEG2-TS stored in the storage unit 22 into a plurality of MPEG2-PSs with a plurality of different bit rates. To PS packets.

続いて、制御部25は、TS−PS変換部23が変換したMPEG2−PS(複数のPSパケット)を、記憶部22に保存する。このとき、制御部25は、MPEG2−PSの中の各PSパケットを、PSパケット特定情報と、TS−PS変換のビットレートと、配信データ特定情報(番組コード)と、に関連づけて保存する。   Subsequently, the control unit 25 stores the MPEG2-PS (a plurality of PS packets) converted by the TS-PS conversion unit 23 in the storage unit 22. At this time, the control unit 25 stores each PS packet in MPEG2-PS in association with PS packet specifying information, a bit rate of TS-PS conversion, and distribution data specifying information (program code).

一方、記録装置3では、チューナ31がデジタル放送局1から送信されたMPEG2−TSを受信すると、制御部39は、チューナ31が受信した、MPEG2−TSを構成する複数のTSパケットを作業用メモリ37に一時的に保存する。このとき、制御部39は、MPEG2−TSの中のTSパケットを、TSパケット特定情報と、配信データ特定情報と、に関連づけて保存する。   On the other hand, in the recording apparatus 3, when the tuner 31 receives the MPEG2-TS transmitted from the digital broadcasting station 1, the control unit 39 stores a plurality of TS packets constituting the MPEG2-TS received by the tuner 31 in the working memory. 37 is temporarily stored. At this time, the control unit 39 stores the TS packet in the MPEG2-TS in association with the TS packet specifying information and the distribution data specifying information.

続いて、制御部39は、作業用メモリ37に保存されたMPEG2−TSのTSパケットを順次TSエラー検出部32に提供し、TSエラー検出部32に、各TSパケットでのエラーを検出させる。その後、制御部39は、ステップS101を実行する。   Subsequently, the control unit 39 sequentially provides the TS error detection unit 32 with the MPEG2-TS TS packets stored in the work memory 37, and causes the TS error detection unit 32 to detect an error in each TS packet. Then, the control part 39 performs step S101.

TSエラー検出部32は、エラーを有するTSパケットを検出すると、そのTSパケットのヘッダ部を制御部39に提供する。なお、TSパケットのヘッダ部には、Sync Byteが存在する。   When the TS error detection unit 32 detects a TS packet having an error, the TS error detection unit 32 provides the control unit 39 with a header portion of the TS packet. Note that Sync Byte exists in the header portion of the TS packet.

ステップS101では、制御部39は、TSエラー検出部32がエラーを検出したか否か判断する。具体的には、制御部39は、TSパケットのヘッダ部をTSエラー検出部32から受け付けたか否かを判断する。   In step S101, the control unit 39 determines whether the TS error detection unit 32 has detected an error. Specifically, the control unit 39 determines whether or not the header part of the TS packet has been received from the TS error detection unit 32.

制御部39は、TSエラー検出部32がエラーを検出すると、ステップS102を実行する。   When the TS error detection unit 32 detects an error, the control unit 39 executes Step S102.

一方、TSエラー検出部32がエラーを検出しないと、制御部39は、作業用メモリ37に保存された、MPEG2−TSを構成する複数のTSパケットを、TS−PS変換部33に提供し、TS−PS変換部33に、それら複数のTSパケットを、MPEG2−PSを構成する複数のPSパケットに変換させる。   On the other hand, if the TS error detection unit 32 does not detect an error, the control unit 39 provides the TS-PS conversion unit 33 with a plurality of TS packets constituting the MPEG2-TS stored in the work memory 37. The TS-PS conversion unit 33 converts the plurality of TS packets into a plurality of PS packets constituting MPEG2-PS.

このとき、制御部39は、不図示の入力部が利用者から受け付けた録画画像の精度情報(ビットレート)をTS−PS変換部33に提供し、TS−PS変換部33は、そのビットレートで、MPEG2−TS(複数のTSパケット)をMPEG2−PS(複数のPSパケット)にする。   At this time, the control unit 39 provides the TS-PS conversion unit 33 with the accuracy information (bit rate) of the recorded image received by the input unit (not shown) from the user, and the TS-PS conversion unit 33 provides the bit rate. Thus, MPEG2-TS (multiple TS packets) is changed to MPEG2-PS (multiple PS packets).

ステップS102では、制御部39は、まず、TSエラー検出部32から提供されたTSパケットのヘッダ部を有するTSパケットを、作業用メモリ37内のTSパケットの中から特定する。   In step S <b> 102, the control unit 39 first identifies a TS packet having a header part of the TS packet provided from the TS error detection unit 32 from among the TS packets in the working memory 37.

続いて、制御部39は、その特定されたTSパケットに関連づけられているTSパケット特定情報および配信データ特定情報(番組コード)を作業用メモリ37から読み出す。   Subsequently, the control unit 39 reads out TS packet specifying information and distribution data specifying information (program code) associated with the specified TS packet from the work memory 37.

続いて、制御部39は、そのTSパケット特定情報と、その配信データ特定情報(番組コード)と、記録装置3の記録装置識別番号と、Sync Byteと、を含む再送要求情報を、通信部38から録画サーバ2に送信する。   Subsequently, the control unit 39 sends the retransmission request information including the TS packet specifying information, the distribution data specifying information (program code), the recording device identification number of the recording device 3, and the Sync Byte to the communication unit 38. To the recording server 2.

録画サーバ2の制御部25は、通信部24が再送要求情報を受信すると、まず、再送要求情報中の記録装置識別番号が、記憶部22内の記録装置識別番号表に記載されているか判断し、その記録装置識別番号が録装置識別番号表に記載されていないと、処理を中止する。   When the communication unit 24 receives the retransmission request information, the control unit 25 of the recording server 2 first determines whether the recording device identification number in the retransmission request information is described in the recording device identification number table in the storage unit 22. If the recording device identification number is not described in the recording device identification number table, the processing is stopped.

その記録装置識別番号が記録装置識別番号表に記載されていると、制御部25は、再送要求情報中のSync Byteに基づいて、再送要求されたデータの形式がTSパケットであると判断する。   When the recording device identification number is described in the recording device identification number table, the control unit 25 determines that the format of the data requested for retransmission is a TS packet based on the Sync Byte in the retransmission request information.

続いて、制御部25は、記憶部22内で再送要求情報中の配信データ特定情報(番組コード)に関連づけられている複数のTSパケット(MPEG2−TS)の中から、再送要求情報中のTSパケット特定情報に関連づけられているTSパケットを、記憶部22から読み出す。   Subsequently, the control unit 25 selects a TS in the retransmission request information from among a plurality of TS packets (MPEG2-TS) associated with the distribution data specifying information (program code) in the retransmission request information in the storage unit 22. The TS packet associated with the packet specifying information is read from the storage unit 22.

続いて、制御部25は、その読み出されたTSパケットを、通信部24から、再送要求情報中の記録装置識別番号が付与された記録装置3に送信する。   Subsequently, the control unit 25 transmits the read TS packet from the communication unit 24 to the recording device 3 assigned with the recording device identification number in the retransmission request information.

記録装置3の制御部39は、通信部38が録画サーバ2からTSパケットを受信すると、作業メモリ37において、エラーを含むTSパケットを、その受信されたTSパケットに変更する。よって、エラーを含むTSパケットが、1パケットずつ変更される。   When the communication unit 38 receives the TS packet from the recording server 2, the control unit 39 of the recording device 3 changes the TS packet including the error to the received TS packet in the working memory 37. Therefore, TS packets containing errors are changed one packet at a time.

続いて、制御部39は、TS−PS変換部33に、作業メモリ37内のMPEG2−TSを構成する複数のTSパケットを提供して、TS−PS変換部33に、複数のTSパケットを、MPEG2−PSを構成する複数のPSパケットに変換させる。このとき、制御部39は、不図示の入力部が利用者から受け付けた録画画像の精度情報(ビットレート)をTS−PS変換部33に提供し、TS−PS変換部33は、そのビットレートで、複数のTSパケットを複数のPSパケットにする。   Subsequently, the control unit 39 provides the TS-PS conversion unit 33 with a plurality of TS packets constituting the MPEG2-TS in the working memory 37, and sends the TS-PS conversion unit 33 with the plurality of TS packets. It is converted into a plurality of PS packets constituting MPEG2-PS. At this time, the control unit 39 provides the TS-PS conversion unit 33 with the accuracy information (bit rate) of the recorded image received by the input unit (not shown) from the user, and the TS-PS conversion unit 33 provides the bit rate. Thus, a plurality of TS packets are converted into a plurality of PS packets.

続いて、制御部39は、TS−PS変換部33が変換したMPEG2−PSを構成する複数のPSパケットを、作業用メモリ37に一時的に保存する。このとき、制御部39は、MPEG2−PSの中の各PSパケットを、PSパケット特定情報と、TS−PS変換のビットレートと、配信データ特定情報(番組コード)と、に関連づけて保存する。   Subsequently, the control unit 39 temporarily stores a plurality of PS packets constituting the MPEG2-PS converted by the TS-PS conversion unit 33 in the work memory 37. At this time, the control unit 39 stores each PS packet in MPEG2-PS in association with the PS packet specifying information, the bit rate of TS-PS conversion, and the distribution data specifying information (program code).

続いて、制御部39は、作業用メモリ37に保存されたMPEG2−PSのPSパケットを順次PSエラー検出部34に提供し、PSエラー検出部34に、各PSパケットのヘッダ部でのエラーを検出させる。その後、制御部39は、ステップS103を実行する。   Subsequently, the control unit 39 sequentially provides the PS error detection unit 34 with the MPEG2-PS PS packets stored in the work memory 37, and notifies the PS error detection unit 34 of errors in the header portion of each PS packet. Let it be detected. Then, the control part 39 performs step S103.

PSエラー検出部34は、エラーを有するPSパケットを検出すると、そのPSパケットのヘッダ部を制御部39に提供する。なお、PSパケットのヘッダ部には、pack start codeが存在する。   When the PS error detection unit 34 detects a PS packet having an error, the PS error detection unit 34 provides the header of the PS packet to the control unit 39. Note that pack start code is present in the header portion of the PS packet.

ステップS103では、制御部39は、PSエラー検出部34がエラーを検出したか否か判断する。具体的には、制御部39は、PSパケットのヘッダ部をPSエラー検出部34から受け付けたか否かを判断する。   In step S103, the control unit 39 determines whether the PS error detection unit 34 has detected an error. Specifically, the control unit 39 determines whether or not the header part of the PS packet has been received from the PS error detection unit 34.

制御部39は、PSエラー検出部34がエラーを検出すると、ステップS104を実行する。   When the PS error detection unit 34 detects an error, the control unit 39 executes Step S104.

一方、PSエラー検出部34がエラーを検出しないと、制御部39は、作業用メモリ37に保存されたMPEG2−PSのPSパケットを順次データエラー検出部35に提供し、データエラー検出部35に、各PSパケットのデータ部でのエラーを検出させる。   On the other hand, if the PS error detection unit 34 does not detect an error, the control unit 39 sequentially provides the MPEG2-PS PS packets stored in the work memory 37 to the data error detection unit 35 and supplies the data error detection unit 35 with the data. The error in the data part of each PS packet is detected.

ステップS104では、制御部39は、まず、PSエラー検出部34から提供されたPSパケットのヘッダ部を有するPSパケットを、作業用メモリ37内のPSパケットの中から特定する。   In step S <b> 104, the control unit 39 first specifies a PS packet having the header part of the PS packet provided from the PS error detection unit 34 from among the PS packets in the working memory 37.

続いて、制御部39は、その特定されたPSパケットに関連づけられているPSパケット特定情報、ビットレートおよび配信データ特定情報(番組コード)を作業用メモリ37から読み出す。   Subsequently, the control unit 39 reads PS packet specifying information, bit rate, and distribution data specifying information (program code) associated with the specified PS packet from the work memory 37.

続いて、制御部39は、そのPSパケット特定情報と、そのビットレートと、その配信データ特定情報(番組コード)と、記録装置3の記録装置識別番号と、pack start codeと、を含む再送要求情報を、通信部38から録画サーバ2に送信する。   Subsequently, the control unit 39 sends a retransmission request including the PS packet specifying information, the bit rate, the distribution data specifying information (program code), the recording device identification number of the recording device 3, and the pack start code. Information is transmitted from the communication unit 38 to the recording server 2.

録画サーバ2の制御部25は、通信部24が再送要求情報を受信すると、まず、再送要求情報中の記録装置識別番号が記録装置識別番号表に記載されているか判断し、その記録装置識別番号が記載されていないと、処理を中止する。   When the communication unit 24 receives the retransmission request information, the control unit 25 of the recording server 2 first determines whether the recording device identification number in the retransmission request information is described in the recording device identification number table, and the recording device identification number. If is not described, processing is stopped.

その記録装置識別番号が記載されていると、制御部25は、再送要求情報中のpack start codeに基づいて、再送要求されたデータの形式がPSパケットであると判断する。   If the recording device identification number is described, the control unit 25 determines that the format of the data requested for retransmission is a PS packet based on the pack start code in the retransmission request information.

続いて、制御部25は、記憶部22内で再送要求情報中の配信データ特定情報(番組コード)に関連づけられている複数のPSパケット(MPEG2−PS)の中から、再送要求情報中のPSパケット特定情報およびビットレートに関連づけられているPSパケットを、記憶部22から読み出す。   Subsequently, the control unit 25 selects a PS in the retransmission request information from among a plurality of PS packets (MPEG2-PS) associated with the distribution data specifying information (program code) in the retransmission request information in the storage unit 22. The PS packet associated with the packet identification information and the bit rate is read from the storage unit 22.

続いて、制御部25は、その読み出されたPSパケットを、通信部24から、再送要求情報中の記録装置識別番号が付与された記録装置3に送信する。   Subsequently, the control unit 25 transmits the read PS packet from the communication unit 24 to the recording device 3 assigned with the recording device identification number in the retransmission request information.

記録装置3の制御部39は、通信部38が録画サーバ2からPSパケットを受信すると、作業メモリ37において、エラーを含むPSパケットを、その受信されたPSパケットに変更する。   When the communication unit 38 receives the PS packet from the recording server 2, the control unit 39 of the recording device 3 changes the PS packet including the error to the received PS packet in the work memory 37.

続いて、制御部39は、ステップS105を実行して、作業用メモリ37に保存されたMPEG2−PSのPSパケットを順次データエラー検出部35に提供し、データエラー検出部35に、各PSパケットのデータ部でのエラーを検出させる。   Subsequently, the control unit 39 executes step S105 to sequentially provide the MPEG2-PS PS packets stored in the working memory 37 to the data error detection unit 35, and to the data error detection unit 35, each PS packet. An error is detected in the data part.

データエラー検出部35のチェック範囲は、PSパケットのデータ部のVideoおよびAudio Elementary Stream(以下「Video ES」または「Audio ES」と称する。)である。   The check range of the data error detection unit 35 is Video and Audio Elementary Stream (hereinafter referred to as “Video ES” or “Audio ES”) of the data portion of the PS packet.

データエラー検出部35は、エラーを発見した場合、エラー状態情報と、エラー範囲情報と、を制御部39に提供する。   When the data error detection unit 35 finds an error, the data error detection unit 35 provides the control unit 39 with error state information and error range information.

エラー状態情報は、発見されたエラーの内容に応じて変更される。本実施例では、エラー状態情報として、全データに影響するエラーが発見されると、全MPEGデータのエラーを示す全データエラー情報が使用され、1つのフレームに影響するエラーが発見されると、フレーム分のMPEGデータのエラーを示すフレームエラー情報が使用され、1つのスライスに影響するエラーが発見されると、スライス分のMPEGデータのエラーを示すスライスエラー情報が使用される。   The error status information is changed according to the content of the found error. In this embodiment, when an error affecting all data is found as error status information, all data error information indicating an error of all MPEG data is used, and when an error affecting one frame is found, Frame error information indicating an error in MPEG data for a frame is used, and when an error affecting one slice is found, slice error information indicating an error in MPEG data for a slice is used.

エラー範囲情報も、発見されたエラーの内容に応じて変更される。本実施例では、エラー範囲情報として、全データに影響するエラーが発見されると、全フレームを含む全データを指定する全データ指定情報が使用され、1つのフレームに影響するエラーが発見されると、その1つのフレームを指定するフレーム指定情報(例えば、そのフレームの再生順を示す番号)が使用され、1つのスライスに影響するエラーが発見されると、その1つのスライスを指定するスライス指定情報(例えば、そのスライスが存在するフレームの再生順を示す番号、および、そのスライスの再生順を示す番号)が使用される。   The error range information is also changed according to the content of the detected error. In this embodiment, when an error that affects all data is found as error range information, all data specifying information that specifies all data including all frames is used, and an error that affects one frame is found. Frame designation information (for example, a number indicating the playback order of the frames) is used, and when an error affecting one slice is found, the slice designation for designating the one slice is used. Information (for example, a number indicating the playback order of the frame in which the slice exists and a number indicating the playback order of the slice) is used.

制御部39は、データエラー検出部35からエラー状態情報とエラー範囲情報を受け付けないと、つまり、データエラー検出部35がエラーを検出しないと、作業用メモリ37に保存されたMPEG2−PSを記録メディア36に記録する。   If the control unit 39 does not receive the error state information and error range information from the data error detection unit 35, that is, if the data error detection unit 35 does not detect an error, the control unit 39 records the MPEG2-PS stored in the work memory 37. Recorded on the media 36.

一方、制御部39は、データエラー検出部35から、エラー状態情報とエラー範囲情報を受け付けると、まず、エラー範囲情報を格納し、続いて、作業用メモリ37からPSパケットに関連づけられたビットレートおよび配信データ特定情報(番組コード)を読み出す。   On the other hand, when the control unit 39 receives the error status information and the error range information from the data error detection unit 35, the control unit 39 first stores the error range information, and then the bit rate associated with the PS packet from the work memory 37. And distribution data specific information (program code) is read.

続いて、制御部39は、そのビットレートと、その配信データ特定情報(番組コード)と、記録装置3の記録装置識別番号と、pack start codeと、データエラー検出部35から提供されたエラー状態情報およびエラー範囲情報と、を含む再送要求情報を、通信部38から録画サーバ2に送信する。   Subsequently, the control unit 39 determines the bit rate, the distribution data specifying information (program code), the recording device identification number of the recording device 3, the pack start code, and the error status provided from the data error detection unit 35. Retransmission request information including information and error range information is transmitted from the communication unit 38 to the recording server 2.

録画サーバ2の制御部25は、通信部24が再送要求情報を受信すると、まず、再送要求情報中の記録装置識別番号が、記録装置識別番号表に記載されているか判断し、その記録装置識別番号が記載されていないと処理を中止する。   When the communication unit 24 receives the retransmission request information, the control unit 25 of the recording server 2 first determines whether the recording device identification number in the retransmission request information is described in the recording device identification number table, and the recording device identification. If the number is not listed, the process is stopped.

その記録装置識別番号が記載されていると、制御部25は、再送要求情報中のpack start codeに基づいて、再送要求されたデータの形式がPSパケットであると判断し、記憶部22内で再送要求情報中の配信データ特定情報(番組コード)に関連づけられている複数のPSパケット(MPEG2−PS)の中から、再送要求情報中のビットレートに関連づけられている複数のPSパケットを特定する。   When the recording device identification number is described, the control unit 25 determines that the format of the data requested to be retransmitted is a PS packet based on the pack start code in the retransmission request information, and stores it in the storage unit 22. A plurality of PS packets associated with the bit rate in the retransmission request information are identified from among a plurality of PS packets (MPEG2-PS) associated with the distribution data identification information (program code) in the retransmission request information. .

続いて、制御部25は、その特定された複数のPSパケットのVideo ESを参照し、再送要求情報中のエラー状態情報およびエラー範囲情報に基づいて、送信すべきデータを特定する。   Subsequently, the control unit 25 refers to the Video ES of the identified plurality of PS packets, and identifies data to be transmitted based on the error state information and error range information in the retransmission request information.

例えば、エラー状態情報が全データエラー情報で、エラー範囲情報が全データ指定情報の場合、制御部25は、その特定された複数のPSパケットの全データを、送信すべきデータとして特定する。   For example, when the error status information is all data error information and the error range information is all data designation information, the control unit 25 specifies all the data of the specified plurality of PS packets as data to be transmitted.

また、エラー情報がフレームエラー情報で、エラー範囲情報がフレーム指定情報の場合、制御部25は、その特定された複数のPSパケット中の、フレーム指定情報にて指定されたフレームを、送信すべきデータとして特定する。   In addition, when the error information is frame error information and the error range information is frame designation information, the control unit 25 should transmit the frame designated by the frame designation information in the plurality of specified PS packets. Identify as data.

また、エラー情報がスライスエラー情報で、エラー範囲情報がスライス指定情報の場合、制御部25は、その特定された複数のPSパケット中の、スライス指定情報にて指定されたスライスを、送信すべきデータとして特定する。   Further, when the error information is slice error information and the error range information is slice designation information, the control unit 25 should transmit the slice designated by the slice designation information in the plurality of identified PS packets. Identify as data.

続いて、制御部25は、その特定されたデータをデータ再送情報とともに、通信部24から、再送要求情報中の記録装置識別番号が付与された記録装置3に送信する。   Subsequently, the control unit 25 transmits the specified data together with the data retransmission information from the communication unit 24 to the recording device 3 assigned with the recording device identification number in the retransmission request information.

記録装置3の制御部39は、通信部38が録画サーバ2から、データ再送情報とともにデータを受信すると、作業用メモリ37内のPSパケットのVideo ESにおいて、エラー範囲情報にて規定されたデータを、その受信されたデータに変更する。   When the communication unit 38 receives data together with the data retransmission information from the recording server 2, the control unit 39 of the recording device 3 transmits the data specified by the error range information in the Video ES of the PS packet in the work memory 37. , Change to that received data.

続いて、制御部39は、作業メモリ37中の複数のPSパケット(MPEG2−PS)を記録メディア36に記録する。   Subsequently, the control unit 39 records a plurality of PS packets (MPEG2-PS) in the working memory 37 on the recording medium 36.

図3は、データエラー検出部35の動作の一例を説明するためのフローチャートである。以下、図3を参照して、データエラー検出部35の動作の一例を説明する。   FIG. 3 is a flowchart for explaining an example of the operation of the data error detection unit 35. Hereinafter, an example of the operation of the data error detection unit 35 will be described with reference to FIG.

ステップS201では、データエラー検出部35は、シーケンススタートコード(000001B3)が正常か、具体的には、シーケンススタートコードがあるか判断し、シーケンススタートコードがないと、ステップS202を実行し、シーケンススタートコードがあると、ステップS203を実行する。   In step S201, the data error detection unit 35 determines whether the sequence start code (000001B3) is normal, specifically, the presence of the sequence start code. If there is no sequence start code, the data error detection unit 35 executes step S202 to start the sequence. If there is a code, step S203 is executed.

ステップS202では、データエラー検出部35は、エラー状態情報である全データエラー情報と、エラー範囲情報である全データ指定情報と、を制御部39に提供する。   In step S202, the data error detection unit 35 provides the control unit 39 with all data error information that is error state information and all data designation information that is error range information.

一方、ステップS203では、データエラー検出部35は、シーケンスエクステンションデータ(000001B5)が正常か、具体的には、シーケンスエクステンションデータがあるか判断し、シーケンスエクステンションデータがないと、ステップS202を実行し、シーケンスエクステンションデータがあると、ステップS204を実行する。   On the other hand, in step S203, the data error detection unit 35 determines whether the sequence extension data (000001B5) is normal, specifically, whether there is sequence extension data. If there is no sequence extension data, the data error detection unit 35 executes step S202. If there is sequence extension data, step S204 is executed.

ステップS204では、データエラー検出部35は、ピクチャースタートコード(00000100)が正常か判断し、ピクチャースタートコードが正常でないと、ステップS205を実行し、ピクチャースタートコードが正常であると、ステップS206を実行する。   In step S204, the data error detection unit 35 determines whether the picture start code (00000100) is normal. If the picture start code is not normal, step S205 is executed. If the picture start code is normal, step S206 is executed. To do.

例えば、データエラー検出部35は、以下のようにして、ピクチャースタートコードが正常か否かを判断する。   For example, the data error detection unit 35 determines whether or not the picture start code is normal as follows.

データエラー検出部35は、ピクチャースタートコードを検出するたびに、ピクチャー数をカウントしていく。このピクチャー数は、ピクチャーの再生順を示す。   The data error detector 35 counts the number of pictures each time a picture start code is detected. The number of pictures indicates the playback order of pictures.

データエラー検出部35は、ピクチャースタートコードが現れるべき場所にピクチャースタートコードが現れないと、そのカウントしたピクチャー数に1を加えた数が再生順となっているピクチャーが異常である、換言すると、そのピクチャーのピクチャースタートコードが異常であると判断する。   If the picture start code does not appear at the place where the picture start code should appear, the data error detection unit 35 is abnormal in the picture in which the number obtained by adding 1 to the counted number of pictures is in order of reproduction. It is determined that the picture start code of the picture is abnormal.

ステップS205では、データエラー検出部35は、エラー状態情報であるフレームエラー情報と、エラー範囲情報であるフレーム指定情報(具体的には、カウントしたピクチャー数に1を加えた数を再生順として示すピクチャー再生順番号)と、を制御部39に提供する。   In step S205, the data error detection unit 35 indicates frame error information that is error state information and frame designation information that is error range information (specifically, a number obtained by adding 1 to the counted number of pictures as a reproduction order). The picture reproduction order number) is provided to the control unit 39.

ステップS206では、データエラー検出部35は、スライススタートコード(00000101〜000001AF)が正常か判断し、スライススタートコードが正常でないと、ステップS207を実行し、スライススタートコードが正常であると、ステップS208を実行する。   In step S206, the data error detection unit 35 determines whether the slice start code (00000101 to 000001AF) is normal. If the slice start code is not normal, the data error detection unit 35 executes step S207. If the slice start code is normal, step S208 is performed. Execute.

例えば、データエラー検出部35は、以下のようにして、スライススタートコードが正常か否かを判断する。   For example, the data error detection unit 35 determines whether the slice start code is normal as follows.

データエラー検出部35は、スライススタートコードを検出するたびに、スライス数をカウントしていく。データエラー検出部35は、n番目のスライススタートコードが検出されず、n+1番目のスライススタートコードが検出されると、(n−1+1)番目(つまりn番目)のスライスが異常である、換言すると、n番目のスライスのスライススタートコードが異常であると判断する。   The data error detector 35 counts the number of slices each time a slice start code is detected. If the nth slice start code is not detected and the (n + 1) th slice start code is detected, the data error detection unit 35 detects that the (n-1 + 1) th (that is, nth) slice is abnormal. , It is determined that the slice start code of the nth slice is abnormal.

ステップS207では、データエラー検出部35は、エラー状態情報であるスライスエラー情報と、エラー範囲情報であるスライス指定情報(具体的には、カウントしたピクチャー数に1を加えた数を再生順として示すピクチャー再生順番号と、カウントしたスライス数に1を加えた数を再生順として示すスライス再生順番号)と、を制御部39に提供する。   In step S207, the data error detection unit 35 indicates slice error information that is error state information and slice designation information that is error range information (specifically, the number obtained by adding 1 to the counted number of pictures as the playback order). A picture reproduction order number and a slice reproduction order number indicating a number obtained by adding 1 to the counted number of slices as a reproduction order) are provided to the control unit 39.

ステップS208では、データエラー検出部35は、スライス数に矛盾は無いか判断し、スライス数に矛盾があると、ステップS207を実行し、スライス数に矛盾がないと、ステップS209を実行する。   In step S208, the data error detection unit 35 determines whether there is a contradiction in the number of slices. If there is a contradiction in the number of slices, the data error detection unit 35 executes step S207, and if there is no contradiction in the number of slices, executes step S209.

例えば、データエラー検出部35は、最後のスライススタートコードが検出されず、次のピクチャースタートコードが検出された場合、スライス数に矛盾があると判断する。   For example, if the last slice start code is not detected and the next picture start code is detected, the data error detection unit 35 determines that the number of slices is inconsistent.

なお、スライス数は元々MPEG2のカテゴリにより決められているため、データエラー検出部35等のMPEGチェックツールは、カウントしたスライス数が規定数と同一かを判断可能である。   Since the number of slices is originally determined by the category of MPEG2, the MPEG check tool such as the data error detection unit 35 can determine whether the counted number of slices is the same as the specified number.

この場合、ステップS207では、データエラー検出部35は、スライス指定情報として、カウントしたピクチャー数に1を加えた数を再生順として示すピクチャー再生順番号と、規定された最後のスライス番号を再生順として示すスライス再生順番号と、を用いる。   In this case, in step S207, the data error detection unit 35 uses, as the slice designation information, the picture playback order number indicating the number of counted pictures plus 1 as the playback order, and the specified last slice number in the playback order. And a slice reproduction order number shown as follows.

ステップS209では、データエラー検出部35は、マクロブロック数に矛盾は無いか判断し、マクロブロック数に矛盾があると、ステップS207を実行し、マクロブロック数に矛盾がないと、ステップS210を実行する。   In step S209, the data error detection unit 35 determines whether there is a contradiction in the number of macroblocks. If there is a contradiction in the number of macroblocks, step S207 is executed. If there is no contradiction in the number of macroblocks, step S210 is executed. To do.

例えば、データエラー検出部35は、マクロブロック数をカウントしていき、そのマクロクロック数が、シーケンススタートコードに示された画サイズにて規定される上限値を超えた場合、マクロブロック数に矛盾があると判断する。   For example, the data error detection unit 35 counts the number of macroblocks, and if the number of macroclocks exceeds the upper limit value defined by the image size indicated in the sequence start code, the data error detection unit 35 contradicts the number of macroblocks. Judge that there is.

この場合、ステップS207では、データエラー検出部35は、スライス指定情報として、カウントしたピクチャー数に1を加えた数を再生順として示すピクチャー再生順番号と、カウントしたスライス数を再生順として示すスライス再生順番号と、を使用する。   In this case, in step S207, the data error detection unit 35 uses the picture reproduction order number indicating the number obtained by adding 1 to the counted picture number as the reproduction order as the slice designation information, and the slice indicating the counted number of slices as the reproduction order. Use playback order number.

ステップS210では、データエラー検出部35は、MPEGデータに問題なしと判断して動作を終了する。   In step S210, the data error detection unit 35 determines that there is no problem in the MPEG data and ends the operation.

本実施例によれば、制御部39は、TSパケットでエラーが検出されると、エラーが検出されたTSパケットを取得し、PSパケットでエラーが検出されると、エラーが検出されたPSパケットを取得する。このため、PSパケットにエラーが生じても、必要なデータのみが取得され、エラーを含むデータの補完を高速で行うことが可能になる。   According to the present embodiment, when an error is detected in the TS packet, the control unit 39 acquires the TS packet in which the error is detected, and when an error is detected in the PS packet, the PS packet in which the error is detected. To get. For this reason, even if an error occurs in the PS packet, only necessary data is acquired, and data including the error can be complemented at high speed.

また、本実施例では、制御部39は、データエラー検出部35が検出したエラーの内容により、録画サーバ2から取り寄せるデータの範囲を決定する。必要となるデータの量は、エラーの内容に応じて変動する。例えば、データ全般に影響を及ぼすエラーであると、データ全体を取り寄せる必要があるが、一部のデータにのみ影響を及ぼすエラーであると、その一部のデータのみを取り寄せればよくなる。   In this embodiment, the control unit 39 determines the range of data to be obtained from the recording server 2 based on the error content detected by the data error detection unit 35. The amount of data required varies depending on the content of the error. For example, if the error affects all data, the entire data needs to be obtained. If the error affects only a part of the data, only the part of the data needs to be obtained.

このため、PSパケットにエラーが生じても、必要なデータのみを取得することが可能になり、エラーを含むデータの補完を高速で行うことが可能になる。   For this reason, even if an error occurs in the PS packet, only necessary data can be acquired, and data including the error can be complemented at high speed.

また、本実施例では、制御部25は、通信部24が記録装置3から再送要求情報を受け付けると、その再送要求情報に応じたデータを、通信部24を介して記録装置3に送信する。このため、録画サーバ2は、記録装置3が必要とするデータを適切に配信することが可能になる。   In the present embodiment, when the communication unit 24 receives retransmission request information from the recording device 3, the control unit 25 transmits data corresponding to the retransmission request information to the recording device 3 via the communication unit 24. For this reason, the recording server 2 can appropriately distribute the data required by the recording device 3.

以上説明した実施例において、図示した構成は単なる一例であって、本発明はその構成に限定されるものではない。   In the embodiment described above, the illustrated configuration is merely an example, and the present invention is not limited to the configuration.

例えば、録画サーバ2の記憶部22には、常にMPEG2−PSが保存されなくてもよい。この場合、制御部25は、TS−PS変換部23を用いて、記録装置3から受け付けた再送要求情報に示されたビットレートで記憶部22のMPEG2−TSの複数のTSパケットを複数のPSパケットからなるMPEG2−PSに変換し、そのMPEG2−PSを記憶部22に保存し、その後、記憶部22に保存されたMPEG2−PSの複数のPSパケットの中から送信用データを特定する。   For example, the MPEG2-PS does not always have to be stored in the storage unit 22 of the recording server 2. In this case, the control unit 25 uses the TS-PS conversion unit 23 to convert a plurality of MPEG2-TS TS packets of the storage unit 22 into a plurality of PSs at the bit rate indicated in the retransmission request information received from the recording device 3. The data is converted into MPEG2-PS composed of packets, the MPEG2-PS is stored in the storage unit 22, and then transmission data is specified from a plurality of MPEG2-PS PS packets stored in the storage unit 22.

また、録画サーバ2は、1台とは限らず、複数台でもよい。また、録画サーバ2は、放送局が用意するような予備サーバではなく、他人が使用している家庭用ホームサーバあるいはデジタルレコーダでもよい。   Further, the recording server 2 is not limited to one, and a plurality of recording servers may be used. The recording server 2 is not a spare server prepared by a broadcasting station, but may be a home server for home or a digital recorder used by another person.

また、放送局から送信される放送は、デジタル放送のみならず、アナログ放送でもよい。この場合、放送局から伝送されるデータはベースバンドであるため、記録装置3はチューナの後段にMPEG2エンコーダを有し、記録装置3が再送要求情報を送信する機器は、チューナの後段に記録装置3と同一のMPEG2エンコーダを有する家庭用ホームサーバ、デジタルレコーダまたは録画サーバとなる。   The broadcast transmitted from the broadcast station may be not only digital broadcast but also analog broadcast. In this case, since the data transmitted from the broadcasting station is baseband, the recording apparatus 3 has an MPEG2 encoder at the rear stage of the tuner, and the apparatus to which the recording apparatus 3 transmits retransmission request information is the recording apparatus at the rear stage of the tuner. 3 is a home server for home use, a digital recorder, or a recording server having the same MPEG2 encoder as that in FIG.

また、記録装置3を販売している会社が、このサービスを提供してもよい。この場合、その会社が販売した記録装置3には、同じデータが確保される。   A company that sells the recording device 3 may provide this service. In this case, the same data is secured in the recording device 3 sold by the company.

また、TSエラー検出部32とPSエラー検出部34とデータエラー検出部35は、TS−PS変換部33とともに、ハードウェアにて構成されてもよく、また、TSエラー検出部32とPSエラー検出部34とデータエラー検出部35は、ソフトウェア(プログラム)にて制御部39内で実現されてもよい。   The TS error detection unit 32, the PS error detection unit 34, and the data error detection unit 35 may be configured by hardware together with the TS-PS conversion unit 33, and the TS error detection unit 32 and the PS error detection The unit 34 and the data error detection unit 35 may be realized in the control unit 39 by software (program).

本発明の一実施例の記録システムを示したブロック図である。It is the block diagram which showed the recording system of one Example of this invention. 記録装置3の動作を説明するためのフローチャートである。4 is a flowchart for explaining the operation of the recording apparatus 3. データエラー検出部35の動作の一例を説明するためのフローチャートである。5 is a flowchart for explaining an example of an operation of a data error detection unit 35.

符号の説明Explanation of symbols

1 デジタル放送局
2 録画サーバ
21 チューナ
22 記憶部
23 TS−PS変換部
24 通信部
25 制御部
3 記録装置
31 チューナ
32 TSエラー検出部
33 TS−PS変換部
34 PSエラー検出部
35 データエラー検出部
36 記録メディア
37 作業用メモリ
38 通信部
39 制御部
4 通信回線
DESCRIPTION OF SYMBOLS 1 Digital broadcasting station 2 Recording server 21 Tuner 22 Memory | storage part 23 TS-PS conversion part 24 Communication part 25 Control part 3 Recording apparatus 31 Tuner 32 TS error detection part 33 TS-PS conversion part 34 PS error detection part 35 Data error detection part 36 Recording media 37 Work memory 38 Communication unit 39 Control unit 4 Communication line

Claims (6)

コンテンツを形成する複数の送信用データを送信する所定配信装置と、前記複数の送信用データおよび該複数の送信用データから変換された複数の記録用データを送信可能な特定配信装置と、に通信可能な記録装置であって、
前記所定配信装置から前記複数の送信用データを受信する受信部と、
前記特定配信装置と通信して前記複数の送信用データおよび前記記録用データを取得する通信部と、
前記受信部が受信した複数の送信用データを前記複数の記録用データに変換する変換部と、
前記複数の記録用データを記録する記録媒体と、
前記受信部が受信した各送信用データでのエラーを検出する第1検出部と、
前記変換部が変換した各記録用データでのエラーを検出する第2検出部と、
前記第1検出部が前記エラーを検出すると、前記特定配信装置から該エラーが検出された送信用データに対応する送信用データを前記通信部を介して取得し、該エラーを含む送信用データを該取得した送信用データに変更した後、前記変換部に前記変換を実行させ、前記第2検出部が前記エラーを検出すると、該特定配信装置から該エラーが検出された記録用データに対応する記録用データを該通信部を介して取得し、該エラーを含む記録用データを該取得した記録用データに変更した後、前記複数の記録用データを前記記録媒体に記録する制御部と、を含む記録装置。
Communicating to a predetermined distribution device that transmits a plurality of transmission data that forms content, and a specific distribution device that can transmit the plurality of transmission data and a plurality of recording data converted from the plurality of transmission data A possible recording device,
A receiving unit that receives the plurality of transmission data from the predetermined distribution device;
A communication unit that communicates with the specific delivery device to obtain the plurality of transmission data and the recording data;
A conversion unit that converts the plurality of transmission data received by the reception unit into the plurality of recording data;
A recording medium for recording the plurality of recording data;
A first detector for detecting an error in each transmission data received by the receiver;
A second detection unit for detecting an error in each recording data converted by the conversion unit;
When the first detection unit detects the error, the transmission data corresponding to the transmission data in which the error is detected is acquired from the specific distribution device via the communication unit, and the transmission data including the error is acquired. After changing to the acquired transmission data, if the conversion unit executes the conversion and the second detection unit detects the error, it corresponds to the recording data in which the error is detected from the specific distribution device. A controller that acquires recording data via the communication unit, changes the recording data including the error to the acquired recording data, and then records the plurality of recording data on the recording medium; Including recording device.
請求項1に記載の記録装置において、
前記記録用データは、ヘッダ部とデータ部とを有し、
前記記録用データのデータ部でのエラーを検出する第3検出部をさらに含み、
前記制御部は、前記第3検出部の検出結果に応じて、前記特定配信装置から取得する前記データ部の範囲を決定し、該決定された範囲のデータ部を前記通信部を介して該特定配信装置から取得し、該取得したデータ部に対応する前記記録用データのデータ部を該取得したデータ部に変更した後、前記記録用データを前記記録媒体に記録する、記録装置。
The recording apparatus according to claim 1,
The recording data has a header part and a data part,
A third detector for detecting an error in the data portion of the recording data;
The control unit determines a range of the data unit acquired from the specific distribution device according to a detection result of the third detection unit, and specifies the data unit of the determined range via the communication unit A recording apparatus that acquires from a distribution apparatus, changes the data part of the recording data corresponding to the acquired data part to the acquired data part, and then records the recording data on the recording medium.
コンテンツを形成する複数の送信用データを送信する所定配信装置と、前記複数の送信用データおよび該複数の送信用データから変換された複数の記録用データを送信可能な特定配信装置と、に通信可能な記録装置が行う記録方法であって、
前記所定配信装置から前記複数の送信用データを受信する受信ステップと、
前記受信された複数の送信用データを前記複数の記録用データに変換する変換ステップと、
前記受信された各送信用データでのエラーを検出する第1検出ステップと、
前記変換された各記録用データでのエラーを検出する第2検出ステップと、
前記第1検出ステップで前記エラーが検出されると、該エラーが検出された送信用データに対応する送信用データを前記特定配信装置から取得し、該エラーを含む送信用データを該取得した送信用データに変更した後、前記複数の送信用データを前記複数の記録用データに変換する変更ステップと、
前記第2検出ステップで前記エラーが検出されると、該エラーが検出された記録用データに対応する記録用データを前記特定配信装置から取得し、該エラーを含む記録用データを該取得した記録用データに変更した後、前記複数の記録用データを記録媒体に記録する制御ステップと、を含む記録方法。
Communicating to a predetermined distribution device that transmits a plurality of transmission data that forms content, and a specific distribution device that can transmit the plurality of transmission data and a plurality of recording data converted from the plurality of transmission data A recording method performed by a possible recording device,
A receiving step of receiving the plurality of transmission data from the predetermined distribution device;
A converting step of converting the plurality of received transmission data into the plurality of recording data;
A first detection step of detecting an error in each received transmission data;
A second detection step of detecting an error in each of the converted recording data;
When the error is detected in the first detection step, the transmission data corresponding to the transmission data in which the error is detected is acquired from the specific distribution device, and the transmission data including the error is acquired. A change step of converting the plurality of transmission data into the plurality of recording data after changing to the credit data;
When the error is detected in the second detection step, recording data corresponding to the recording data in which the error is detected is acquired from the specific distribution device, and the recording data including the error is acquired. And a control step of recording the plurality of recording data on a recording medium after changing to the recording data.
請求項に記載の記録方法において、
前記記録用データは、ヘッダ部とデータ部とを有し、
前記記録用データのデータ部でのエラーを検出する第3検出ステップと、
前記第3検出ステップでの検出結果に応じて、前記特定配信装置から取得する前記データ部の範囲を決定し、該決定された範囲のデータ部を該特定配信装置から取得し、該取得したデータ部に対応する前記記録用データのデータ部を該取得したデータ部に変更した後、前記記録用データを前記記録媒体に記録する記録制御ステップと、をさらに含む記録方法。
The recording method according to claim 3 ,
The recording data has a header part and a data part,
A third detection step of detecting an error in the data portion of the recording data;
According to the detection result in the third detection step, the range of the data part acquired from the specific distribution device is determined, the data portion of the determined range is acquired from the specific distribution device, and the acquired data A recording control step of recording the recording data on the recording medium after changing the data portion of the recording data corresponding to the recording portion to the acquired data portion.
コンテンツを形成する複数の送信用データを送信する所定配信装置と、前記複数の送信用データおよび該複数の送信用データから変換された複数の記録用データを送信可能な特定配信装置と、前記所定配信装置および前記特定配信装置と通信可能な請求項1に記載の記録装置と、を含む記録システム。   A predetermined distribution device for transmitting a plurality of transmission data forming a content; a plurality of the transmission data and a specific distribution device capable of transmitting a plurality of recording data converted from the plurality of transmission data; A recording system comprising: a distribution device; and the recording device according to claim 1 capable of communicating with the specific distribution device. 請求項に記載の記録システムにおいて、
前記記録用データは、ヘッダ部とデータ部とを有し、
前記記録装置は、前記記録用データのデータ部でのエラーを検出する第3検出部をさらに含み、
前記制御部は、前記第3検出部の検出結果に応じて、前記特定配信装置から取り寄せる前記データ部の範囲を決定し、該決定された範囲のデータ部を該特定配信装置から取り寄せ、該取り寄せたデータ部に対応する前記記録用データのデータ部を該取り寄せたデータ部に変更した後、前記記録用データを前記記録媒体に記録する、記録システム。
The recording system according to claim 5 , wherein
The recording data has a header part and a data part,
The recording apparatus further includes a third detection unit that detects an error in a data part of the recording data,
The control unit determines a range of the data portion to be obtained from the specific delivery device according to a detection result of the third detection unit, obtains a data portion of the determined range from the specific delivery device, and obtains the order. A recording system for recording the recording data on the recording medium after changing the data portion of the recording data corresponding to the data portion to the acquired data portion.
JP2006024331A 2006-02-01 2006-02-01 Recording apparatus, recording method, recording system, distribution apparatus, and distribution method Expired - Fee Related JP4527672B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006024331A JP4527672B2 (en) 2006-02-01 2006-02-01 Recording apparatus, recording method, recording system, distribution apparatus, and distribution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006024331A JP4527672B2 (en) 2006-02-01 2006-02-01 Recording apparatus, recording method, recording system, distribution apparatus, and distribution method

Publications (2)

Publication Number Publication Date
JP2007208598A JP2007208598A (en) 2007-08-16
JP4527672B2 true JP4527672B2 (en) 2010-08-18

Family

ID=38487658

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006024331A Expired - Fee Related JP4527672B2 (en) 2006-02-01 2006-02-01 Recording apparatus, recording method, recording system, distribution apparatus, and distribution method

Country Status (1)

Country Link
JP (1) JP4527672B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116647541B (en) * 2023-05-10 2025-12-05 国网山东省电力公司菏泽供电公司 A video stream analysis method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003250128A (en) * 2002-02-25 2003-09-05 Matsushita Electric Ind Co Ltd Information receiving apparatus and error processing method
JP2005065232A (en) * 2003-07-25 2005-03-10 Victor Co Of Japan Ltd Stream data recording and reproducing method

Also Published As

Publication number Publication date
JP2007208598A (en) 2007-08-16

Similar Documents

Publication Publication Date Title
CN100429930C (en) Digital broadcast receiving device and method
US8185792B2 (en) Data-transmission device data-reception device and data-transmission-and-reception system
WO2012067219A1 (en) Device for generating content data, method for generating content data, computer program, and recording medium
US20050166123A1 (en) Transmission/reception system, transmitter and transmitting and method, receiver and receiving method, recording medium, and program
JP2006211602A (en) Data transmitter and program
US8233549B2 (en) Video receiving apparatus and video receiving method to address error in received video
US20020076196A1 (en) Digital broadcast recording/reproducing apparatus
JP4527672B2 (en) Recording apparatus, recording method, recording system, distribution apparatus, and distribution method
US9100672B2 (en) Data transmitting device and data transmitting and receiving system
US7742472B2 (en) Signal processing apparatus and stream processing method
JP4488958B2 (en) Video transmission system and video transmission method
JP2008061150A (en) Receiver and information processing method
JPH11177581A (en) Data transmitting device, data receiving device and data recording device
JP2005020437A (en) Content correction system and receiving device
KR102640666B1 (en) A method for receiving a broadcast signal and an apparatus for receiving a broadcast signal
JP5338594B2 (en) Data receiving method, data transmitting / receiving system, and data receiver
JP2006041578A (en) Portable terminal device and television broadcast system
US20050265369A1 (en) Network receiving apparatus and network transmitting apparatus
JP4674918B2 (en) Digital image data processing apparatus and processing method
JP2005110055A (en) Reception apparatus and reception data control method
JP5351136B2 (en) Video relay device and home gateway
US20090016697A1 (en) Method and apparatus for recording transport stream
US8855110B2 (en) Personal video recorder having improved data access and method thereof
JP4559878B2 (en) DIGITAL BROADCAST SIGNAL TRANSMITTING APPARATUS AND METHOD FOR CONTROLLING THE DIGITAL BROADCAST SIGNAL TRANSMITTING APPARATUS
JP2006157773A (en) Volatility billing system for storage-based broadcasting

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100217

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100416

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100603

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

Free format text: PAYMENT UNTIL: 20130611

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4527672

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20130611

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

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

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

Free format text: PAYMENT UNTIL: 20130611

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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

Free format text: PAYMENT UNTIL: 20130611

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

Free format text: PAYMENT UNTIL: 20130611

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130611

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130611

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees