JP4511952B2 - Media playback device - Google Patents

Media playback device Download PDF

Info

Publication number
JP4511952B2
JP4511952B2 JP2005003121A JP2005003121A JP4511952B2 JP 4511952 B2 JP4511952 B2 JP 4511952B2 JP 2005003121 A JP2005003121 A JP 2005003121A JP 2005003121 A JP2005003121 A JP 2005003121A JP 4511952 B2 JP4511952 B2 JP 4511952B2
Authority
JP
Japan
Prior art keywords
time
media
data
capacity
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005003121A
Other languages
Japanese (ja)
Other versions
JP2006190213A (en
Inventor
浩幸 今泉
輝男 河合
秀一 青木
善明 鹿喰
欣裕 藤田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Japan Broadcasting Corp
NHK Engineering System Inc
Original Assignee
NHK Engineering Services Inc
Japan Broadcasting 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 NHK Engineering Services Inc, Japan Broadcasting Corp filed Critical NHK Engineering Services Inc
Priority to JP2005003121A priority Critical patent/JP4511952B2/en
Publication of JP2006190213A publication Critical patent/JP2006190213A/en
Application granted granted Critical
Publication of JP4511952B2 publication Critical patent/JP4511952B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、映像や音声などのメディアを再生するメディア再生装置に関し、特に、受信したメディアを提示されるべき時刻に再生するメディア再生装置に関する。   The present invention relates to a media playback device that plays back media such as video and audio, and more particularly to a media playback device that plays back received media at a time to be presented.

近年、インターネット(ネットワーク)上で、映像(動画像、静止画像、CG画像および文字を含む)や音声(合成音声を含む)などのマルチメディア(以下、メディアと称す)が流通するようになってきた。このようなメディアのうち、動画像や音声などは時間軸を持つ情報要素から構成されているので、出力する際にはそれぞれの要素を同期させて再生する必要がある。そこで、動画像や音声などのメディアが複数種類ある場合に、メディア間で同期をとりながら、それらが提示されるべき時刻に再生するマルチメディア再生装置が知られている(例えば、特許文献1参照)。   In recent years, multimedia (hereinafter referred to as media) such as video (including moving images, still images, CG images, and characters) and audio (including synthesized audio) has been distributed on the Internet (network). It was. Among such media, moving images, sounds, and the like are composed of information elements having a time axis. Therefore, when outputting, it is necessary to reproduce each element in synchronization. Thus, there is known a multimedia playback device that plays back at the time when the media should be presented while synchronizing between the media when there are a plurality of types of media such as moving images and sounds (see, for example, Patent Document 1). ).

この特許文献1に開示されたマルチメディア再生装置は、各メディアを受信する前に、予め再生する各メディアの情報量と、この再生装置の負荷状態の情報とをネットワークを介して送信側に伝達し、送信側は、これらの情報に基づいて、各メディアの再生時刻を決定して、このマルチメディア再生装置に伝達するものである。   Prior to receiving each medium, the multimedia playback apparatus disclosed in Patent Document 1 transmits the information amount of each medium to be played in advance and the load state information of this playback apparatus to the transmission side via the network. The transmission side determines the playback time of each medium based on these pieces of information, and transmits it to the multimedia playback apparatus.

なお、メディアの再生するべき時刻を、メディアに関連付ける規格が知られており、各メディアには、それらを再生するためのタイムスタンプが付加される(非特許文献1)。このタイムスタンプにより、データを送信する際に、送信速度や到着間隔がばらつく、いわゆる揺らぎが発生しても、例えば音声が途切れるなどの品質不良を軽減して音声を再生することができる。   In addition, a standard for associating a time at which a medium should be reproduced with the medium is known, and a time stamp for reproducing the medium is added to each medium (Non-Patent Document 1). With this time stamp, even when a so-called fluctuation occurs in transmission speed and arrival interval when data is transmitted, it is possible to reproduce the sound with reduced quality defects such as the sound being interrupted.

従来、このようなマルチメディア再生装置は、図10に示すように、受信した複数のメディアを分離する多重分離部1010と、分離された各メディアを再生する複数(図では2つ)のメディア再生装置1030とを備えている。図10に示したメディア再生装置1030は、メディアの再生するベき時刻情報と、圧縮されたストリームなどのデータを入力し、それらを復号あるいは合成して映像や音声として再生するものである。このメディア再生装置1030は、例えば、図10に示すように、受信したデータ(圧縮ストリーム)を蓄積することにより、伝送路上で発生するデータの到着間隔の揺らぎを吸収する入力バッファ1031と、この入力バッファ1031から出力される圧縮ストリームの再生(復号または合成)を行う再生手段1032とを備えている。   Conventionally, as shown in FIG. 10, such a multimedia playback apparatus includes a demultiplexing unit 1010 that separates a plurality of received media, and a plurality (two in the figure) of media playback that plays back each separated media. Device 1030. A media playback device 1030 shown in FIG. 10 inputs time information to be played back by media and data such as a compressed stream, and decodes or synthesizes them to play back as video or audio. For example, as shown in FIG. 10, the media playback device 1030 stores received data (compressed stream) to absorb fluctuations in the arrival interval of data generated on the transmission path, and the input buffer 1031 Reproducing means 1032 for reproducing (decoding or synthesizing) the compressed stream output from the buffer 1031 is provided.

あるいは、図11に示すように、前記した入力バッファ1031と再生手段1032に加えて、再生手段1032で再生された映像や音声を出力するべき時刻まで蓄積する出力バッファ1133を備えたメディア再生装置1130を有するマルチメディア再生装置1100も知られている。   Alternatively, as shown in FIG. 11, in addition to the input buffer 1031 and the playback unit 1032 described above, a media playback apparatus 1130 provided with an output buffer 1133 that accumulates video and audio played back by the playback unit 1032 until the time to be output is output. Also known is a multimedia playback device 1100 having

図10および図11に示した再生手段1032は、メディアの指定された再生時刻(出力時刻)に映像や音声が出力されるようにするために、再生時刻よりも、再生に要する時間(処理遅延時間)だけ早く再生処理を開始する。すなわち、この再生手段1032は、図12の(a)に示した時間軸(t)の上方に示すように、処理遅延時間を固定値(想定遅延時間t1)として、所定の再生時刻TSより想定遅延時間t1だけ以前の開始時刻TPに再生処理を開始する。 The reproduction means 1032 shown in FIG. 10 and FIG. 11 has a time required for reproduction (processing delay) rather than the reproduction time so that video and audio are output at the designated reproduction time (output time) of the medium. The playback process starts as soon as possible. That is, as shown above the time axis (t) shown in FIG. 12A, the reproducing means 1032 uses a predetermined delay time T S with a fixed processing delay time (assumed delay time t 1 ). The reproduction process is started at the start time T P before the expected delay time t 1 .

また、図11に示した出力バッファ1133は、蓄積された映像や音声を瞬時に再生可能な状態で所定時間(再生余裕時間:最大値t3)待機することができる。そのため、図11に示した再生手段1032は、図12の(b)に示すように、所定の再生時刻TSよりも、想定遅延時間t1と再生余裕時間t3との和の時間だけ以前の開始時刻TP′に再生処理を開始する。
特許第3179922号公報(段落0014〜0062、図1) H. Schulzrinne、外3名、「RTP: A Transport Protocol for Real-Time Applications」、RFC3550(Network Working Group Request for Comments:3550)、2003年7月
Further, the output buffer 1133 shown in FIG. 11 can wait for a predetermined time (reproduction margin time: maximum value t 3 ) in a state where the stored video and audio can be instantaneously reproduced. Therefore, as shown in FIG. 12 (b), the reproduction means 1032 shown in FIG. 11 is earlier than the predetermined reproduction time T S by the sum of the estimated delay time t 1 and the reproduction allowance time t 3. The reproduction process is started at the start time T P ′.
Japanese Patent No. 3179922 (paragraphs 0014 to 0062, FIG. 1) H. Schulzrinne, 3 others, "RTP: A Transport Protocol for Real-Time Applications", RFC3550 (Network Working Group Request for Comments: 3550), July 2003

しかしながら、リアルタイム処理系を除く汎用のOS上では、一般に、再生処理に要する最大の時間(処理遅延時間)は保証されていない。そのため、図10に示した再生手段1032が、図12の(a)に示した時間軸の下方に示すように、再生処理に想定遅延時間t1よりも長い実処理遅延時間t2だけ要した場合、映像や音声の出力は、所定の再生時刻TSよりも遅れた出力時刻TDに開始されてしまうことがある。 However, on a general-purpose OS excluding a real-time processing system, generally, the maximum time (processing delay time) required for reproduction processing is not guaranteed. For this reason, the reproduction means 1032 shown in FIG. 10 requires the actual processing delay time t 2 longer than the assumed delay time t 1 for the reproduction processing, as shown below the time axis shown in FIG. when the output of video and audio, sometimes be started in the output time T D that is delayed than the predetermined reproduction time T S.

これに対して、図11に示した出力バッファ1133を有するマルチメディア再生装置1100は、図12の(b)に示すように、再生余裕時間t3を設けることで、実処理遅延時間t2が想定遅延時間t1と異なっても、所定の再生時刻TS(出力時刻TS)に映像や音声を再生することができるが、出力バッファ1133は、非圧縮の映像や音声を蓄積できるような大容量を有する記憶装置としなければならない。 On the other hand, the multimedia playback device 1100 having the output buffer 1133 shown in FIG. 11 provides the actual processing delay time t 2 by providing the playback allowance time t 3 as shown in FIG. Even if it differs from the assumed delay time t 1 , video and audio can be reproduced at a predetermined reproduction time T S (output time T S ), but the output buffer 1133 can store uncompressed video and audio. The storage device must have a large capacity.

また、特許文献1に開示されたマルチメディア再生装置は、予めメディアの情報量を算出しメディア送信側に送信しなければならないという問題がある。   Further, the multimedia playback device disclosed in Patent Document 1 has a problem that the amount of media information must be calculated in advance and transmitted to the media transmission side.

また、汎用OS上で実行する限り、圧縮ストリームの復号や、スクリプトの解釈や合成に要する時間(処理遅延時間)は変化するため、非特許文献1に基づき、複数のメディアにそれらを再生するためのタイムスタンプを付加した場合でも、付加されたタイムスタンプの時刻にそのメディアを再生できないという問題がある。   In addition, as long as it is executed on the general-purpose OS, the time (processing delay time) required for decoding the compressed stream and interpreting and synthesizing the script changes. Even when the time stamp is added, there is a problem that the media cannot be reproduced at the time of the added time stamp.

本発明は、以上のような問題点に鑑みてなされたものであり、バッファ容量を大規模にすることなく、マルチメディアを所定の再生時刻に出力することが可能なマルチメディア再生装置を提供することを目的とする。   The present invention has been made in view of the above problems, and provides a multimedia playback device capable of outputting multimedia at a predetermined playback time without increasing the buffer capacity. For the purpose.

本発明は、前記目的を達成するために創案されたものであり、まず、請求項1に記載のメディア再生装置は、所定の再生時刻にメディアを再生するための符号化されたメディアデータを蓄積する入力バッファと、この入力バッファから出力されるデータを再生する再生手段とを有し、前記データに基づいてメディアを再生するメディア再生装置であって、
出力バッファと、処理遅延算出手段と、制御手段と、開始時刻制御手段とを備え、入力バッファは容量制御手段を備え、出力バッファは容量制御手段を備える構成とした。
The present invention was created to achieve the above object, and first, the media playback device according to claim 1 stores encoded media data for playing back the media at a predetermined playback time. A media playback device that plays back media based on the data, and an input buffer that plays back data output from the input buffer.
An output buffer, comprising: a processing delay calculation means, and a control unit, a starting time control means, the input buffer is provided with capacity control means, the output buffer is a structure in which Ru provided with a capacity control means.

かかる構成によれば、メディア再生装置は、メディアデータとして、例えばネットワークを介して伝送されるストリームまたはスクリプトを入力バッファに蓄積し、再生手段によって、この入力バッファから出力されるデータの再生処理(復号処理または合成処理)を行う。この再生手段は、例えば、MPEG−2のストリームを復号して映像を再生したり、MPEG−1 Audio Layerのストリームを復号して音声を再生したりする。また、TVML(TV program Making language)スクリプトを解釈し、映像や音声を合成したり、テキストスクリプトを解釈し、映像や音声を合成したりする。   According to such a configuration, the media playback apparatus accumulates, as media data, for example, a stream or script transmitted via a network in the input buffer, and playback processing (decoding) of data output from the input buffer by the playback means. Processing or composition processing). For example, the reproduction means decodes an MPEG-2 stream to reproduce an image, or decodes an MPEG-1 Audio Layer stream to reproduce an audio. It also interprets TVML (TV program making language) scripts to synthesize video and audio, and interprets text scripts to synthesize video and audio.

そして、メディア再生装置は、出力バッファに、再生手段から出力されるデータを蓄積し、蓄積されたデータを所定時間保持する。そして、メディア再生装置は、処理遅延算出手段によって、入力バッファから再生手段へのデータの入力を検出すると、再生手段でデータの再生に要する時間を示す処理遅延時間を測定により算出する。ここで、処理遅延時間の算出は、例えば、再生手段への入力を検知したときに、クロックのカウントを開始し、再生手段からの出力を検知したときのカウント値により求めることができる。そして、メディア再生装置は、制御手段によって、処理遅延算出手段で算出された今回の処理遅延時間に基づいて、次回の処理において、メディアを再生するための処理を開始する時刻を指定すると共に、入力バッファおよび出力バッファにそれぞれ蓄積されるデータの容量を指定する。これによって、始時刻制御手段、制御手段により指定された時刻に、メディアを再生するための処理を開始する。 Then, the media playback device stores the data output from the playback means in the output buffer, and holds the stored data for a predetermined time. Then, when the media playback apparatus detects the input of data from the input buffer to the playback means by the processing delay calculation means , the media playback apparatus calculates the processing delay time indicating the time required for data playback by the playback means by measurement . Here, the calculation of the processing delay time can be obtained from, for example, the count value when the clock counting is started and the output from the reproducing unit is detected when the input to the reproducing unit is detected. Then, the media playback device designates the time for starting the process for playing back the media in the next process based on the current process delay time calculated by the process delay calculation means by the control means , and inputs Specifies the amount of data stored in the buffer and output buffer, respectively . Thus, start time control means, the time specified by the control unit, starts a process for reproducing media.

して、メディア再生装置は、入力バッファの容量制御手段によって、蓄積されるデータの容量を、制御手段により指定された容量に制御する。 Its to the media playback device, the capacity control means of the input buffer to control the amount of data accumulated, the amount of space specified by the control means.

して、メディア再生装置は、出力バッファの容量制御手段によって、蓄積されるデータの容量を、制御手段により指定された容量に制御する。 Its to the media playback device, the capacity control means of the output buffer, and controls the amount of data accumulated, the amount of space specified by the control means.

また、ディア再生装置において、制御手段は、メディアを再生するための処理を開始する時刻を、所定の再生時刻よりも、処理遅延算出手段で算出された今回の処理遅延時間と出力バッファでデータが保持される所定時間との和だけ次回の処理では早めた時刻として指定する Further, in the media reproducing apparatus, the control means, the data a time for processing for reproducing media, at a given than the reproduction time, the processing delay time of the time calculated by the processing delay calculating means and the output buffer Is specified as an earlier time in the next processing by the sum of the predetermined time for which is held .

すると、開始時刻制御手段によって、制御手段で指定された時刻にメディアを再生するための処理を開始し、処理遅延時間の経過後、出力バッファにて、所定時間保持されるので、所定の再生時刻にメディアを再生出力することができる。この所定時間は、出力バッファに蓄積されたデータを瞬時に再生可能な状態で保持することのできる時間である。 Then, the start time controller starts the process for playing media at the specified time by the control unit, after the processing delay time at the output buffer, since it is held for a predetermined time, predetermined reproduction Media can be played back and output at the time. This predetermined time is a time during which data stored in the output buffer can be held in a state where it can be instantaneously reproduced.

また、かかる構成によれば、メディア再生装置は、今回の処理遅延時間が所定値よりも大きくなった場合に、再生処理を早めに開始する。つまり、次回の処理では、入力バッファに蓄積されたデータは早めに出力してしまう。その結果、次回の処理では、入力バッファに蓄積されるデータの容量は少なくて済む。したがって、メディア再生装置は、今回の処理遅延時間が所定値よりも大きくなった場合に、次回の処理では、入力バッファに蓄積されるデータの容量を減少させる制御を行う。一方、メディア再生装置は、今回の処理遅延時間が所定値よりも小さくなった場合に、次回の処理では、再生処理を遅めに開始する。つまり、次回の処理では、入力バッファに蓄積されたデータは遅めに出力してしまう。その結果、次回の処理では、入力バッファに蓄積されるデータの容量は多くなければならない。したがって、メディア再生装置は、今回の処理遅延時間が所定値よりも小さくなった場合に、次回の処理では、入力バッファに蓄積されるデータの容量を増加させる制御を行う。その結果、入力バッファの容量を大規模にすることなく、所定の再生時刻にメディアを再生することができる。 Further , according to this configuration, the media playback device starts the playback process early when the current processing delay time becomes larger than a predetermined value. That is, in the next processing, the data accumulated in the input buffer is output early. As a result, the amount of data stored in the input buffer is small in the next processing . Therefore, when the current processing delay time becomes greater than a predetermined value , the media playback device performs control to reduce the amount of data stored in the input buffer in the next processing . On the other hand, when the current processing delay time becomes smaller than a predetermined value, the media playback device starts the playback processing later in the next processing . That is, in the next processing, the data accumulated in the input buffer is output later. As a result, the amount of data stored in the input buffer must be large in the next processing . Therefore, when the current processing delay time becomes smaller than a predetermined value , the media playback device performs control to increase the amount of data stored in the input buffer in the next processing . As a result, the media can be played back at a predetermined playback time without increasing the capacity of the input buffer.

また、ディア再生装置において、制御手段は、処理遅延算出手段で算出された今回の処理遅延時間が所定値よりも大きい場合に、次回の処理では、入力バッファに蓄積されるデータの容量を減少させるように指定し、かつ、出力バッファに蓄積されるデータの容量を増加させるように指定する。また、制御手段は、処理遅延算出手段で算出された今回の処理遅延時間が所定値よりも小さい場合に、次回の処理では、入力バッファに蓄積されるデータの容量を増加させるように指定し、かつ、出力バッファに蓄積されるデータの容量を減少させるように指定する。 Further, the media playback device, the control unit, when the current processing delay time calculated by the processing delay calculating means is larger than a predetermined value, in the next process, reduce the volume of data stored in the buffer And to increase the amount of data stored in the output buffer. Further, the control means designates to increase the capacity of data accumulated in the input buffer in the next process when the current processing delay time calculated by the processing delay calculation means is smaller than a predetermined value, In addition, it is specified to reduce the amount of data stored in the output buffer.

かかる構成によれば、メディア再生装置は、今回の処理遅延時間が所定値よりも大きくなった場合に、次回の処理では再生処理を早めに開始する。つまり、次回の処理では入力バッファに蓄積されたデータは早めに出力してしまうので、入力バッファに蓄積されるデータの容量を減少させる。この場合、再生処理の時間にそれほど要しないと、所定の再生時刻まで待機しなければならなくなる。そこで、この次回の処理では出力バッファに蓄積されるデータの容量を増加させる制御を行う。一方、メディア再生装置は、今回の処理遅延時間が所定値よりも小さくなった場合に、次回の処理では再生処理を遅めに開始する。つまり、次回の処理では入力バッファに蓄積されたデータは遅めに出力してしまうので、入力バッファに蓄積されるデータの容量を増加させる。この場合、再生処理が早く終わっても、再生処理を開始する時刻が遅いために所定の再生時刻までの時間は減少している。そこで、この次回の処理では出力バッファに蓄積されるデータの容量を減少させる制御を行う。その結果、出力バッファの容量を大規模にすることなく、所定の再生時刻にメディアを再生することができる。 According to this configuration, the media playback device starts the playback process early in the next process when the current processing delay time becomes greater than a predetermined value. That is, in the next processing, the data stored in the input buffer is output earlier, so the capacity of the data stored in the input buffer is reduced. In this case, if not much time is required for the reproduction process, it is necessary to wait until a predetermined reproduction time. Therefore, in this next processing, control is performed to increase the capacity of data stored in the output buffer. On the other hand, when the current processing delay time becomes smaller than a predetermined value, the media playback device starts the playback processing later in the next processing . That is, in the next processing, the data stored in the input buffer is output later, so the capacity of the data stored in the input buffer is increased. In this case, even if the reproduction process ends early, the time until the predetermined reproduction time decreases because the time at which the reproduction process starts is late. Therefore, in this next processing, control is performed to reduce the amount of data stored in the output buffer. As a result, the media can be played back at a predetermined playback time without increasing the capacity of the output buffer.

また、請求項に記載のメディア再生装置は、所定の再生時刻にメディアを再生するための符号化されたメディアデータを蓄積する入力バッファと、この入力バッファから出力される前記データを再生する再生手段とを有し、前記データに基づいてメディアを再生するメディア再生装置であって、出力バッファと、負荷計測手段と、制御手段と、開始時刻制御手段とを備え、入力バッファは容量制御手段を備え、出力バッファは容量制御手段を備える構成とした。 According to a second aspect of the present invention, there is provided a media playback apparatus, wherein an input buffer for storing encoded media data for playing back media at a predetermined playback time, and playback for playing back the data output from the input buffer. Means for reproducing media based on the data, comprising: an output buffer; a load measuring means; a control means; and a start time control means. The input buffer includes a capacity control means. And the output buffer includes a capacity control means .

かかる構成によれば、メディア再生装置は、出力バッファに、再生手段から出力されるデータを蓄積し、蓄積されたデータを所定時間保持する。そして、メディア再生装置は、負荷計測手段によって、メディアを再生するための処理の負荷である処理負荷を計測する。ここで、処理負荷は、例えば、このメディア再生装置のCPUにおいて、負荷が存在しないときに0.0、最大負荷時に1.0の実数値で示されるようなCPU負荷率である。そして、メディア再生装置は、制御手段によって、負荷計測手段で計測された今回の処理負荷の変動に基づいて、次回の処理において、メディアを再生するための処理を開始する時刻を指定する。これによって、始時刻制御手段、制御手段により指定された時刻に、メディアを再生するための処理を開始する。 According to such a configuration, the media playback device stores the data output from the playback means in the output buffer, and holds the stored data for a predetermined time. Then, the media playback device measures a processing load, which is a processing load for playing back the media, by the load measuring means. Here, the processing load is, for example, a CPU load factor indicated by a real value of 0.0 when there is no load and 1.0 at the maximum load in the CPU of the media playback device. In the media playback device, the control means designates the time to start the process for playing back the media in the next process based on the current processing load fluctuation measured by the load measuring means. Thus, start time control means, the time specified by the control unit, starts a process for reproducing media.

また、かかる構成によれば、メディア再生装置は、制御手段によって、負荷計測手段で計測された処理負荷に基づいて、入力バッファおよび出力バッファにそれぞれ蓄積されるデータの容量を指定する。そして、メディア再生装置は、入力バッファの容量制御手段によって、蓄積されるデータの容量を、制御手段により指定された容量に制御する。 Further , according to this configuration, the media playback device designates the capacity of data stored in the input buffer and the output buffer based on the processing load measured by the load measuring unit by the control unit. Then, the media playback device controls the capacity of the stored data to the capacity designated by the control means by the capacity control means of the input buffer.

して、メディア再生装置は、出力バッファの容量制御手段によって、蓄積されるデータの容量を、制御手段により指定された容量に制御する。 Its to the media playback device, the capacity control means of the output buffer, and controls the amount of data accumulated, the amount of space specified by the control means.

また、ディア再生装置において、制御手段は、負荷計測手段で計測された今回の処理負荷が所定値よりも大きい場合に、次回の処理では、入力バッファに蓄積されるデータの容量を減少させるように指定し、かつ、出力バッファに蓄積されるデータの容量を増加させるように指定する。また、負荷計測手段で計測された今回の処理負荷が所定値よりも小さい場合に、次回の処理では、入力バッファに蓄積されるデータの容量を増加させるように指定し、かつ、出力バッファに蓄積されるデータの容量を減少させるように指定する。 Further, the media playback device, the control unit, when the current processing load measured by the load measuring means is greater than a predetermined value, in the next process, so as to reduce the volume of data stored in the buffer And to increase the amount of data stored in the output buffer. In addition, when the current processing load measured by the load measuring means is smaller than a predetermined value, in the next processing, it is specified to increase the amount of data stored in the input buffer and stored in the output buffer. Specifies that the amount of data to be reduced is reduced.

かかる構成によれば、メディア再生装置は、処理負荷が所定値よりも大きくなった場合に、再生処理を早めに開始する。つまり、入力バッファに蓄積されたデータは早めに出力してしまう。その結果、入力バッファに蓄積されるデータの容量は少なくて済む。したがって、メディア再生装置は、入力バッファに蓄積されるデータの容量を減少させる制御を行う。一方、メディア再生装置は、処理負荷が所定値よりも小さくなった場合に、再生処理を遅めに開始する。つまり、入力バッファに蓄積されたデータは遅めに出力してしまう。その結果、入力バッファに蓄積されるデータの容量は多くなければならない。したがって、メディア再生装置は、入力バッファに蓄積されるデータの容量を増加させる制御を行う。その結果、入力バッファの容量を大規模にすることなく、所定の再生時刻にメディアを再生することができる。   According to such a configuration, the media playback device starts the playback process early when the processing load becomes larger than a predetermined value. That is, the data stored in the input buffer is output early. As a result, the amount of data stored in the input buffer can be small. Therefore, the media playback device performs control to reduce the volume of data stored in the input buffer. On the other hand, the media playback device starts the playback process later when the processing load becomes smaller than a predetermined value. That is, the data accumulated in the input buffer is output later. As a result, the amount of data stored in the input buffer must be large. Therefore, the media playback device performs control to increase the capacity of data stored in the input buffer. As a result, the media can be played back at a predetermined playback time without increasing the capacity of the input buffer.

また、かかる構成によれば、メディア再生装置は、今回の処理負荷が所定値よりも大きくなった場合に、次回の処理では、再生処理を早めに開始する。つまり、次回の処理では、入力バッファに蓄積されたデータは早めに出力してしまうので、入力バッファに蓄積されるデータの容量を減少させる。この場合、再生処理の時間にそれほど要しないと、所定の再生時刻まで待機しなければならなくなる。そこで、この次回の処理では、出力バッファに蓄積されるデータの容量を増加させる制御を行う。一方、メディア再生装置は、今回の処理負荷が所定値よりも小さくなった場合に、次回の処理では、再生処理を遅めに開始する。つまり、次回の処理では、入力バッファに蓄積されたデータは遅めに出力してしまうので、入力バッファに蓄積されるデータの容量を増加させる。この場合、再生処理が早く終わっても、再生処理を開始する時刻が遅いために所定の再生時刻までの時間は減少している。そこで、この次回の処理では、出力バッファに蓄積されるデータの容量を減少させる制御を行う。その結果、出力バッファの容量を大規模にすることなく、所定の再生時刻にメディアを再生することができる。 Further , according to this configuration, the media playback device starts the playback process early in the next process when the current processing load becomes greater than a predetermined value. That is, in the next processing, the data stored in the input buffer is output earlier, so the capacity of the data stored in the input buffer is reduced. In this case, if not much time is required for the reproduction process, it is necessary to wait until a predetermined reproduction time. Therefore, in this next processing, control is performed to increase the capacity of data stored in the output buffer. On the other hand, when the current processing load becomes smaller than a predetermined value, the media playback device starts the playback processing later in the next processing . That is, in the next processing, the data stored in the input buffer is output later, so the capacity of the data stored in the input buffer is increased. In this case, even if the reproduction process ends early, the time until the predetermined reproduction time decreases because the time at which the reproduction process starts is late. Therefore, in this next processing, control is performed to reduce the volume of data stored in the output buffer. As a result, the media can be played back at a predetermined playback time without increasing the capacity of the output buffer.

請求項1又は請求項に記載の発明によれば、メディア再生装置において、制御手段がメディアを再生するための処理を開始する時刻を柔軟に変動させるので、処理負荷が変動して再生するための処理に要する時間が変動しても、所定の再生時刻に映像や音声を再生出力することができる。また、制御手段に必要な処理遅延時間または処理負荷は、当該メディア再生装置の中で生成されるので、特許文献1のようにメディア送信側から予め情報を受信するような複雑な制御を必要としない。したがって、RFC3550で規定されるタイムスタンプを複数メディアに記載することで、バッファ容量を大規模にすることなく、それらのメディアを所定の時刻に同期を取りながら再生出力することが可能になる。 According to the first or second aspect of the present invention, in the media playback apparatus, the time when the control means starts the process for playing back the media is flexibly changed, so that the processing load is changed and played back. Even if the time required for this process fluctuates, video and audio can be reproduced and output at a predetermined reproduction time. Further, since the processing delay time or processing load required for the control means is generated in the media playback device, it is necessary to perform complicated control such as receiving information from the media transmission side in advance as in Patent Document 1. do not do. Therefore, by describing the time stamps defined in RFC3550 in a plurality of media, it becomes possible to reproduce and output these media in synchronization with a predetermined time without increasing the buffer capacity.

また、請求項又は請求項に記載の発明によれば、メディア再生装置において、制御手段が入力バッファに蓄積されるデータの量を制御する場合、入力バッファの容量を大規模なものにする必要がない。その結果、製造コストを低減できる。 Further, according to the invention described in claim 1 or claim 2, in the media reproducing apparatus, the control means may control the amount of data stored in the buffer, the capacity of the input buffer larger ones There is no need. As a result, the manufacturing cost can be reduced.

また、請求項又は請求項に記載の発明によれば、メディア再生装置において、制御手段が出力バッファに蓄積されるデータの量を制御する場合、出力バッファの容量を大規模なものにする必要がない。その結果、製造コストを低減できる。 Further, according to the invention described in claim 1 or claim 2, in the media reproducing apparatus, when controlling the amount of data that the control unit is stored in the output buffer, the capacity of the output buffer larger ones There is no need. As a result, the manufacturing cost can be reduced.

また、請求項又は請求項に記載の発明によれば、メディア再生装置において、制御手段がメディアを再生するための処理を開始する時刻を早めることができるので、所定の再生時刻に映像や音声を再生出力することが可能になる。 Further, according to the invention described in claim 1 or claim 2, in the media reproducing apparatus, the control means may advance the time to start the process for playing media, video Ya to a predetermined reproduction time Audio can be reproduced and output.

以下、本発明の実施の形態について図面を参照して説明する。
(第1参考実施形態)
[マルチメディア再生装置の構成]
図1は、第1参考実施形態のマルチメディア再生装置のブロック図である。
マルチメディア再生装置1は、IP(Internet Protocl)ネットワークなどの通信回線を介してストリーミング伝送される映像(動画像、静止画像、CG画像および文字を含む)や音声(合成音声を含む)などのマルチメディア(以下、メディアと称す)を、入力されたタイムスタンプに示される時刻に再生するものである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First Reference Embodiment)
[Configuration of multimedia playback device]
FIG. 1 is a block diagram of a multimedia playback apparatus according to the first reference embodiment.
The multimedia playback apparatus 1 is a multi-media such as video (including moving images, still images, CG images, and characters) and audio (including synthesized audio) that is stream-transmitted via a communication line such as an IP (Internet Protocol) network. A medium (hereinafter referred to as a medium) is reproduced at a time indicated by an input time stamp.

マルチメディア再生装置1は、図1に示すように、多重分離部50と、複数(図では2つ)のメディア再生装置100とを備えている。
多重分離部(多重分離手段)50は、メディアの再生するベき時刻情報と、映像や音声が圧縮されたストリームなどのマルチメディアデータ(以下、単にデータ)を分離するものである。これにより、複数のメディアおよびクロック信号ckが分離される。
メディア再生装置100は、クロック信号ckで同期をとりながら、多重分離部50で分離されたメディアを、それらが提示されるべき時刻に再生するものである。このメディア再生装置100は、入力バッファ101と、再生手段102と、処理遅延算出手段103と、制御手段104とを備えている。
As shown in FIG. 1, the multimedia playback device 1 includes a demultiplexing unit 50 and a plurality (two in the figure) of media playback devices 100.
The demultiplexing unit (demultiplexing means) 50 separates the time information to be reproduced by the media and multimedia data (hereinafter simply referred to as data) such as a stream in which video and audio are compressed. Thereby, a plurality of media and the clock signal ck are separated.
The media playback device 100 plays back the media separated by the demultiplexing unit 50 at the time when they should be presented while synchronizing with the clock signal ck. The media playback device 100 includes an input buffer 101, playback means 102, processing delay calculation means 103, and control means 104.

入力バッファ101は、圧縮ストリームなどのデータを蓄積し、再生手段102に出力するものである。この入力バッファ101が圧縮ストリームなどのデータを蓄積することにより、伝送路上で発生するデータの到着間隔の揺らぎを吸収することができる。この入力バッファ101は、圧縮ストリームを伝送してきたIPパケットの順序制御や誤り訂正をおこない、タイムスタンプを取り出し、ペイロード部を結合したストリーム(またはスクリプト)を出力する。また、入力バッファ101は、容量制御部111を備えている。この容量制御部(容量制御手段)111は、入力バッファ101に蓄積されるデータの容量を制御手段104により指定された容量に制御するものである。   The input buffer 101 accumulates data such as a compressed stream and outputs it to the reproduction means 102. This input buffer 101 accumulates data such as a compressed stream, so that fluctuations in the arrival interval of data occurring on the transmission path can be absorbed. The input buffer 101 performs sequence control and error correction of IP packets that have transmitted a compressed stream, takes out a time stamp, and outputs a stream (or script) in which payload portions are combined. The input buffer 101 includes a capacity control unit 111. This capacity control unit (capacity control means) 111 controls the capacity of data stored in the input buffer 101 to the capacity specified by the control means 104.

再生手段102は、入力バッファ101から出力される圧縮ストリームの復号処理、またはスクリプトの解釈、合成処理(以上、総称して再生処理)を行い、モニタやスピーカなどから構成されている出力装置150へ出力するものである。この再生手段102は、開始時刻制御部112を備えている。この開始時刻制御部112は、ある時刻に再生するべき映像または音声をその時刻より、制御手段104に指定された所定時間だけ以前の時刻(以下、復号開始時刻と呼ぶ)に再生処理を開始するように制御するものである。なお、出力装置150は、マルチメディア再生装置1と別体としたが、一体としてもよいことはもちろんである。   The playback unit 102 performs decoding processing of the compressed stream output from the input buffer 101, or interpretation and synthesis processing (hereinafter collectively referred to as playback processing) of the script, and outputs the output device 150 including a monitor, a speaker, and the like. Output. The reproduction means 102 includes a start time control unit 112. The start time control unit 112 starts a reproduction process of video or audio to be reproduced at a certain time at a time (hereinafter referred to as a decoding start time) that is earlier than the time by a predetermined time designated by the control unit 104. Is to control. Although the output device 150 is separated from the multimedia playback device 1, it is needless to say that the output device 150 may be integrated.

