JP2011176703A - Media multiplexing apparatus, and media demultiplexing apparatus - Google Patents

Media multiplexing apparatus, and media demultiplexing apparatus Download PDF

Info

Publication number
JP2011176703A
JP2011176703A JP2010040256A JP2010040256A JP2011176703A JP 2011176703 A JP2011176703 A JP 2011176703A JP 2010040256 A JP2010040256 A JP 2010040256A JP 2010040256 A JP2010040256 A JP 2010040256A JP 2011176703 A JP2011176703 A JP 2011176703A
Authority
JP
Japan
Prior art keywords
media
pid
identifier
error
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010040256A
Other languages
Japanese (ja)
Other versions
JP5733899B2 (en
Inventor
Yasuaki Takimoto
康明 瀧本
Osamu Murayama
修 村山
Shinji Akatsu
慎二 赤津
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2010040256A priority Critical patent/JP5733899B2/en
Publication of JP2011176703A publication Critical patent/JP2011176703A/en
Application granted granted Critical
Publication of JP5733899B2 publication Critical patent/JP5733899B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a media multiplexing apparatus and a media demultiplexing apparatus capable of improving immunity of a media signal to an error to be applied to an identifier. <P>SOLUTION: A PID to be assigned for identifying a plurality of multiplexing elements, respectively, is assigned to the multiplexing elements so as to increase a code distance between PIDs. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

この発明は、複数の番組の映像や音声等のメディア信号を多重化して伝送するメディア多重装置及び多重伝送された信号を受信してメディア信号を分離するメディア分離装置に関するものである。   The present invention relates to a media multiplexer that multiplexes and transmits media signals such as video and audio of a plurality of programs, and a media separator that receives multiplexed signals and separates the media signals.

MPEG(Moving Picture Experts Group)トランスポートストリーム(以下、MPEG−TSと呼ぶ)による伝送においては、メディアごとに異なる値をとるパケット識別子(Packet IDentification;以下、PIDと呼ぶ)に基づいて、多重化されたメディア信号の分離が行われる(例えば、非特許文献1参照)。このため、従来のメディア分離装置では、PIDに加わる誤りに弱いという問題点があった。
例えば、TSパケットのPIDに誤りが加わると、誤る前のPIDに相当するメディア信号がTSパケット1つ分失われる。また、誤りが加わったPIDが、他のPIDと偶然一致すると、一致したPIDのメディア信号に誤った情報がTSパケット1つ分加わってしまう。
また、従来のメディア多重装置では、PIDの割り当てでPIDに誤りが加わることによって、上述のように誤ったPIDと他のPIDが偶然一致することを考慮していない。
この問題は、特に自動車などの移動体でデジタル放送の受信や、誤り率の高い無線伝送環境下において、メディア信号の受信品質や再生品質に大きな影響を与える。
このような不具合を解決する従来の技術として、例えば特許文献1には、メディア多重装置のPIDに誤り訂正符号を加え、メディア分離装置が、多重化されたデータに対して上記誤り訂正符号による訂正を行うことで、PIDに加わる誤りに対処する発明が開示されている。
In transmission by MPEG (Moving Picture Experts Group) transport stream (hereinafter referred to as MPEG-TS), multiplexing is performed based on a packet identifier (Packet IDentification; hereinafter referred to as PID) having a different value for each medium. The media signals are separated (see, for example, Non-Patent Document 1). For this reason, the conventional media separating apparatus has a problem that it is vulnerable to errors added to the PID.
For example, when an error is added to the PID of a TS packet, a media signal corresponding to the PID before the error is lost for one TS packet. In addition, if an erroneously added PID coincides with another PID by chance, incorrect information is added to the media signal of the matched PID by one TS packet.
Further, in the conventional media multiplexing apparatus, it is not considered that an erroneous PID coincides with another PID by chance as described above due to an error added to the PID in the PID assignment.
This problem has a great influence on the reception quality and reproduction quality of media signals, particularly in the reception of digital broadcasts in a mobile body such as an automobile and in a wireless transmission environment with a high error rate.
As a conventional technique for solving such a problem, for example, in Patent Document 1, an error correction code is added to the PID of a media multiplexer, and the media separator corrects the multiplexed data with the error correction code. The invention which copes with the error added to PID by performing is disclosed.

特開2000−32055号公報JP 2000-32055 A

ITU-T Rec.H.222.0(2000 E), p. 8-9, 18-19ITU-T Rec. H.222.0 (2000 E), p. 8-9, 18-19

特許文献1に開示される発明では、メディア多重装置とメディア分離装置の双方で予め合意した規則に則った処理を行う必要があるため、既存のシステムへ適用する場合には、送受信双方の装置を変更しなければならないという課題があった。
また、特許文献1では、PIDの値の割り当てが、誤り訂正符号によって制約を受けるために、規格等により予め固定されたPIDが存在する場合には適用できないという課題があった。
In the invention disclosed in Patent Document 1, since it is necessary to perform processing according to a rule agreed in advance by both the media multiplexing device and the media separation device, when applying to an existing system, both the transmission and reception devices are There was an issue that had to be changed.
Further, in Patent Document 1, since assignment of a PID value is restricted by an error correction code, there is a problem that it cannot be applied when there is a PID fixed in advance by a standard or the like.

この発明は、上記のような課題を解決するためになされたもので、PID(メディア信号の識別子)に加わる誤りに対する耐性を向上できるメディア多重装置及びメディア分離装置を得ることを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a media multiplexing device and a media separation device that can improve resistance to errors added to a PID (media signal identifier).

この発明に係るメディア多重装置は、複数のメディア信号を入力し、これらのメディア信号を多重化してメディア多重信号として出力するメディア多重装置において、入力した複数のメディア信号をそれぞれ識別するために割り当てられる識別子を、識別子同士の符号距離が離れるようにメディア信号に割り当てる割当部を備えたことを特徴とするものである。   The media multiplexing device according to the present invention is assigned to identify a plurality of inputted media signals in a media multiplexing device which inputs a plurality of media signals, multiplexes these media signals and outputs them as media multiplexed signals. An allocating unit that allocates identifiers to media signals so that the code distance between the identifiers is separated is provided.

この発明に係るメディア分離装置は、複数のメディア信号が多重化されたメディア多重信号を入力し、当該メディア多重信号からメディア信号を分離して出力するメディア分離装置において、入力したメディア多重信号に多重化されたメディア信号をそれぞれ識別するために割り当てられている識別子に誤りが含まれるか否かを判定し、誤りが含まれると判定すると、当該誤りが加わる前の識別子の値としてメディア多重信号中に出現し得る識別子の候補から選択した識別子で、誤りが含まれると判定した識別子を修正する修正部を備えたことを特徴とするものである。   The media separation device according to the present invention is a media separation device which receives a media multiplexed signal obtained by multiplexing a plurality of media signals, separates the media signal from the media multiplexed signal, and outputs the multiplexed media signal. It is determined whether or not an identifier assigned to identify each of the converted media signals includes an error. If it is determined that an error is included, the identifier value before the error is added is determined in the media multiplexed signal. And an identifier selected from the identifier candidates that can appear in the above, and a correction unit that corrects an identifier determined to contain an error.

この発明のメディア多重装置によれば、複数のメディア信号をそれぞれ識別するために割り当てられる識別子を、識別子同士の符号距離が離れるようにメディア信号に割り当てるので、識別子同士の符号距離が離れて割り当てられているため、識別子に誤りが加わっても、他の識別子と一致する確率を下げることができる。これにより、メディア信号の識別子に加わる誤りに対する耐性を向上させることができるという効果がある。   According to the media multiplexing apparatus of the present invention, since the identifiers assigned for identifying the plurality of media signals are assigned to the media signals so that the code distances between the identifiers are separated from each other, the code distances between the identifiers are assigned apart from each other. Therefore, even when an error is added to the identifier, the probability of matching with another identifier can be lowered. Thereby, there is an effect that it is possible to improve resistance to errors added to the identifier of the media signal.

この発明のメディア分離装置によれば、メディア多重信号に多重化されたメディア信号の識別子に誤りが含まれると判定すると、当該誤りが加わる前の識別子の値として、メディア多重信号中に出現し得る識別子の候補から選択した識別子で、誤りが含まれると判定した識別子を修正する。このように識別子に加わった誤りを、メディア多重信号中に出現し得る識別子の候補から選択したもので修正することで、メディア信号の識別子に加わる誤りに対する耐性を向上させることができるという効果がある。   According to the media separation device of the present invention, if it is determined that an error is included in the identifier of the media signal multiplexed in the media multiplex signal, it can appear in the media multiplex signal as the value of the identifier before the error is added. An identifier selected from the identifier candidates that is determined to contain an error is corrected. Thus, by correcting the error added to the identifier with the one selected from the identifier candidates that can appear in the media multiplexed signal, it is possible to improve the resistance to the error added to the identifier of the media signal. .

なお、上述のメディア多重装置とメディア分離装置とを独立して適用しても、上記効果を得ることができ、既存のシステムへの適用が容易である。これにより、移動体での受信や、無線伝送環境下等において、メディアの受信・再生品質の向上を図ることができるという効果がある。   Note that even if the above-described media multiplexing device and media separation device are applied independently, the above-described effects can be obtained, and application to an existing system is easy. As a result, there is an effect that it is possible to improve the reception / reproduction quality of the media in reception by a mobile unit or in a wireless transmission environment.

この発明の実施の形態1によるメディア多重装置の構成を示すブロック図である。It is a block diagram which shows the structure of the media multiplexing apparatus by Embodiment 1 of this invention. 多重制御指示情報S121の一例を示す図である。It is a figure which shows an example of multiple control instruction information S121. 多重制御設定情報S122の一例を示す図である。It is a figure which shows an example of multiple | multiplex control setting information S122. この発明の実施の形態1によるメディア分離装置の構成を示すブロック図である。It is a block diagram which shows the structure of the media separation apparatus by Embodiment 1 of this invention. 分離制御情報S421の一例を示す図である。It is a figure which shows an example of separation control information S421.

実施の形態1.
図1は、この発明の実施の形態1によるメディア多重装置の構成を示すブロック図である。図1において、実施の形態1のメディア多重装置B100は、多重要素S101〜S110と多重制御指示情報S121を入力し、これらが多重化された送信トランスポートストリーム(TS)S130を出力する装置である。多重要素S101〜S110とは、図1では、番組1の内容を構成する映像S101、音声S102、基準時刻S103、付加情報S104、番組2の内容を構成する映像S105、音声S106、基準時刻S107、付加情報S108、番組1,2に共通な情報(共通情報)である付加情報S109、付加情報S110、の各信号である。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing the configuration of a media multiplexing apparatus according to Embodiment 1 of the present invention. In FIG. 1, a media multiplexing apparatus B100 according to Embodiment 1 is an apparatus that receives multiplexing elements S101 to S110 and multiplexing control instruction information S121, and outputs a transmission transport stream (TS) S130 in which these elements are multiplexed. . In FIG. 1, the multiple elements S101 to S110 are the video S101, the audio S102, the reference time S103, the additional information S104, the video S105, the audio S106, and the reference time S107 that constitute the content of the program 2, respectively. These signals are additional information S108, additional information S109 and additional information S110, which are information common to programs 1 and 2 (common information).

メディア多重装置B100は、PID割当部(割当部)B101、PAT生成部B102、PMT生成部B103及び多重部B104を備える。
PID割当部B101は、入力した多重制御指示情報S121に基づいて、多重制御設定情報S122を生成し出力する構成部である。
なお、多重制御指示情報S121とは、複数の異なる番組の映像や音声などのメディア信号である多重要素S101〜S110を修飾し、多重化の方法を指示する信号である。多重制御指示情報S121の詳細は、図2を用いて後述する。
また、多重制御設定情報S122は、多重制御指示情報S121に多重要素PAT及び多重要素PMTに関する項目が追加され、さらに多重制御指示情報S121における全ての多重要素のPIDが設定された信号である。この多重制御設定情報S122の詳細は、図3を用いて後述する。
The media multiplexing apparatus B100 includes a PID allocation unit (allocation unit) B101, a PAT generation unit B102, a PMT generation unit B103, and a multiplexing unit B104.
The PID allocation unit B101 is a component that generates and outputs multiple control setting information S122 based on the input multiple control instruction information S121.
The multiplex control instruction information S121 is a signal that modifies the multiplex elements S101 to S110, which are media signals such as video and audio of a plurality of different programs, and instructs a multiplexing method. Details of the multiple control instruction information S121 will be described later with reference to FIG.
The multiplex control setting information S122 is a signal in which items related to the multiplex element PAT and the multiplex element PMT are added to the multiplex control instruction information S121, and the PIDs of all the multiplex elements in the multiplex control instruction information S121 are set. Details of the multiple control setting information S122 will be described later with reference to FIG.

PAT生成部B102は、PID割当部B101から入力した多重制御設定情報S122の多重要素PATに関する項目内容に基づいて、プログラムアソシエーションテーブル(PAT)S111を生成する構成部である。
PMT生成部B103は、PID割当部B101から入力した多重制御設定情報S122の多重要素PMTに関する項目内容に基づいて、番組数分のプログラムマップテーブル(PMT)を生成する構成部である。図1では、番組数が2つの場合を示しており、PMT生成部B103が生成するPMTの個数は、多重制御設定情報S122に含まれる番組番号の種類に応じて増減する。ここでは、番組1のPMTとしてPMT1(S112)が生成され、番組2のPMTとしてPMT2(S113)が生成される。
The PAT generation unit B102 is a configuration unit that generates a program association table (PAT) S111 based on the item content related to the multiple element PAT of the multiple control setting information S122 input from the PID allocation unit B101.
The PMT generation unit B103 is a configuration unit that generates program map tables (PMTs) for the number of programs based on the item content related to the multiple element PMT of the multiple control setting information S122 input from the PID allocation unit B101. FIG. 1 shows a case where the number of programs is two, and the number of PMTs generated by the PMT generation unit B103 increases or decreases according to the type of program number included in the multiplex control setting information S122. Here, PMT1 (S112) is generated as the PMT of program 1, and PMT2 (S113) is generated as the PMT of program 2.

多重部B104は、多重要素S101〜S110、PAT(S111)、PMT1(S112)、PMT2(S113)を入力し、多重制御設定情報S122に基づいて、多重要素S101〜S110、PAT(S111)、PMT1(S112)、PMT2(S113)を多重化し、送信TS(S130)として出力する構成部である。   Multiplexer B104 receives multiplex elements S101 to S110, PAT (S111), PMT1 (S112), and PMT2 (S113), and based on multiplex control setting information S122, multiplex elements S101 to S110, PAT (S111), and PMT1 (S112) is a component that multiplexes PMT2 (S113) and outputs it as a transmission TS (S130).

図2は、多重制御指示情報S121の一例を示す図である。図2に示す多重制御指示情報S121は、多重要素S101〜S110のそれぞれに対して、多重形式項目C202の多重形式、PID項目C203のPID、信号種別項目C204の信号種別、番組番号項目C205の番組番号、ビットレート項目C206のビットレートの組み合わせを有する。   FIG. 2 is a diagram illustrating an example of the multiplex control instruction information S121. The multiplex control instruction information S121 shown in FIG. 2 includes, for each of the multiplex elements S101 to S110, the multiplex format of the multiplex format item C202, the PID of the PID item C203, the signal type of the signal type item C204, and the program of the program number item C205. It has a combination of number and bit rate of bit rate item C206.

多重要素項目C201は、上述の組み合わせが、多重要素S101〜S110のいずれに関するものかが示される。つまり、多重要素S101〜S110が設定される。
多重形式項目C202には、多重要素項目C201に示している多重要素信号を多重化する多重形式が設定される。ここでは、PES(Packetized Elementary Stream)、PCR(Program Clock Reference)、Sectionのいずれかの形式で多重化する。
The multi-element item C201 indicates which of the multi-elements S101 to S110 the combination described above relates to. That is, multiple elements S101 to S110 are set.
In the multiplex format item C202, a multiplex format for multiplexing the multiplex element signal shown in the multiplex element item C201 is set. Here, multiplexing is performed in one of the formats of PES (Packetized Elementary Stream), PCR (Program Clock Reference), and Section.

PID項目C203には、多重要素項目C201に設定される各多重要素信号を乗せるTSパケットに付与するPIDが指定される。ここで、指定がない場合、多重要素項目C201に示した多重要素の信号を乗せるTSパケットに対するPIDを、メディア多重装置B100にて任意に割り当ててよいことを示している。
信号種別項目C204には、多重要素項目C201に設定される各多重要素信号の種別が指定される。ここで、信号種別として、映像、音声、基準時刻等が指定される。なお、指定がない場合もある。
In the PID item C203, a PID assigned to a TS packet on which each multi-element signal set in the multi-element item C201 is placed is specified. Here, when there is no designation, it indicates that the media multiplexing apparatus B100 may arbitrarily assign the PID for the TS packet carrying the signal of the multiple element shown in the multiple element item C201.
In the signal type item C204, the type of each multi-element signal set in the multi-element item C201 is designated. Here, video, audio, reference time, and the like are designated as the signal type. There may be no designation.

番組番号項目C205には、多重要素項目C201に設定される各多重要素信号が所属する番組を特定するための番組番号が指定される。図1,2は、番組が2つの場合を示しており、番組1の番組番号が“1”、番組2の番組番号が“2”となる。
ビットレート項目C206には、多重要素項目C201に設定される各多重要素信号のビットレートが指定される。例えば、映像S101のビットレートは15Mbpsで、音声S102では200kbpsとなっている。
In the program number item C205, a program number for specifying a program to which each multi-element signal set in the multi-element item C201 belongs is specified. 1 and 2 show a case where there are two programs, the program number of program 1 is “1”, and the program number of program 2 is “2”.
In the bit rate item C206, the bit rate of each multiplex element signal set in the multiplex element item C201 is designated. For example, the bit rate of the video S101 is 15 Mbps, and the audio S102 is 200 kbps.

図3は、多重制御設定情報S122の一例を示す図であり、図2の多重制御指示情報S121を元に生成したものを示している。図3に示すように、多重制御設定情報S122は、多重制御指示情報S121と類似の内部信号であり、多重要素S101〜S113のそれぞれに対して、多重形式項目C302の多重形式、PID項目C303のPID、信号種別項目C304の信号種別、番組番号項目C305の番組番号、ビットレート項目C306のビットレートの組み合わせを有する。つまり、多重制御設定情報S122は、多重制御指示情報S121に対してPAT及びPMTに関する項目を追加し、全ての多重要素S101〜S113のPIDを設定したものである。   FIG. 3 is a diagram illustrating an example of the multiplex control setting information S122, which is generated based on the multiplex control instruction information S121 of FIG. As shown in FIG. 3, the multiplex control setting information S122 is an internal signal similar to the multiplex control instruction information S121, and for each of the multiplex elements S101 to S113, the multiplex format of the multiplex format item C302 and the PID item C303. It has a combination of PID, signal type of signal type item C304, program number of program number item C305, and bit rate of bit rate item C306. That is, the multiplex control setting information S122 is obtained by adding items related to the PAT and PMT to the multiplex control instruction information S121 and setting the PIDs of all the multiplex elements S101 to S113.

多重要素項目C301は、上述の組み合わせが、多重要素S101〜S113のいずれに関するものかが示される。つまり、多重要素S101〜S113が設定される。
多重形式項目C302には、多重要素項目C301に設定される各多重要素信号を多重化する多重形式が設定される。ここでは、PES、PCR、Sectionのいずれかの形式で多重化する。
The multi-element item C301 indicates which of the multi-elements S101 to S113 the above-described combination relates to. That is, multiple elements S101 to S113 are set.
In the multiplex format item C302, a multiplex format for multiplexing each multiplex element signal set in the multiplex element item C301 is set. Here, multiplexing is performed in any one of PES, PCR, and Section formats.

PID項目C303には、多重要素項目C301に設定される各多重要素信号を乗せるTSパケットに付与するPIDが指定される。
信号種別項目C304には、多重要素項目C301に設定される各多重要素信号の種別が指定される。ここで、信号種別として、映像、音声、基準時刻、PAT、PMT等が指定される。なお、一部は指定がない場合もあるが、PAT及びPMTに関しては必ず指定される。
In the PID item C303, a PID assigned to a TS packet on which each multi-element signal set in the multi-element item C301 is placed is specified.
In the signal type item C304, the type of each multi-element signal set in the multi-element item C301 is designated. Here, video, audio, reference time, PAT, PMT, and the like are designated as the signal type. Note that some of them may not be specified, but PAT and PMT are always specified.

番組番号項目C305には、多重要素項目C301に設定される各多重要素信号が所属する番組を特定するための番組番号が指定される。なお、番組1の番組番号が“1”、番組2の番組番号が“2”となる。また、指定がない場合は、その多重要素信号は番組に所属しないことを示している。
ビットレート項目C306には、多重要素項目C301に設定される各多重要素信号のビットレートが指定される。例えば、映像S101のビットレートは15Mbpsで、PMT1(S112)は15kbpsとなっている。
In the program number item C305, a program number for specifying a program to which each multi-element signal set in the multi-element item C301 belongs is specified. The program number of program 1 is “1”, and the program number of program 2 is “2”. If there is no designation, it indicates that the multi-element signal does not belong to the program.
In the bit rate item C306, the bit rate of each multiplex element signal set in the multiplex element item C301 is designated. For example, the bit rate of the video S101 is 15 Mbps, and the PMT1 (S112) is 15 kbps.

なお、上述した多重要素S101〜S110の数と構成、及び、対応する多重制御指示情報S121、多重制御設定情報S122の内容は、例示であり、本発明は、上述の内容に限定されるものではない。   The number and configuration of the above-described multiple elements S101 to S110, and the contents of the corresponding multiple control instruction information S121 and multiple control setting information S122 are merely examples, and the present invention is not limited to the above contents. Absent.

次に動作について説明する。
先ず、PID割当部B101は、多重制御指示情報S121を入力すると、この多重制御指示情報S121に対して、PATに関する多重制御情報と番組数分のPMTに関する多重制御情報とを追加すると共に、この多重制御指示情報S121のPID項目C203において、PIDの指定がない全ての要素についてPIDを決定して、多重制御設定情報S122として出力する。
図3の例において、PATに関する多重制御情報とは、多重要素項目C301が、多重要素S111であって、多重形式項目C302がSection、PID項目C303が“0x0000”、信号種別項目C304がPAT、番組番号項目C305が指定なし、となる。PMTに関する多重制御情報は、多重要素項目C301が多重要素S112であり、多重形式項目C302がSection、PID項目C303が“0x1100”、信号種別項目C304がPMT、番組番号項目C305が“1”となる。また、多重要素項目C301が多重要素S113であって、多重形式項目C302がSectionで、PID項目C303が“0x1200”、信号種別項目C304がPMT、番組番号項目C305が“2”となる。
Next, the operation will be described.
First, when the multiplex control instruction information S121 is input, the PID assigning unit B101 adds multiplex control information related to PAT and multiplex control information related to PMTs corresponding to the number of programs to the multiplex control instruction information S121. In the PID item C203 of the control instruction information S121, the PID is determined for all elements for which no PID is specified, and is output as the multiplex control setting information S122.
In the example of FIG. 3, the multiplex control information related to PAT is that the multiplex element item C301 is the multiplex element S111, the multiplex format item C302 is Section, the PID item C303 is “0x0000”, the signal type item C304 is PAT, and the program The number item C305 is not specified. In the multiplex control information regarding the PMT, the multiplex element item C301 is the multiplex element S112, the multiplex format item C302 is Section, the PID item C303 is “0x1100”, the signal type item C304 is PMT, and the program number item C305 is “1”. . The multi-element item C301 is the multi-element S113, the multi-format item C302 is Section, the PID item C303 is “0x1200”, the signal type item C304 is PMT, and the program number item C305 is “2”.

上述したPID割当部B101によるPIDの決定は、下記の手順で行われる。
(1)予め設定された割当が可能な全てのPID(0x0000〜0x1FFF)のうちから、多重制御指示情報S121のPID項目C203で既に指定されているPIDと、NULL PID(0x1FFF)とを除いたものを、PID候補として得る。
(2)PID候補中のPIDごとに、PID項目C203で指定されている全てのPIDからの最小符号距離を算出する。なお、PID同士の符号距離の算出は、ハミング距離、すなわちビットが一致していない個数を使用する。
(3)PIDごとに算出した各最小符号距離のうち、最小符号距離が最大のPIDを1つ選ぶ。
(4)多重制御指示情報S121のPID項目C203においてPIDの指定がない多重要素のうち(追加した多重制御情報も含む)、ビットレート項目C206(C306)に指定されるビットレートが最も高いものを選択し、この多重要素のPID項目C203(C303)に(3)で選んだPIDを設定する。
(5)(1)〜(4)の操作を、PID項目C203(C303)で「PID指定なし」の多重要素がなくなるまで繰り返す。
The determination of the PID by the PID allocation unit B101 described above is performed according to the following procedure.
(1) From all PIDs (0x0000 to 0x1FFF) that can be assigned in advance, the PID already specified in the PID item C203 of the multiple control instruction information S121 and the NULL PID (0x1FFF) are excluded. Things are obtained as PID candidates.
(2) For each PID in the PID candidate, the minimum code distance from all the PIDs specified in the PID item C203 is calculated. The calculation of the code distance between PIDs uses the Hamming distance, that is, the number of bits that do not match.
(3) Among the minimum code distances calculated for each PID, select one PID having the maximum minimum code distance.
(4) Among the multiplex elements for which no PID is specified in the PID item C203 of the multiplex control instruction information S121 (including the added multiplex control information), the one having the highest bit rate specified in the bit rate item C206 (C306) The PID selected in (3) is set in the PID item C203 (C303) of this multi-element.
(5) The operations of (1) to (4) are repeated until there is no multiple element of “No PID designation” in the PID item C203 (C303).

上記(4)において、ビットレートの指定がない場合には、項目C201〜C205のいずれか若しくは複数の組み合わせに対して予め用意した所定の概略値を使用する方法、多重要素S101〜S110に関してはビットレートを計測して使用する方法、多重要素S111〜S113に関しては多重制御設定情報S122のビットレート項目C306に指定されている他の多重要素のビットレートから計算で求めたものを使用する方法などを実行する。   In the above (4), when the bit rate is not specified, a method of using a predetermined approximate value prepared in advance for any one or a plurality of combinations of items C201 to C205, and bits for multiple elements S101 to S110 A method of measuring and using a rate, a method of using a value obtained by calculation from the bit rate of another multiple element specified in the bit rate item C306 of the multiple control setting information S122 for the multiple elements S111 to S113, etc. Execute.

また、TSの伝送時は、一部のTSパケットが抜かれるような場合もあるため、ビットレート項目C206には、TSに誤りが加わる伝送路で伝送されるTSパケットのビットレートを設定するとよい。
さらに、上述したPIDの決定を実行する前に、多重制御指示情報S121に対して、NULLパケットのPIDとビットレートを多重要素として追加することで、NULLパケットに加わる誤りにも対処することができる。
Also, since some TS packets may be dropped during TS transmission, the bit rate of the TS packet transmitted on the transmission path in which an error is added to the TS may be set in the bit rate item C206. .
Further, by adding the PID and bit rate of the NULL packet as multiplexing elements to the multiplexing control instruction information S121 before executing the above-described PID determination, it is possible to cope with errors added to the NULL packet. .

次に、PAT生成部B102は、PID割当部B101から多重制御設定情報S122を入力すると、この多重制御設定情報S122の信号種別項目C304のうち、信号種別がPMTである多重要素(S112,S113)を特定し、この多重要素のPIDと番組番号を抽出して、抽出したPIDと番組番号の組み合わせを規定したPATを生成する。このようにして生成されたPATは、PAT(S111)として、PAT生成部B102から多重部B104へ出力される。   Next, when the PAT generation unit B102 receives the multiplex control setting information S122 from the PID allocation unit B101, among the signal type item C304 of the multiplex control setting information S122, the multiplex element whose signal type is PMT (S112, S113) The PID and program number of this multi-element are extracted, and a PAT defining the combination of the extracted PID and program number is generated. The PAT generated in this way is output as PAT (S111) from the PAT generation unit B102 to the multiplexing unit B104.

また、PMT生成部B103では、PID割当部B101から多重制御設定情報S122を入力すると、この多重制御設定情報S122から、番組番号ごとにPIDと信号種別の組み合わせを抽出し、これらの組み合わせを規定したPMTを番組ごとに生成して出力する。このようにして生成されたPMTは、PMT(S112(番組1対応)及びS113(番組2対応))として、PMT生成部B103から多重部B104へ出力される。   Further, in the PMT generation unit B103, when the multiplex control setting information S122 is input from the PID allocation unit B101, a combination of PID and signal type is extracted from the multiplex control setting information S122 for each program number, and these combinations are defined. A PMT is generated and output for each program. The PMT generated in this way is output as PMT (S112 (corresponding to program 1) and S113 (corresponding to program 2)) from the PMT generating unit B103 to the multiplexing unit B104.

多重部B104は、番組1に関する多重要素S101〜S104、番組2に関する多重要素S105〜S108、番組1,2に共通な情報である付加情報S109,S110、PAT生成部B102からのPAT(S111)及びPMT生成部B103からのPMT(S112,S113)を多重要素入力し、PID割当部B101から多重制御設定情報S122を入力すると、多重制御設定情報S122の多重形式項目C302を参照して、各多重要素の多重形式を特定すると共に、PID項目C303を参照してPIDを特定する。この後、多重部B104は、各多重要素S101〜S113が、特定した多重形式で多重化され、かつ特定したPIDを有するTSパケットを生成し、送信TS(S130)として出力する。
また、多重部B104は、送信TS(S130)に対して、誤り訂正符号等によって、誤りの存在を示すTEI(transport_error_indicator)を予め付加する。
Multiplexer B104 includes multiple elements S101 to S104 related to program 1, multiple elements S105 to S108 related to program 2, additional information S109 and S110 that are information common to programs 1 and 2, PAT (S111) from PAT generator B102, and When the PMT (S112, S113) from the PMT generation unit B103 is input as a multiplex element and the multiplex control setting information S122 is input from the PID assignment unit B101, each multiplex element is referred to the multiplex format item C302 of the multiplex control setting information S122. The PID is specified with reference to the PID item C303. Thereafter, the multiplexing unit B104 generates a TS packet in which each of the multiplexing elements S101 to S113 is multiplexed in the specified multiplexing format and has the specified PID, and outputs it as a transmission TS (S130).
In addition, the multiplexing unit B104 adds a TEI (transport_error_indicator) indicating the presence of an error to the transmission TS (S130) in advance using an error correction code or the like.

以上のように、この実施の形態1によれば、複数の多重要素をそれぞれ識別するために割り当てられるPIDを、PID同士の符号距離が最も離れるように多重要素に割り当てる。これにより、送信TS(S130)の伝送でTSパケットのPID部に誤りが加わっても、他のPIDに一致する確率を下げることができる。これにより、多重要素のPIDに加わる誤りに対する耐性を向上させることができる。
なお、上記実施の形態1によるPID決定手順は、簡易的な一例であり、PID同士の距離を離すようにPIDを決定する方法であれば、他の方法も取ることができる。
As described above, according to the first embodiment, PIDs assigned for identifying a plurality of multiple elements are assigned to the multiple elements so that the code distance between the PIDs is the longest. Thereby, even if an error is added to the PID portion of the TS packet in transmission of the transmission TS (S130), the probability of matching with another PID can be lowered. Thereby, the tolerance with respect to the error added to PID of a multi-element can be improved.
Note that the PID determination procedure according to the first embodiment is a simple example, and any other method can be used as long as the method determines the PID so that the PIDs are separated from each other.

また、上記実施の形態1において、PID決定を次の手順で行うようにしてもよい。
(1a)割当が可能な全てのPID(0x0000〜0x1FFF)のうち、多重制御指示情報S121のPID項目C203で既に指定されているPIDと、NULL PID(0x1FFF)とを除いたものを、PID候補として得る。
(2a)PID候補中のPIDごとに、PID項目C203にて指定される全てのPIDからのビットレート/距離の最大値を評価値として算出する。
(3a)PIDごとに算出した各評価値のうち、最小値が得られたPIDを1つ選ぶ。
(4a)多重制御指示情報S121のPID項目C203においてPIDの指定がない多重要素のうち(追加した多重制御情報も含む)、ビットレート項目C206(C306)に指定されているビットレートが最も高いものを選択し、この多重要素のPID項目C203(C303)に(3a)で選んだPIDを設定する。
(5a)(1a)〜(4a)の操作を、PID項目C203(C303)で「PID指定なし」の多重要素がなくなるまで繰り返す。
このようにすることで、(1)〜(5)の手順と同様に多重要素同士のPIDの距離を離すことができ、かつ(1)〜(5)の手順でPIDを決定した場合よりも、ビットレートの高い多重要素のPIDと他の多重要素のPIDとの距離を離すことが可能である。
In the first embodiment, the PID determination may be performed according to the following procedure.
(1a) Among all PIDs (0x0000 to 0x1FFF) that can be assigned, PID candidates obtained by excluding the PID already specified in the PID item C203 of the multiple control instruction information S121 and the NULL PID (0x1FFF) Get as.
(2a) For each PID in the PID candidate, the maximum value of the bit rate / distance from all the PIDs specified in the PID item C203 is calculated as the evaluation value.
(3a) From each evaluation value calculated for each PID, one PID from which the minimum value is obtained is selected.
(4a) Among the multiplex elements for which no PID is specified in the PID item C203 of the multiplex control instruction information S121 (including the added multiplex control information), the one having the highest bit rate specified in the bit rate item C206 (C306) And the PID selected in (3a) is set in the PID item C203 (C303) of this multi-element.
(5a) The operations of (1a) to (4a) are repeated until there is no multiple element of “No PID designation” in the PID item C203 (C303).
By doing in this way, the distance of PID of multiple elements can be separated similarly to the procedures of (1) to (5), and more than the case where the PID is determined by the procedures of (1) to (5). It is possible to increase the distance between the PID of a multi-element having a high bit rate and the PID of another multi-element.

なお、上記(1a)〜(5a)のPID決定手順は、簡易的な例である。すなわち、ビットレートの高い多重要素のPIDと他の多重要素のPIDとの距離を離すようにPIDを決定できる方法であれば、上記(1a)〜(5a)の手順に限定されるものではない。
例えば、全ての多重要素のそれぞれのPID間のビットレート/距離の合計が最大となるPIDの組み合わせを探索してもよい。
Note that the PID determination procedures (1a) to (5a) are simple examples. In other words, the method is not limited to the above procedures (1a) to (5a) as long as the PID can be determined such that the PID of the multi-element having a high bit rate is separated from the PID of another multi-element. .
For example, you may search for the combination of PID in which the sum of the bit rate / distance between each PID of all the multiplexing elements becomes the maximum.

実施の形態2.
図4は、この発明の実施の形態2によるメディア分離装置の構成を示すブロック図である。図4において、実施の形態2のメディア分離装置B400は、メディア多重装置B100からの送信TSを、受信TS(S430)として受信すると、受信TS(S430)に多重化されたメディア信号を分離して出力する装置である。
なお、受信TS(S430)は、メディア多重装置B100によって、誤り訂正符号等から、誤りの存在を示すTEIが、予め付加されているものとする。また、上記実施の形態1と同様に、番組が2つの場合を例に挙げている。
Embodiment 2. FIG.
FIG. 4 is a block diagram showing a configuration of a media separating apparatus according to Embodiment 2 of the present invention. In FIG. 4, upon receiving the transmission TS from the media multiplexing apparatus B100 as the reception TS (S430), the media separation apparatus B400 of Embodiment 2 separates the media signal multiplexed on the reception TS (S430). This is an output device.
Note that the received TS (S430) is pre-added with TEI indicating the presence of an error from an error correction code or the like by the media multiplexing apparatus B100. Further, as in the first embodiment, the case where there are two programs is taken as an example.

多重要素S401〜S410は、図4の例では、番組1の内容を構成する映像S401、音声S402、基準時刻S403、付加情報S404、PMT1(S412)、番組2の内容を構成する映像S405、音声S406、基準時刻S407、付加情報S408、PMT2(S413)、番組1,2に共通な情報(共通情報)である付加情報S409、付加情報S410、PAT(S411)、の各信号である。上記実施の形態1と同様に、これらの信号をそれぞれ多重要素と呼ぶ。   In the example of FIG. 4, the multiple elements S401 to S410 are the video S401, the audio S402, the reference time S403, the additional information S404, the PMT1 (S412) that constitute the content of the program 1, the video S405 that constitutes the content of the program 2, and the audio. S406, reference time S407, additional information S408, PMT2 (S413), additional information S409 that is information common to programs 1 and 2 (common information), additional information S410, and PAT (S411). As in the first embodiment, these signals are called multiple elements.

メディア分離装置B400は、TS修正部(修正部)B401、分離部B402、及び分離制御情報抽出部B403を備える。
TS修正部B401は、分離制御情報S421を基に、受信TS(S430)のPIDを修正し、修正TS(S431)として出力する構成部である。
なお、分離制御情報S421とは、複数の異なる番組の映像や音声などのメディア信号である多重要素S401〜S413を修飾し、分離の方法を指示する信号である。また、分離制御情報S421の詳細は、図5を用いて後述する。
分離制御情報の内容は、PATやPMTとして、受信TS(S430)に多重化されている。ただし、PATやPMTを使用せず、分離制御情報を他の方法で伝送してもよく、予め所定の値を分離制御情報としてメディア分離装置B400が保持しておいてもよい。
The media separation device B400 includes a TS correction unit (correction unit) B401, a separation unit B402, and a separation control information extraction unit B403.
The TS correction unit B401 is a component that corrects the PID of the received TS (S430) based on the separation control information S421 and outputs the corrected TS (S431).
The separation control information S421 is a signal that modifies the multiple elements S401 to S413, which are media signals such as video and audio of a plurality of different programs, and instructs a separation method. Details of the separation control information S421 will be described later with reference to FIG.
The content of the separation control information is multiplexed in the reception TS (S430) as PAT or PMT. However, the separation control information may be transmitted by another method without using PAT or PMT, and the media separation apparatus B400 may hold a predetermined value as separation control information in advance.

分離部B402は、修正TS(S431)から多重要素S401〜S413を分離して出力する構成部である。分離制御情報抽出部B403は、分離部B402で分離されたPAT(S411)、PMT1(S412)、PMT2(S413)を入力し、これらに規定されている分離制御情報S421を抽出する構成部であり、抽出した分離制御情報S421は、TS修正部B401及び分離部B402に出力される。   The separation unit B402 is a component that separates and outputs the multiple elements S401 to S413 from the modified TS (S431). The separation control information extraction unit B403 is a component that inputs the PAT (S411), PMT1 (S412), and PMT2 (S413) separated by the separation unit B402 and extracts the separation control information S421 defined therein. The extracted separation control information S421 is output to the TS correction unit B401 and the separation unit B402.

図5は、分離制御情報S421の一例を示す図である。図5に示す分離制御情報S421は、多重要素S401〜S413のそれぞれに対して、多重形式項目C502の多重形式、PID項目C503のPID、信号種別項目C504の信号種別、番組番号項目C505の番組番号の組み合わせを有する。   FIG. 5 is a diagram illustrating an example of the separation control information S421. The separation control information S421 shown in FIG. 5 includes, for each of the multiple elements S401 to S413, the multiplexing format of the multiplexing format item C502, the PID of the PID item C503, the signal type of the signal type item C504, and the program number of the program number item C505. Have a combination of

多重要素項目C501は、上述の組み合わせが、多重要素S401〜S413のいずれに関するものかが示される。つまり、多重要素S401〜S413が設定される。
多重形式項目C502には、多重要素項目C501に示している多重要素信号を多重化する多重形式が設定される。ここでは、PES、PCR、Sectionのいずれかの形式で多重化されている。
The multi-element item C501 indicates which of the multi-elements S401 to S413 the combination described above relates to. That is, multiple elements S401 to S413 are set.
In the multiplex format item C502, a multiplex format for multiplexing the multiplex element signal shown in the multiplex element item C501 is set. Here, it is multiplexed in one of the formats of PES, PCR, and Section.

PID項目C503には、多重要素項目C501に設定される各多重要素信号を乗せるTSパケットに付与するPIDが指定される。
信号種別項目C504には、多重要素項目C501に設定される各多重要素信号の種別が指定される。ここで、信号種別として、映像、音声、基準時刻等が指定される。
番組番号項目C505には、多重要素項目C501に設定される各多重要素信号が所属する番組を特定するための番組番号が指定される。図4,5は、番組が2つの場合を示しており、番組1の番組番号が“1”、番組2の番組番号が“2”となる。なお、番組番号の指定がない場合、その多重要素信号は、番組に所属しないことを示している。
In the PID item C503, a PID assigned to a TS packet on which each multi-element signal set in the multi-element item C501 is placed is specified.
In the signal type item C504, the type of each multi-element signal set in the multi-element item C501 is designated. Here, video, audio, reference time, and the like are designated as the signal type.
In the program number item C505, a program number for specifying a program to which each of the multiple element signals set in the multiple element item C501 belongs is specified. 4 and 5 show the case where there are two programs. The program number of program 1 is “1” and the program number of program 2 is “2”. If no program number is specified, the multiple element signal indicates that it does not belong to a program.

なお、上述した多重要素S401〜S413の数と構成、及び、対応する分離制御情報S421の内容は、例示であり、本発明は、上述の内容に限定されるものではない。   The number and configuration of the multiple elements S401 to S413 described above and the content of the corresponding separation control information S421 are examples, and the present invention is not limited to the above content.

次に動作について説明する。
分離制御情報S421は、初期状態でPAT及び番組に所属しない共通情報等、また、出現することがわかっている多重要素が予め登録されている。以降では、図5に示す分離制御情報S421を例示して説明する。つまり、分離制御情報S421のPATは、多重要素項目C501が多重要素S411であり、多重形式項目C502がSection、PID項目C503が“0x0000”、信号種別項目C504がPAT、番組番号項目C505が“指定なし”となる。
Next, the operation will be described.
In the separation control information S421, common information that does not belong to the PAT and the program in the initial state, and multiple elements that are known to appear are registered in advance. Hereinafter, the separation control information S421 illustrated in FIG. 5 will be described as an example. That is, in the PAT of the separation control information S421, the multi-element item C501 is the multi-element S411, the multi-format item C502 is Section, the PID item C503 is “0x0000”, the signal type item C504 is PAT, and the program number item C505 is “designated”. “None”.

TS修正部B401は、分離制御情報S421を基に、受信TS(S430)のPIDを修正して、修正TS(S431)を生成する。なお、PIDの修正は、誤りが加わった可能性が高いTSパケットに対してのみ行うため、下記の分離制御情報S421の確定手順に大きな影響は与えない。また、PIDの修正手順の詳細は、後述する。   The TS correction unit B401 corrects the PID of the reception TS (S430) based on the separation control information S421, and generates a correction TS (S431). Since correction of PID is performed only for TS packets that are highly likely to have errors, the procedure for determining the following separation control information S421 is not greatly affected. Details of the PID correction procedure will be described later.

分離部B402は、分離制御情報S421に設定されている多重要素ごとに、当該多重要素のPIDと、TS修正部B401で得られた修正TS(S431)の、対応する多重要素のPIDとが一致するTSパケットを特定し、このTSパケットから、当該多重要素の多重形式項目C502に指定された多重形式を抽出して、不図示のバッファ等を介して当該多重要素信号を多重要素項目C501で指定された出力先(映像復号器や音声復号器)へ出力する。また、分離部B402は、修正TS(S431)から分離したPAT(S411)、PMT1(S412)、PMT2(S413)を分離制御情報抽出部B403へ出力する。   For each multiplex element set in the separation control information S421, the separation unit B402 matches the PID of the multiplex element with the corresponding multi-element PID of the modified TS (S431) obtained by the TS modification unit B401. A TS packet to be specified is extracted, the multiplexing format specified in the multiplexing format item C502 of the multiplexing element is extracted from the TS packet, and the multiplexing element signal is specified in the multiplexing element item C501 via a buffer (not shown). To the output destination (video decoder or audio decoder). Further, the separation unit B402 outputs the PAT (S411), PMT1 (S412), and PMT2 (S413) separated from the modified TS (S431) to the separation control information extraction unit B403.

分離制御情報抽出部B403では、分離部B402で修正TS(S431)から分離されたPAT(S411)から、PMTの番組番号とPIDの組み合わせを抽出し、この組み合わせに対して、多重形式としてSectionを選択して多重形式項目C502に設定し、PID項目C503に、分離部B402で処理対象となった前記PIDを設定し、信号種別項目C504にPMTを設定した情報を追加する。なお、ここでは、番組番号1のPMT1をS412に割り当て、番組番号2のPMT2をS413に割り当てる。   In the separation control information extraction unit B403, the combination of the PMT program number and PID is extracted from the PAT (S411) separated from the modified TS (S431) by the separation unit B402. The information is selected and set in the multiplex format item C502, the PID item C503 is set with the PID that has been processed by the separator B402, and the signal type item C504 is set with PMT. Here, PMT1 with program number 1 is assigned to S412 and PMT2 with program number 2 is assigned to S413.

次に、分離制御情報抽出部B403は、番組番号1のPMT1(S412)の受信で、当該番組PMT1からPIDと信号種別を抽出し、この信号種別に応じた多重形式を、PES、Section、PCRのうちのいずれかから選択して多重形式項目C502に設定し、PID項目C503に前記PIDを設定し、信号種別C504に前記組み合わせ中の信号種別が設定され、番組番号項目C505に前記組み合わせ中の番組番号(“1”)が設定された情報を、分離制御情報S421に追加する。   Next, the separation control information extraction unit B403 receives the PMT1 (S412) of the program number 1, extracts the PID and the signal type from the program PMT1, and sets the multiplexing format corresponding to the signal type to PES, Section, PCR. Is selected in the multiple format item C502, the PID is set in the PID item C503, the signal type in the combination is set in the signal type C504, and the combination in the combination is set in the program number item C505. Information in which the program number (“1”) is set is added to the separation control information S421.

一方、分離制御情報抽出部B403は、番組番号2のPMT2(S413)の受信で、当該番組PMT2からPIDと信号種別を抽出し、この信号種別に応じた多重形式を、PES、Section、PCRのうちのいずれかから選択して多重形式項目C502に設定し、PID項目C503に前記PIDを設定し、信号種別C504に前記組み合わせ中の信号種別が設定され、番組番号項目C505に前記組み合わせ中の番組番号(“2”)が設定された情報を、分離制御情報S421に追加する。   On the other hand, upon receiving PMT2 (S413) of program number 2, the separation control information extraction unit B403 extracts the PID and signal type from the program PMT2, and sets the multiplexing format corresponding to this signal type to PES, Section, and PCR. One of them is selected and set in the multiple format item C502, the PID is set in the PID item C503, the signal type in the combination is set in the signal type C504, and the program in the combination is set in the program number item C505 Information in which the number (“2”) is set is added to the separation control information S421.

上述のような手順で、多重要素ごとに分離制御情報S421の内容が確定され、内容が確定された分離制御情報S421に基づいて、分離部B402が、修正TS(S431)を多重要素S401〜S413へ分離する。   Through the procedure described above, the content of the separation control information S421 is determined for each multiple element, and based on the separation control information S421 for which the content has been determined, the separation unit B402 converts the modified TS (S431) into the multiple elements S401 to S413. To separate.

ここで、TS修正部B401によるPIDの修正の詳細について説明する。
TS修正部B401は、所定数NのTSパケットを蓄積可能な不図示のバッファを有しており、このバッファ中のTSパケットを古いTS(先に蓄積されたTSパケット)から消去しつつ、このバッファに受信TS(S430)のTSパケットを順次蓄積する。
Here, details of PID correction by the TS correction unit B401 will be described.
The TS correction unit B401 has a buffer (not shown) capable of storing a predetermined number N of TS packets. While erasing the TS packets in this buffer from the old TS (previously stored TS packets), The TS packets of the received TS (S430) are sequentially stored in the buffer.

また、TS修正部B401は、前記バッファ中のTSパケットのうち、新しい方から所定数M番目のTSパケット(最も後に蓄積されたTSパケットから数えて、M番目に蓄積されたTSパケット)について、下記の手順でPIDの修正を行う。
(1b)PID、TEI及びCC(continuity_counter)を、当該TSパケットのヘッダから取得する。
(2b)TEIが誤りなし(=0)を示している場合、当該TSパケットのPID修正は行わない。
(3b)TEIが誤り有り(=1)を示している場合、当該TSパケットに誤りがあると判断し、下記(4b)以降の処理を実行する。
(4b)当該TSパケットのPIDをPID1とし、分離制御情報S421中のある多重要素のPIDをPID2として、分離制御情報S421中でPID1との符号距離が近いPID2を特定する。
(5b)当該TSパケットの前後それぞれに存在するTSパケットのうち、当該TSパケットと最も位置が近く、かつPIDがPID2と同一で、かつ、CCが連続しているTSパケットを探索する。探索したTSパケットが、当該TSパケットの前後ともに見つかると、当該TSパケットのPIDをPID2で置き換えることが妥当であると判断する。
つまり、誤り有りと判定したPID1とビット一致度が最も高いPID2を置き換え対象として選択する。
(6b)置き換えが妥当と判断すると、当該TSパケットのPIDをPID2で置換し、当該TSパケットの処理を終了する。
(7b)置き換えが妥当でないと判断された場合、当該TSパケットのPID修正は行わず、上記(4b)で処理対象となるPIDとして、分離制御情報S421中の次のPID2を選択し、上記(4b)から上記(6b)までの処理を繰り返す。
Further, the TS correction unit B401 is a predetermined number M-th TS packet from the newest TS packet in the buffer (the TS packet accumulated Mth counting from the TS packet accumulated last). The PID is corrected according to the following procedure.
(1b) PID, TEI, and CC (continuity_counter) are acquired from the header of the TS packet.
(2b) When the TEI indicates no error (= 0), the PID correction of the TS packet is not performed.
(3b) If the TEI indicates that there is an error (= 1), it is determined that there is an error in the TS packet, and the processing from (4b) onward is executed.
(4b) The PID of the TS packet is set to PID1, the PID of a certain multi-element in the separation control information S421 is set to PID2, and PID2 having a code distance close to PID1 is specified in the separation control information S421.
(5b) Among TS packets existing before and after the TS packet, search for a TS packet that is closest to the TS packet, has the same PID as PID2, and has a continuous CC. When the searched TS packet is found both before and after the TS packet, it is determined that it is appropriate to replace the PID of the TS packet with PID2.
That is, PID1 determined to have an error and PID2 having the highest degree of bit match are selected as replacement targets.
(6b) When it is determined that the replacement is appropriate, the PID of the TS packet is replaced with PID2, and the processing of the TS packet is terminated.
(7b) If it is determined that the replacement is not appropriate, the PID correction of the TS packet is not performed, the next PID2 in the separation control information S421 is selected as the PID to be processed in (4b), and the above ( The processes from 4b) to (6b) are repeated.

TS修正部B401は、上述の手順でPIDを修正(置換)したTSパケットを修正TS(S431)として順次出力する。例えば、バッファ中に蓄積されているTSパケットが1秒分程度になるように上記所定数Nを決定することができる。また、上記所定数MはN/2番目付近に設定することもできる。   The TS correction unit B401 sequentially outputs TS packets whose PIDs have been corrected (replaced) by the above-described procedure as corrected TS (S431). For example, the predetermined number N can be determined so that the TS packets stored in the buffer are about 1 second. Further, the predetermined number M can be set in the vicinity of N / 2nd.

以上のように、この実施の形態2によれば、受信TS(S430)に多重化された多重要素のPIDに誤りが含まれると判定すると、当該誤りが加わる前のPIDの値として受信TS中に出現し得るPIDの候補から選択したPIDで、誤りが含まれると判定したPIDを修正する。このようにPIDに加わった誤りを、受信TS中に出現し得るPIDの候補から選択したもので修正することで、多重要素のPIDに加わる誤りの影響を軽減でき、誤りに対する耐性を向上させることができる。   As described above, according to the second embodiment, when it is determined that an error is included in the PID of the multiplexed element multiplexed in the reception TS (S430), the value of the PID before the error is added is included in the reception TS. The PID selected from the PID candidates that can appear in the list is corrected. In this way, by correcting the error added to the PID with the one selected from the PID candidates that can appear in the received TS, the influence of the error added to the PID of the multi-element can be reduced, and the tolerance to the error is improved. Can do.

また、上記実施の形態2では、メディア分離装置B400を示したが、多重要素S401〜S413を出力する代わりに、修正TS(S431)を出力するTS修正装置を構成しても構わない。   In the second embodiment, the media separation device B400 is shown. However, instead of outputting the multiple elements S401 to S413, a TS correction device that outputs the correction TS (S431) may be configured.

なお、上記実施の形態2において、TS修正部B401を下記の構成としてもよい。
先ず、TS修正部B401が、各多重要素のビットレートを判定すると共に、分離制御情報S421に多重要素ごとのビットレート項目(例えば、C506)を新たに追加し、判定で得られた各多重要素に対応するビットレートを追加する。
ビットレートの判定方法には、分離制御情報S421の各項目C501〜C505のいずれか若しくは複数の組み合わせに予め用意した所定の概略値を使用する方法、受信TS(S430)中のパケット出現率を、分離制御情報S421中の多重要素ごとに計測する方法等がある。
In the second embodiment, the TS correction unit B401 may have the following configuration.
First, the TS correction unit B401 determines the bit rate of each multiplex element, and newly adds a bit rate item (for example, C506) for each multiplex element to the separation control information S421, and each multiplex element obtained by the determination. Add a bitrate corresponding to.
The bit rate determination method includes a method of using a predetermined approximate value prepared in advance for any one or a plurality of combinations of items C501 to C505 of the separation control information S421, a packet appearance rate in the reception TS (S430), There is a method of measuring for each multiple element in the separation control information S421.

さらに、上記実施の形態2において、PIDの修正を下記の手順で行ってもよい。
(1c)PID、TEI及びCCを、当該TSパケットのヘッダから取得する。
(2c)TEIが誤りなし(=0)を示している場合、当該TSパケットのPID修正は行わない。
(3c)TEIが誤り有り(=1)を示している場合、当該TSパケットに誤りがあると判断し、下記(4b)以降の処理を実行する。
(4c)当該TSパケットのPIDをPID1とし、分離制御情報S421中のある多重要素のPIDをPID2とし、PID2ごとにPID2に対応するビットレートを取得して、ビットレート/(PID1とPID2の符号距離)を評価値として算出し、評価値が最も大きいPID2から順に下記(5c)の判定を行う。
(5c)当該TSパケットの前後それぞれに存在するTSパケットのうち、当該TSパケットと最も位置が近く、かつPIDがPID2と同一で、かつ、CCが連続しているTSパケットを探索する。探索したTSパケットが、当該TSパケットの前後ともに見つかると、当該TSパケットのPIDをPID2で置き換えることが妥当であると判断する。
つまり、誤り有りと判定したPID1とビット一致度が最も高く、かつビットレートが最も高い多重要素のPID2を置き換え対象として選択する。
(6c)置き換えが妥当と判断すると、当該TSパケットのPIDをPID2で置換し、当該TSパケットの処理を終了する。
(7c)置き換えが妥当でないと判断された場合、当該TSパケットのPID修正は行わず、上記(4c)で処理対象となるPIDとして、分離制御情報S421中の次のPID2を選択し、上記(4c)から上記(6c)までの処理を繰り返す。
このようにすることで、多重要素のPIDに加わる誤りの影響を軽減することができ、誤り耐性を向上できる。特に、高ビットレートの多重要素が他の多重要素に影響を与える場合に、誤り耐性向上の効果を発揮できる。
Further, in the second embodiment, the PID may be corrected by the following procedure.
(1c) Obtain PID, TEI, and CC from the header of the TS packet.
(2c) When the TEI indicates no error (= 0), the PID correction of the TS packet is not performed.
(3c) When the TEI indicates that there is an error (= 1), it is determined that there is an error in the TS packet, and the processing from (4b) onward is executed.
(4c) The PID of the TS packet is PID1, the PID of a certain multi-element in the separation control information S421 is PID2, the bit rate corresponding to PID2 is acquired for each PID2, and the bit rate / (PID1 and PID2 code) (Distance) is calculated as an evaluation value, and the following determination (5c) is made in order from PID2 having the largest evaluation value.
(5c) Among TS packets existing before and after the TS packet, search for a TS packet that is closest to the TS packet, has the same PID as PID2, and has a continuous CC. When the searched TS packet is found both before and after the TS packet, it is determined that it is appropriate to replace the PID of the TS packet with PID2.
In other words, PID2 that has the highest bit coincidence with the PID1 determined to have an error and the highest bit rate is selected as a replacement target.
(6c) When it is determined that the replacement is appropriate, the PID of the TS packet is replaced with PID2, and the processing of the TS packet is terminated.
(7c) When it is determined that the replacement is not appropriate, the PID correction of the TS packet is not performed, and the next PID2 in the separation control information S421 is selected as the PID to be processed in (4c), and the above ( The processes from 4c) to (6c) are repeated.
By doing in this way, the influence of the error added to PID of a multiplex element can be reduced, and error tolerance can be improved. In particular, when a high bit rate multiplex element affects other multiplex elements, the effect of improving error tolerance can be exhibited.

さらに、上記実施の形態2で示したPID修正手順(1b)〜(7b)及び(1c)〜(7c)において、受信TS(S430)が、誤り訂正符号による訂正後のTSであり、各TSパケットには付加された誤り訂正符号が残っている場合、TS修正部B401が、修正TS(S431)を出力する前に、誤り訂正符号による訂正を再び行ってから、出力するようにしてもよい。
このようにすることで、受信TS(S430)の入力前に行われた誤り訂正符号による訂正で訂正不能となったTSパケットが、TS修正部B401によるPID部の修正で、誤り訂正符号の訂正可能範囲に入った場合には、当該TSパケットに含まれる誤りを無くすことができる。
Furthermore, in the PID correction procedures (1b) to (7b) and (1c) to (7c) shown in the second embodiment, the received TS (S430) is a TS corrected by the error correction code, and each TS If the added error correction code remains in the packet, the TS correction unit B401 may perform correction using the error correction code again before outputting the corrected TS (S431), and then output the corrected TS (S431). .
By doing so, the TS packet that cannot be corrected by the correction by the error correction code performed before the input of the reception TS (S430) is corrected by the correction of the PID part by the TS correction unit B401. When entering the possible range, errors contained in the TS packet can be eliminated.

B100 メディア多重装置、B101 PID割当部(割当部)、B102 PAT生成部、B103 PMT生成部、B104 多重部、B400 メディア分離装置、B401 TS修正部(修正部)、B402 分離部、B403 分離制御情報抽出部。   B100 Media multiplexer, B101 PID allocation unit (allocation unit), B102 PAT generation unit, B103 PMT generation unit, B104 multiplexing unit, B400 media separation device, B401 TS correction unit (correction unit), B402 separation unit, B403 separation control information Extraction unit.

Claims (9)

複数のメディア信号を入力し、これらのメディア信号を多重化してメディア多重信号として出力するメディア多重装置において、
入力した前記複数のメディア信号をそれぞれ識別するために割り当てられる識別子を、前記識別子同士の符号距離が離れるように前記メディア信号に割り当てる割当部を備えたことを特徴とするメディア多重装置。
In a media multiplexer that inputs a plurality of media signals, multiplexes these media signals and outputs them as media multiplexed signals,
A media multiplexing apparatus, comprising: an assigning unit that assigns identifiers assigned to identify each of the plurality of input media signals to the media signals such that a code distance between the identifiers is separated.
前記割当部は、前記複数のメディア信号のうち、伝送レートが最も高いメディア信号に割り当てた識別子が、他のメディア信号に割り当てた識別子との間で符号距離がより離れるように、前記メディア信号ごとの識別子を割り当てることを特徴とする請求項1記載のメディア多重装置。   The assigning unit is configured so that an identifier assigned to a media signal having the highest transmission rate among the plurality of media signals is separated from the identifier assigned to another media signal by a code distance. The media multiplexer according to claim 1, wherein the identifier is assigned. 前記割当部は、前記メディア信号ごとに割り当てる識別子のうちの少なくとも1つに、外部から指定された値を設定することを特徴とする請求項1または請求項2記載のメディア多重装置。   3. The media multiplexing apparatus according to claim 1, wherein the assigning unit sets a value designated from the outside to at least one of the identifiers assigned to the media signals. 前記メディア多重信号は、トランスポートストリームであり、
識別子は、前記トランスポートストリーム中にパケット化されたメディア信号を識別するPID(Packet IDentification)であることを特徴とする請求項1から請求項3のうちのいずれか1項記載のメディア多重装置。
The media multiplexed signal is a transport stream,
4. The media multiplexing apparatus according to claim 1, wherein the identifier is a PID (Packet IDentification) that identifies a media signal packetized in the transport stream.
複数のメディア信号が多重化されたメディア多重信号を入力し、当該メディア多重信号から前記メディア信号を分離して出力するメディア分離装置において、
入力した前記メディア多重信号に多重化されたメディア信号をそれぞれ識別するために割り当てられている識別子に誤りが含まれるか否かを判定し、誤りが含まれると判定すると、当該誤りが加わる前の識別子の値として前記メディア多重信号中に出現し得る識別子の候補から選択した識別子で、前記誤りが含まれると判定した識別子を修正する修正部を備えたことを特徴とするメディア分離装置。
In a media separation device for inputting a media multiplexed signal in which a plurality of media signals are multiplexed, and separating and outputting the media signal from the media multiplexed signal,
It is determined whether or not an identifier assigned to identify each of the media signals multiplexed in the input media multiplexed signal includes an error. When it is determined that an error is included, before the error is added, An apparatus for separating media, comprising: an identifier selected from candidate identifiers that can appear in the media multiplexed signal as an identifier value, and correcting an identifier determined to contain the error.
前記修正部は、前記誤りが加わる前の識別子の値として前記メディア多重信号中に出現し得る識別子の候補のうち、前記誤りが含まれると判定した識別子とのビット一致度が最も高い識別子を選択することを特徴とする請求項5記載のメディア分離装置。   The correction unit selects an identifier having the highest degree of bit coincidence with an identifier determined to include the error from among identifier candidates that can appear in the media multiplexed signal as a value of the identifier before the error is added. The media separating apparatus according to claim 5, wherein: 前記修正部は、前記誤りが加わる前の識別子の値として前記メディア多重信号中に出現し得る識別子の候補のうち、前記誤りが含まれると判定した識別子とのビット一致度が最も高く、かつ伝送レートが最も高いメディア信号の識別子を選択することを特徴とする請求項5記載のメディア分離装置。   The correction unit has the highest bit coincidence with the identifier determined to include the error among the identifier candidates that may appear in the media multiplexed signal as the identifier value before the error is added, and is transmitted. 6. The media separating apparatus according to claim 5, wherein an identifier of a media signal having the highest rate is selected. 前記修正部は、入力した前記メディア多重信号が誤り訂正符号によって予め訂正されているとき、識別子の修正を行った後に前記誤り訂正符号による訂正を再び行うことを特徴とする請求項5から請求項7のうちのいずれか1項記載のメディア分離装置。   6. The correction unit according to claim 5, wherein when the input media multiplexed signal is corrected in advance by an error correction code, the correction unit performs correction by the error correction code after correcting the identifier. The media separating apparatus according to claim 1. 前記メディア多重信号は、トランスポートストリームであり、
識別子は、前記トランスポートストリーム中にパケット化されたメディア信号を識別するPIDであることを特徴とする請求項5から請求項8のうちのいずれか1項記載のメディア分離装置。
The media multiplexed signal is a transport stream,
9. The media separating apparatus according to claim 5, wherein the identifier is a PID that identifies a media signal packetized in the transport stream.
JP2010040256A 2010-02-25 2010-02-25 Media separator Expired - Fee Related JP5733899B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010040256A JP5733899B2 (en) 2010-02-25 2010-02-25 Media separator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010040256A JP5733899B2 (en) 2010-02-25 2010-02-25 Media separator

Publications (2)

Publication Number Publication Date
JP2011176703A true JP2011176703A (en) 2011-09-08
JP5733899B2 JP5733899B2 (en) 2015-06-10

Family

ID=44689132

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010040256A Expired - Fee Related JP5733899B2 (en) 2010-02-25 2010-02-25 Media separator

Country Status (1)

Country Link
JP (1) JP5733899B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015037281A (en) * 2013-08-15 2015-02-23 富士ゼロックス株式会社 Communication apparatus, control device, and communication processing program
JP2015080091A (en) * 2013-10-17 2015-04-23 富士ゼロックス株式会社 Communication device, control device and image formation device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06244845A (en) * 1993-02-18 1994-09-02 Furukawa Electric Co Ltd:The Multiple transmission system
JP2000032055A (en) * 1998-07-16 2000-01-28 Toshiba Corp Information data multiplex transmission system
JP2000224226A (en) * 1999-01-27 2000-08-11 Denso Corp Error control system, device, transmission and reception controller
JP2002118514A (en) * 2000-08-02 2002-04-19 Matsushita Electric Ind Co Ltd Communication terminal device, base station device and radio communication method
JP2003283468A (en) * 2002-03-20 2003-10-03 Hitachi Kokusai Electric Inc Error correction processing method and transmission apparatus
JP2005130153A (en) * 2003-10-23 2005-05-19 Hitachi Ltd Coding system
JP2008294510A (en) * 2007-05-22 2008-12-04 Sumitomo Electric Ind Ltd Optical signal receiver, and receiving method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06244845A (en) * 1993-02-18 1994-09-02 Furukawa Electric Co Ltd:The Multiple transmission system
JP2000032055A (en) * 1998-07-16 2000-01-28 Toshiba Corp Information data multiplex transmission system
JP2000224226A (en) * 1999-01-27 2000-08-11 Denso Corp Error control system, device, transmission and reception controller
JP2002118514A (en) * 2000-08-02 2002-04-19 Matsushita Electric Ind Co Ltd Communication terminal device, base station device and radio communication method
JP2003283468A (en) * 2002-03-20 2003-10-03 Hitachi Kokusai Electric Inc Error correction processing method and transmission apparatus
JP2005130153A (en) * 2003-10-23 2005-05-19 Hitachi Ltd Coding system
JP2008294510A (en) * 2007-05-22 2008-12-04 Sumitomo Electric Ind Ltd Optical signal receiver, and receiving method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015037281A (en) * 2013-08-15 2015-02-23 富士ゼロックス株式会社 Communication apparatus, control device, and communication processing program
JP2015080091A (en) * 2013-10-17 2015-04-23 富士ゼロックス株式会社 Communication device, control device and image formation device

Also Published As

Publication number Publication date
JP5733899B2 (en) 2015-06-10

Similar Documents

Publication Publication Date Title
US8275002B2 (en) Broadcasting service transmitting apparatus and method and broadcasting service receiving apparatus and method for effectively accessing broadcasting service
US20210250394A1 (en) Transmission method, reception method, transmission apparatus, and reception apparatus
US10361801B2 (en) Transmission method, transmission apparatus and system
EP3073745A1 (en) Transmission method, receiving method, transmission device and receiving device
US11743312B2 (en) Transmission method, reception method, transmission apparatus, and reception apparatus
EP3068138B1 (en) Transmission method, reception method, transmission apparatus, and reception apparatus
CN101505417B (en) Time-stamp addition apparatus and time-stamp addition method
US20190306560A1 (en) Decoding apparatus, demultiplexing apparatus, decoding method, and demultiplexing method
JP4425980B2 (en) Multimedia information receiver
JP5733899B2 (en) Media separator
TWI387269B (en) Packet processing apparatus and packet processing method
JP2023068005A (en) Transmission method, reception method, transmitter and receiver
CA2666573C (en) Broadcasting service transmitting apparatus and method and broadcasting service receiving apparatus and method for effectively accessing broadcasting service
US10652608B2 (en) Receiving apparatus and method, and transmitting apparatus and method
US20240223633A1 (en) Transmission method, reception method, transmission apparatus, and reception apparatus
US8539227B2 (en) Digital broadcasting receiving apparatus and scramble channel deciding method capable of shortening time required for scramble decision

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120808

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131112

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140110

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140513

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140711

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140805

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141003

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150414

R150 Certificate of patent or registration of utility model

Ref document number: 5733899

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees