JP2021166342A - Distribution device and distribution method - Google Patents

Distribution device and distribution method Download PDF

Info

Publication number
JP2021166342A
JP2021166342A JP2020069003A JP2020069003A JP2021166342A JP 2021166342 A JP2021166342 A JP 2021166342A JP 2020069003 A JP2020069003 A JP 2020069003A JP 2020069003 A JP2020069003 A JP 2020069003A JP 2021166342 A JP2021166342 A JP 2021166342A
Authority
JP
Japan
Prior art keywords
stream file
time data
unit
stream
distribution device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2020069003A
Other languages
Japanese (ja)
Inventor
隆光 千見寺
Takamitsu Chikedera
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.)
Toshiba Corp
Toshiba Infrastructure Systems and Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Infrastructure Systems and Solutions 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 Toshiba Corp, Toshiba Infrastructure Systems and Solutions Corp filed Critical Toshiba Corp
Priority to JP2020069003A priority Critical patent/JP2021166342A/en
Publication of JP2021166342A publication Critical patent/JP2021166342A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide a distribution device and a distribution method that can seamlessly switch contents.SOLUTION: The distribution device has a processor provided with a decryption unit, a detection unit, an insertion unit, a correction unit, and a distribution unit. The decryption unit decrypts time data of a first stream file and time data of a second stream file different from the first stream file. The detection unit detects, based on a result of decryption, overlapping of playback timings of pictures when the first stream file is switched for playback to the second stream file. When the overlapping is detected, the insertion unit inserts dummy data into the first stream file to resolve the overlapping. The correction unit corrects the time data of the first stream into which the dummy data is inserted. The distribution unit distributes the first stream file whose time data is corrected and the second stream file.SELECTED DRAWING: Figure 1

Description

本発明の実施形態は、配信装置および配信方法に関する。 Embodiments of the present invention relate to a distribution device and a distribution method.

IP(Internet Protocol)ネットワークを介してMPEG(Moving Picture Experts Group)−2システムのデジタル放送を再放送する、IP再放送システムが知られている。この種のシステムを用いて、例えば販促用のプロモーション・コンテンツ等の、特定のコンテンツの映像/音声をユーザ端末に配信するサービスが提供されている。ユーザ端末は、配信されたコンテンツを繰り返し再生(ループ再生)する。 An IP rebroadcast system is known that rebroadcasts the digital broadcast of an MPEG (Moving Picture Experts Group) -2 system via an IP (Internet Protocol) network. Using this type of system, a service for distributing video / audio of specific content such as promotional content for sales promotion to a user terminal is provided. The user terminal repeatedly plays back the delivered content (loop playback).

特表2005−537708号公報Special Table 2005-537708 特開2011−2500号公報Japanese Unexamined Patent Publication No. 2011-2500 特表2009−521164号公報Special Table 2009-521164

プロモーション・コンテンツは販促を目的とするものであるので、随時、あるいは定期的に入れ替えられる。その際、再生中のコンテンツAから次のコンテンツBに単純に切り替えると、TS(Transport Stream)ファイルに含まれる時間データの連続性が失われ、ユーザ端末(Set Top Box:STB)がエラーを起こすことがあった。なお時刻情報には、例えばPCR(Program Clock reference:プログラム時刻基準値)、PTS(Presentation Time Stamp)、DTS(Decoding Time Stamp)等がある。 Promotional content is for promotional purposes and is therefore replaced at any time or on a regular basis. At that time, if the content A being played is simply switched to the next content B, the continuity of the time data contained in the TS (Transport Stream) file is lost, and the user terminal (Set Top Box: STB) causes an error. There was something. The time information includes, for example, PCR (Program Clock reference), PTS (Presentation Time Stamp), DTS (Decoding Time Stamp), and the like.

これを回避するには、コンテンツ間のつなぎ目においてMPEG編集を行って、PCR、PTS、DTSをリスタンプし連続性を確保する方法があるが、ループ再生する2つのコンテンツ間の終端と先頭のみを編集することは難しく、そもそも、状況に応じて次回再生する販促コンテンツを決める運用において、予めMPEG編集を行っておくことができない。コンテンツ同士の再生レートが異なる場合にはまだしも、再生レートが同じである場合には、コンテンツ切り替えの際のショックを防止し、シームレスに切り替えられるようにすることが望まれる。 To avoid this, there is a method of performing MPEG editing at the joint between contents and re-stamping PCR, PTS, DTS to ensure continuity, but editing only the end and the beginning between the two contents to be played in a loop. It is difficult to do so, and in the first place, it is not possible to perform MPEG editing in advance in the operation of deciding the sales promotion content to be played next time according to the situation. If the playback rates of the contents are different, but if the playback rates are the same, it is desired to prevent a shock when switching the contents so that the contents can be switched seamlessly.

そこで、目的は、コンテンツをシームレスに切り替えることの可能な配信装置および配信方法を提供することにある。 Therefore, an object of the present invention is to provide a distribution device and a distribution method capable of seamlessly switching contents.

実施形態によれば、配信装置は、符号化されたピクチャを含む複数のピクチャデータとピクチャごとの再生タイミングを規定する時間データとを含むストリームファイルを配信する。配信装置は、解読部と、検出部と、挿入部と、修正部と、配信部とを具備する。解読部は、第1ストリームファイルの時間データと、この第1ストリームファイルとは異なる第2ストリームファイルの時間データとを解読する。検出部は、解読の結果に基づいて、第1ストリームファイルから第2ストリームファイルに切り替え再生する場合のピクチャ同志の再生タイミングの重なりを検出する。挿入部は、重なりが検出された場合に、当該重なりを解消すべく第1ストリームファイルにダミーデータを挿入する。修正部は、ダミーデータを挿入された第1ストリームファイルの時間データを修正する。配信部は、時間データを修正された第1ストリームファイルと第2ストリームファイルとを配信する。 According to the embodiment, the distribution device distributes a stream file including a plurality of picture data including the encoded picture and time data that defines the reproduction timing for each picture. The distribution device includes a decoding unit, a detection unit, an insertion unit, a correction unit, and a distribution unit. The decoding unit decodes the time data of the first stream file and the time data of the second stream file different from the first stream file. Based on the result of decoding, the detection unit detects the overlap of the reproduction timings of the pictures when switching from the first stream file to the second stream file and reproducing the files. When an overlap is detected, the insertion unit inserts dummy data into the first stream file in order to eliminate the overlap. The correction unit corrects the time data of the first stream file in which the dummy data is inserted. The distribution unit distributes the first stream file and the second stream file in which the time data is modified.

図1は、実施形態に係わるコンテンツ配信システムの一例を示すシステム図である。FIG. 1 is a system diagram showing an example of a content distribution system according to an embodiment. 図2は、MPEG2−システムにおけるストリーム構造を説明するための図である。FIG. 2 is a diagram for explaining a stream structure in an MPEG2-system. 図3は、切り替え再生時のエラーについて説明するための図である。FIG. 3 is a diagram for explaining an error during switching reproduction. 図4は、実施形態における配信装置4の処理手順の一例を示すフローチャートである。FIG. 4 is a flowchart showing an example of the processing procedure of the distribution device 4 in the embodiment. 図5は、STBエラーが解消されることを説明するための図である。FIG. 5 is a diagram for explaining that the STB error is eliminated.

次に、この発明の実施の形態について説明する。実施の形態では、MPEG−2システムに準拠し、ストリームファイルとしてのTS(Transport Stream)ファイルを配信するコンテンツ配信システムを想定する。 Next, an embodiment of the present invention will be described. In the embodiment, a content distribution system that conforms to the MPEG-2 system and distributes a TS (Transport Stream) file as a stream file is assumed.

図1は、実施形態に係わるコンテンツ配信システムの一例を示すシステム図である。本実施形態のシステムは、例えばプロモーション・コンテンツの映像(音声も含む)を、IPマルチキャストにより複数の端末機器に配信する。プロモーション・コンテンツは、例えば、通信キャリアやBSデジタル放送等の事業者の販促用の宣伝・広告などの映像コンテンツである。もちろん、特定の映像コンテンツは、プロモーション・コンテンツに限定されるものではない。 FIG. 1 is a system diagram showing an example of a content distribution system according to an embodiment. The system of the present embodiment distributes, for example, video (including audio) of promotional content to a plurality of terminal devices by IP multicast. The promotion content is, for example, video content such as an advertisement / advertisement for sales promotion of a telecommunications carrier or a business operator such as BS digital broadcasting. Of course, the specific video content is not limited to the promotional content.

図1において、配信装置4は、例えば編集拠点に置かれたパーソナルコンピュータ(PC)2に、LAN(Local Area network)3を経由して接続される。PC2は、ループ再生のためのストリームファイルを作成し、LAN2経由で配信装置4に転送する。 In FIG. 1, the distribution device 4 is connected to, for example, a personal computer (PC) 2 located at an editing base via a LAN (Local Area network) 3. The PC 2 creates a stream file for loop playback and transfers it to the distribution device 4 via the LAN 2.

配信装置4は、ストリームファイルをPC2から取得し、記憶部42に記憶する。実施形態において記憶部42は、第1ストリームファイル42a、第2ストリームファイル42b、および、修正第1ストリームファイル42a′を記憶する。第1ストリームファイル42a、第2ストリームファイル42b、および、修正第1ストリームファイル42a′は、それぞれ時間データTa、Tb、およびTa′を含む。ここで、時間データとは、MPEG2−TSピクチャの再生タイミングを規定する情報であり、例えばPCR、PTS、DTSである。MPEG2−TSの構造は、後述される(図2)。 The distribution device 4 acquires the stream file from the PC 2 and stores it in the storage unit 42. In the embodiment, the storage unit 42 stores the first stream file 42a, the second stream file 42b, and the modified first stream file 42a'. The first stream file 42a, the second stream file 42b, and the modified first stream file 42a'contain the time data Ta, Tb, and Ta', respectively. Here, the time data is information that defines the reproduction timing of the MPEG2-TS picture, and is, for example, PCR, PTS, or DTS. The structure of MPEG2-TS will be described later (Fig. 2).

修正第1ストリームファイル42a′は、配信先において、第2ストリームファイル42aの直前に再生される。第2ストリームファイル42bは、配信先において、修正第1ストリームファイル42a′から切り替え再生される。修正第1ストリームファイル42a′は、第1ストリームファイル42aに、必要な長さのNULL TSを挿入し、このNULL TSを挿入したことと整合するように時間データTaを修正して(時間データ(修正)Ta′)、生成されるストリームファイルである。詳細は後述される。 The modified first stream file 42a'is played at the delivery destination immediately before the second stream file 42a. The second stream file 42b is switched and played from the modified first stream file 42a'at the delivery destination. The modified first stream file 42a'inserts the NULL TS of the required length into the first stream file 42a, and modifies the time data Ta so as to be consistent with the insertion of the NULL TS (time data (time data ( Modification) Ta'), the generated stream file. Details will be described later.

配信装置4のプロセッサ41は、第1ストリームファイル42aを加工する。配信部43は、第1ストリームファイル42aを記憶部42から読み出し、ネットワーク5経由でSTB22−1〜22−nに配信する。また、切替再生のタイミングが来ると、配信部43は、修正第1ストリームファイル42a′、および第2ストリームファイル42bを記憶部42から読み出し、STB22−1〜22−nに配信する。ここで、ネットワーク5は例えばIPネットワークである。 The processor 41 of the distribution device 4 processes the first stream file 42a. The distribution unit 43 reads the first stream file 42a from the storage unit 42 and distributes it to STB22-1 to 22-n via the network 5. Further, when the timing of switching reproduction comes, the distribution unit 43 reads the modified first stream file 42a'and the second stream file 42b from the storage unit 42 and distributes them to STB22-1 to 22-n. Here, the network 5 is, for example, an IP network.

STB22−1〜22−nはそれぞれ、サービス事業者と契約した事業者により、店舗等に設置された専用端末機器(受信装置)である。あるいは、STB22−1〜22−nは、例えばBSデジタル放送等の事業者と契約したユーザの宅内に設置される。STB22−1〜22−nはそれぞれ、例えば、デジタルテレビ受像機やディスプレイ機器に接続され、ネットワーク5を経由してIPマルチキャストで配信されるTSを受信する。STB22−1〜22−nは、受信したTSに対する再生処理(復号処理を含む)を実行し、再生処理後の映像信号をデジタルテレビ受像機やディスプレイ機器に出力する。 Each of STB22-1 to 22-n is a dedicated terminal device (receiver) installed in a store or the like by a business operator contracted with a service business operator. Alternatively, STB22-1 to 22-n are installed in the home of a user who has a contract with a business operator such as BS digital broadcasting. Each of STB22-1 to 22-n is connected to, for example, a digital television receiver or a display device, and receives TS delivered by IP multicast via network 5. The STBs 22-1 to 22-n execute a reproduction process (including a decoding process) for the received TS, and output the video signal after the reproduction process to a digital television receiver or a display device.

配信装置4は、コンピュータであり、CPU(Central Processing Unit)やMPU(Micro Processing Unit)等のプロセッサ41と、記憶部42としてのメモリとを備える。ここで、MPEG2−システムにおけるストリーム構造を説明する。 The distribution device 4 is a computer, and includes a processor 41 such as a CPU (Central Processing Unit) and an MPU (Micro Processing Unit), and a memory as a storage unit 42. Here, the stream structure in the MPEG2-system will be described.

図2は、MPEG2−システムにおけるストリーム構造を説明するための図である。TSファイルは、階層的な構造を有し、符号化されたピクチャを含む複数のピクチャデータを含むES(Elementary Stream)を格納する。ESは各ピクチャの表示タイミングを規定するPTS(Presentation Time Stamp)フィールドと、デコードタイミングを規定するDTS(Decoding Time Stamp)フィールドとを含む。PTS、DTSは、ピクチャ毎の再生タイミングを規定する時間データである。 FIG. 2 is a diagram for explaining a stream structure in an MPEG2-system. The TS file has a hierarchical structure and stores an ES (Elementary Stream) including a plurality of picture data including encoded pictures. The ES includes a PTS (Presentation Time Stamp) field that defines the display timing of each picture and a DTS (Decoding Time Stamp) field that defines the decoding timing. PTS and DTS are time data that define the reproduction timing for each picture.

ESはPH(PES Header)を付与されてPES(Packetized Elementary Stream)パケットとなり、さらにTH(TS Header)を付与されて多重化され、TSが生成される。なおTSはTTS(Time-stamped Transport Stream)であってもよい。 The ES is given a PH (PES Header) to become a PES (Packetized Elementary Stream) packet, and is further given a TH (TS Header) and multiplexed to generate a TS. The TS may be TTS (Time-stamped Transport Stream).

ESは、例えばIピクチャ、Bピクチャ、およびPピクチャを含み、各ピクチャの表示(再生)タイミングはDTSおよびPTSにより規定される。ここで、異なるストリームファイル間でDTSおよびPTSに不整合を生じると、DTSおよびPTSにより規定されたタイミングでピクチャを再生することができなくなる。 The ES includes, for example, an I picture, a B picture, and a P picture, and the display (reproduction) timing of each picture is defined by DTS and PTS. Here, if the DTS and PTS are inconsistent between different stream files, the picture cannot be played back at the timing specified by the DTS and PTS.

図1に戻って説明する。プロセッサ41は、実施形態に係る処理機能として解読部41a、検出部41b、挿入部41c、および、修正部41dを備える。これらの機能ブロックは、記憶部42に記憶されたプログラムの進行に伴ってプロセッサ41が演算処理を実行することで生成されるプロセスとして、理解され得る。 It will be described back to FIG. The processor 41 includes a decoding unit 41a, a detection unit 41b, an insertion unit 41c, and a correction unit 41d as processing functions according to the embodiment. These functional blocks can be understood as a process generated by the processor 41 executing arithmetic processing as the program stored in the storage unit 42 progresses.

解読部41aは、第1ストリームファイル42aのPHを解析して、少なくとも最後尾のPTSおよびDTSを抽出する。そして、これらのPTSおよびDTSの内容を解読する。また解読部41aは、第2ストリームファイル42bのPHも解析して、少なくとも最後尾のPTSおよびDTSを抽出する。そして、これらのPTSおよびDTSの内容を解読する。解読された結果は、記憶部42に一時的に記憶される。 The decoding unit 41a analyzes the PH of the first stream file 42a and extracts at least the last PTS and DTS. Then, the contents of these PTS and DTS are deciphered. The decoding unit 41a also analyzes the PH of the second stream file 42b and extracts at least the last PTS and DTS. Then, the contents of these PTS and DTS are deciphered. The decoded result is temporarily stored in the storage unit 42.

検出部41bは、解読部41aによる解読の結果に基づいて、第1ストリームファイル42aから第2ストリームファイル42bに切り替え再生する場合の、各ストリームファイルのピクチャ同志の再生タイミングの重なりを検出する。 Based on the result of decoding by the decoding unit 41a, the detection unit 41b detects the overlap of the reproduction timings of the pictures of the respective stream files when the first stream file 42a is switched to the second stream file 42b for reproduction.

挿入部41cは、ピクチャ同志の再生タイミングの重なりが検出されると、この重なりを解消すべく、第1ストリームファイル42aの最後尾に、ダミーデータとしてのNULL TSを追加する。 When the overlap of the reproduction timings of the pictures is detected, the insertion unit 41c adds NULL TS as dummy data to the end of the first stream file 42a in order to eliminate the overlap.

修正部41dは、NULL TSを追加された第1ストリームファイル42aの、PCRのリスタンプ処理を行う。つまり修正部41dは、PTS、DTSを修正する。これにより修正第1ストリームファイル42a′が生成される。修正第1ストリームファイル42a′は、ネットワーク5経由で配信される。 The correction unit 41d performs PCR re-stamping processing of the first stream file 42a to which the NULL TS is added. That is, the correction unit 41d corrects the PTS and DTS. As a result, the modified first stream file 42a'is generated. The modified first stream file 42a'is distributed via the network 5.

図3に示されるように、異なるストリームファイルを単純に切り替え再生すると、時間的に前後するストリームファイル同志の、最後尾と先頭部とのつなぎ目においてエラーを生じることがある。例えば、第1ストリームファイル42aの最後尾のP11ピクチャとI11ピクチャとの間に、第1ストリームファイル42bの先頭のB21ピクチャが割込んでしまうことがある。この場合、STBにとってはP11ピクチャとB22ピクチャとのどちらを表示すべきかを決めることができない。つまり複数のピクチャの表示タイミングに不整合が生じ、結果として再生不可能(STBエラー)となってしまう。 As shown in FIG. 3, when different stream files are simply switched and played back, an error may occur at the joint between the end and the beginning of the stream files that are back and forth in time. For example, the B21 picture at the beginning of the first stream file 42b may be interrupted between the P11 picture at the end of the first stream file 42a and the I11 picture. In this case, the STB cannot decide whether to display the P11 picture or the B22 picture. That is, inconsistencies occur in the display timings of a plurality of pictures, and as a result, playback becomes impossible (STB error).

このように、現在再生中のコンテンツの最後尾のPCR、PTS、DTSの値と、次に再生予定のコンテンツの先頭のPCR、PTS、DTSの値とには、何ら関係がない。つまり、切り替え再生のつなぎ目において、時間データ(カウンタ値)の連続性が無い。これにも拘わらずSTBは、切替前のPCRに同期し、PTSで表示タイミング、DTSでデコードタイミングを決めているので、次のコンテンツへの切替の際に新たなPCRに再同期しなくてはならず、再生が一時中断してしまっていた。以下に、このような不具合を解消可能な配信装置4の作用について説明する。 As described above, the values of PCR, PTS, and DTS at the end of the content currently being played have nothing to do with the values of PCR, PTS, and DTS at the beginning of the content to be played next. That is, there is no continuity of time data (counter value) at the joint of switching playback. Despite this, STB synchronizes with the PCR before switching, and the display timing is determined by PTS and the decoding timing is determined by DTS, so it is necessary to resynchronize with the new PCR when switching to the next content. Instead, the playback was temporarily interrupted. The operation of the distribution device 4 capable of eliminating such a problem will be described below.

図4は、実施形態における配信装置4の処理手順の一例を示すフローチャートである。図4において、配信装置4は、現在再生中のTSファイル(第1ストリームファイル)のPHを解析し、最後尾のPCR、PTS、DTSを検出する(ステップS11)。検出されたPCR、PTS、DTSは、時間データとして記憶部42に記憶される。 FIG. 4 is a flowchart showing an example of the processing procedure of the distribution device 4 in the embodiment. In FIG. 4, the distribution device 4 analyzes the PH of the TS file (first stream file) currently being played back, and detects the last PCR, PTS, and DTS (step S11). The detected PCR, PTS, and DTS are stored in the storage unit 42 as time data.

次に、配信装置4は、検出したPTS、DTSに基づく最後尾ピクチャの表示タイミングが次回再生の先頭ピクチャの表示タイミングに重なるか否かを判定する(ステップS12)。重なりが有れば(ステップS12でYES)、配信装置4は、次回再生先頭のピクチャに重ならない、最小限の時間幅のNULL TSを挿入する(ステップS13)。 Next, the distribution device 4 determines whether or not the display timing of the last picture based on the detected PTS and DTS overlaps with the display timing of the first picture of the next reproduction (step S12). If there is an overlap (YES in step S12), the distribution device 4 inserts a NULL TS having a minimum time width that does not overlap with the picture at the beginning of the next reproduction (step S13).

次に配信装置4は、PCRリスタンプ処理を行い(ステップS14)、さらにPTS、DTSリスタンプ処理を行って(ステップS15)、TS(TTS)パケットを送出する(ステップS16)。ステップS14〜ステップS16の手順は、ループ再生の終了(ステップS17でYES)まで繰り返される。送出されたTS(TTS)パケットは、STB22−1〜22−nで受信される。STB22−1〜22−nは、受信したTS(TTS)パケットのPCRに基づきPESからESを復元し、ESのPTS、DTSに基づき各ピクチャのデコードと表示を行う。 Next, the distribution device 4 performs PCR re-stamping processing (step S14), further performs PTS and DTS re-stamping processing (step S15), and transmits a TS (TTS) packet (step S16). The procedure of steps S14 to S16 is repeated until the end of the loop reproduction (YES in step S17). The transmitted TS (TTS) packet is received at STB22-1 to 22-n. STB22-1 to 22-n restores ES from PES based on the PCR of the received TS (TTS) packet, and decodes and displays each picture based on PTS and DTS of ES.

ここで、コンテンツ切り替えが実施されたとする(ステップS18でYES)。そうすると配信装置4は、次回再生のTSファイル(第2ストリームファイル)のPHを解析し、先頭のPTS、DTSを検出する(ステップS21)。また配信装置4は、現在再生中の第1ストリームファイルの最後尾のPTS、DTSを記憶部42から取得する(ステップS22)。 Here, it is assumed that the content switching is performed (YES in step S18). Then, the distribution device 4 analyzes the PH of the TS file (second stream file) to be reproduced next time, and detects the leading PTS and DTS (step S21). Further, the distribution device 4 acquires the PTS and DTS at the end of the first stream file currently being played back from the storage unit 42 (step S22).

次に配信装置4は、第2ストリームファイル先頭のPTS、DTSと、第1ストリームファイルの最後尾のPTS、DTSとを照合する(ステップS23)。第2ストリームファイルのPTS,DTSが、現在再生中の最後尾のPTS、DTSに重なる場合(YES)、配信装置4は、次回再生先頭PTS、DTSと重ならない最小限の時間幅のNULL TSを、第1ストリームファイルの最後尾に挿入する(ステップS24)。 Next, the distribution device 4 collates the PTS and DTS at the beginning of the second stream file with the PTS and DTS at the end of the first stream file (step S23). When the PTS and DTS of the second stream file overlap with the last PTS and DTS currently being played (YES), the distribution device 4 sets the FULL TS having the minimum time width that does not overlap with the next playback start PTS and DTS. , Is inserted at the end of the first stream file (step S24).

次に配信装置4は、現在再生中のPCRと連続性を維持するように、第2ストリームファイルのPCRのリスタンプ処理を行う(ステップS25)。さらに配信装置4は、リスタンプしたPCRとPTS、DTSの値の関係が、リスタンプ前のPCRとPTS、DTSの関係と同じになるように第2ストリームファイルのPTS、DTSリスタンプ処理を行う(ステップS26)。 Next, the distribution device 4 re-stamps the PCR of the second stream file so as to maintain continuity with the PCR currently being reproduced (step S25). Further, the distribution device 4 performs PTS and DTS restamping processing of the second stream file so that the relationship between the restamped PCR and the PTS and DTS values is the same as the relationship between the PCR and PTS and DTS before restamping (step S26). ).

そして配信装置4は、現在再生中のコンテンツの終了と同期して(ステップS27)、第2ストリームファイルをシームレスに送出する(ステップS28)。なお、別途バッファ等を設け、現在再生中コンテンツの終了前に第2ストリームファイルをバッファリングし、コンテンツの切替区間の送出データを予め準備してもよい。 Then, the distribution device 4 seamlessly sends out the second stream file (step S28) in synchronization with the end of the content currently being played (step S27). A separate buffer or the like may be provided to buffer the second stream file before the end of the content currently being played, and the transmission data of the content switching section may be prepared in advance.

切り替え再生後のループ再生の2巡目以降において、配信装置4は、現在再生中のコンテンツの最後尾PTS、DTSと次回再生先頭PTS、DTSとが重ならない、最小限の時間幅のNULL TSを挿入し、PCR、PTS、DTSをリスタンプし送出する。 In the second and subsequent rounds of loop playback after switching playback, the distribution device 4 performs NULL TS with a minimum time width in which the last PTS and DTS of the content currently being played and the first PTS and DTS of the next playback do not overlap. Insert and re-stamp and send PCR, PTS, DTS.

図5に示されるように、ストリームファイルの最後尾にNULL TSを挿入することで、PES、ES、デコード、および表示のいずれのステージにおいてもPCRが維持される。つまりピクチャ間の表示タイミングが重なることが無い。これによりSTB22−1〜22−nは、最小限のショックで、エラーに陥ることなく動作を継続することができる。すなわちコンテンツ入れ替えの際においても、ループ再生のつなぎ目でのSTBエラーを低減し、スムーズに視聴することが可能となる。 By inserting the NULL TS at the end of the stream file, as shown in FIG. 5, PCR is maintained at all stages of PES, ES, decoding, and display. That is, the display timings between the pictures do not overlap. As a result, STBs 22-1 to 22-n can continue to operate with minimal shock and without error. That is, even when the contents are replaced, the STB error at the joint of the loop playback is reduced, and the viewing can be performed smoothly.

以上のように実施形態では、互いに関連の無いコンテンツ間の、不連続なPCR、PTS、DTSについて、コンテンツのつなぎ目におけるPTS、DTSの重なりを無くし、PCR、PTS、DTSの連続性を維持するようにした。つまり、異なる2つのコンテンツ間で、現在再生中のコンテンツの最後尾のPCRと、次回再生するコンテンツの先頭PCRの連続性を維持するようにPCRのリスタンプを自動で行うようにした。また、現在再生中のコンテンツの最後尾と次回再生予定のコンテンツの先頭との間にNULL TSを挿入することで、現在再生中のコンテンツの最後尾のPTS、DTSと、次回再生するコンテンツ先頭のPTS、DTSの重なりを無くすようにした。 As described above, in the embodiment, for discontinuous PCR, PTS, and DTS between contents that are not related to each other, the overlap of PTS and DTS at the joint of the contents is eliminated, and the continuity of PCR, PTS, and DTS is maintained. I made it. That is, the PCR is automatically re-stamped so as to maintain the continuity between the PCR at the end of the content currently being played and the PCR at the beginning of the content to be played next time between two different contents. In addition, by inserting FULL TS between the end of the content currently being played and the beginning of the content scheduled to be played next time, the PTS and DTS at the end of the content currently being played and the beginning of the content to be played next time are inserted. The overlap of PTS and DTS was eliminated.