処理遅延算出手段103は、再生手段102で再生処理に要する時間(以下、処理遅延時間と称す)を算出し、制御手段104に通知するものである。この処理遅延算出手段103は、再生手段102へのストリームの入力を検出すると、例えば、Windows(登録商標)API(Application Program Interface)であるQueryPerformanceCounter関数によりクロックをカウントし始め、映像や音声が出力されるまでの処理時間を測定し、測定結果を処理遅延時間とする。
制御手段104は、後記するように、処理遅延算出手段103から通知される処理遅延時間に基づいて、入力バッファ101に蓄積されるデータの容量と、再生手段102の復号開始時刻とを指定するものである。
The processing delay calculation unit 103 calculates a time required for the reproduction process by the reproduction unit 102 (hereinafter referred to as a processing delay time) and notifies the control unit 104 of the time. When the processing delay calculation unit 103 detects the input of the stream to the reproduction unit 102, for example, the processing delay calculation unit 103 starts to count the clock by a Query Performance Counter function that is a Windows (registered trademark) API (Application Program Interface), and video and audio are output. The processing time until measurement is measured, and the measurement result is set as the processing delay time.
As will be described later, the control means 104 designates the capacity of data stored in the input buffer 101 and the decoding start time of the reproduction means 102 based on the processing delay time notified from the processing delay calculation means 103. It is.

[マルチメディア再生装置の動作]
次に、図2を参照(適宜図1参照)して、第1参考実施形態に係るマルチメディア再生装置の動作について説明する。図2は、本発明の第1参考実施形態に係るマルチメディア再生装置の制御手段のフローチャートである。
[Operation of multimedia playback device]
Next, referring to FIG. 2 (see FIG. 1 as appropriate), the operation of the multimedia playback apparatus according to the first reference embodiment will be described. FIG. 2 is a flowchart of the control means of the multimedia playback apparatus according to the first reference embodiment of the present invention.

まず、制御手段104は、処理遅延時間の初期値をDに設定し、この値を保持する(ステップS1)。例えば、MPEG−2の1GOP(Group of Picture)の処理遅延時間が平均的に10msであったとすると、この値(10ms)をDとして保持する。そして、制御手段104は、処理遅延算出手段103から処理遅延時間の入力(D_IN)があったかどうかを判別する(ステップS2)。通常、この処理遅延時間D_INは、マルチメディア再生装置1の処理負荷の変動に応じて変化し、例えば、10msの前後の値となる。続いて、制御手段104は、入力した処理遅延時間D_INと、保持している処理遅延時間Dとを比較して大小を判定する(ステップS3)。   First, the control means 104 sets the initial value of the processing delay time to D and holds this value (step S1). For example, if the processing delay time of 1 GOP (Group of Picture) of MPEG-2 is 10 ms on average, this value (10 ms) is held as D. Then, the control unit 104 determines whether or not a processing delay time is input (D_IN) from the processing delay calculation unit 103 (step S2). Normally, this processing delay time D_IN changes according to the change in the processing load of the multimedia playback device 1, and is a value around 10 ms, for example. Subsequently, the control unit 104 compares the input processing delay time D_IN with the held processing delay time D to determine whether it is large or small (step S3).

入力した処理遅延時間D_INが保持している処理遅延時間Dよりも大きい場合(D_IN>D)、すなわちメディアを再生するための処理の負荷である処理負荷が前回(初回は初期値)よりも大きくなった場合、制御手段104は、復号開始時刻TQを再生時刻TSよりも(D_IN)だけ早めた時刻を指定する(ステップS4)と共に、入力バッファ101に蓄積されるデータの容量を(D_IN−D)×Rateだけ減少させた容量を指定する(ステップS5)。ここでRateは受信しているストリームの符号化レートである。これにより、再生手段102の開始時刻制御部112は、復号開始時刻TQを早め、また、入力バッファ101の容量制御部111は、入力バッファ101に蓄積されるデータの容量を減少させる。
ステップS5に続いて、制御手段104は、入力した処理遅延時間(D_IN)の値を、改めてDに設定して保持し(ステップS6)、ステップS2に戻る。なお、ステップS4およびステップS5は、逆の順序で処理してもよいし、並行に処理してもよい。
When the input processing delay time D_IN is larger than the held processing delay time D (D_IN> D), that is, the processing load that is the processing load for reproducing the media is larger than the previous time (initial value is the first time). In this case, the control means 104 designates a time that the decoding start time T Q is advanced by (D_IN) from the reproduction time T S (step S4), and sets the capacity of data stored in the input buffer 101 to (D_IN). -D) The capacity reduced by xRate is designated (step S5). Here, Rate is the encoding rate of the received stream. Thus, the start time controller 112 of the reproducing means 102, advancing the decoding start time T Q, also, the capacity control section 111 of the input buffer 101, reduces the volume of data stored in the buffer 101.
Following step S5, the control means 104 sets the value of the input processing delay time (D_IN) to D again (step S6) and returns to step S2. Steps S4 and S5 may be processed in the reverse order or in parallel.

また、ステップS3において、入力した処理遅延時間(D_IN)が保持している処理遅延時間Dよりも小さい場合(D_IN<D)、すなわち処理負荷が前回(初回は初期値)よりも小さくなった場合、制御手段104は、ステップS4と同様に、復号開始時刻TQを再生時刻TSよりも(D_IN)だけ早めた時刻を指定する(ステップS7)と共に、入力バッファ101に蓄積されるデータの容量を(D−D_IN)×Rateだけ増加させた容量を指定し(ステップS8)、ステップS6に進む。これにより、再生手段102の開始時刻制御部112は、復号開始時刻TQを早め、また、入力バッファ101の容量制御部111は、入力バッファ101に蓄積されるデータの容量を増加させる。なお、ステップS7およびステップS8は、逆の順序で処理してもよいし、並行に処理してもよい。 In step S3, when the input processing delay time (D_IN) is smaller than the held processing delay time D (D_IN <D), that is, when the processing load is smaller than the previous time (initial value is the first time). Similarly to step S4, the control means 104 designates a time earlier than the reproduction start time T Q by (D_IN) than the reproduction time T S (step S7), and the capacity of data stored in the input buffer 101 Is specified by (D−D_IN) × Rate (step S8), and the process proceeds to step S6. Thus, the start time controller 112 of the reproducing means 102, advancing the decoding start time T Q, also, the capacity control section 111 of the input buffer 101 increases the amount of data stored in the buffer 101. Steps S7 and S8 may be processed in the reverse order or in parallel.

また、ステップS3において、入力した処理遅延時間(D_IN)が保持している処理遅延時間Dと等しい場合(D_IN=D)、すなわち、処理負荷が前回(初回は初期値)と同じ場合、制御手段104は、ステップS2に戻り、次の入力(D_IN)まで待機する。   In step S3, when the input processing delay time (D_IN) is equal to the held processing delay time D (D_IN = D), that is, when the processing load is the same as the previous time (initial value is the first time), the control means 104 returns to step S2 and waits until the next input (D_IN).

第1参考実施形態のマルチメディア再生装置によれば、再生手段102による処理遅延時間を常に監視し、この処理遅延時間の分だけ復号開始時刻を早めることができる。また、処理負荷を反映している処理遅延時間に基づいて、入力バッファ101に蓄積される容量を制御することができる。これにより、処理負荷が変動しても、入力バッファ101に必要十分な容量を保ちながら、所定の再生時刻に復号または合成した映像や音声を再生出力することが可能になる。 According to the multimedia playback apparatus of the first reference embodiment, the processing delay time by the playback means 102 can always be monitored, and the decoding start time can be advanced by this processing delay time. Further, the capacity accumulated in the input buffer 101 can be controlled based on the processing delay time reflecting the processing load. As a result, even if the processing load fluctuates, it is possible to reproduce and output video and audio decoded or synthesized at a predetermined reproduction time while maintaining a necessary and sufficient capacity in the input buffer 101.

(第2参考実施形態)
[マルチメディア再生装置の構成]
図3は、第2参考実施形態のマルチメディア再生装置のブロック図である。
このマルチメディア再生装置2は、図3に示すように、多重分離部50と、複数(図では2つ)のメディア再生装置200と、負荷計測手段210とを備えている。なお、図1と同じ構成には同じ符号を付して説明を省略する。
(Second Reference Embodiment)
[Configuration of multimedia playback device]
FIG. 3 is a block diagram of a multimedia playback apparatus according to the second reference embodiment.
As shown in FIG. 3, the multimedia playback device 2 includes a demultiplexing unit 50, a plurality (two in the figure) of media playback devices 200, and a load measuring unit 210. In addition, the same code | symbol is attached | subjected to the same structure as FIG. 1, and description is abbreviate | omitted.

負荷計測手段210は、処理負荷(負荷情報)を計測し、所定のタイミングでメディア再生装置200に出力するものである。ここで負荷情報とはCPU負荷率であり、例えばCPUの負荷が存在しないときに0.0、CPUの最大負荷時に1.0の実数値で示される。また、負荷計測手段210は、負荷情報を例えば20ms毎にメディア再生装置200に出力する。   The load measuring unit 210 measures a processing load (load information) and outputs it to the media playback device 200 at a predetermined timing. Here, the load information is a CPU load factor, and is represented by a real value of, for example, 0.0 when there is no CPU load and 1.0 at the maximum load of the CPU. Further, the load measuring unit 210 outputs the load information to the media playback device 200 every 20 ms, for example.

メディア再生装置200は、入力バッファ101と、再生手段102と、制御手段204とを備えている。制御手段204は、後記するように、負荷計測手段210から出力される負荷情報と、再生手段102で再生処理に要する時間である処理遅延時間とに基づいて、入力バッファ101に蓄積されるデータの容量と、再生手段102による復号開始時刻とを指定するものである。   The media playback device 200 includes an input buffer 101, playback means 102, and control means 204. As will be described later, the control unit 204 determines the data stored in the input buffer 101 based on the load information output from the load measurement unit 210 and the processing delay time that is the time required for the reproduction processing by the reproduction unit 102. The capacity and the decoding start time by the reproducing means 102 are designated.

[マルチメディア再生装置の動作]
次に、図4を参照(適宜図3参照)して、第2参考実施形態に係るマルチメディア再生装置の動作について説明する。図4は、本発明の第2参考実施形態に係るマルチメディア再生装置の制御手段のフローチャートである。
[Operation of multimedia playback device]
Next, referring to FIG. 4 (refer to FIG. 3 as appropriate), the operation of the multimedia playback apparatus according to the second reference embodiment will be described. FIG. 4 is a flowchart of the control means of the multimedia playback apparatus according to the second reference embodiment of the present invention.

まず、制御手段204は、処理遅延時間の初期値をDに設定し、この値を保持すると共に、負荷情報の初期値をLに設定し、保持する(ステップS11)。ここで、例えば、負荷情報の初期値を0.0としてLに設定し、保持する。そして、制御手段204は、負荷計測手段210から現在の負荷情報の入力(L_IN)があったかどうかを判別する(ステップS12)。続いて、制御手段204は、入力した負荷情報L_INと、保持している負荷情報Lとを比較して大小を判定する(ステップS13)。   First, the control means 204 sets the initial value of the processing delay time to D, holds this value, sets the initial value of load information to L, and holds it (step S11). Here, for example, the initial value of the load information is set to L as 0.0 and held. And the control means 204 discriminate | determines whether there existed the input (L_IN) of the present load information from the load measurement means 210 (step S12). Subsequently, the control unit 204 compares the input load information L_IN with the stored load information L to determine the magnitude (step S13).

入力した負荷情報L_INが保持している負荷情報Lよりも大きい場合(L_IN>L)、すなわち処理負荷が前回(初回は初期値)よりも大きくなった場合、制御手段204は、保持している処理遅延時間Dと負荷情報L_IN,Lとに基づいて、調整時間D′を次式(1)により算出する(ステップS14)。ここで、αはCPUの処理能力やストリームの符号化レートに応じて異なり、予めシミュレーション等により決定された定数である。   When the input load information L_IN is larger than the held load information L (L_IN> L), that is, when the processing load is larger than the previous time (initial value is the first time), the control unit 204 holds the load information L_IN. Based on the processing delay time D and the load information L_IN, L, the adjustment time D ′ is calculated by the following equation (1) (step S14). Here, α varies depending on the processing capacity of the CPU and the encoding rate of the stream, and is a constant determined in advance by simulation or the like.

