JP2007267144A - Method for distributing information, server device and program - Google Patents
Method for distributing information, server device and program Download PDFInfo
- Publication number
- JP2007267144A JP2007267144A JP2006090747A JP2006090747A JP2007267144A JP 2007267144 A JP2007267144 A JP 2007267144A JP 2006090747 A JP2006090747 A JP 2006090747A JP 2006090747 A JP2006090747 A JP 2006090747A JP 2007267144 A JP2007267144 A JP 2007267144A
- Authority
- JP
- Japan
- Prior art keywords
- video data
- key frame
- information
- appearance position
- index file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
本発明は、ストリーミング配信における情報配信方法、サーバ装置およびその方法をコンピュータに実行させるためのプログラムに関する。 The present invention relates to an information distribution method in streaming distribution, a server apparatus, and a program for causing a computer to execute the method.
ブロードバンド伝送技術と情報圧縮技術の発達により、インターネットなどのネットワークを介して、ラジオやテレビのように音声や映像などを多くの情報端末に配信することが可能になった。この情報配信方法の1つに、ストリーミング配信がある。ストリーミング配信では、サービスを提供する側のサーバがネットワークを介して音声や映像のファイルを送信し、サービスを利用するクライアント側の情報端末は、受信するファイルを保存しながら再生を行う。そのため、クライアントは、ファイルが全てダウンロードされるまで待つ必要がなく、聞きたい音楽や見たい映像をすぐに再生させることができる。 With the development of broadband transmission technology and information compression technology, it has become possible to distribute audio and video to many information terminals, such as radio and television, via networks such as the Internet. One of the information distribution methods is streaming distribution. In streaming distribution, a server providing a service transmits audio and video files via a network, and an information terminal on the client side using the service performs reproduction while storing the received file. Therefore, the client does not need to wait until all the files are downloaded, and can immediately play the music that the user wants to listen to or the video that the user wants to watch.
ストリーミング配信のサービスにおいて、サーバは、クライアントからの多様な視聴モード要求に応じた配信を行う。視聴モードには、オリジナルの速度での再生(通常モードと称する)、早送りしながら再生を行う高速再生(高速モードと称する)、および巻き戻しをしながら再生を行う逆高速再生(逆高速モードと称する)などがある。従来の高速再生および逆高速再生の方式では、サーバが高速再生用ファイルを事前に作成し、高速再生や逆高速再生の要求があると、事前に作成した高速再生用ファイルをその要求元に送信していた(特許文献1参照)。
高速再生および逆高速再生では、クライアント側でその倍率を選択可能にしている。従来の方式では、複数種の倍率に対応可能にするために、高速再生用のファイルを複数種準備していた。そして、クライアント側で通常再生中に高速再生の要求があると、選択された倍率に対応して、送信ファイルを通常再生ファイルから高速再生用ファイルに切り替え、高速倍率の映像配信を行っていた。そのため、事前に準備した、複数種の倍率の高速再生用ファイルの映像しか配信できなかった。また、事前に作成した高速再生用ファイルを保存するために、通常再生ファイルとは別のディスク容量を必要とした。 In high-speed playback and reverse high-speed playback, the magnification can be selected on the client side. In the conventional method, a plurality of types of files for high-speed playback are prepared in order to be able to handle a plurality of types of magnifications. When there is a request for high-speed playback during normal playback on the client side, the transmission file is switched from the normal playback file to the file for high-speed playback in accordance with the selected magnification, and video distribution at high speed is performed. For this reason, it was possible to distribute only videos of high-speed playback files with multiple magnifications prepared in advance. In addition, in order to store the file for high-speed playback created in advance, a disk capacity different from that for the normal playback file is required.
本発明は上述したような従来の技術が有する問題点を解決するためになされたものであり、高速再生の要求に応えるために必要とする記憶容量を削減した情報配信方法、サーバ装置、およびその方法をコンピュータに実行させるためのプログラムを提供することを目的とする。 The present invention has been made in order to solve the problems of the conventional techniques as described above, and an information distribution method, a server apparatus, and a method for reducing the storage capacity required to meet the demand for high-speed playback. An object is to provide a program for causing a computer to execute the method.
上記目的を達成するための本発明の情報配信方法は、ネットワークを介して接続される情報端末に映像データを配信するためのサーバ装置による情報配信方法であって、
記憶部に格納された前記映像データについて該映像データ内のキーフレーム毎に、該キーフレームのタイムスタンプ、出現位置、およびデータ量を含む情報を記述したインデックスファイルを生成して前記記憶部に格納し、
前記映像データを再生して前記情報端末に対して送信中に、高速再生または逆高速再生の指示と倍率の情報を含む要求信号を該情報端末から受信すると、該要求信号の受信時からの経過時間および前記倍率に対応して前記インデックスファイルからキーフレームを特定し、
特定したキーフレームを前記情報端末に送信するものである。
An information distribution method of the present invention for achieving the above object is an information distribution method by a server device for distributing video data to an information terminal connected via a network,
For each of the video data stored in the storage unit, an index file describing information including a time stamp, an appearance position, and a data amount of the key frame is generated and stored in the storage unit. And
While the video data is being reproduced and transmitted to the information terminal, if a request signal including a high-speed playback or reverse high-speed playback instruction and magnification information is received from the information terminal, the elapsed time from the reception of the request signal Identify keyframes from the index file corresponding to time and the magnification,
The identified key frame is transmitted to the information terminal.
本発明では、インデックスファイルを予め登録しておくことで、高速再生または逆高速再生の指示と倍率の情報を含む指示を受けたとき、インデックスファイルを参照して、指示受信時からの経過時間と倍率に対応する時間に再生すべきキーフレームをタイムスタンプ、出現位置およびデータ量で特定することが可能となる。そのため、任意の倍率に対して映像データを情報端末に送信することが可能となる。 In the present invention, by registering the index file in advance, when receiving an instruction for high-speed playback or reverse high-speed playback and an instruction including magnification information, the index file is referred to and the elapsed time from the reception of the instruction A key frame to be reproduced at a time corresponding to the magnification can be specified by a time stamp, an appearance position, and a data amount. For this reason, video data can be transmitted to the information terminal for an arbitrary magnification.
一方、上記目的を達成するための本発明のサーバ装置は、ネットワークを介して接続される情報端末に映像データを配信するサーバ装置であって、
前記映像データ、ならびに該映像データ内のキーフレーム毎に、該キーフレームのタイムスタンプ、出現位置、およびデータ量を含む情報を記述したインデックスファイルが格納された記憶部と、
前記映像データを再生して前記情報端末に対して送信中に高速再生または逆高速再生の指示と倍率の情報を含む要求信号を該情報端末から受信すると、該要求信号の受信時からの経過時間および前記倍率に対応して前記インデックスファイルからキーフレームを特定し、特定したキーフレームを該情報端末に送信する制御部と、
を有する構成である。
On the other hand, a server device of the present invention for achieving the above object is a server device that distributes video data to information terminals connected via a network,
For each key frame in the video data and the video data, a storage unit in which an index file describing information including a time stamp of the key frame, an appearance position, and a data amount is stored;
When a request signal including a high-speed playback or reverse high-speed playback instruction and magnification information is received from the information terminal during playback of the video data and transmission to the information terminal, an elapsed time from the reception of the request signal And a control unit for identifying a key frame from the index file corresponding to the magnification and transmitting the identified key frame to the information terminal;
It is the structure which has.
また、上記目的を達成するための本発明のプログラムは、ネットワークを介して接続される情報端末に映像データを配信するコンピュータに実行させるためのプログラムであって、
記憶部に格納された前記映像データについて該映像データ内のキーフレーム毎に、該キーフレームのタイムスタンプ、出現位置、およびデータ量を含む情報を記述したインデックスファイルを生成して前記記憶部に格納するステップと、
前記映像データを再生して前記情報端末に対して送信中に、高速再生または逆高速再生の指示と倍率の情報を含む要求信号を該情報端末から受信すると、該要求信号の受信時からの経過時間および前記倍率に対応して前記インデックスファイルからキーフレームを特定するキーフレーム特定ステップと、
特定したキーフレームを前記情報端末に送信するステップと、
を有する処理を前記コンピュータに実行させるものである。
A program of the present invention for achieving the above object is a program for causing a computer that distributes video data to an information terminal connected via a network,
For each of the video data stored in the storage unit, an index file describing information including the time stamp, appearance position, and data amount of the key frame is generated and stored in the storage unit. And steps to
While the video data is being reproduced and transmitted to the information terminal, if a request signal including a high-speed playback or reverse high-speed playback instruction and magnification information is received from the information terminal, the elapsed time from the reception of the request signal A key frame specifying step of specifying a key frame from the index file corresponding to the time and the magnification;
Transmitting the identified key frame to the information terminal;
The computer is caused to execute a process having
本発明によれば、高速再生および逆高速再生を行うために事前に映像データから高速再生用ファイルを作成する必要がない。そのため、記憶領域に格納される高速再生用ファイル分の容量を削減でき、記憶領域をより有効に活用できる。また、任意の倍率であっても、インデックスファイルを参照することで配信するキーフレームの位置およびサイズを容易に取得でき、任意の倍率で高速再生および逆高速再生の配信ができる。 According to the present invention, it is not necessary to create a high-speed playback file from video data in advance in order to perform high-speed playback and reverse high-speed playback. Therefore, it is possible to reduce the capacity of the file for high-speed playback stored in the storage area, and to use the storage area more effectively. In addition, even at an arbitrary magnification, the position and size of a key frame to be distributed can be easily obtained by referring to the index file, and high-speed reproduction and reverse high-speed reproduction can be distributed at an arbitrary magnification.
本発明の情報配信方法は、映像データ内のキーフレーム毎にタイムスタンプを含む情報を記述したインデックスファイルを予め登録し、高速再生の要求があると、インデックスファイルを参照して送信すべきキーフレームを特定することを特徴とする。 In the information distribution method of the present invention, an index file describing information including a time stamp is registered in advance for each key frame in video data, and when there is a request for high-speed reproduction, a key frame to be transmitted with reference to the index file It is characterized by specifying.
本実施例のサーバの構成を説明する。図1は本実施例のサーバの一構成例を示すブロック図である。 The configuration of the server of this embodiment will be described. FIG. 1 is a block diagram illustrating a configuration example of a server according to this embodiment.
サーバ11は、記憶装置12と、インデックスファイル作成部13と、配信位置算出部14と、映像データ配信部15とを有する。映像データ配信部15は、データ取得部18およびデータ送信部19を有する構成である。また、サーバ11は、プログラムにしたがって所定の処理を実行するCPU(Central Processing Unit)(不図示)と、プログラムを格納するためのメモリ(不図示)とが設けられている。インデックスファイル作成部13および配信位置算出部14は、CPUがプログラムを実行することでサーバ11内に仮想的に構成される。そして、インデックスファイル作成部13および配信位置算出部14を含む構成が制御部として機能する。データ送信部19はネットワークを介して外部の情報端末(不図示)と接続される。外部の情報端末は、映像データの高速再生および逆高速再生のサービスを利用するクライアント側に設けられている。
The server 11 includes a
記憶装置12は、ハードディスクおよび半導体メモリ等の記憶装置である。記憶装置12には、コンテンツデータとして予め映像データ16が登録されている。また、再生時間や演算結果など処理に関する様々な情報が格納される。映像データには、画像に関するビデオデータと音声に関するオーディオデータが含まれているが、本発明は高速再生および逆高速再生に関するものなので、以下では、ビデオデータを中心に説明する。一般的に、映像データは、一定の間隔で挿入されるフレームであるキーフレームと、キーフレーム間の差分情報を持つフレームとを有する構成である。キーフレームは、画像情報と、再生開始から自身が描画される時刻を示すタイムスタンプの情報を有している。キーフレーム間の画像は、キーフレームの画像情報とキーフレーム間の差分情報を用いて復元される。
The
インデックスファイル作成部13は、映像データ16内のキーフレームを全て抽出し、キーフレーム毎に、キーフレームが持つタイムスタンプと、キーフレームの出現位置と、キーフレームのサイズとの情報を記録したインデックスファイル17を生成して記憶部12に格納する。
The index
配信位置算出部14は、配信する映像データ16内の配信開始位置および配信データ量(配信サイズ)を求める。データ取得部18は、配信位置算出部14から配信開始位置および配信サイズの情報を受け取ると、その情報に基づいて記憶部12の映像データ16からビデオデータを抽出する。データ送信部19は、データ取得部18が抽出したビデオデータを、ネットワークを通してクライアントの情報端末に送信する。
The distribution
以下では、映像データ16として、ビデオデータおよびオーディオデータが多重化されたMPEG2-TS(トランスポートストリーム)形式の映像データ(以下では、MPEG2 TSデータと表記する)とする。
Hereinafter, the
ここで、トランスポートストリーム(TS)の構造を簡単に説明する。図2はトランスポートストリームの構造を示す図である。トランスポートストリームは188bytesの固定長パケットであるTSパケットが複数個集まって構成される。1つのTSパケットは、TSヘッダとTSペイロードとで構成され、TSヘッダ内にはPID(Packet Identification)と呼ばれるTSペイロードの属性を示す識別子が記録されている。同一の画像のTSパケットのTSヘッダには同一のPIDが記録されている。また、TSペイロードには、ビデオデータおよびオーディオデータのそれぞれについて個別のPES(Packetized Elementary Stream)パケットが含まれている。ビデオデータには、デコーダがビデオデータを復元するときに必要なシーケンスヘッダ(SH)が含まれている。SHには、タイムスタンプの情報を有するPESヘッダが含まれている。キーフレームのPESヘッダには、タイムスタンプの他、キーフレームの出現位置およびキーフレーム長の情報が含まれている。 Here, the structure of the transport stream (TS) will be briefly described. FIG. 2 shows the structure of the transport stream. The transport stream is composed of a plurality of TS packets that are fixed-length packets of 188 bytes. One TS packet is composed of a TS header and a TS payload, and an identifier indicating a TS payload attribute called PID (Packet Identification) is recorded in the TS header. The same PID is recorded in the TS header of TS packets of the same image. In addition, the TS payload includes individual PES (Packetized Elementary Stream) packets for each of video data and audio data. The video data includes a sequence header (SH) necessary for the decoder to restore the video data. The SH includes a PES header having time stamp information. The PES header of the key frame includes information on the appearance position of the key frame and the key frame length in addition to the time stamp.
続いて、インデックスファイル作成部13の構成を詳細に説明する。図3は本実施例のサーバの一構成例を示すブロック図である。図3に示すように、インデックスファイル作成部13は、A/V分離部20およびビデオデータ処理部30を有する構成である。A/V分離部20はMPEG2 TSデータ26からビデオデータおよびオーディオデータを分離する。ビデオデータ処理部30はビデオデータ内からキーフレームを検索する。
Next, the configuration of the index
図4は図3に示したインデックスファイル作成部の一構成例を示すブロック図である。図4に示すように、A/V分離部20はTSパケット解析部21およびTSパケット分離部22を有する。また、ビデオデータ処理部30は、SH検索部31、PESパラメータ抽出部32、およびインデックス作成部33を有する。
FIG. 4 is a block diagram showing a configuration example of the index file creation unit shown in FIG. As shown in FIG. 4, the A /
TSパケット解析部21は、MPEG2 TSデータ26内のTSパケットに含まれるPIDを解析する。TSパケット分離部22は、TSパケット解析部21で解析したPIDよりビデオデータを抽出する。SH検索部31は、TSパケット分離部22で抽出されたビデオデータ内からSHを検索する。PESパラメータ抽出部32は、SH検索部31で検索されたSHからPESヘッダを検索し、PESヘッダからキーフレームに関する情報を取得する。インデックス作成部33は、PESパラメータ抽出部32で取得したパラメータを元にインデックスファイル17に追記する。
The TS
図5に映像データとインデックスファイルの構成イメージを示す。図5を用いてインデックスファイルの作成方法を簡単に説明する。まず、映像データ16からキーフレーム2a、2b、…を抽出する。続いて、記憶部12に格納されたインデックスファイル17のフォーマットに、キーフレーム2aから最後のキーフレーム(不図示)まで順に、キーフレームのタイムスタンプ4、キーフレームの出現位置(offset)5、およびキーフレームのサイズ6をキーフレーム毎に書き込む。キーフレーム1つ分のタイムスタンプ4、Offset5およびサイズ6を含む情報をインデックスと称する。
FIG. 5 shows a configuration image of video data and an index file. An index file creation method will be briefly described with reference to FIG. First,
配信位置算出部14は、クライアントの情報端末に対して通常モードで映像データを送信中に、n倍速の高速再生を要求する旨の信号をその情報端末から受信すると、映像データの最初めから通常モードで再生した場合の経過時間である再生時間s [sec] を記憶部12に記録する。続いて、MPEG2 TSデータ26から高速再生用のデータを次のようにして求める。ここで、2つの関数Fo (x)とFs (x)の定義をする。関数Fo (x) は、インデックスファイル17の中で、Offsetの値がx [sec] 秒以上のキーフレームのうち、キーフレームのOffsetが最小値のものを示す。また、Fs (x)は、インデックスファイル17の中で、Offsetの値がx [sec] 秒以上のキーフレームのうち、Offsetが最小のキーフレームのサイズを示すものである。配信位置算出部14は、高速再生を開始してからの経過時間p[sec]に対応するビデオデータの配信開始位置としてFo (s+p×n) [byte] を求め、その配信サイズとしてFs (s+p×n) [byte] を求める。
When the distribution
このようにして求めた、ビデオデータの配信開始位置および配信サイズの情報をデータ取得部18に渡す。これらの情報をデータ取得部18に渡す処理を、映像データ16が終了するまで、またはクライアントの情報端末から高速再生を停止する旨の信号である高速再生停止信号を受信するまで、一定の時間間隔で繰り返し行う。
Information on the distribution start position and distribution size of the video data obtained in this way is passed to the
また、配信位置算出部14は、m倍速(mは正の数)の逆高速再生を要求する旨の信号である逆高速再生要求信号を受信すると、高速再生の場合と同様に、要求信号受信時における再生時間s [sec] を記憶する。続いて、逆高速再生を開始してからの経過時間p[sec]に対応するビデオデータの配信開始位置としてRo (s−p×m) [byte]を求め、その配信サイズとしてRs (s−p×m) [byte]を求める。ただし、関数Ro (x) は、インデックスファイル17の中で、Offsetがx [sec] 秒未満のキーフレームのうち、キーフレームのOffsetが最大のものを示す。また、関数Rs (x)は、インデックスファイル17の中で、Offsetがx [sec] 秒未満のキーフレームのうち、Offsetが最大のキーフレームのサイズの値を示すものである。
When the delivery
このようにして求めた、ビデオデータの配信開始位置および配信サイズの情報をデータ取得部18に渡す処理を、映像データ16が終了するまで、またはクライアントの情報端末から逆高速再生を停止する旨の信号である逆高速再生停止信号を受信するまで、一定の時間間隔で繰り返し行う。
The processing of passing the information on the distribution start position and distribution size of the video data obtained in this way to the
次に、本実施例のサーバによる、キーフレームの検索方法およびインデックスファイルの作成方法について説明する。図6はMPEG2 TSデータを用いてインデックスファイルを作成するまでの手順を示すフローチャートである。 Next, a key frame search method and an index file creation method by the server of this embodiment will be described. FIG. 6 is a flowchart showing a procedure for creating an index file using MPEG2 TS data.
TSパケット解析部21がMPEG2 TSデータ26からビデオデータのPIDを取得する(ステップ101)。TSパケット分離部22は、TSパケット解析部21で取得したPIDを元に、MPEG2 TSデータ26内からビデオデータを検索する(ステップ102)。TSパケット分離部22がPIDを持つパケットを見付けると(ステップ103)、SH検索部31は、TSパケット分離部22で抽出されたビデオデータ内からSHの開始同期コードである"00 00 01 B3 (H)"を検索する(ステップ104)。SHが見付からなかった場合は、次のビデオデータを検索するため、TSパケット分離部22に処理を戻す(ステップ105)。
The TS
一方、ステップ105でSH検索部31がSHを見付けると、PESパラメータ抽出部32がSHからPESヘッダを検索する(ステップ106)。そして、PESヘッダを見付けると、PESヘッダからキーフレームが持つタイムスタンプと、キーフレームの出現位置と、キーフレーム長との情報を含むキーフレームの情報を取得する(ステップ107)。MPEG2 TSデータ26の構造上、キーフレームは連続して格納されていないため、キーフレームの出現位置からキーフレーム長に達するまでのデータ量をキーフレームのサイズとして記録する。インデックス作成部33は、PESパラメータ抽出部32で取得したパラメータを元にインデックスを作成し、インデックスファイル17に追記する(ステップ108)。このようにして、ステップ103からステップ108までの処理をMPEG2 TSデータ26内のビデオデータの終端まで行う(ステップ102)。
On the other hand, when the
次に、本実施例のサーバによる高速再生の動作を説明する。図7は本実施例のサーバによる、高速再生の動作手順を示すフローチャートである。ここでは、映像データ16の再生時間s [sec] の時点で、n倍速での高速再生を要求する旨の信号である高速再生要求信号をクライアントの情報端末から受信したものと仮定し、インデックスファイルを用いた高速モードの配信方法を説明する。ただし、nは正の数とする。
Next, the operation of high-speed playback by the server of this embodiment will be described. FIG. 7 is a flowchart showing an operation procedure of high-speed playback by the server of this embodiment. Here, it is assumed that at the time of the reproduction time s [sec] of the
配信位置算出部14は、n倍速の高速再生要求信号を受信すると、要求信号受信時における再生時間s [sec] を記憶部12に記録する(ステップ201)。続いて、高速再生を開始してからの経過時間p[sec]に対応するビデオデータの配信開始位置としてFo (s+p×n) [byte] を求め、その配信サイズとしてFs (s+p×n) [byte] を求める(ステップ202)。
When the distribution
データ取得部18は、配信位置算出部14が求めた配信開始位置と配信サイズの情報を取得すると、その情報に基づいて映像データ16内からビデオデータを抽出する(ステップ203)。続いて、データ送信部19は、データ取得部18が抽出したビデオデータを、ネットワークを介してクライアントの情報端末に送信する(ステップ204)。その後、一定時間間隔でステップ202からステップ204の処理を、映像データ16の終了まで、またはクライアントの情報端末から高速再生停止信号を受信するまで行う(ステップ205)。なお、クライアントの情報端末への送信ビットレートは、ネットワークの使用帯域を増加させないために、通常モード時と等しい速度にする。
When the
次に、本実施例のサーバの逆高速再生の動作を簡単に説明する。ここでは、映像データ16の再生時間s [sec] の時点で、m倍速(mは正の数)の逆高速再生要求信号をクライアントの情報端末から受信したものと仮定し、インデックスファイルを用いた逆高速モードの配信方法を説明する。また、図7で説明した高速再生の場合と異なる処理を中心に説明する。
Next, the operation of reverse high-speed playback of the server of this embodiment will be briefly described. Here, it is assumed that an inverse high-speed playback request signal of m times speed (m is a positive number) is received from the client information terminal at the time of playback time s [sec] of the
配信位置算出部14は、m倍速の逆高速再生要求信号を受信すると、高速再生の場合と同様に、要求信号受信時の再生時間s [sec] を記録する。続いて、高速再生の場合と異なり、経過時間p[sec]に対応するビデオデータの配信開始位置Ro (s−p×m) [byte]と配信サイズRs (s−p×m) [byte]を求める。このようにして求めた配信開始位置および配信サイズのビデオデータをデータ取得部18が映像データ16で抽出し、抽出したビデオデータをデータ送信部19がクライアントの情報端末に送信する。映像データ16が終了するまで、またはクライアントの情報端末から逆高速再生停止信号を受信するまで、一定の時間間隔で繰り返し行う。
When the delivery
上述のようにして、本実施例のサーバは、高速再生を行う際、配信するデータの位置とサイズをインデックスファイルから取得することで、複数種の高速再生用ファイルを予め準備することなく、高速再生が可能となる。また、逆高速再生の場合も同様である。そのため、従来に比べて必要とするディスク容量を削減することが可能となる。 As described above, when performing high-speed playback, the server according to the present embodiment obtains the position and size of data to be distributed from the index file, so that a plurality of types of high-speed playback files are not prepared in advance. Playback is possible. The same applies to reverse high-speed playback. Therefore, it is possible to reduce the required disk capacity as compared with the conventional case.
なお、本実施例では、キーフレームを映像データ内に一定間隔で挿入する場合で説明したが、キーフレームの挿入間隔が一定でない映像データに本発明を適用してもよい。この場合、動きの多い映像と少ない映像とでキーフレームの挿入間隔を変えた映像データに対しても、高速再生および逆高速再生を上述の方法で行うことが可能である。従来よりもビデオデータを2倍以上圧縮した規格であるH.264/AVCのように、キーフレームが一定周期で格納されていない場合にも適用可能である。 In this embodiment, the case where the key frames are inserted into the video data at regular intervals has been described. However, the present invention may be applied to video data whose key frame insertion intervals are not constant. In this case, high-speed playback and reverse high-speed playback can be performed by the above-described method even for video data in which the key frame insertion interval is changed between a video with a lot of motion and a video with a small amount of motion. The present invention can also be applied to cases where key frames are not stored at a constant cycle, such as H.264 / AVC, which is a standard in which video data is compressed twice or more than before.
本実施例は、ストリーミングによるライブ配信の映像データに対して、動的にライブ映像データを蓄積しながらインデックスファイルも生成するものである。配信が終了した分の映像データに関して、高速再生および逆高速再生を可能する。 In this embodiment, an index file is generated while live video data is dynamically accumulated with respect to video data for live distribution by streaming. High-speed playback and reverse high-speed playback are possible for video data for which distribution has been completed.
図8は本実施例のサーバの一構成例を示すブロック図である。なお、実施例1と同様な構成については同一の符号を付し、その詳細な説明を省略する。 FIG. 8 is a block diagram showing an example of the configuration of the server of this embodiment. In addition, the same code | symbol is attached | subjected about the structure similar to Example 1, and the detailed description is abbreviate | omitted.
本実施例のサーバ51は、ネットワークに接続される映像データ受信部40と、映像データ蓄積部41とを有する。映像データ受信部40は、ネットワークを介して外部からライブ映像データを受信する。映像データ蓄積部41は映像データ受信部40で受信したライブ映像データを記憶部12の映像データ16に追記する。
The server 51 of this embodiment includes a video
インデックス作成部43は、映像データ受信部40で受信するライブ映像データ内のキーフレームを全て抽出し、キーフレーム毎に、キーフレームが持つタイムスタンプ、キーフレームの出現位置、およびキーフレームのサイズの情報を記憶部12のインデックスファイル17に記録する。このように、映像データからキーフレームに関する情報を抽出してインデックスファイルを生成することを、「インデックス化」と称する。
The
インデックス作成部43および映像データ蓄積部41は、CPUがプログラムを実行することでサーバ51に仮想的に構成される。
The
次に、本実施例のサーバの動作を図8を参照して説明する。なお、ここでは、実施例1と異なる動作を中心に説明し、実施例1と同様な動作の説明は省略する。 Next, the operation of the server of this embodiment will be described with reference to FIG. Here, the description will focus on operations different from those of the first embodiment, and description of operations similar to those of the first embodiment will be omitted.
映像データ受信部40は、ネットワークを介して受信するライブ映像データを映像データ蓄積部41とインデックス作成部43に渡す。インデックス作成部43は、映像データ受信部40で受信するライブ映像データのインデックス化を行う。これにより、ライブ映像データについてのキーフレームの情報がインデックスファイル17に追記される。一方、映像データ蓄積部41は、映像データ受信部40から受信したライブ映像データを記憶部12の映像データ16に追記する。
The video
上述のようにして、本実施例のサーバは、動的に蓄積される映像データに関して、その映像データを蓄積しながら、映像データに関するインデックスファイルを生成する。そのため、映像データのライブ配信途中においても、蓄積された映像データ分について、上記実施例1と同様の処理により、高速再生および逆高速再生を行うことが可能である。 As described above, the server of the present embodiment generates an index file for video data while storing the video data for dynamically stored video data. Therefore, even during live distribution of video data, it is possible to perform high-speed playback and reverse high-speed playback for the stored video data by the same processing as in the first embodiment.
本発明によれば、インデックスファイルを予め登録しておくことで、高速再生または逆高速再生の指示と倍率の情報を含む指示を受けたとき、インデックスファイルを参照して、指示受信時からの経過時間と倍率に対応する時間に再生すべきキーフレームをタイムスタンプ、出現位置およびサイズで特定することが可能となる。そのため、高速再生および逆高速再生を行うために事前に映像データから高速再生用ファイルを作成する必要がない。その結果、記憶領域に格納される高速再生用ファイル分の容量を削減でき、記憶領域をより有効に活用し、より多くの映像データを格納することができる。 According to the present invention, by registering an index file in advance, when an instruction including a high-speed playback or reverse high-speed playback instruction and magnification information is received, the index file is referred to and the process from the time the instruction is received. It becomes possible to specify the key frame to be reproduced at the time corresponding to the time and the magnification by the time stamp, the appearance position, and the size. Therefore, it is not necessary to create a file for high speed reproduction from video data in advance in order to perform high speed reproduction and reverse high speed reproduction. As a result, it is possible to reduce the capacity of the file for high-speed playback stored in the storage area, and more effectively use the storage area and store more video data.
また、任意の倍率であっても、インデックスファイルを参照することで配信するキーフレームの位置およびサイズを容易に取得可能なため、任意の倍率で高速再生および逆高速再生の配信ができる。その結果、高速再生は固定倍率ではなく、クライアントに対して任意の倍率の高速再生の映像を提供できる。 In addition, since the position and size of the key frame to be distributed can be easily acquired by referring to the index file even at an arbitrary magnification, high-speed playback and reverse high-speed playback can be distributed at any magnification. As a result, high-speed playback is not fixed magnification, and high-speed playback video at an arbitrary magnification can be provided to the client.
さらに、高速再生および逆高速再生を行う際、クライアントの情報端末への送信ビットレートを通常モード時と等しい速度にしているため、ネットワークの使用帯域を増加させることなく高速再生を実現できる。 Furthermore, when performing high-speed playback and reverse high-speed playback, the transmission bit rate of the client to the information terminal is set to the same speed as that in the normal mode, so that high-speed playback can be realized without increasing the use band of the network.
なお、本発明の情報配信方法をコンピュータに実行させるためのプログラムに適用してもよい。 In addition, you may apply to the program for making a computer perform the information delivery method of this invention.
11 サーバ
12 記憶装置
13 インデックスファイル作成部
14 配置位置算出部
15 映像データ配信部
11
Claims (15)
記憶部に格納された前記映像データについて該映像データ内のキーフレーム毎に、該キーフレームのタイムスタンプ、出現位置、およびデータ量を含む情報を記述したインデックスファイルを生成して前記記憶部に格納し、
前記映像データを再生して前記情報端末に対して送信中に、高速再生または逆高速再生の指示と倍率の情報を含む要求信号を該情報端末から受信すると、該要求信号の受信時からの経過時間および前記倍率に対応して前記インデックスファイルからキーフレームを特定し、
特定したキーフレームを前記情報端末に送信する、情報配信方法。 An information delivery method by a server device for delivering video data to an information terminal connected via a network,
For each of the video data stored in the storage unit, an index file describing information including the time stamp, appearance position, and data amount of the key frame is generated and stored in the storage unit. And
While the video data is being reproduced and transmitted to the information terminal, if a request signal including a high-speed playback or reverse high-speed playback instruction and magnification information is received from the information terminal, the elapsed time from the reception of the request signal Identify keyframes from the index file corresponding to time and the magnification,
An information distribution method for transmitting the identified key frame to the information terminal.
前記要求信号が高速再生を指示するものである場合、前記タイムスタンプが(s+n×p)よりも遅い時刻のキーフレームのうち前記出現位置が最大となるキーフレームを前記インデックスファイル内で求め、
求めたキーフレームの出現位置およびデータ量を読み出し、前記映像データにおける該出現位置から該データ量のキーフレームを特定する、請求項1記載の情報配信方法。 When the video data is reproduced from the beginning, the reproduction time from the beginning until the request signal is received is s, the magnification is n, and the elapsed time is p.
When the request signal indicates high-speed playback, a key frame having the maximum appearance position among key frames at a time later than the time stamp (s + n × p) is obtained in the index file.
The information distribution method according to claim 1, wherein an appearance position and a data amount of the obtained key frame are read, and a key frame having the data amount is specified from the appearance position in the video data.
前記要求信号が逆高速再生を指示するものである場合、前記タイムスタンプが(s−m×p)よりも早い時刻のキーフレームのうち前記出現位置が最大となるキーフレームを前記インデックスファイル内で求め、
求めたキーフレームの出現位置およびデータ量を読み出し、前記映像データにおける該出現位置から該データ量のキーフレームを特定する、請求項1記載の情報配信方法。 When the video data is reproduced from the beginning, the reproduction time from the beginning until the request signal is received is s, the magnification is m, and the elapsed time is p.
If the request signal indicates reverse high-speed playback, the key frame having the maximum appearance position among the key frames whose time stamp is earlier than (s−m × p) is stored in the index file. Seeking
The information distribution method according to claim 1, wherein an appearance position and a data amount of the obtained key frame are read, and a key frame having the data amount is specified from the appearance position in the video data.
前記映像データ、ならびに該映像データ内のキーフレーム毎に、該キーフレームのタイムスタンプ、出現位置、およびデータ量を含む情報を記述したインデックスファイルが格納された記憶部と、
前記映像データを再生して前記情報端末に対して送信中に高速再生または逆高速再生の指示と倍率の情報を含む要求信号を該情報端末から受信すると、該要求信号の受信時からの経過時間および前記倍率に対応して前記インデックスファイルからキーフレームを特定し、特定したキーフレームを該情報端末に送信する制御部と、
を有するサーバ装置。 A server device that distributes video data to an information terminal connected via a network,
For each key frame in the video data and the video data, a storage unit in which an index file describing information including a time stamp of the key frame, an appearance position, and a data amount is stored;
When a request signal including a high-speed playback or reverse high-speed playback instruction and magnification information is received from the information terminal during playback of the video data and transmission to the information terminal, an elapsed time from the reception of the request signal And a control unit for identifying a key frame from the index file corresponding to the magnification and transmitting the identified key frame to the information terminal;
A server device.
前記制御部は、
前記要求信号が高速再生を指示するものである場合、前記タイムスタンプが(s+n×p)よりも遅い時刻のキーフレームのうち前記出現位置が最大となるキーフレームを前記インデックスファイル内で求め、求めたキーフレームの出現位置およびデータ量を読み出し、前記映像データにおける該出現位置から該データ量のキーフレームを特定する、請求項6記載のサーバ装置。 When the video data is reproduced from the beginning, the reproduction time from the beginning until the request signal is received is s, the magnification is n, and the elapsed time is p.
The controller is
If the request signal indicates high-speed playback, a key frame having the maximum appearance position is determined in the index file from among key frames whose time stamp is later than (s + n × p). The server apparatus according to claim 6, wherein a key frame appearance position and a data amount are read, and a key frame having the data amount is specified from the appearance position in the video data.
前記制御部は、
前記要求信号が逆高速再生を指示するものである場合、前記タイムスタンプが(s−m×p)よりも早い時刻のキーフレームのうち前記出現位置が最大となるキーフレームを前記インデックスファイル内で求め、求めたキーフレームの出現位置およびデータ量を読み出し、前記映像データにおける該出現位置から該データ量のキーフレームを特定する、請求項6記載のサーバ装置。 When the video data is reproduced from the beginning, the reproduction time from the beginning until the request signal is received is s, the magnification is m, and the elapsed time is p.
The controller is
If the request signal indicates reverse high-speed playback, the key frame having the maximum appearance position among the key frames whose time stamp is earlier than (s−m × p) is stored in the index file. The server device according to claim 6, wherein the server device obtains the obtained appearance position and data amount of the key frame, and specifies the key frame of the data amount from the appearance position in the video data.
前記ネットワークを介して外部から受信するライブ映像データに対して、該ライブ映像データの受信分毎に、前記記憶部に格納し、かつ該ライブ映像データの前記インデックスファイルに前記キーフレームの情報を追記して該記憶部に格納する請求項6から8のいずれか1項記載のサーバ装置。 The controller is
For live video data received from the outside via the network, the live video data is stored in the storage unit every time the live video data is received, and the key frame information is added to the index file of the live video data The server device according to claim 6, which is stored in the storage unit.
特定したキーフレームを前記情報端末に送信する際、該キーフレームの送信ビットレートを前記映像データの通常の再生時と等しくする、請求項6から9のいずれか1項記載のサーバ装置。 The controller is
10. The server device according to claim 6, wherein when the identified key frame is transmitted to the information terminal, the transmission bit rate of the key frame is made equal to that during normal reproduction of the video data.
記憶部に格納された前記映像データについて該映像データ内のキーフレーム毎に、該キーフレームのタイムスタンプ、出現位置、およびデータ量を含む情報を記述したインデックスファイルを生成して前記記憶部に格納するステップと、
前記映像データを再生して前記情報端末に対して送信中に、高速再生または逆高速再生の指示と倍率の情報を含む要求信号を該情報端末から受信すると、該要求信号の受信時からの経過時間および前記倍率に対応して前記インデックスファイルからキーフレームを特定するキーフレーム特定ステップと、
特定したキーフレームを前記情報端末に送信するステップと、
を有する処理を前記コンピュータに実行させるためのプログラム。 A program for causing a computer that distributes video data to an information terminal connected via a network,
For each of the video data stored in the storage unit, an index file describing information including the time stamp, appearance position, and data amount of the key frame is generated and stored in the storage unit. And steps to
While the video data is being reproduced and transmitted to the information terminal, if a request signal including a high-speed playback or reverse high-speed playback instruction and magnification information is received from the information terminal, the elapsed time from the reception of the request signal A key frame specifying step of specifying a key frame from the index file corresponding to the time and the magnification;
Transmitting the identified key frame to the information terminal;
A program for causing the computer to execute a process including:
前記要求信号が高速再生を指示するものである場合、前記キーフレーム特定ステップは、
前記タイムスタンプが(s+n×p)よりも遅い時刻のキーフレームのうち前記出現位置が最大となるキーフレームを前記インデックスファイル内で求めるステップと、
求めたキーフレームの出現位置およびデータ量を読み出し、前記映像データにおける該出現位置から該データ量のキーフレームを特定するステップと、
を有する請求項11記載のプログラム。 When the video data is reproduced from the beginning, the reproduction time from the beginning until the request signal is received is s, the magnification is n, and the elapsed time is p.
If the request signal indicates high-speed playback, the key frame specifying step includes:
Obtaining a key frame having the maximum appearance position in the index file among key frames at a time later than the time stamp (s + n × p);
Reading the appearance position and data amount of the obtained key frame, and identifying the key frame of the data amount from the appearance position in the video data;
The program according to claim 11.
前記要求信号が逆高速再生を指示するものである場合、前記キーフレーム特定ステップは、
前記タイムスタンプが(s−m×p)よりも早い時刻のキーフレームのうち前記出現位置が最大となるキーフレームを前記インデックスファイル内で求めるステップと、
求めたキーフレームの出現位置およびデータ量を読み出し、前記映像データにおける該出現位置から該データ量のキーフレームを特定するステップと、
を有する請求項11記載のプログラム。 When the video data is reproduced from the beginning, the reproduction time from the beginning until the request signal is received is s, the magnification is m, and the elapsed time is p.
When the request signal indicates reverse high-speed playback, the key frame specifying step includes:
Obtaining in the index file a key frame having the maximum appearance position among key frames at a time earlier than the time stamp (s−m × p);
Reading the appearance position and data amount of the obtained key frame, and identifying the key frame of the data amount from the appearance position in the video data;
The program according to claim 11.
The program according to any one of claims 11 to 14, wherein in the step of transmitting the key frame to the information terminal, a transmission bit rate of the key frame is made equal to that during normal reproduction of the video data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006090747A JP2007267144A (en) | 2006-03-29 | 2006-03-29 | Method for distributing information, server device and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006090747A JP2007267144A (en) | 2006-03-29 | 2006-03-29 | Method for distributing information, server device and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2007267144A true JP2007267144A (en) | 2007-10-11 |
Family
ID=38639671
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006090747A Withdrawn JP2007267144A (en) | 2006-03-29 | 2006-03-29 | Method for distributing information, server device and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2007267144A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2048650A2 (en) | 2007-10-12 | 2009-04-15 | Funai Electric Co., Ltd. | Liquid crystal display device |
JP2016063494A (en) * | 2014-09-19 | 2016-04-25 | ヤフー株式会社 | Moving image processing device, moving image processing method and moving image processing program |
KR101846386B1 (en) * | 2017-08-02 | 2018-04-06 | 주식회사 비바엔에스 | Method and system for checking video call quality of mobile device |
-
2006
- 2006-03-29 JP JP2006090747A patent/JP2007267144A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2048650A2 (en) | 2007-10-12 | 2009-04-15 | Funai Electric Co., Ltd. | Liquid crystal display device |
JP2016063494A (en) * | 2014-09-19 | 2016-04-25 | ヤフー株式会社 | Moving image processing device, moving image processing method and moving image processing program |
KR101846386B1 (en) * | 2017-08-02 | 2018-04-06 | 주식회사 비바엔에스 | Method and system for checking video call quality of mobile device |
US10271044B2 (en) | 2017-08-02 | 2019-04-23 | Naver Business Platform Corp. | Method and system for checking video call quality of mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7139470B2 (en) | Navigation for MPEG streams | |
EP3096526B1 (en) | Communication apparatus, communication data generation method, and communication data processing method | |
RU2652099C2 (en) | Transmission device, transmission method, reception device and reception method | |
JP6498882B2 (en) | Storage method, playback method, storage device, and playback device | |
US20160066007A1 (en) | Video playback method, media device, playback device, and multimedia system | |
WO2008061416A1 (en) | A method and a system for supporting media data of various coding formats | |
CN107634930B (en) | Method and device for acquiring media data | |
US11284135B2 (en) | Communication apparatus, communication data generation method, and communication data processing method | |
WO2008148268A1 (en) | An implementation method and system for a media-on-demand frame-spanning playing mode in a peer-to-peer network | |
JP2003114845A (en) | Media conversion method and media conversion device | |
CN105191324B (en) | Communication device, communication data generation method, and communication data processing method | |
JP2005123907A (en) | Data reconstruction apparatus | |
JP4457349B2 (en) | MPEG content synchronous playback method, client terminal, and MPEG content synchronous playback program | |
EP3096525B1 (en) | Communication apparatus, communication data generation method, and communication data processing method | |
CN105916011A (en) | Video real-time playing method and device | |
JP2007267144A (en) | Method for distributing information, server device and program | |
US20080235401A1 (en) | Method of storing media data delivered through a network | |
JP2006074511A (en) | Motion picture distributing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20091218 |