以上のようにしたので、実施形態によれば、別途MPEG編集機材を用意することなく、切り替え再生のつなぎ目でのSTBエラーを防止することができる。従って実施形態によれば、コンテンツをシームレスに切り替えることの可能な配信装置および配信方法を提供することが可能となる。 As described above, according to the embodiment, it is possible to prevent an STB error at the joint of switching playback without preparing a separate MPEG editing device. Therefore, according to the embodiment, it is possible to provide a distribution device and a distribution method capable of seamlessly switching contents.

なお、本発明は上記実施の形態に限定されるものではない。例えば、実施形態で述べた技術は単一のコンテンツをループ再生する場合の切り替え再生に限定されず、複数コンテンツをループ再生する場合にも同様に適用することができる。ここで、複数コンテンツのループ再生とは、同じ再生レートの複数のコンテンツついて再生順番を予め決めておき、その再生順の最後から最初へループ再生する形態である。 The present invention is not limited to the above embodiment. For example, the technique described in the embodiment is not limited to the switching playback in the case of loop playback of a single content, and can be similarly applied to the loop playback of a plurality of contents. Here, the loop reproduction of a plurality of contents is a form in which a reproduction order is determined in advance for a plurality of contents having the same reproduction rate, and the loop reproduction is performed from the end to the beginning of the reproduction order.

本発明の実施形態を説明したが、この実施形態は例として提示するものであり、発明の範囲を限定することは意図していない。この新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。この実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. This novel embodiment can be implemented in various other embodiments, and various omissions, replacements, and changes can be made without departing from the gist of the invention. This embodiment and its modifications are included in the scope and gist of the invention, and are also included in the scope of the invention described in the claims and the equivalent scope thereof.

2…パーソナルコンピュータ(PC)、4…配信装置、5…ネットワーク、41…プロセッサ、41a…解読部、41b…検出部、41c…挿入部、41d…修正部、42…記憶部、42a…第1ストリームファイル、42b…第2ストリームファイル、42a′…修正第1ストリームファイル、Ta、Tb…時間データ、Ta′…時間データ(修正)、43…配信部。 2 ... personal computer (PC), 4 ... distribution device, 5 ... network, 41 ... processor, 41a ... decoding unit, 41b ... detection unit, 41c ... insertion unit, 41d ... correction unit, 42 ... storage unit, 42a ... first Stream file, 42b ... 2nd stream file, 42a'... modified 1st stream file, Ta, Tb ... time data, Ta'... time data (correction), 43 ... distribution unit.

Claims (6)