D′=D+α×(L_IN−L)…(1)   D ′ = D + α × (L_IN−L) (1)

そして、制御手段204は、復号開始時刻TQを再生時刻TSよりも、式(1)で示される調整時間D′だけ早めた時刻を指定する(ステップS15)と共に、入力バッファ101に蓄積されるデータの容量をβ×(L_IN−L)だけ減少させた容量を指定する(ステップS16)。ここでβはCPUの処理能力やストリームの符号化レートに応じて異なり、予めシミュレーション等により決定された定数である。これにより、再生手段102の開始時刻制御部112は、復号開始時刻TQを早め、また、入力バッファ101の容量制御部111は、入力バッファ101に蓄積されるデータの容量を減少させる。 Then, the control unit 204, than the reproduction time T S the decoding start time T Q, designates a time at which advanced by adjusting time D 'represented by the formula (1) with (step S15), and is stored in the buffer 101 A capacity obtained by reducing the capacity of data to be reduced by β × (L_IN−L) is designated (step S16). Here, β varies depending on the processing capacity of the CPU and the encoding rate of the stream, and is a constant determined in advance by simulation or the like. Thus, the start time controller 112 of the reproducing means 102, advancing the decoding start time T Q, also, the capacity control section 111 of the input buffer 101, reduces the volume of data stored in the buffer 101.

ステップS16に続いて、制御手段204は、入力した負荷情報(L_IN)の値を、改めてLに設定して保持すると共に、調整時間D′の値を改めてDに設定して保持し(ステップS17)、ステップS12に戻る。なお、ステップS15およびステップS16は、逆の順序で処理してもよいし、並行に処理してもよい。   Subsequent to step S16, the control unit 204 sets the value of the input load information (L_IN) to L again and holds it, and sets the value of the adjustment time D ′ to D again and holds it (step S17). ), The process returns to step S12. Note that step S15 and step S16 may be processed in reverse order or in parallel.

また、ステップS13において、入力した負荷情報(L_IN)が保持している負荷情報Lよりも小さい場合(L_IN<L)、すなわち処理負荷が前回(初回は初期値)よりも小さくなった場合、制御手段204は、保持している処理遅延時間Dと負荷情報L_IN,Lとに基づいて、調整時間D′を次式(2)により算出する(ステップS18)。ここで、αは前記した式(1)のものと同一である。   In step S13, if the input load information (L_IN) is smaller than the held load information L (L_IN <L), that is, if the processing load is smaller than the previous time (initial value is the first time), control is performed. The means 204 calculates an adjustment time D ′ by the following equation (2) based on the stored processing delay time D and load information L_IN, L (step S18). Here, α is the same as that of the above-described formula (1).

D′=D−α×(L−L_IN)…(2)   D ′ = D−α × (L−L_IN) (2)

そして、制御手段204は、復号開始時刻TQを再生時刻TSよりも、式(2)で示される調整時間D′だけ早めた時刻を指定する(ステップS19)と共に、入力バッファ101に蓄積されるデータの容量をβ×(L−L_IN)だけ増加させた容量を指定し(ステップS20)、ステップS17に進む。これにより、再生手段102の開始時刻制御部112は、復号開始時刻TQを早め、また、入力バッファ101の容量制御部111は、入力バッファ101に蓄積されるデータの容量を増加させる。なお、ステップS19およびステップS20は、逆の順序で処理してもよいし、並行に処理してもよい。 Then, the control means 204 designates a time that the decoding start time T Q is earlier than the reproduction time T S by the adjustment time D ′ shown in the equation (2) (step S19) and is stored in the input buffer 101. A capacity obtained by increasing the capacity of data to be increased by β × (L−L_IN) is designated (step S20), and the process proceeds to step S17. Thus, the start time controller 112 of the reproducing means 102, advancing the decoding start time T Q, also, the capacity control section 111 of the input buffer 101 increases the amount of data stored in the buffer 101. Note that step S19 and step S20 may be processed in the reverse order or in parallel.

また、ステップS13において、入力した負荷情報(L_IN)が保持している負荷情報Lと等しい場合(L_IN=L)、すなわち、マルチメディア再生装置1の処理負荷が前回(初回は初期値)と同じ場合、制御手段204は、ステップS17に進む。   In step S13, when the input load information (L_IN) is equal to the stored load information L (L_IN = L), that is, the processing load of the multimedia playback device 1 is the same as the previous time (initial value is the first time). In that case, the control means 204 proceeds to step S17.

第2参考実施形態のマルチメディア再生装置によれば、処理負荷の変動に基づいた調整時間D′の分だけ復号開始時刻を早めることができる。また、処理負荷の変動に基づいて、入力バッファ101に蓄積される容量を制御することができる。これにより、処理負荷が変動しても、入力バッファ101に必要十分な容量を保ちながら、所定の再生時刻に復号または合成した映像や音声を再生出力することが可能になる。 According to the multimedia playback device of the second reference embodiment, the decoding start time can be advanced by the adjustment time D ′ based on the processing load variation. Further, the capacity accumulated in the input buffer 101 can be controlled based on the fluctuation of the processing load. As a result, even if the processing load fluctuates, it is possible to reproduce and output video and audio decoded or synthesized at a predetermined reproduction time while maintaining a necessary and sufficient capacity in the input buffer 101.

(第の実施形態)
[マルチメディア再生装置の構成]
図5は、第の実施形態のマルチメディア再生装置のブロック図である。
このマルチメディア再生装置3は、図5に示すように、多重分離部50と、複数(図では2つ)のメディア再生装置300とを備えている。なお、図1と同じ構成には同じ符号を付して説明を省略する。
メディア再生装置300は、出力バッファ310を備えている点と、制御手段304の機能が異なる点とを除いて、図1に示した第1参考実施形態のメディア再生装置100と同一の構成である。
(First Embodiment)
[Configuration of multimedia playback device]
FIG. 5 is a block diagram of the multimedia playback apparatus according to the first embodiment.
As shown in FIG. 5, the multimedia playback device 3 includes a demultiplexing unit 50 and a plurality (two in the figure) of media playback devices 300. In addition, the same code | symbol is attached | subjected to the same structure as FIG. 1, and description is abbreviate | omitted.
The media playback device 300 has the same configuration as the media playback device 100 of the first reference embodiment shown in FIG. 1 except that it includes an output buffer 310 and the control unit 304 has a different function. .

出力バッファ310は、再生手段102で再生処理された映像や音声を再生するべき時刻まで蓄積するものである。この出力バッファ310は、蓄積された映像や音声を瞬時に再生可能な状態で所定時間(再生余裕時間)待機する。そして、出力バッファ310に蓄積された映像や音声は、タイムスタンプで示された再生時刻に直ちに出力される。また、出力バッファ310は、容量制御部311を備えている。この容量制御部(容量制御手段)311は、出力バッファ310に蓄積されるデータの容量を制御手段304により指定された容量に制御するものである。
制御手段304は、後記するように、処理遅延算出手段103から通知される処理遅延時間に基づいて、入力バッファ101に蓄積されるデータの容量と、出力バッファ310に蓄積されるデータの容量と、再生手段102による復号開始時刻とを指定するものである。
The output buffer 310 accumulates the video and audio reproduced by the reproducing means 102 until the time to be reproduced. The output buffer 310 waits for a predetermined time (reproduction allowance time) in a state where the stored video and audio can be instantaneously reproduced. Then, the video and audio stored in the output buffer 310 are immediately output at the reproduction time indicated by the time stamp. In addition, the output buffer 310 includes a capacity control unit 311. The capacity control unit (capacity control means) 311 controls the capacity of data stored in the output buffer 310 to a capacity designated by the control means 304.
As will be described later, the control unit 304, based on the processing delay time notified from the processing delay calculation unit 103, the capacity of data stored in the input buffer 101, the capacity of data stored in the output buffer 310, The decoding start time by the reproduction means 102 is designated.

[マルチメディア再生装置の動作]
次に、図6を参照(適宜図5参照)して、第の実施形態に係るマルチメディア再生装置の動作について説明する。図6は、本発明の第の実施形態に係るマルチメディア再生装置の制御手段のフローチャートである。
[Operation of multimedia playback device]
Next, referring to FIG. 6 (see properly Figure 5), the operation of the multimedia reproducing apparatus according to the first embodiment. FIG. 6 is a flowchart of the control means of the multimedia playback apparatus according to the first embodiment of the present invention.

まず、制御手段304は、処理遅延時間の初期値をDに設定し、この値を保持する(ステップS21)。また、制御手段304は、変数Sの初期値に、出力バッファ310の再生余裕時間を設定して、保持する。そして、制御手段304は、処理遅延算出手段103から処理遅延時間の入力(D_IN)があったかどうかを判別する(ステップS22)。続いて、制御手段304は、入力した処理遅延時間D_INと、保持している処理遅延時間Dとを比較して大小を判定する(ステップS23)。   First, the control unit 304 sets the initial value of the processing delay time to D and holds this value (step S21). In addition, the control unit 304 sets and retains the reproduction allowance time of the output buffer 310 as the initial value of the variable S. Then, the control unit 304 determines whether or not a processing delay time is input (D_IN) from the processing delay calculation unit 103 (step S22). Subsequently, the control unit 304 compares the input processing delay time D_IN with the held processing delay time D to determine whether it is large or small (step S23).

入力した処理遅延時間D_INが保持している処理遅延時間Dよりも大きい場合(D_IN>D)、すなわち処理負荷が前回(初回は初期値)よりも大きくなった場合、制御手段304は、復号開始時刻TQを再生時刻TSよりも(S+D_IN)だけ早めた時刻を指定する(ステップS24)。また、この場合、入力バッファ101に蓄積されるデータの容量を(D_IN−D)×Rateだけ減少させた容量を指定する(ステップS25)。また、この場合、出力バッファ310に蓄積されるデータの容量を(D_IN−D)×Orgだけ増加させた容量を指定する(ステップS26)。ここで、Rateは受信しているストリームの符号化レートであり、Orgは非圧縮の映像や音声の単位時間あたりの情報量である。これにより、再生手段102の開始時刻制御部112は、復号開始時刻TQを早め、また、入力バッファ101の容量制御部111は、入力バッファ101に蓄積されるデータの容量を減少させ、出力バッファ310の容量制御部311は、出力バッファ310に蓄積されるデータの容量を増加させる。なお、ステップS24乃至ステップS26は、任意の順序で処理してもよいし、並行に処理してもよい。
ステップS26に続いて、制御手段304は、入力した処理遅延時間(D_IN)の値を、改めてDに設定して保持すると共に、S+(D_IN−D)の値を改めてSに設定して保持し(ステップS27)、ステップS22に戻る。
When the input processing delay time D_IN is larger than the held processing delay time D (D_IN> D), that is, when the processing load becomes larger than the previous time (initial value is the first time), the control unit 304 starts decoding. time T Q than the playback time T S to specify the time at which advanced by (S + D_IN) (step S24). Further, in this case, a capacity obtained by reducing the capacity of data stored in the input buffer 101 by (D_IN−D) × Rate is designated (step S25). In this case, a capacity obtained by increasing the capacity of data stored in the output buffer 310 by (D_IN−D) × Org is designated (step S26). Here, Rate is the encoding rate of the received stream, and Org is the amount of information per unit time of uncompressed video and audio. Thus, the start time controller 112 of the reproducing means 102, advancing the decoding start time T Q, also, the capacity control section 111 of the input buffer 101, reduces the volume of data stored in the buffer 101, the output buffer A capacity control unit 311 of 310 increases the capacity of data stored in the output buffer 310. Note that steps S24 to S26 may be processed in an arbitrary order or may be processed in parallel.
Following step S26, the control means 304 sets the value of the input processing delay time (D_IN) to D again and holds it, and sets the value of S + (D_IN-D) to S again and holds it. (Step S27), the process returns to Step S22.

また、ステップS23において、入力した処理遅延時間(D_IN)が保持している処理遅延時間Dよりも小さい場合(D_IN<D)、すなわち処理負荷が前回(初回は初期値)よりも小さくなった場合、制御手段304は、ステップS24と同様に、復号開始時刻TQを再生時刻TSよりも(D_IN)だけ早めた時刻を指定する(ステップS28)。また、この場合、入力バッファ101に蓄積されるデータの容量を(D−D_IN)×Rateだけ増加させた容量を指定する(ステップS29)。また、この場合、出力バッファ310に蓄積されるデータの容量を(D−D_IN)×Orgだけ減少させた容量を指定する(ステップS30)。これにより、再生手段102の開始時刻制御部112は、復号開始時刻TQを早め、また、入力バッファ101の容量制御部111は、入力バッファ101に蓄積されるデータの容量を増加させ、出力バッファ310の容量制御部311は、出力バッファ310に蓄積されるデータの容量を減少させる。なお、ステップS28乃至ステップS30は、任意の順序で処理してもよいし、並行に処理してもよい。 In step S23, when the input processing delay time (D_IN) is smaller than the held processing delay time D (D_IN <D), that is, when the processing load is smaller than the previous time (initial value is the first time). Similarly to step S24, the control unit 304 designates a time that is earlier than the reproduction time T S by (D_IN) the decoding start time T Q (step S28). In this case, a capacity obtained by increasing the capacity of data stored in the input buffer 101 by (D−D_IN) × Rate is designated (step S29). Further, in this case, a capacity obtained by reducing the capacity of data stored in the output buffer 310 by (D−D_IN) × Org is designated (step S30). Thus, the start time controller 112 of the reproducing means 102, advancing the decoding start time T Q, also, the capacity control section 111 of the input buffer 101 increases the amount of data stored in the buffer 101, the output buffer A capacity control unit 311 of 310 reduces the capacity of data stored in the output buffer 310. Steps S28 to S30 may be processed in an arbitrary order or may be processed in parallel.

さらに、ステップS30に続いて、制御手段304は、ステップS27に進む。
また、ステップS23において、入力した処理遅延時間(D_IN)が保持している処理遅延時間Dと等しい場合(D_IN=D)、すなわち、マルチメディア再生装置1の処理負荷が前回(初回は初期値)と同じ場合、制御手段304は、ステップS27に進む。
Further, following step S30, the control unit 304 proceeds to step S27.
In step S23, when the input processing delay time (D_IN) is equal to the held processing delay time D (D_IN = D), that is, the processing load of the multimedia playback device 1 is the previous time (initial value is the first time). If the same, the control means 304 proceeds to step S27.

の実施形態のマルチメディア再生装置によれば、再生手段102による処理遅延時間を常に監視し、この処理遅延時間と再生余裕時間の分だけ復号開始時刻を早めることができる。また、処理負荷を反映している処理遅延時間に基づいて、入力バッファ101および出力バッファ310に蓄積される容量を制御することができる。これにより、処理負荷が変動しても、入力バッファ101および出力バッファ310に必要十分な容量を保ちながら、所定の再生時刻に復号または合成した映像や音声を再生出力することが可能になる。 According to the multimedia playback apparatus of the first embodiment, the processing delay time by the playback means 102 can be constantly monitored, and the decoding start time can be advanced by the amount of the processing delay time and the playback allowance time. Further, the capacity accumulated in the input buffer 101 and the output buffer 310 can be controlled based on the processing delay time reflecting the processing load. As a result, even if the processing load fluctuates, it is possible to reproduce and output video and audio decoded or synthesized at a predetermined reproduction time while maintaining the necessary and sufficient capacity in the input buffer 101 and the output buffer 310.

(第の実施形態)
[マルチメディア再生装置の構成]
図7は、第の実施形態のマルチメディア再生装置のブロック図である。
このマルチメディア再生装置4は、図7に示すように、多重分離部50と、複数(図では2つ)のメディア再生装置400と、負荷計測手段210とを備えている。なお、図3と同じ構成には同じ符号を付して説明を省略する。
(Second Embodiment)
[Configuration of multimedia playback device]
FIG. 7 is a block diagram of the multimedia playback apparatus according to the second embodiment.
As shown in FIG. 7, the multimedia playback device 4 includes a demultiplexing unit 50, a plurality (two in the figure) of media playback devices 400, and a load measuring unit 210. In addition, the same code | symbol is attached | subjected to the same structure as FIG. 3, and description is abbreviate | omitted.

メディア再生装置400は、出力バッファ310を備えている点と、制御手段404の機能が異なる点とを除いて、図3に示した第2参考実施形態のメディア再生装置200と同一の構成である。
制御手段404は、後記するように、負荷計測手段210から出力される処理負荷と、再生手段102で再生に要する時間を示す処理遅延時間とに基づいて、入力バッファ101に蓄積されるデータの容量と、出力バッファ310に蓄積されるデータの容量と、再生手段102による復号開始時刻とを指定するものである。
The media playback device 400 has the same configuration as that of the media playback device 200 of the second reference embodiment shown in FIG. 3 except that the output buffer 310 is provided and the function of the control unit 404 is different. .
As will be described later, the control unit 404 stores the capacity of data stored in the input buffer 101 based on the processing load output from the load measuring unit 210 and the processing delay time indicating the time required for reproduction by the reproduction unit 102. And the capacity of data stored in the output buffer 310 and the decoding start time by the reproducing means 102 are designated.

[マルチメディア再生装置の動作]
次に、図8を参照(適宜図7参照)して、第の実施形態に係るマルチメディア再生装置の動作について説明する。図は、本発明の第の実施形態に係るマルチメディア再生装置の制御手段のフローチャートである。
[Operation of multimedia playback device]
Next, referring to FIG. 8 (refer to FIG. 7 as appropriate), the operation of the multimedia playback apparatus according to the second embodiment will be described. FIG. 8 is a flowchart of the control means of the multimedia playback apparatus according to the second embodiment of the present invention.

まず、制御手段404は、処理遅延時間の初期値をDに設定し、この値を保持すると共に、負荷情報の初期値をLに設定し、保持する(ステップS31)。また、制御手段404は、変数Sの初期値に、出力バッファ310の再生余裕時間を設定して、保持する。そして、制御手段404は、負荷計測手段210から現在の負荷情報の入力(L_IN)があったかどうかを判別する(ステップS32)。続いて、制御手段404は、入力した負荷情報L_INと、保持している負荷情報Lとを比較して大小を判定する(ステップS33)。   First, the control unit 404 sets the initial value of the processing delay time to D, holds this value, sets the initial value of the load information to L, and holds it (step S31). In addition, the control unit 404 sets and retains the reproduction allowance time of the output buffer 310 as the initial value of the variable S. Then, the control unit 404 determines whether or not the current load information is input (L_IN) from the load measuring unit 210 (step S32). Subsequently, the control unit 404 compares the input load information L_IN with the stored load information L to determine the magnitude (step S33).

入力した負荷情報L_INが保持している負荷情報Lよりも大きい場合(L_IN>L)、すなわち処理負荷が前回(初回は初期値)よりも大きくなった場合、制御手段404は、保持している処理遅延時間Dと負荷情報L_IN,Lとに基づいて、調整時間D′を次式(3)により算出する(ステップS34)。ここで、α′はCPUの処理能力やストリームの符号化レートに応じて異なり、予めシミュレーション等により決定された定数である。   When the input load information L_IN is larger than the held load information L (L_IN> L), that is, when the processing load is larger than the previous time (initial value is the first time), the control unit 404 holds the load information L_IN. Based on the processing delay time D and the load information L_IN, L, the adjustment time D ′ is calculated by the following equation (3) (step S34). Here, α ′ varies depending on the processing capacity of the CPU and the encoding rate of the stream, and is a constant determined in advance by simulation or the like.

D′=D+α′×(L_IN−L)…(3)   D ′ = D + α ′ × (L_IN−L) (3)

そして、制御手段404は、復号開始時刻TQを再生時刻TSよりも(S+D′)だけ早めた時刻を指定する(ステップS35)。また、この場合、入力バッファ101に蓄積されるデータの容量をβ′×(L_IN−L)だけ減少させた容量を指定する(ステップS36)。また、この場合、出力バッファ310に蓄積されるデータの容量をγ′×(L_IN−L)だけ増加させた容量を指定する(ステップS37)。ここでβ′、γ′はCPUの処理能力やストリームの符号化レートに応じて異なり、予めシミュレーション等により決定された定数である。これにより、再生手段102の開始時刻制御部112は、復号開始時刻TQを早め、また、入力バッファ101の容量制御部111は、入力バッファ101に蓄積されるデータの容量を減少させ、出力バッファ310の容量制御部311は、出力バッファ310に蓄積されるデータの容量を増加させる。なお、ステップS35乃至ステップS37は、任意の順序で処理してもよいし、並行に処理してもよい。 Then, the control unit 404 designates a time that is earlier than the reproduction time T S by (S + D ′) the decoding start time T Q (step S35). In this case, a capacity obtained by reducing the capacity of data stored in the input buffer 101 by β ′ × (L_IN−L) is designated (step S36). In this case, a capacity obtained by increasing the capacity of data stored in the output buffer 310 by γ ′ × (L_IN−L) is designated (step S37). Here, β ′ and γ ′ differ according to the processing capability of the CPU and the encoding rate of the stream, and are constants determined in advance by simulation or the like. Thus, the start time controller 112 of the reproducing means 102, advancing the decoding start time T Q, also, the capacity control section 111 of the input buffer 101, reduces the volume of data stored in the buffer 101, the output buffer A capacity control unit 311 of 310 increases the capacity of data stored in the output buffer 310. Steps S35 to S37 may be processed in an arbitrary order or may be processed in parallel.

ステップS37に続いて、制御手段404は、入力した負荷情報(L_IN)の値を改めてLに設定して保持し、また、調整時間D′の値を改めてDに設定して保持し、さらに、{S+γ′×(L_IN−L)/Org}の値を求めてこれを改めて変数Sに設定して保持し(ステップS38)、ステップS32に戻る。なお、Orgは非圧縮の映像や音声の単位時間あたりの情報量である。   Subsequent to step S37, the control unit 404 sets the value of the input load information (L_IN) to L again and holds it, sets the value of the adjustment time D ′ to D again, and holds it. The value of {S + γ ′ × (L_IN−L) / Org} is obtained, and this value is again set and held in the variable S (step S38), and the process returns to step S32. Note that Org is the amount of information per unit time of uncompressed video and audio.

また、ステップS33において、入力した負荷情報(L_IN)が保持している負荷情報Lよりも小さい場合(L_IN<L)、すなわち処理負荷が前回(初回は初期値)よりも小さくなった場合、制御手段404は、保持している処理遅延時間Dと負荷情報L_IN,Lとに基づいて、調整時間D′を次式(4)により算出する(ステップS39)。ここで、α′は前記した式(3)のものと同一である。   In step S33, if the input load information (L_IN) is smaller than the stored load information L (L_IN <L), that is, if the processing load is smaller than the previous time (initial value is the first time), control is performed. The means 404 calculates the adjustment time D ′ by the following equation (4) based on the stored processing delay time D and load information L_IN, L (step S39). Here, α ′ is the same as that in the formula (3).

D′=D−α′×(L−L_IN)…(4)   D ′ = D−α ′ × (L−L_IN) (4)