符号化されたピクチャを含む複数のピクチャデータとピクチャごとの再生タイミングを規定する時間データとを含むストリームファイルを配信する配信装置において、
第1ストリームファイルの前記時間データと、この第1ストリームファイルとは異なる第2ストリームファイルの前記時間データとを解読する解読部と、
前記解読の結果に基づいて、前記第1ストリームファイルから前記第2ストリームファイルに切り替え再生する場合のピクチャ同志の再生タイミングの重なりを検出する検出部と、
前記重なりが検出された場合に、当該重なりを解消すべく前記第1ストリームファイルにダミーデータを挿入する挿入部と、
前記ダミーデータを挿入された第1ストリームファイルの前記時間データを修正する修正部と、
前記時間データを修正された第1ストリームファイルと前記第2ストリームファイルとを配信する配信部と
を具備する、配信装置。
In a distribution device that distributes a stream file containing a plurality of picture data including encoded pictures and time data that defines a playback timing for each picture.
A decoding unit that decodes the time data of the first stream file and the time data of the second stream file different from the first stream file.
Based on the result of the decoding, the detection unit that detects the overlap of the reproduction timings of the pictures when switching from the first stream file to the second stream file and reproducing the files.
When the overlap is detected, an insertion part that inserts dummy data into the first stream file in order to eliminate the overlap, and an insertion portion.
A correction unit that corrects the time data of the first stream file into which the dummy data is inserted, and a correction unit that corrects the time data.
A distribution device including a distribution unit that distributes a first stream file in which the time data is modified and a distribution unit that distributes the second stream file.
前記第1ストリームファイルおよび第2ストリームファイルは、MPEG(Moving Picture Experts Group)−2システムのTS(Transport Stream)ファイルであり、
前記解読部は、前記TSファイルの少なくとも最後尾のPES(Packetized Elementary Stream)パケットのPTS(Presentation Time Stamp)フィールドおよびDTS(Decoding Time Stamp)フィールドを解読する、請求項1に記載の配信装置。
The first stream file and the second stream file are TS (Transport Stream) files of the MPEG (Moving Picture Experts Group) -2 system.
The distribution device according to claim 1, wherein the decoding unit decodes a PTS (Presentation Time Stamp) field and a DTS (Decoding Time Stamp) field of at least the last PES (Packetized Elementary Stream) packet of the TS file.
前記挿入部は、前記第1ストリームファイルの最後尾にNULL TSを追加する、請求項2に記載の配信装置。 The distribution device according to claim 2, wherein the insertion unit adds a NULL TS to the end of the first stream file. 前記挿入部は、前記重なりを解消する最小限の長さのNULL TSを追加する、請求項3に記載の配信装置。 The distribution device according to claim 3, wherein the insertion portion adds a null TS having a minimum length for eliminating the overlap. 前記修正部は、前記第1ストリームファイルのPCR(Program Clock Reference)のリスタンプ処理を行う、請求項2に記載の配信装置。 The distribution device according to claim 2, wherein the correction unit re-stamps the PCR (Program Clock Reference) of the first stream file. 符号化されたピクチャを含む複数のピクチャデータとピクチャごとの再生タイミングを規定する時間データとを含むストリームファイルを配信する配信方法において、
第1ストリームファイルの前記時間データと、この第1ストリームファイルとは異なる第2ストリームファイルの前記時間データとを、コンピュータが解読する過程と、
前記コンピュータが、前記解読の結果に基づいて、前記第1ストリームファイルから前記第2ストリームファイルに切り替え再生する場合のピクチャ同志の再生タイミングの重なりを検出する過程と、
前記コンピュータが、前記重なりが検出された場合に、当該重なりを解消すべく前記第1ストリームファイルにダミーデータを挿入する過程と、
前記コンピュータが、前記ダミーデータを挿入された第1ストリームファイルの前記時間データを修正する過程と、
前記コンピュータが、前記時間データを修正された第1ストリームファイルと前記第2ストリームファイルとを配信する過程と
を具備する、配信方法。
In a distribution method for distributing a stream file containing a plurality of picture data including an encoded picture and time data that defines a playback timing for each picture.
A process in which a computer decodes the time data of the first stream file and the time data of the second stream file different from the first stream file.
Based on the result of the decoding, the computer detects the overlap of the reproduction timings of the pictures when switching from the first stream file to the second stream file and reproducing the files.
When the computer detects the overlap, the process of inserting dummy data into the first stream file in order to eliminate the overlap, and
The process in which the computer corrects the time data of the first stream file into which the dummy data is inserted, and
A distribution method comprising a process in which the computer distributes a first stream file in which the time data is modified and the second stream file.
JP2020069003A 2020-04-07 2020-04-07 Distribution device and distribution method Pending JP2021166342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020069003A JP2021166342A (en) 2020-04-07 2020-04-07 Distribution device and distribution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020069003A JP2021166342A (en) 2020-04-07 2020-04-07 Distribution device and distribution method

Publications (1)

Publication Number Publication Date
JP2021166342A true JP2021166342A (en) 2021-10-14

Family

ID=78022079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020069003A Pending JP2021166342A (en) 2020-04-07 2020-04-07 Distribution device and distribution method

Country Status (1)

Country Link
JP (1) JP2021166342A (en)

Similar Documents

Publication Publication Date Title
JP7036962B2 (en) Playback method and playback device
JP6053686B2 (en) Methods and corresponding devices for synchronizing multimedia flows
JP6737922B2 (en) Transmission method, reception method, transmission device, and reception device
CN100401784C (en) Data synchronization method and apparatus for digital multimedia data receiver
JP5982359B2 (en) Synchro contents broadcast distribution system
US20070286245A1 (en) Digital signal processing apparatus and data stream processing method
JP4362734B2 (en) Synchronous playback system
JP4248703B2 (en) Stream multiplexing device, data broadcasting device
JP2009188863A (en) Time-stamp addition apparatus, time-stamp addition method, and time-stamp additionprogram
JP5924728B2 (en) Signal processing apparatus and program
EP2814256B1 (en) Method and apparatus for modifying a stream of digital content
JP5316542B2 (en) Digital broadcasting method and data receiving apparatus
KR101610862B1 (en) Method and apparatus for inserting advertisement in streaming service
JP6957186B2 (en) Information processing equipment, information processing methods, programs, and recording medium manufacturing methods
JP2021166342A (en) Distribution device and distribution method
JP5874870B1 (en) Reception device, transmission device, and data processing method
JP7125692B2 (en) Broadcast service communication network distribution apparatus and method
JP6157679B2 (en) Signal processing apparatus and program
JP2021022777A (en) Distribution device and distribution method
JP7275212B2 (en) Transmission method, reception method, transmission device and reception device
JP7034926B2 (en) Information processing equipment, information processing methods, and programs
WO2016208417A1 (en) Data processing device, data processing method and program
JP6684433B2 (en) Transmission device, transmission method, and program
JP2009060324A (en) Time stamp addition device, time stamp addition method, and program

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20230105