そして、制御手段404は、ステップS35と同様に、復号開始時刻TQを再生時刻TSよりも(S+D′)だけ早めた時刻を指定する(ステップS40)。また、この場合、入力バッファ101に蓄積されるデータの容量をβ′×(L−L_IN)だけ増加させた容量を指定する(ステップS41)。また、この場合、出力バッファ310に蓄積されるデータの容量をγ′×(L−L_IN)だけ減少させた容量を指定する(ステップS42)。ここでβ′、γ′はCPUの処理能力やストリームの符号化レートに応じて異なり、予めシミュレーション等により決定された定数である。これにより、再生手段102の開始時刻制御部112は、復号開始時刻TQを早め、また、入力バッファ101の容量制御部111は、入力バッファ101に蓄積されるデータの容量を増加させ、出力バッファ310の容量制御部311は、出力バッファ310に蓄積されるデータの容量を減少させる。なお、ステップS40乃至ステップS42は、任意の順序で処理してもよいし、並行に処理してもよい。ステップS42に続いて、制御手段404は、ステップS38に進む。 Then, as in step S35, the control means 404 designates a time that is earlier than the reproduction time T S by (S + D ′) the decoding start time T Q (step S40). In this case, a capacity obtained by increasing the capacity of data stored in the input buffer 101 by β ′ × (L−L_IN) is designated (step S41). In this case, a capacity obtained by reducing the capacity of data stored in the output buffer 310 by γ ′ × (L−L_IN) is designated (step S42). Here, β ′ and γ ′ differ according to the processing capability of the CPU and the encoding rate of the stream, and are constants determined in advance by simulation or the like. Thus, the start time controller 112 of the reproducing means 102, advancing the decoding start time T Q, also, the capacity control section 111 of the input buffer 101 increases the amount of data stored in the buffer 101, the output buffer A capacity control unit 311 of 310 reduces the capacity of data stored in the output buffer 310. Steps S40 to S42 may be processed in an arbitrary order or may be processed in parallel. Following step S42, the control unit 404 proceeds to step S38.

また、ステップS33において、入力した負荷情報(L_IN)が保持している負荷情報Lと等しい場合(L_IN=L)、すなわち、処理負荷が前回(初回は初期値)と同じ場合、制御手段404は、ステップS38に進む。   In step S33, when the input load information (L_IN) is equal to the stored load information L (L_IN = L), that is, when the processing load is the same as the previous time (initial value is the first time), the control unit 404 The process proceeds to step S38.

の実施形態のマルチメディア再生装置によれば、処理負荷の変動に基づいた調整時間D′と再生余裕時間に相当する時間の分だけ復号開始時刻を早めることができる。また、処理負荷の変動に基づいて、入力バッファ101および出力バッファ310に蓄積される容量を制御することができる。これにより、処理負荷が変動しても、入力バッファ101および出力バッファ310に必要十分な容量を保ちながら、所定の再生時刻に復号または合成した映像や音声を再生出力することが可能になる。 According to the multimedia playback device of the second embodiment, the decoding start time can be advanced by the time corresponding to the adjustment time D ′ based on the fluctuation of the processing load and the playback allowance time. Further, it is possible to control the capacity accumulated in the input buffer 101 and the output buffer 310 based on processing load fluctuations. As a result, even if the processing load fluctuates, it is possible to reproduce and output video and audio decoded or synthesized at a predetermined reproduction time while maintaining the necessary and sufficient capacity in the input buffer 101 and the output buffer 310.

以上、本発明の実施形態について説明したが、本発明は第1およびの実施形態には限定されない。例えば、第1およびの実施形態では、マルチメディア再生装置が同一のメディア再生装置を複数備えて、複数のメディアを再生できるものとしたが、単一のメディアに対応した単一のメディア再生装置だけを備えるものとしてもよい。
また、本発明は、例えば第1参考実施形態、第2参考実施形態、第1の実施形態およびの実施形態における各メディア再生装置が混在するようにしてもよい。この場合のマルチメディア再生装置を第3参考実施形態として説明する。
As mentioned above, although embodiment of this invention was described, this invention is not limited to 1st and 2nd embodiment. For example, in the first and second embodiments, the multimedia playback device includes a plurality of the same media playback devices and can play back a plurality of media. However, a single media playback corresponding to a single media is possible. Only the device may be provided.
In the present invention, for example , the media playback devices in the first reference embodiment, the second reference embodiment, the first embodiment, and the second embodiment may be mixed. A multimedia playback apparatus in this case will be described as a third reference embodiment.

(第3参考実施形態)
[マルチメディア再生装置の構成]
図9は、第3参考実施形態のマルチメディア再生装置のブロック図である。
このマルチメディア再生装置5は、図9に示すように、多重分離部50と、メディア再生装置100〜400(図1、図3、図5および図7参照)と、負荷計測手段210とを備えている。なお、マルチメディア再生装置1〜4と同一の構成には同一の符号を付し、説明を省略する。
( Third reference embodiment)
[Configuration of multimedia playback device]
FIG. 9 is a block diagram of a multimedia playback apparatus according to the third reference embodiment.
As shown in FIG. 9, the multimedia playback device 5 includes a demultiplexing unit 50, media playback devices 100 to 400 (see FIGS. 1, 3, 5, and 7) and a load measuring unit 210. ing. In addition, the same code | symbol is attached | subjected to the structure same as the multimedia reproduction apparatuses 1-4, and description is abbreviate | omitted.

ここでは、IPネットワークにより伝送されるメディア(ストリームやスクリプト)として、MPEG−2映像、MPEG−1 Audio Layer、TVMLスクリプトおよびテキストスクリプトを想定している。
そして、メディア再生装置100は、MPEG−2のストリームを復号し映像を再生する。このメディア再生装置100において、MPEG−2の1GOPの処理遅延時間は例えば10msであり、この値(10ms)を処理遅延時間の初期値に設定する。
また、メディア再生装置200は、MPEG−1 Audio Layerで符号化したストリームを復号して音声を再生する。このメディア再生装置200において、MPEG−1 Audio Layerの1音声フレームの処理遅延時間は例えば3msであり、この値(3ms)を処理遅延時間の初期値に設定する。
Here, MPEG-2 video, MPEG-1 Audio Layer, TVML script, and text script are assumed as media (streams and scripts) transmitted through the IP network.
Then, the media playback device 100 decodes the MPEG-2 stream and plays back the video. In this media playback apparatus 100, the processing delay time of 1 GOP of MPEG-2 is 10 ms, for example, and this value (10 ms) is set as the initial value of the processing delay time.
Further, the media playback device 200 plays back audio by decoding a stream encoded by MPEG-1 Audio Layer. In this media playback apparatus 200, the processing delay time of one audio frame of MPEG-1 Audio Layer is 3 ms, for example, and this value (3 ms) is set as the initial value of the processing delay time.

また、メディア再生装置300は、TVMLスクリプトを解釈し、映像や音声を合成する。このメディア再生装置300において、一定量のTVMLスクリプトの解釈や合成に要する処理遅延時間は、例えば900msであり、この値(900ms)を処理遅延時間の初期値に設定する。
さらに、メディア再生装置400は、テキストスクリプトを解釈し、映像や音声を合成する。このメディア再生装置400において、一定量のテキストスクリプトの解釈や合成に要する処理遅延時間は、例えば600msであり、この値(600ms)を処理遅延時間の初期値に設定する。
Further, the media playback device 300 interprets the TVML script and synthesizes video and audio. In this media playback device 300, the processing delay time required to interpret and synthesize a certain amount of TVML script is, for example, 900 ms, and this value (900 ms) is set as the initial value of the processing delay time.
Further, the media playback device 400 interprets the text script and synthesizes video and audio. In this media playback device 400, the processing delay time required for interpretation and synthesis of a certain amount of text script is 600 ms, for example, and this value (600 ms) is set as the initial value of the processing delay time.

3参考実施形態のマルチメディア再生装置によれば、映像や音声などそれぞれのメディアが、それぞれに付与されたタイムスタンプの時刻に映像や音声を再生することで、複数のメディア間で同期を取りながら再生出力をおこなうことが可能になる。なお、いずれのメディアをどの符号化方式とするかは任意であり、どのストリーム(またはスクリプト)をいずれのメディア再生装置100〜400で再生(復号または合成)するかは任意である。また、前記した処理遅延時間の数値は、あるシステムにおける一例であることはもちろんである。 According to the multimedia playback device of the third reference embodiment, each media such as video and audio reproduces video and audio at the time of the time stamp assigned to each media, thereby synchronizing the plurality of media. Playback output can be performed. In addition, which media is used as which encoding method is arbitrary, and which stream (or script) is reproduced (decoded or synthesized) by any media playback device 100 to 400 is arbitrary. Of course, the numerical value of the processing delay time is an example in a certain system.

本発明の第1参考実施形態に係るマルチメディア再生装置の構成を示すブロック図である。It is a block diagram which shows the structure of the multimedia reproduction apparatus which concerns on 1st reference embodiment of this invention. 本発明の第1参考実施形態に係るマルチメディア再生装置の制御手段のフローチャートである。It is a flowchart of the control means of the multimedia reproduction apparatus which concerns on 1st reference embodiment of this invention. 本発明の第2参考実施形態に係るマルチメディア再生装置の構成を示すブロック図である。It is a block diagram which shows the structure of the multimedia reproduction apparatus which concerns on 2nd reference embodiment of this invention. 本発明の第2参考実施形態に係るマルチメディア再生装置の制御手段のフローチャートである。It is a flowchart of the control means of the multimedia reproduction apparatus which concerns on 2nd reference embodiment of this invention. 本発明の第の実施形態に係るマルチメディア再生装置の構成を示すブロック図である。It is a block diagram which shows the structure of the multimedia reproduction apparatus which concerns on the 1st Embodiment of this invention. 本発明の第の実施形態に係るマルチメディア再生装置の制御手段のフローチャートである。It is a flowchart of the control means of the multimedia reproducing | regenerating apparatus which concerns on the 1st Embodiment of this invention. 本発明の第の実施形態に係るマルチメディア再生装置の構成を示すブロック図である。It is a block diagram which shows the structure of the multimedia reproduction apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第の実施形態に係るマルチメディア再生装置の制御手段のフローチャートである。It is a flowchart of the control means of the multimedia reproduction apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第3参考実施形態に係るマルチメディア再生装置の構成を示すブロック図である。It is a block diagram which shows the structure of the multimedia reproduction apparatus which concerns on 3rd reference embodiment of this invention. 従来のマルチメディア再生装置の構成を示すブロック図である(出力バッファがない場合)。It is a block diagram which shows the structure of the conventional multimedia reproducing | regenerating apparatus (when there is no output buffer). 従来のマルチメディア再生装置の構成を示すブロック図である(出力バッファがある場合)。It is a block diagram which shows the structure of the conventional multimedia reproducing | regenerating apparatus (when there exists an output buffer). 処理遅延時間の説明図であり、(a)は出力バッファがない場合を示し、(b)は出力バッファがある場合を示している。It is explanatory drawing of processing delay time, (a) shows the case where there is no output buffer, (b) shows the case where there is an output buffer.

符号の説明Explanation of symbols

1〜5 マルチメディア再生装置
50 多重分離部(多重分離部手段)
100 メディア再生装置
101 入力バッファ
102 再生手段
103 処理遅延算出手段
104 制御手段
111 容量制御部(容量制御手段)
112 開始時刻制御部(開始時刻制御手段)
150 出力装置
200 メディア再生装置
204 制御手段
210 負荷計測手段
300 メディア再生装置
304 制御手段
310 出力バッファ
311 容量制御部(容量制御手段)
400 メディア再生装置
404 制御手段

1-5 Multimedia playback apparatus 50 Demultiplexer (demultiplexer means)
DESCRIPTION OF SYMBOLS 100 Media playback apparatus 101 Input buffer 102 Playback means 103 Processing delay calculation means 104 Control means 111 Capacity control part (capacity control means)
112 Start time control unit (start time control means)
Reference Signs List 150 output device 200 media playback device 204 control means 210 load measurement means 300 media playback device 304 control means 310 output buffer 311 capacity control unit (capacity control means)
400 Media playback device 404 Control means

Claims (2)

所定の再生時刻にメディアを再生するための符号化されたメディアデータを蓄積する入力バッファと、この入力バッファから出力されるデータを再生する再生手段とを有し、前記データに基づいてメディアを再生するメディア再生装置であって、
前記再生手段から出力されるデータを蓄積し、蓄積されたデータを所定時間保持する出力バッファと、
前記入力バッファから前記再生手段へのデータの入力を検出すると、前記再生手段で前記データの再生に要する時間を示す処理遅延時間を測定により算出する処理遅延算出手段と、
処理遅延算出手段で算出された今回の処理遅延時間に基づいて、次回の処理において、前記メディアを再生するための処理を開始する時刻を指定すると共に、前記入力バッファおよび前記出力バッファにそれぞれ蓄積されるデータの容量を指定する制御手段と
記制御手段により指定された時刻に、前記メディアを再生するための処理を開始する開始時刻制御手段と、を備え、
前記入力バッファは、蓄積されるデータの容量を、前記制御手段により指定された容量に制御する容量制御手段を備え、
前記出力バッファは、蓄積されるデータの容量を、前記制御手段により指定された容量に制御する容量制御手段を備え、
前記制御手段は、
前記メディアを再生するための処理を開始する時刻を、前記所定の再生時刻よりも、前記処理遅延算出手段で算出された今回の処理遅延時間と前記出力バッファでデータが保持される所定時間との和だけ次回の処理では早めた時刻として指定し、
前記処理遅延算出手段で算出された今回の処理遅延時間が所定値よりも大きい場合に、次回の処理では、前記入力バッファに蓄積されるデータの容量を減少させるように指定し、かつ、前記出力バッファに蓄積されるデータの容量を増加させるように指定し、
前記処理遅延算出手段で算出された今回の処理遅延時間が所定値よりも小さい場合に、次回の処理では、前記入力バッファに蓄積されるデータの容量を増加させるように指定し、かつ、前記出力バッファに蓄積されるデータの容量を減少させるように指定する
ことを特徴とするメディア再生装置。
An input buffer for storing encoded media data for playing back the media at a predetermined playback time; and playback means for playing back the data output from the input buffer, and playing back the media based on the data A media playback device,
An output buffer for accumulating data output from the reproducing means and holding the accumulated data for a predetermined time;
When detecting the input of data into the playback unit from the input buffer, and processing delay calculating means for calculating a measured processing delay time indicating the time required for reproduction of the data in said reproducing means,
Based on the current processing delay time calculated by the processing delay calculation means, in the next process, as well as specify the time to start the process for playing the media, respectively accumulated in the input buffer and the output buffer Control means for specifying the amount of data to be processed ;
The time specified by the pre-SL control means, and a start time controlling means for starting the processing for reproducing the media,
The input buffer includes capacity control means for controlling the capacity of accumulated data to a capacity designated by the control means,
The output buffer includes capacity control means for controlling the capacity of accumulated data to a capacity designated by the control means,
The control means includes
The time for starting the process for playing back the media is set to the current processing delay time calculated by the processing delay calculation means and the predetermined time for holding data in the output buffer, relative to the predetermined playback time. Only the sum is specified as an earlier time in the next process,
When the current processing delay time calculated by the processing delay calculation means is greater than a predetermined value, the next processing specifies to reduce the amount of data stored in the input buffer, and the output Specify to increase the amount of data stored in the buffer,
When the current processing delay time calculated by the processing delay calculation means is smaller than a predetermined value, the next processing specifies to increase the amount of data stored in the input buffer, and the output A media playback device characterized by specifying to reduce the capacity of data stored in a buffer .
所定の再生時刻にメディアを再生するための符号化されたメディアデータを蓄積する入力バッファと、この入力バッファから出力される前記データを再生する再生手段とを有し、前記データに基づいてメディアを再生するメディア再生装置であって、
前記再生手段から出力されるデータを蓄積し、蓄積されたデータを所定時間保持する出力バッファと、
前記メディアを再生するための処理の負荷である処理負荷を計測する負荷計測手段と、
この負荷計測手段で計測された今回の処理負荷の変動に基づいて、次回の処理において、前記メディアを再生するための処理を開始する時刻を指定すると共に、前記入力バッファおよび前記出力バッファにそれぞれ蓄積されるデータの容量を指定する制御手段と
記制御手段により指定された時刻に、前記メディアを再生するための処理を開始する開始時刻制御手段とを備え、
前記入力バッファは、蓄積されるデータの容量を、前記制御手段により指定された容量に制御する容量制御手段を備え、
前記出力バッファは、蓄積されるデータの容量を、前記制御手段により指定された容量に制御する容量制御手段を備え、
前記制御手段は、
前記メディアを再生するための処理を開始する時刻を、前記所定の再生時刻よりも、前記再生手段で前記データの再生に要する時間として今回設定されている処理遅延時間と前記計測された現在の処理負荷と予め定められた係数とにより算出された調整時間と前記出力バッファでデータが保持される所定時間との和だけ次回の処理では早めた時刻として指定し、
前記負荷計測手段で計測された今回の処理負荷が所定値よりも大きい場合に、次回の処理では、前記入力バッファに蓄積されるデータの容量を減少させるように指定し、かつ、前記出力バッファに蓄積されるデータの容量を増加させるように指定し、
前記負荷計測手段で計測された今回の処理負荷が所定値よりも小さい場合に、次回の処理では、前記入力バッファに蓄積されるデータの容量を増加させるように指定し、かつ、前記出力バッファに蓄積されるデータの容量を減少させるように指定する
ことを特徴とするメディア再生装置。
An input buffer for storing encoded media data for playing back the media at a predetermined playback time; and playback means for playing back the data output from the input buffer. A media playback device for playback,
An output buffer for accumulating data output from the reproducing means and holding the accumulated data for a predetermined time;
Load measuring means for measuring a processing load which is a processing load for reproducing the media;
Based on the fluctuation of the current processing load measured by the load measuring means, in the next processing, the time for starting the processing for reproducing the media is designated and stored in the input buffer and the output buffer, respectively. Control means for specifying the amount of data to be processed ;
The time specified by the pre-SL control means, and a start time controlling means for starting the processing for reproducing the media,
The input buffer includes capacity control means for controlling the capacity of accumulated data to a capacity designated by the control means,
The output buffer includes capacity control means for controlling the capacity of accumulated data to a capacity designated by the control means,
The control means includes
The processing delay time set this time as the time required for reproducing the data by the reproducing means is set to the time at which the processing for reproducing the media is started, compared to the predetermined reproduction time, and the measured current processing The sum of the adjustment time calculated by the load and a predetermined coefficient and the predetermined time that data is held in the output buffer is designated as the time that is advanced in the next processing,
When the current processing load measured by the load measuring means is larger than a predetermined value, in the next processing, it is specified to reduce the amount of data stored in the input buffer, and the output buffer Specify to increase the amount of accumulated data,
When the current processing load measured by the load measuring means is smaller than a predetermined value, the next processing specifies that the capacity of data stored in the input buffer is increased, and the output buffer A media playback device characterized in that it specifies to reduce the volume of stored data .
JP2005003121A 2005-01-07 2005-01-07 Media playback device Expired - Fee Related JP4511952B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005003121A JP4511952B2 (en) 2005-01-07 2005-01-07 Media playback device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005003121A JP4511952B2 (en) 2005-01-07 2005-01-07 Media playback device

Publications (2)

Publication Number Publication Date
JP2006190213A JP2006190213A (en) 2006-07-20
JP4511952B2 true JP4511952B2 (en) 2010-07-28

Family

ID=36797344

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005003121A Expired - Fee Related JP4511952B2 (en) 2005-01-07 2005-01-07 Media playback device

Country Status (1)

Country Link
JP (1) JP4511952B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5205762B2 (en) * 2007-01-12 2013-06-05 ヤマハ株式会社 Sound source circuit
JP5271544B2 (en) * 2008-01-11 2013-08-21 株式会社日立製作所 Digital broadcast receiving apparatus and digital broadcast receiving method
JP2011023992A (en) * 2009-07-16 2011-02-03 Hitachi Consumer Electronics Co Ltd Content distribution system, reproducing device, and distribution server
JP2014110564A (en) * 2012-12-03 2014-06-12 Konami Digital Entertainment Co Ltd Output timing control device, output timing control system, output timing control method, and program
JP6122626B2 (en) * 2012-12-06 2017-04-26 日本放送協会 Decoding device and program
JP2016042614A (en) * 2014-08-13 2016-03-31 株式会社東芝 Communication device, content client, and content server
JP6632864B2 (en) 2015-10-27 2020-01-22 シナプティクス・ジャパン合同会社 Display driver and display device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1131360A (en) * 1997-05-15 1999-02-02 Matsushita Electric Ind Co Ltd Compressed code decoding device
JP2000308012A (en) * 1999-04-22 2000-11-02 Mitsubishi Electric Corp Video/audio reproducing device
JP2002118844A (en) * 2000-10-05 2002-04-19 Toshiba Corp Moving picture decoding reproduction device, and multimedia information receiver using the device
JP2003143554A (en) * 2001-10-16 2003-05-16 Samsung Electronics Co Ltd Multimedia data restoring device and method for enabling variation of capacity of buffer for preserving received multimedia data
JP2003289508A (en) * 2002-03-28 2003-10-10 Matsushita Electric Ind Co Ltd Multimedia reproducing apparatus and multimedia reproducing method
JP2003330496A (en) * 2002-05-04 2003-11-19 Samsung Electronics Co Ltd Method and apparatus for controlling buffering of audio stream

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1131360A (en) * 1997-05-15 1999-02-02 Matsushita Electric Ind Co Ltd Compressed code decoding device
JP2000308012A (en) * 1999-04-22 2000-11-02 Mitsubishi Electric Corp Video/audio reproducing device
JP2002118844A (en) * 2000-10-05 2002-04-19 Toshiba Corp Moving picture decoding reproduction device, and multimedia information receiver using the device
JP2003143554A (en) * 2001-10-16 2003-05-16 Samsung Electronics Co Ltd Multimedia data restoring device and method for enabling variation of capacity of buffer for preserving received multimedia data
JP2003289508A (en) * 2002-03-28 2003-10-10 Matsushita Electric Ind Co Ltd Multimedia reproducing apparatus and multimedia reproducing method
JP2003330496A (en) * 2002-05-04 2003-11-19 Samsung Electronics Co Ltd Method and apparatus for controlling buffering of audio stream

Also Published As

Publication number Publication date
JP2006190213A (en) 2006-07-20

Similar Documents

Publication Publication Date Title
KR101868281B1 (en) Information processing apparatus, information processing method, and computer-readable recording medium
US7412149B2 (en) Trick mode generation in video streaming
JP5026167B2 (en) Stream transmission server and stream transmission system
JP4511952B2 (en) Media playback device
JP6935552B2 (en) Transmission method, reception method, transmitter and receiver
JP2003114845A (en) Media conversion method and media conversion device
JP3438223B2 (en) Multiplexing device and multiplexing method, and transmission device and transmission method
JP2008167061A (en) Encoding device and encoding method
JP2004180290A (en) Apparatus and method of transmission, apparatus and method of reproduction, program and recording medium
EP2034733A2 (en) Content reproduction
US20030128765A1 (en) Receiving apparatus
JP4715306B2 (en) STREAM CONTROL DEVICE, STREAM REPRODUCTION METHOD, VIDEO RECORDING / REPRODUCTION SYSTEM
JP4096915B2 (en) Digital information reproducing apparatus and method
US6999090B2 (en) Data processing apparatus, data processing method, information storing medium, and computer program
JP7275212B2 (en) Transmission method, reception method, transmission device and reception device
US8428422B2 (en) Moving picture multiplexing apparatus, audio and video recording apparatus and moving picture multiplexing method
CN112423096A (en) Playing optimization method and system
JPH10271482A (en) Synchronous reproduction control method and system for coded video
JP3184175B2 (en) Decryption device
JP2002176609A (en) Data receiving/reproducing method and data receiving reproducing device
JP2009218934A (en) Video reproducing device and video reproducing method
JPH09311689A (en) Information outputting device
JP2004180282A (en) Stream information reproducing apparatus, stream information reproducing method, program, and digital broadcasting receiver
JP2006074759A (en) Apparatus for browsing plural moving images, and distribution apparatus
JP2006140551A (en) Motion picture reproducer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071001

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100326

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100507

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

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130514

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

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

Free format text: PAYMENT UNTIL: 20140514

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees