JP7458848B2 - User terminal and program - Google Patents
User terminal and program Download PDFInfo
- Publication number
- JP7458848B2 JP7458848B2 JP2020053275A JP2020053275A JP7458848B2 JP 7458848 B2 JP7458848 B2 JP 7458848B2 JP 2020053275 A JP2020053275 A JP 2020053275A JP 2020053275 A JP2020053275 A JP 2020053275A JP 7458848 B2 JP7458848 B2 JP 7458848B2
- Authority
- JP
- Japan
- Prior art keywords
- segment
- video
- switching
- reception buffer
- stored
- 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.)
- Active
Links
- 239000000872 buffer Substances 0.000 claims description 235
- 238000000034 method Methods 0.000 description 26
- 238000010586 diagram Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 18
- 238000004891 communication Methods 0.000 description 14
- 230000007423 decrease Effects 0.000 description 12
- 230000006870 function Effects 0.000 description 8
- 230000003111 delayed effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000003044 adaptive effect Effects 0.000 description 4
- 230000015654 memory Effects 0.000 description 4
- 238000007792 addition Methods 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- VYZAMTAEIAYCRO-UHFFFAOYSA-N Chromium Chemical compound [Cr] VYZAMTAEIAYCRO-UHFFFAOYSA-N 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Description
本発明は、サーバからユーザ端末へ動画を配信するアダプティブストリーミングを行うシステムにおいて、ユーザ操作に従い動画を切り替えるユーザ端末及びプログラムに関する。 The present invention relates to a user terminal and a program that switches videos in response to user operations in a system that performs adaptive streaming to deliver videos from a server to a user terminal.
従来、テレビ放送を視聴するユーザは、別のチャンネルに切り替えるために、ザッピングを行うことがある。同様に、インターネットにより配信された動画(ネット動画)を視聴しているときも、ユーザは、別の動画に切り替えるために、ザッピングを行うことがある。 Traditionally, users who watch television broadcasts may perform zapping in order to switch to another channel. Similarly, when viewing a video distributed over the Internet (net video), the user may perform zapping in order to switch to another video.
このようなザッピングにおいては、別の動画を再生するまでの時間が長ければ長いほど、ユーザの体感品質が低下し、当該動画の視聴を止めてしまう可能性がある。 In such zapping, the longer it takes to play another video, the more the user's perceived quality deteriorates, and there is a possibility that the user will stop watching the video.
一般に、ネット動画は、アダプティブストリーミングと呼ばれる方式により、インターネット経由でサーバからユーザ端末へ転送される。このときの動画データは、時間軸上で細切れにしたセグメントと呼ばれる単位で転送される。セグメントは、エンコードされた動画データを数秒単位に分割した動画ファイルである。例えば動画データの時間長は、1分、10分、1時間等のように様々であり、セグメントの時間長も、1秒、5秒、10秒等のように様々である。 Generally, online videos are transferred from a server to a user terminal via the Internet using a method known as adaptive streaming. At this time, the video data is transferred in units called segments, which are small pieces of data cut into pieces on the time axis. A segment is a video file in which encoded video data is divided into units of a few seconds. For example, the length of the video data can vary, such as 1 minute, 10 minutes, or 1 hour, and the length of a segment can also vary, such as 1 second, 5 seconds, or 10 seconds.
アダプティブストリーミングには、例えばMPEG-DASH方式、HLS方式がある。これらの方式は、基本的な動作フローが同じであり、インターネットが輻輳した場合においても、できる限り動画の再生を継続し、途切れが発生しないという特長がある。 Adaptive streaming includes, for example, the MPEG-DASH method and the HLS method. These methods have the same basic operation flow, and have the advantage that even when the Internet is congested, the video continues to be played as long as possible without any interruptions.
この特長を実現するために、ユーザ端末は、バッファメモリを利用して所定数のセグメントをバッファリングした後、当該セグメントを動画デコーダへ受け渡す。 In order to realize this feature, the user terminal buffers a predetermined number of segments using a buffer memory, and then passes the segments to the video decoder.
また、動画の切り替え前のセグメントと切り替え後のセグメントとを、それぞれ別のバッファメモリに格納する技術も開示されている(例えば、特許文献1を参照)。この技術により、バッファメモリに格納されたセグメントを再使用できる場合には、動画を速やかに再生することができる。 Furthermore, a technique has also been disclosed in which a segment before switching and a segment after switching of a moving image are stored in separate buffer memories, respectively (see, for example, Patent Document 1). This technique allows a video to be played quickly if the segments stored in the buffer memory can be reused.
バッファリングされるセグメントの数は、例えば、3セグメント、5セグメント等のように様々であり、セグメント数が多ければ多いほど、インターネットが輻輳した場合に、動画の再生は途切れ難くなる。 The number of segments to be buffered varies, for example, 3 segments, 5 segments, etc., and the greater the number of segments, the more difficult it is for video playback to be interrupted when the Internet is congested.
しかしながら、バッファリングされるセグメントの数が多いほど、バッファリングに時間がかかってしまう。このため、ユーザ端末がセグメントの配信をサーバへ要求してから、動画の再生が開始されるまでの間の時間が長くなり、ユーザにとっては、視聴開始までの待ち時間が長くなる。 However, the larger the number of buffered segments, the longer it takes for buffering. For this reason, the time from when the user terminal requests the server to distribute a segment until the video starts playing becomes long, and the user has a long waiting time until the start of viewing.
前述のとおり、ユーザがネット動画をザッピングすると、直ちに別の動画に切り替わることはなく、切り替わるのに時間がかかってしまう。ザッピングは、視聴中の動画から別の動画への切替操作をいう。 As mentioned above, when a user zaps an online video, the video does not immediately switch to another video, and it takes time to switch. Zapping refers to the operation of switching from the video being viewed to another video.
これは、動画の切替操作が行われると、ユーザ端末が既にバッファリングした視聴中の動画の全セグメントを動画デコーダへ受け渡す必要があり、その後に、次に視聴する別の動画のセグメントを動画デコーダへ受け渡すからである。つまり、切替操作が行われたときに、既にバッファリングされた視聴中の動画のセグメントの数に応じて、切替時間、すなわち別の動画の視聴開始までの待ち時間が決定されることとなる。既にバッファリングされた視聴中の動画のセグメントの数が多いほど、待ち時間が長くなり、セグメントの数が少ないほど、待ち時間が短くなる。 This means that when a video switching operation is performed, all segments of the video currently being viewed that have been buffered by the user terminal must be passed to the video decoder, and then segments of another video to be viewed next are transferred to the video decoder. This is because it is passed to the decoder. In other words, when a switching operation is performed, the switching time, that is, the waiting time until the start of viewing another video, is determined according to the number of segments of the video currently being viewed that have already been buffered. The more segments of the video you are watching that are already buffered, the longer the latency will be; the fewer the segments, the shorter the latency.
例えば、バッファリングされた視聴中の動画のセグメントの数が4セグメント、セグメント長が4秒の場合、次に視聴する別の動画のセグメントを動画デコーダへ受け渡すまでの時間は、少なくとも4セグメント×4秒=16秒である。この16秒が、そのままユーザの視聴開始までの待ち時間となる。 For example, if the number of buffered segments of the video being viewed is 4 segments and the segment length is 4 seconds, the time it takes to pass the next video segment to the video decoder is at least 4 segments x 4 seconds = 16 seconds. This 16 seconds becomes the waiting time for the user to start viewing.
以下、視聴中の動画を切替操作前の動画といい、これから視聴する別の動画を切替操作後の動画という。この場合、受信バッファに格納されている切替操作前の動画の全てのセグメントの再生が完了した後に、切替操作後の動画の再生が行われる。 Hereinafter, the video being viewed will be referred to as the video before the switching operation, and the video that will be viewed from now on will be referred to as the video after the switching operation. In this case, the video after the switching operation is played back after all the segments of the video before the switching operation stored in the reception buffer have been played.
(従来技術の切替操作)
図5は、従来技術において、ケース1の場合の動画Aから動画Bへの切替操作に伴う受信バッファに格納されたセグメントの変化、及び動画Bが切替再生されるタイミングを説明する図である。切替操作前の動画が動画Aであり、切替操作後の動画が動画Bである。
(Switching operation of conventional technology)
FIG. 5 is a diagram illustrating changes in segments stored in the reception buffer due to a switching operation from moving image A to moving image B in Case 1 and the timing at which moving image B is switched and played back in the conventional technology. The video before the switching operation is video A, and the video after the switching operation is video B.
横軸は再生時刻(秒)を示し、縦軸は受信バッファ時間(受信バッファに格納されたセグメントの動画時間)(秒)を示す。sxxにおけるxxは、セグメント番号を示す。細い実線で囲まれたセグメントは、動画Aのセグメントの動画データを示し、太い実線で囲まれたセグメントは、動画Bのセグメントの動画データを示す。この例は、常にタイムスタンプが最新のセグメントがサーバから取得され、受信バッファに格納されるものとする。セグメント番号は、動画のセグメントを再生する順番を表す番号を示し、タイムスタンプは、動画のセグメントの先頭を再生する時刻を示す。 The horizontal axis indicates playback time (seconds), and the vertical axis indicates reception buffer time (video time of the segment stored in the reception buffer) (seconds). xx in sxx indicates a segment number. Segments surrounded by thin solid lines indicate video data of segments of video A, and segments surrounded by thick solid lines indicate video data of segments of video B. In this example, it is assumed that the segment with the latest timestamp is always obtained from the server and stored in the receive buffer. The segment number indicates the number representing the order in which segments of the moving image are played back, and the timestamp indicates the time at which the beginning of the segment of the moving image is played back.
図5に示すように、例えば再生時刻t1のタイミングにおいて、受信バッファには、動画Aのs01,s02のセグメント(の動画データ)が格納されており、動画Aのs03のセグメントの格納処理が開始されており、その一部が格納されていることを示している。また、このタイミングの受信バッファには、動画Aのs04のセグメントは格納されていない。 As shown in FIG. 5, for example, at playback time t1, segments (video data) of s01 and s02 of video A are stored in the reception buffer, and storage processing of segment s03 of video A is started. , indicating that some of it is stored. Furthermore, the segment s04 of the video A is not stored in the reception buffer at this timing.
そして、再生時刻t2のタイミングにおいて、動画Aのs03のセグメントの格納処理が完了し、受信バッファには、動画Aのs01,s02,s03のセグメントが格納されていることを示している。また、このタイミングの受信バッファには、動画Aのs04のセグメントは格納されておらず、動画Aのs04のセグメントの格納処理がまさに開始されることを示している。 Then, at playback time t2, the storage process for segment s03 of video A is completed, and segments s01, s02, and s03 of video A are stored in the receive buffer. Also, at this time, segment s04 of video A is not stored in the receive buffer, and the storage process for segment s04 of video A is about to begin.
また、例えば再生時刻t3のタイミングにおいて、受信バッファには、動画Aのs06のセグメント及び動画Bのs07,s08,s09のセグメントが格納されていることを示している。 Further, for example, at the reproduction time t3, the reception buffer stores the segment s06 of the video A and the segments s07, s08, and s09 of the video B.
ケース1は、1セグメント分の動画時間を4秒、受信バッファ時間を16秒、動画ビットレートを1Mビット/秒、回線スループットを4Mビット/秒の条件を示している。後述する図6~図8についても同様である。 Case 1 indicates conditions where the video time for one segment is 4 seconds, the reception buffer time is 16 seconds, the video bit rate is 1 Mbit/sec, and the line throughput is 4 Mbit/sec. The same applies to FIGS. 6 to 8, which will be described later.
再生時刻0秒からセグメントの取得が開始され、セグメントが受信バッファ時間16秒分取得されたときに、動画デコーダによる再生が開始される。動画デコーダが動画を再生する際には、1セグメント分の動画データが受信バッファから瞬時に読み出される。 The acquisition of segments begins from 0 seconds into the playback time, and playback by the video decoder begins when 16 seconds' worth of segments have been acquired, which is the reception buffer time. When the video decoder plays video, one segment's worth of video data is instantly read from the reception buffer.
ユーザ端末がサーバから動画を取得する際には、セグメントが受信バッファに受信バッファ時間16秒分満たされるまで連続して取得される。そして、動画再生のために受信バッファから1つのセグメントが読み出されたときに、受信バッファに1つの空きが生じたとして、サーバからセグメントが取得される。 When the user terminal obtains a video from the server, segments are continuously obtained until the receiving buffer is filled with the receiving buffer time of 16 seconds. Then, when one segment is read from the reception buffer for video playback, the segment is acquired from the server assuming that there is one empty space in the reception buffer.
ケース1の条件から、サーバから1セグメント分の動画取得時間は、4秒×(1Mビット/秒)/(4Mビット/秒)=1秒となる。動画再生のシナリオは、再生時刻12秒のタイミングで、動画Aから動画Bへの切替操作が行われるものとする。 From the conditions of case 1, the time required to acquire one segment of video from the server is 4 seconds x (1 Mbit/sec)/(4 Mbit/sec) = 1 second. In the video playback scenario, assume that a switching operation from video A to video B is performed at a timing of 12 seconds of playback time.
図5を参照して、再生時刻4秒のタイミングにおいて、受信バッファには、動画Aのs01~s04のセグメントが受信バッファ時間16秒分満たされるため、受信バッファから動画Aのs01のセグメントが読み出され再生される。そして、動画Aのs02~s04のセグメントがシフトして、受信バッファには1セグメント分の空きが生じる。そうすると、動画Aのs05のセグメントがサーバから取得されて受信バッファに追加される。 Referring to FIG. 5, at the playback time of 4 seconds, the reception buffer is filled with segments s01 to s04 of video A for 16 seconds of reception buffer time, so the segment s01 of video A is read from the reception buffer. released and played. Then, the segments s02 to s04 of the moving image A are shifted, and an empty space for one segment is created in the reception buffer. Then, the segment s05 of video A is acquired from the server and added to the reception buffer.
再生時刻8秒のタイミングにおいて、動画Aのs01のセグメントの再生が完了すると、受信バッファから動画Aのs02のセグメントが読み出され再生される。そして、動画Aのs03~s05のセグメントがシフトして、受信バッファには1セグメント分の空きが生じる。そうすると、動画Aのs06のセグメントがサーバから取得されて受信バッファに追加される。 When playback of segment s01 of video A is completed at the playback time of 8 seconds, segment s02 of video A is read from the receive buffer and played. Then, segments s03 to s05 of video A are shifted, creating one free segment in the receive buffer. Then, segment s06 of video A is obtained from the server and added to the receive buffer.
再生時刻12秒のタイミングにおいて、ユーザにより動画Aから動画Bへの切替操作が行われる。このタイミングと同時に、動画Aのs02のセグメントの再生が完了し、受信バッファから動画Aのs03のセグメントが読み出され再生され、動画Aのs04~s06のセグメントがシフトして、受信バッファには1セグメント分の空きが生じるものとする。そうすると、切替操作後の動画Bにおけるs07のセグメントがサーバから取得されて受信バッファに追加される。これにより、受信バッファは、切替操作前の動画Aにおけるs04~s06のセグメント及び切替操作後の動画Bにおけるs07のセグメントが格納された状態となる。 At the playback time of 12 seconds, the user switches from video A to video B. At the same time, playback of segment s02 of video A is completed, segment s03 of video A is read from the reception buffer and played, and segments s04 to s06 of video A are shifted, creating one free segment in the reception buffer. Then, segment s07 of video B after the switching operation is obtained from the server and added to the reception buffer. As a result, the reception buffer becomes a state in which segments s04 to s06 of video A before the switching operation and segment s07 of video B after the switching operation are stored.
再生時刻16秒のタイミングにおいて、動画Aのs04のセグメントの読み出し及び再生が行われ、動画Bのs08のセグメントの取得が行われる。これにより、動画Aの再生が継続し、受信バッファは、動画Aのs05,s06のセグメント及び動画Bのs07,s08のセグメントが格納された状態となる。 At the playback time of 16 seconds, the segment s04 of the video A is read out and played back, and the segment s08 of the video B is acquired. As a result, the video A continues to be played, and the reception buffer is in a state where the segments s05 and s06 of the video A and the segments s07 and s08 of the video B are stored.
再生時刻20秒のタイミングにおいて、動画Aのs05のセグメントの読み出し及び再生が行われ、動画Bのs09のセグメントの取得が行われる。これにより、動画Aの再生が継続し、受信バッファは、前述した再生時刻t3のタイミングのように、動画Aのs06のセグメント及び動画Bのs07~s09のセグメントが格納された状態となる。 At the playback time of 20 seconds, the segment s05 of the video A is read out and played back, and the segment s09 of the video B is acquired. As a result, the reproduction of the video A continues, and the reception buffer becomes in a state where the segment s06 of the video A and the segments s07 to s09 of the video B are stored, as at the timing of the reproduction time t3 described above.
再生時刻24秒のタイミングにおいて、動画Aのs06のセグメントの読み出し及び再生が行われ、動画Bのs10のセグメントの取得が行われる。これにより、動画Aの再生が継続し、受信バッファは、動画Bのs07~s10のセグメントが格納された状態となる。 At the playback time of 24 seconds, the segment s06 of the video A is read out and played back, and the segment s10 of the video B is acquired. As a result, the video A continues to be played, and the reception buffer is in a state where the segments s07 to s10 of the video B are stored.
再生時刻28秒のタイミングにおいて、動画Bのs07のセグメントの読み出し及び再生が行われ(枠で囲まれたs07)、動画Bのs11のセグメントの取得が行われる。これにより、動画Aの再生が終了し、動画Bの再生に切り替わる。受信バッファは、動画Bのs08~s11のセグメントが格納された状態となる。そして、動画Bの再生が継続する。 At the reproduction time of 28 seconds, the segment s07 of the moving image B is read out and played back (s07 surrounded by a frame), and the segment s11 of the moving image B is acquired. As a result, the reproduction of the moving image A is ended, and the reproduction is switched to the moving image B. The reception buffer is in a state where segments s08 to s11 of video B are stored. Then, the reproduction of moving image B continues.
このように、ユーザにより動画Aから動画Bへの切替操作が行われると、受信バッファに格納されている切替操作前の動画Aの全てのセグメントの再生が完了した後に、切替操作後の動画Bの再生が行われる。 In this way, when the user performs a switching operation from video A to video B, after all segments of video A stored in the reception buffer before the switching operation have been played, the video B after the switching operation is is played.
図5に示したように、切替操作が行われると、動画Aから動画Bに直ちに切り替わることはなく、16秒(28-12=16)の切替時間がかかってしまう。ユーザは、バッファリングされた動画Aのs03~s06のセグメントが受け渡されるまで、16秒の間待つ必要があり、切り替わるのに時間がかかるという問題があった。 As shown in FIG. 5, when a switching operation is performed, the video A is not immediately switched to the video B, and it takes 16 seconds (28-12=16) to switch. The user has to wait for 16 seconds until the buffered segments s03 to s06 of video A are delivered, and there is a problem in that it takes time to switch.
このため、ユーザによる動画Aから動画Bへの切替操作に伴い、動画の切替時間を短縮することが所望されていた。 For this reason, it was desirable to shorten the time it takes for a user to switch from video A to video B.
そこで、本件特許出願の同一の出願人により、本件特許出願時に未公開の特願2019-12836号公報記載の発明が提案されている。この特願2019-12836号公報記載の発明は、切替操作が行われると、ダウンロード予測時間に基づいて新たな動画Bの上書領域(上書きするセグメント番号)を決定し、動画Bをその上書領域から上書きするものである。 The same applicant for this patent application has proposed an invention described in Japanese Patent Application No. 2019-12836, which was unpublished at the time of filing this patent application. The invention described in Japanese Patent Application No. 2019-12836 determines the overwrite area (segment number to be overwritten) of a new video B based on the predicted download time when a switching operation is performed, and overwrites video B from that overwrite area.
(特願2019-12836号公報記載の発明の切替操作)
図6は、特願2019-12836号公報記載の発明において、ケース1の場合の動画Aから動画Bへの切替操作に伴う受信バッファに格納されたセグメントの変化、及び動画Bが切替再生されるタイミングを説明する図である。
(Switching operation of the invention described in Japanese Patent Application No. 2019-12836)
FIG. 6 shows changes in segments stored in the reception buffer due to the switching operation from video A to video B in case 1, and video B is switched and played back in the invention described in Japanese Patent Application No. 2019-12836. FIG. 3 is a diagram illustrating timing.
横軸は再生時刻(秒)を示し、縦軸は受信バッファ時間(受信バッファに格納されたセグメントの動画時間)(秒)を示す。ケース1の条件、受信バッファからのセグメントの読み出し動作、受信バッファへの格納動作、サーバからの取得動作等は、図5にて説明したとおりである。この例では、サーバから取得されるセグメントのタイムスタンプは、当該セグメントが受信バッファに追加または上書される位置、及び受信バッファに格納されているセグメントのタイムスタンプに応じて、選択されるものとする。 The horizontal axis indicates playback time (seconds), and the vertical axis indicates reception buffer time (video time of the segment stored in the reception buffer) (seconds). The conditions for case 1, the operation of reading a segment from the reception buffer, the operation of storing it in the reception buffer, the operation of acquiring it from the server, etc. are as described with reference to FIG. In this example, the timestamp of the segment retrieved from the server shall be selected depending on the position where the segment is added to or overwritten in the receive buffer and the timestamp of the segment stored in the receive buffer. do.
図6を参照して、再生時刻4秒及び8秒のタイミングにおける動作は、図5と同様である。 Referring to FIG. 6, the operations at playback times of 4 seconds and 8 seconds are similar to those in FIG. 5.
再生時刻12秒のタイミングにおいて、ユーザにより動画Aから動画Bへの切替操作が行われる。このタイミングと同時に、動画Aのs02のセグメントの再生が完了し、受信バッファから動画Aのs03のセグメントが読み出され再生され、動画Aのs04~s06のセグメントがシフトして、受信バッファには1セグメント分の空きが生じるものとする。このタイミングにおいて、ダウンロード予測時間に基づいて、上書領域として例えば動画Aのs05のセグメントが決定される。 At the timing of 12 seconds of playback time, the user performs a switching operation from video A to video B. At the same time as this timing, the reproduction of the segment s02 of the video A is completed, the segment s03 of the video A is read out from the reception buffer and played, the segments s04 to s06 of the video A are shifted, and the reception buffer is It is assumed that one segment is left vacant. At this timing, for example, segment s05 of video A is determined as the overwriting area based on the predicted download time.
そうすると、切替操作後の動画Bにおけるs05のセグメントがサーバから取得され、動画Bのs05のセグメントが、受信バッファに格納された動画Aのs05のセグメントの領域に上書きされる。これにより、受信バッファは、動画Aのs04のセグメント、動画Bのs05及び動画Aのs06のセグメントが格納された状態となる。 Then, the segment s05 of the video B after the switching operation is acquired from the server, and the segment s05 of the video B is overwritten in the area of the segment s05 of the video A stored in the reception buffer. As a result, the reception buffer is in a state where the segment s04 of the video A, the segment s05 of the video B, and the segment s06 of the video A are stored.
そして、動画Bのs06,s07のセグメントがサーバから取得され、動画Bのs06のセグメントが、受信バッファに格納された動画Aにおけるs06のセグメントの領域に上書きされ、動画Bのs07のセグメントが追加される。これにより、受信バッファは、切替操作前の動画Aのs04のセグメント及び切替操作後の動画Bのs05~s07のセグメントが格納された状態となる。 Then, the segments s06 and s07 of video B are acquired from the server, the segment s06 of video B is overwritten in the area of the segment s06 in video A stored in the reception buffer, and the segment s07 of video B is added. be done. As a result, the reception buffer is in a state where the segment s04 of the video A before the switching operation and the segments s05 to s07 of the video B after the switching operation are stored.
再生時刻16秒のタイミングにおいて、動画Aのs04のセグメントの読み出し及び再生が行われ、動画Bのs08のセグメントの取得が行われる。これにより、動画Aの再生が継続し、受信バッファは、動画Bのs05~s08のセグメントが格納された状態となる。 At the playback time of 16 seconds, the segment s04 of the video A is read out and played back, and the segment s08 of the video B is acquired. As a result, the video A continues to be played, and the reception buffer is in a state where the segments s05 to s08 of the video B are stored.
再生時刻20秒のタイミングにおいて、動画Bのs05のセグメントの読み出し及び再生が行われ(枠で囲まれたs05)、動画Bのs09のセグメントの取得が行われる。これにより、動画Aの再生が終了し、動画Bの再生に切り替わり、これ以降は、動画Bの再生が継続する。つまり、再生時刻20秒のタイミングで切替再生が行われることとなる。 At the reproduction time of 20 seconds, the segment s05 of the moving image B is read out and played back (s05 surrounded by a frame), and the segment s09 of the moving image B is acquired. As a result, the reproduction of the moving image A is finished, and the reproduction is switched to the moving image B. From this point on, the reproduction of the moving image B continues. In other words, the switching reproduction is performed at the timing of 20 seconds of the reproduction time.
このように、特願2019-12836号公報記載の発明の場合には、切替操作が行われると、ダウンロード予測時間に基づいて新たな動画Bの上書領域(上書きするセグメント番号)が決定され、新たな動画Bがその上書領域から上書きされる。 In this way, in the case of the invention described in Japanese Patent Application No. 2019-12836, when a switching operation is performed, the overwriting area (segment number to be overwritten) of a new video B is determined based on the predicted download time, A new video B is overwritten from the overwrite area.
図6に示したように、動画Aから動画Bへの切替時間は、8秒(20-12=8)であり、図5に示した切替時間16秒よりも短い。これにより、切替操作が行われると、受信バッファに格納されている動画Aの全てのセグメントの再生の完了を待つことなく、上書きされた動画Bの再生が行われる。このため、切替操作に伴う動画の切替時間を短縮することができる。 As shown in FIG. 6, the switching time from moving image A to moving image B is 8 seconds (20-12=8), which is shorter than the switching time of 16 seconds shown in FIG. As a result, when the switching operation is performed, the overwritten video B is played back without waiting for the completion of playback of all segments of the video A stored in the reception buffer. Therefore, it is possible to shorten the time required to switch the moving image due to the switching operation.
しかしながら、特願2019-12836号公報記載の発明では、インターネットの回線の遅延または帯域の変動により、ダウンロードの回線スループットが低下した場合、切替操作の際に切り替え前後の動画が交互に再生されて動画が乱れる可能性がある。また、受信バッファに格納されたセグメントの数が低下し、再生が停止する可能性もある。 However, in the invention described in Japanese Patent Application No. 2019-12836, when the download line throughput decreases due to internet line delays or band fluctuations, the videos before and after switching are played alternately during the switching operation. may be disturbed. It is also possible that the number of segments stored in the receive buffer decreases and playback stops.
例えば図6において、再生時刻12秒のタイミングで切替操作が行われた後に、新たな動画Bのs05のセグメントがサーバから取得された場合を想定する。この場合、受信バッファは、動画Aのs04のセグメント、動画Bのs05のセグメント及び動画Aのs06のセグメントが格納されている状態となる。 For example, in FIG. 6, assume that a switching operation is performed at the playback time of 12 seconds, and then a new segment of video B at s05 is acquired from the server. In this case, the reception buffer is in a state where the segment s04 of the video A, the segment s05 of the video B, and the segment s06 of the video A are stored.
ここで、引き続き新たな動画Bのs06のセグメントがサーバから取得されるが、ダウンロードの回線スループットが低下すると、動画Bのs06のセグメントは、受信バッファに格納された動画Aのs06の領域への上書きが遅れてしまう。そうすると、動画Aのs03,s04のセグメントの再生が完了した後、動画Bのs05のセグメントの再生が行われ、そして、動画Aのs06のセグメントの再生が行われることとなり得る。 Here, a new s06 segment of video B is subsequently obtained from the server, but as the download line throughput decreases, the s06 segment of video B is transferred to the s06 area of video A stored in the reception buffer. Overwriting will be delayed. Then, after the reproduction of the segments s03 and s04 of the video A is completed, the reproduction of the segment s05 of the video B is performed, and then the reproduction of the segment s06 of the video A is performed.
つまり、動画A,Bの1セグメントをそれぞれA,Bとすると、再生は、A→A→B→B→B→B・・・となるべきところ、A→A→B→A→B→B・・・となってしまう。このように、切替操作時には、切り替え前後の動画が交互に再生されて乱れるという不体裁が発生する可能性があり、一層安定した再生を実現できることが望まれていた。 In other words, if one segment of videos A and B is A and B, respectively, the playback should be A→A→B→B→B→B... but A→A→B→A→B→B It becomes... As described above, during the switching operation, there is a possibility that the videos before and after the switching are played back alternately, causing an unsightly appearance, and it has been desired to realize more stable playback.
そこで、本発明は前記課題を解決するためになされたものであり、その目的は、ネット動画を視聴しているユーザが切替操作を行ったときに、新たな動画の視聴開始までの待ち時間を短縮すると共に、不体裁の発生を防止するユーザ端末及びプログラムを提供することにある。 Therefore, the present invention has been made to solve the above problem, and its purpose is to reduce the waiting time until the user starts watching a new video when a user who is viewing an online video performs a switching operation. It is an object of the present invention to provide a user terminal and a program that shorten the time and prevent the occurrence of inappropriate appearance.
前記課題を解決するために、請求項1のユーザ端末は、サーバからインターネットを介して配信された動画のセグメントを受信し、前記セグメントをバッファリングして読み出し、前記セグメントをデコードして再生するユーザ端末において、前記インターネットを介して受信したそれぞれの前記セグメントを、受信バッファの最前領域から最後領域まで格納する受信バッファ管理部と、前記受信バッファの前記最前領域に格納された前記セグメントを読み出し、当該セグメントをデコードする動画デコーダと、を備え、前記受信バッファ管理部が、ユーザにより新たな動画を再生するための切替操作が行われると、前記受信バッファに前記セグメントを格納するための空き領域がある場合、前記新たな動画の切替後セグメントを取得し、当該切替後セグメントを前記受信バッファの前記空き領域に追加し、前記空き領域がなく、かつ前記受信バッファに再生中の前記動画の切替前セグメントが格納されている場合、前記受信バッファに格納された全ての前記切替前セグメントのうち最後に読み出される前記切替前セグメントを最後部の前記切替前セグメントとして特定し、新たな前記動画の切替後セグメントを取得し、当該切替後セグメントを、前記受信バッファにおける前記最後部の前記切替前セグメントが格納された領域に上書きする、ことを特徴とする。 In order to solve the above problem, a user terminal according to claim 1 receives a segment of a video distributed from a server via the Internet, buffers and reads the segment, and decodes and plays the segment. The terminal includes a reception buffer management unit that stores each of the segments received via the Internet from the frontmost area to the last area of the reception buffer, and a reception buffer management unit that reads the segment stored in the frontmost area of the reception buffer and stores the segment from the frontmost area of the reception buffer. a video decoder that decodes segments, and when the reception buffer management unit performs a switching operation to play a new video by a user, there is a free space in the reception buffer to store the segment. In this case, obtain a post-switching segment of the new video, add the post-switching segment to the free space of the receiving buffer, and add the pre-switching segment of the video that has no free space and is being played back to the receiving buffer. is stored, the last pre-switching segment read out of all the pre-switching segments stored in the reception buffer is identified as the last pre-switching segment, and a new post-switching segment of the video is specified. , and overwrites the post-switching segment in an area in the receiving buffer in which the last segment before switching is stored.
また、請求項2のユーザ端末は、請求項1に記載のユーザ端末において、前記受信バッファ管理部は、セグメント要求部及び格納処理部を備え、前記ユーザにより前記切替操作が行われると、前記セグメント要求部が、前記受信バッファに前記セグメントを格納するための前記空き領域があるかないかを判定し、前記空き領域があると判定した場合、前記受信バッファに格納された全ての前記セグメントのうち前記最後部を特定し、当該最後部の次のセグメントにおけるセグメント番号またはタイムスタンプを特定し、当該セグメント番号または当該タイムスタンプに対応する前記切替後セグメントを取得するためのセグメント要求として、第1セグメント要求を生成し、前記格納処理部が、前記セグメント要求部により生成された前記第1セグメント要求に対応する前記切替後セグメントを取得し、当該切替後セグメントを前記受信バッファの前記空き領域に追加し、前記セグメント要求部が、前記空き領域が無いと判定した場合、前記受信バッファに前記切替前セグメントが格納されているか否かを判定し、前記切替前セグメントが格納されていると判定した場合、前記受信バッファに格納された全ての前記切替前セグメントのうち前記最後部を特定し、当該最後部のセグメントにおけるセグメント番号またはタイムスタンプを特定し、当該セグメント番号または当該タイムスタンプに対応する前記切替後セグメントを取得するためのセグメント要求として、第2セグメント要求を生成し、前記格納処理部が、前記セグメント要求部により生成された前記第2セグメント要求に対応する前記切替後セグメントを取得し、当該切替後セグメントを、前記受信バッファの前記最後部の領域に上書きする、ことを特徴とする。
In addition, the user terminal of
さらに、請求項3のプログラムは、コンピュータを、請求項1または2に記載のユーザ端末として機能させることを特徴とする。
Furthermore, the program according to
以上のように、本発明によれば、ネット動画を視聴しているユーザが切替操作を行ったときに、新たな動画の視聴開始までの待ち時間を短縮すると共に、不体裁の発生を防止して一層安定した再生を実現することができる。 As described above, according to the present invention, when a user who is watching an online video performs a switching operation, it is possible to shorten the waiting time until the user starts watching a new video, and to prevent the occurrence of inappropriate behavior. This makes it possible to achieve even more stable playback.
以下、本発明を実施するための形態について図面を用いて詳細に説明する。本発明は、ユーザによる動画の切替操作時に、受信バッファに空きがある場合、切替操作後の新たな動画を受信バッファの空き領域に追加する。また、本発明は、受信バッファに空きがなく、切替操作前の動画が格納されている場合、新たな動画を、受信バッファに格納された全ての切替操作前の動画(再生中の動画)のセグメントのうち最後部のセグメント(最後に読み出されるセグメント)の領域に上書きする。 DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described in detail using the drawings. According to the present invention, when a user performs a moving image switching operation and there is space in the receiving buffer, a new moving image after the switching operation is added to the empty area of the receiving buffer. Furthermore, in the case where there is no free space in the reception buffer and the video before the switching operation is stored, the new video is added to all the videos stored in the reception buffer before the switching operation (the video being played). Overwrites the area of the last segment (segment read last) among the segments.
これにより、切替操作時の受信バッファには、新たな動画のセグメントが追加または上書きされるため、受信バッファに格納されたセグメントの数の低下を抑えることができる。また、新たな動画のセグメントは、受信バッファの連続した領域に順次格納されることとなる。 As a result, a new moving image segment is added to or overwritten in the reception buffer at the time of the switching operation, so it is possible to suppress a decrease in the number of segments stored in the reception buffer. Furthermore, new video segments are sequentially stored in consecutive areas of the reception buffer.
したがって、ネット動画を視聴しているユーザが切替操作を行ったときに、新たな動画の視聴開始までの待ち時間を短縮することができ、動画が交互に再生されて乱れるという不体裁の発生を防止し、一層安定な再生を実現することができる。 As a result, when a user watching an online video switches between videos, the waiting time until the new video can begin can be shortened, preventing the awkwardness of videos being played back alternately and achieving more stable playback.
〔全体システム〕
まず、本発明の実施形態によるユーザ端末を含む全体システムについて説明する。図1は、本発明の実施形態によるユーザ端末を含む全体システムの構成例を示す概略図である。
[Whole system]
First, an overall system including a user terminal according to an embodiment of the present invention will be described. FIG. 1 is a schematic diagram showing an example of the configuration of an entire system including user terminals according to an embodiment of the present invention.
このシステムは、ユーザ端末1及びサーバ2を備えて構成され、サーバ2のストレージ4に格納された動画を、サーバ2からインターネット3を介してユーザ端末1へ配信するアダプティブストリーミングを行う。ユーザ端末1及びサーバ2は、インターネット3を介して接続される。インターネット3は、例えばオープンインターネットである。
This system is configured with a user terminal 1 and a
ユーザ端末1は、通信インターフェース10、OS(オペレーティングシステム)11、WEBブラウザ12、受信バッファ管理部13、動画デコーダ14及び表示部15を備えている。ユーザ端末1は、パーソナルコンピュータであってもよいし、スマートフォン等の携帯型の端末装置であってもよい。要するに、ユーザ端末1は、サーバ2から動画をセグメント毎にダウンロードし、これをバッファリングして再生する機能を有していれば何でもよい。
The user terminal 1 includes a
通信インターフェース10は、当該ユーザ端末1とサーバ2との間で、インターネット3を介して所定のプロトコルに従いデータの送受信を行う。通信インターフェース10は、例えばEthernet(イーサネット(登録商標))の規格に従って動作する。
The
OS11は、各種のプログラムの実行を制御するためのソフトウェアであり、基本的な機能として、通信インターフェース10、WEBブラウザ12、受信バッファ管理部13、動画デコーダ14及び表示部15を管理する。OS11は、例えばWindows(登録商標)であってもよいし、iOSであってもよい。
The
WEBブラウザ12は、WEBページを閲覧するためのソフトウェアであり、例えばInternet Explorer(インターネットエクスプローラー、登録商標)であってもよいし、Chrome(クローム、登録商標)であってもよい。
The
受信バッファ管理部13は、サーバ2から配信された動画のセグメントを、受信バッファの最前領域から最後領域まで順番にバッファリングし、当該セグメントを最前領域から動画デコーダ14へ受け渡す。最前領域は、動画デコーダ14により読み出されるセグメントの領域であり、最後領域は、セグメントが格納されることで受信バッファが満杯となる当該セグメントの領域である。
The reception
受信バッファ管理部13は、ユーザによる動画の切替操作を検知すると、図5に示した従来技術及び図6に示した特願2019-12836号公報記載の発明に代わる新方式にて、動画の切替処理を行う。
When the reception
具体的には、受信バッファ管理部13は、受信バッファに空きがある場合、サーバ2から送信された切替操作後の動画のセグメントを、受信バッファの空き領域に追加する。一方、受信バッファ管理部13は、受信バッファに空きがなく、かつ受信バッファに切替操作前の動画が格納されている場合、サーバ2から送信された切替操作後の動画のセグメントを、受信バッファに格納されている全ての切替操作前の動画のセグメントのうち最後部のセグメントの領域に上書きする。
Specifically, if there is space in the reception buffer, the reception
また、受信バッファ管理部13は、受信バッファに空きがなく、かつ受信バッファに切替操作前の動画が格納されていない場合、通常の処理を行う。つまり、受信バッファ管理部13は、受信バッファが空きとなるのを待って、サーバ2から送信された切替操作後の動画のセグメントを、受信バッファの空き領域に追加する。尚、サーバ2から送信されるセグメントのタイムスタンプは、前述の図6と同様に、当該セグメントが受信バッファに追加または上書される位置、及び受信バッファに格納されているセグメントのタイムスタンプに応じて、選択されるものとする。
Further, the reception
図1に戻って、動画デコーダ14は、受信バッファ管理部13からセグメントを読み出し、H264、H265等の各種符号化方式で符号化されたセグメントの動画データをデコードし、表示部15に表示する。これにより、動画の再生が行われる。表示部15は、テレビ画面であってもよいし、パソコン用モニタの画面であってもよい。
Returning to FIG. 1, the
サーバ2は、ユーザ端末1からインターネット3を介してセグメント要求を受信し、当該セグメント要求に対応する動画のセグメントをストレージ4から読み出し、読み出したセグメントを、インターネット3を介してユーザ端末1へ送信する。サーバ2は、動画を配信可能なコンピュータ装置であれば何でもよい。
The
〔受信バッファ管理部13〕
次に、図1に示したユーザ端末1の受信バッファ管理部13について詳細に説明する。図2は、受信バッファ管理部13の処理を示すフローチャートである。
[Reception buffer management unit 13]
Next, the reception
ユーザ端末1を操作するユーザがある動画を視聴しているものとする。ユーザにより、視聴中の動画を新たな動画に切り替える操作が行われると、当該切替操作に伴う動画切替要求が受信バッファ管理部13に入力される。
Assume that a user operating the user terminal 1 is viewing a certain video. When the user performs an operation to switch the video being viewed to a new video, a video switching request accompanying the switching operation is input to the reception
受信バッファ管理部13は、動画切替要求を入力したか否かを判定する(ステップS201)。受信バッファ管理部13は、ステップS201において、動画切替要求を入力したと判定した場合(ステップS201:Y)、動画切替時のセグメント取得処理を行い(ステップS202)、ステップS203へ移行する。ステップS202の動画切替時のセグメント取得処理については後述する。
The reception
一方、受信バッファ管理部13は、ステップS201において、動画切替要求を入力していないと判定した場合(ステップS201:N)、ステップS203へ移行する。
On the other hand, if the reception
受信バッファ管理部13は、ステップS202またはステップS201(N)から移行して、通常時のセグメント取得処理を行う(ステップS203)。
The reception
具体的には、受信バッファ管理部13は、受信バッファに空きがある場合、視聴中の動画のセグメントをサーバ2から順次取得し、受信バッファの空き領域に追加する。受信バッファが所定の受信バッファ時間満たされるまで、連続した取得及び追加処理が行われる。受信バッファに格納されたセグメントは、動画デコーダ14により読み出され再生される。
Specifically, if there is space in the reception buffer, the reception
受信バッファ管理部13は、ステップS203から移行して、処理が終了しない限り、ステップS201~S203の処理を継続する(ステップS204)。
The reception
図3は、受信バッファ管理部13の構成を示すブロック図である。この受信バッファ管理部13は、受信バッファ20、セグメント要求部21及び格納処理部22を備えている。受信バッファ20には、動画のセグメントが格納される。
FIG. 3 is a block diagram showing the configuration of the reception
セグメント要求部21は、図2のステップS203における通常時のセグメント取得処理において、受信バッファ20に空きがある場合、受信バッファ20に格納されている全てのセグメントのうち最後部の次のセグメント番号(SG番号)を特定する。そして、セグメント要求部21は、当該SG番号のセグメントを取得するためのセグメント要求(SG要求)を生成して通信インターフェース10に出力する。SG要求は、通信インターフェース10からサーバ2へ送信される。
In the normal segment acquisition process in step S203 of FIG. 2, if there is free space in the receive
セグメント要求部21は、ユーザによる動画の切替操作に伴う動画切替要求を入力すると、図2のステップS202における動画切替時のセグメント取得処理において、受信バッファ20に格納されたセグメントの格納状況を確認する。
When the
セグメント要求部21は、当該格納状況に応じて、サーバ2から取得する切替操作後の動画のセグメントのSG番号を決定し、SG番号を格納処理部22に出力する。セグメント要求部21は、切替操作後の動画の当該SG番号のセグメントを取得するためのSG要求を生成して通信インターフェース10に出力する。SG要求は、通信インターフェース10からサーバ2へ送信される。
The
セグメント要求部21は、受信バッファ20に格納された全てのセグメントが新たな動画のセグメントである場合、動画切替時のセグメント取得処理が完了したとして、通常時のセグメント取得処理へ移行する。
If all the segments stored in the
格納処理部22は、セグメント要求部21からSG番号を入力し、サーバ2から取得した当該SG番号のセグメントを、受信バッファ20における当該SG番号の領域に格納する。
The
ここで、取得した当該SG番号のセグメントは、受信バッファ20の空き領域に追加されるか、または、同じSG番号のセグメントが格納されている領域に上書きされることとなる。
Here, the acquired segment with the SG number is added to the free area of the
具体的には、格納処理部22は、図2のステップS203における通常時のセグメント取得処理において、サーバ2から取得した切替操作後の当該SG番号のセグメントを受信バッファ20の空き領域に追加する。
Specifically, in the normal segment acquisition process in step S203 of FIG. 2, the
受信バッファ20には、動画デコーダ14により読み出されるセグメントが格納された最前領域から、セグメントが格納されることで当該受信バッファ20が満杯となる最後領域までの間のそれぞれの領域に、セグメントが格納される。セグメントは、空き領域のうち最前領域に最も近い領域(最前部)から順番に追加される。
In the
また、格納処理部22は、図2のステップS202における動画切替時のセグメント取得処理において、サーバ2から取得した切替操作後の動画の当該SG番号のセグメントを、受信バッファ20における当該SG番号の領域に上書きする。 In addition, in the segment acquisition process at the time of video switching in step S202 in FIG. overwrite.
(動画切替時のセグメント取得処理(S202))
図4は、図2に示した動画切替時のセグメント取得処理(S202)を示すフローチャートである。
(Segment acquisition process when switching videos (S202))
FIG. 4 is a flowchart showing the segment acquisition process (S202) at the time of video switching shown in FIG.
セグメント要求部21は、図2のステップS201において、動画切替要求を入力した場合、ユーザによる動画の切替操作があったことを認識する。そして、セグメント要求部21は、受信バッファ20に空きがあるかないかを判定する(ステップS401)。
When a video switching request is input in step S201 of FIG. 2, the
セグメント要求部21は、ステップS401において、受信バッファ20に空きがあると判定した場合(ステップS401:Y)、受信バッファ20に格納された最後部のセグメントを特定する。そして、セグメント要求部21は、当該最後部の次のセグメントのSG番号を特定し、当該SG番号を取得SG番号saに決定する(ステップS402)。
When the
セグメント要求部21は、ステップS402にて決定した切替操作後の動画における取得SG番号saのセグメント(新たな動画の切替後セグメント)を取得するためのSG要求(sa)を生成する。そして、セグメント要求部21は、当該SG要求(sa)を通信インターフェース10に出力する(ステップS403)。これにより、SG要求(sa)はサーバ2へ送信され、サーバ2から切替操作後の動画における取得SG番号saのセグメントが送信される。セグメント要求部21は、取得SG番号saを格納処理部22に出力する。
The
格納処理部22は、通信インターフェース10から切替操作後の動画における取得SG番号saのセグメントを入力し、当該セグメントを受信バッファ20の空き領域に追加する(ステップS404)。これにより、受信バッファ20には、切替操作後の新たな動画が格納される。
The
一方、セグメント要求部21は、ステップS401において、受信バッファ20に空きがないと判定した場合(ステップS401:N)、受信バッファ20に切替操作前の動画のセグメント(再生中の動画の切替前セグメント)が格納されているか否かを判定する(ステップS405)。
On the other hand, if the
セグメント要求部21は、ステップS405において、受信バッファ20に切替操作前の動画のセグメントが格納されていると判定した場合(ステップS405:Y)、受信バッファ20に格納された切替操作前の動画のセグメントのうち最後部のセグメントを特定する。そして、セグメント要求部21は、当該セグメントのSG番号を特定し、当該SG番号を取得SG番号sbに決定する(ステップS406)。
If the
セグメント要求部21は、ステップS406にて決定した切替操作後の動画における取得SG番号sbのセグメントを取得するためのSG要求(sb)を生成し、当該SG要求(sb)を通信インターフェース10に出力する(ステップS407)。これにより、SG要求(sb)はサーバ2へ送信され、サーバ2から切替操作後の動画における取得SG番号sbのセグメントが送信される。セグメント要求部21は、取得SG番号sbを格納処理部22に出力する。
The
格納処理部22は、通信インターフェース10から切替操作後の動画における取得SG番号sbのセグメントを入力し、当該セグメントを、受信バッファ20に格納された切替操作前の動画における取得SG番号sbのセグメントの領域に上書きする(ステップS408)。これにより、受信バッファ20には、切替操作後の新たな動画が切替操作前の動画の領域に格納される。
The
一方、セグメント要求部21は、ステップS405において、受信バッファ20に切替操作前の動画のセグメントが格納されていないと判定した場合(ステップS405:N)、当該動画切替時のセグメント取得処理を終了する。これにより、図2のステップS203における通常時のセグメント取得処理へ移行する。
On the other hand, if the
このように、ユーザによる動画の切替操作が行われると、動画切替時のセグメント取得処理が行われる。サーバ2から取得された切替操作後の動画のセグメントは、受信バッファ20に空きがある場合、最前領域(動画デコーダ14により読み出されるセグメントの領域)から最後領域(セグメントが格納されることで受信バッファ20が満杯となる当該セグメントの領域)へ向けて、その空きが埋まるように追加される。また、切替操作後の動画のセグメントは、受信バッファ20に空きがなく、切替操作前の動画が格納されている場合、最後領域から最前領域へ向けて、切替操作前の動画が格納された最後部(最後領域側の部分)から最前部(最前領域側の部分)まで順番に上書きされる。
In this way, when the user performs a video switching operation, segment acquisition processing at the time of video switching is performed. If there is space in the
〔切替操作時の動作例〕
次に、切替操作時の動作例について説明する。図7は、本発明の実施形態において、ケース1の場合の動画Aから動画Bへの切替操作に伴う受信バッファ20に格納されたセグメントの変化、及び動画Bが切替再生されるタイミングを説明する図である。
[Example of operation during switching operation]
Next, an example of the operation during the switching operation will be described. FIG. 7 explains the change in segments stored in the
横軸は再生時刻(秒)を示し、縦軸は受信バッファ時間(受信バッファ20に格納されたセグメントの動画時間)(秒)を示す。ケース1の条件、受信バッファ20からのセグメントの読み出し動作、受信バッファ20への格納動作、サーバ2からの取得動作等は、図5にて説明したとおりである。
The horizontal axis indicates playback time (seconds), and the vertical axis indicates reception buffer time (video time of the segment stored in the reception buffer 20) (seconds). The conditions for case 1, the operation of reading a segment from the
図7を参照して、再生時刻4秒及び8秒のタイミングにおける動作は、図5と同様である。 Referring to FIG. 7, the operations at playback times of 4 seconds and 8 seconds are similar to those in FIG. 5.
再生時刻12秒のタイミングにおいて、ユーザにより動画Aから動画Bへの切替操作が行われる。このタイミングと同時に、動画デコーダ14により受信バッファ20から動画Aのs03のセグメントが読み出され再生され、s04~s06のセグメントがシフトして、受信バッファ20には1セグメント分の空きが生じるものとする。切替操作に伴い、動画切替要求がセグメント要求部21に入力され、動画切替時のセグメント取得処理が開始する。
At the timing of 12 seconds of playback time, the user performs a switching operation from video A to video B. At the same time as this timing, the
セグメント要求部21は、受信バッファ20に空きがあると判定し、最後部のセグメントのSG番号が06であるため、その次のSG番号07を取得SG番号sa=07に決定する。そして、セグメント要求部21は、切替操作後の動画Bにおける取得SG番号sa=07のセグメントを取得するためのSG要求(sa=07)を出力する。このSG要求(sa=07)は、サーバ2へ送信される。
The
そうすると、切替操作後の動画Bにおけるs07のセグメントがサーバ2から送信され、ユーザ端末1はこれを取得する。格納処理部22は、切替操作後の動画Bにおけるs07のセグメントを受信バッファ20に追加する。
Then, the segment of s07 in the video B after the switching operation is transmitted from the
これにより、受信バッファ20は、切替操作前の動画Aにおけるs04~s06のセグメント、及び切替操作後の動画Bにおけるs07のセグメントが格納された状態となる(再生時刻t1のタイミングを参照)。
As a result, the
そして、セグメント要求部21は、受信バッファ20に空きがなく、切替操作前の動画Aのセグメントが格納されていると判定する。セグメント要求部21は、切替操作前の動画Aのセグメントのうち最後部のセグメントのSG番号06を取得SG番号sb=06に決定する。そして、セグメント要求部21は、切替後の動画Bにおける取得SG番号sb=06のセグメントを取得するためのSG要求(sb=06)を出力する。このSG要求(sb=06)は、サーバ2へ送信される。
Then, the
そうすると、切替操作後の動画Bにおけるs06のセグメントがサーバ2から送信され、ユーザ端末1はこれを取得する。格納処理部22は、切替操作後の動画Bにおけるs06のセグメントを、受信バッファ20に格納された切替操作前の動画Aにおける取得SG番号sb=06のセグメントの領域に上書きする。
Then, the segment of s06 in the video B after the switching operation is transmitted from the
これにより、受信バッファ20は、切替操作前の動画Aにおけるs04,s05のセグメント、及び切替操作後の動画Bにおけるs06,s07のセグメントが格納された状態となる(再生時刻t2のタイミングを参照)。
As a result, the receiving
同様にして、セグメント要求部21は、切替操作後の動画Bにおける取得SG番号sb=05のセグメントを取得するためのSG要求(sb=05)を出力する。そして、格納処理部22は、切替操作後の動画Bにおけるs05のセグメントを、受信バッファ20に格納された切替操作前の動画Aにおけるs05のセグメントの領域に上書きする。
Similarly, the
セグメント要求部21は、切替操作後の動画Bにおける取得SG番号sb=04のセグメントを取得するためのSG要求(sb=04)を出力する。そして、格納処理部22は、切替操作後の動画Bにおけるs04のセグメントを、受信バッファ20に格納された切替操作前の動画Aにおけるs04のセグメントの領域に上書きする。
The
これにより、受信バッファ20は、切替操作後の動画Bにおけるs04~s07のセグメントが格納された状態となる(再生時刻t3のタイミングを参照)。
As a result, the
再生時刻16秒のタイミングにおいて、動画Bのs04のセグメントの読み出し及び再生が行われ(枠で囲まれたs04)、動画Bのs08のセグメントの取得が行われる。これにより、動画Aの再生が終了し、動画Bの再生に切り替わり、これ以降は動画Bの再生が継続する。つまり、再生時刻16秒のタイミングで切替再生が行われることとなる。 At the reproduction time of 16 seconds, the segment s04 of the moving image B is read out and played back (s04 surrounded by a frame), and the segment s08 of the moving image B is acquired. As a result, the reproduction of the moving image A is ended, and the reproduction is switched to the moving image B, and the reproduction of the moving image B continues from this point on. In other words, the switching reproduction is performed at the timing of 16 seconds of the reproduction time.
このように、本発明の実施形態では、切替操作が行われると、受信バッファ20に空きがある場合、切替操作後の動画Bのセグメントは受信バッファ20に追加される。一方、受信バッファ20に空きがなく、かつ切替操作前の動画Aが格納されている場合、新たな動画Bのセグメントは、切替操作前の動画Aの最後部の領域に上書きされる。そして、受信バッファ20に空きがなく、かつ切替操作前の動画Aが格納されていない場合、通常時のセグメント取得処理が行われる。
As described above, in the embodiment of the present invention, when the switching operation is performed, if there is space in the receiving
図7に示したように、動画Aから動画Bへの切替時間は、4秒(16-12=4)であり、図5に示した切替時間16秒及び図6に示した切替時間8秒よりも短い。これにより、切替操作に伴う動画の切替時間を短縮することができる。 As shown in FIG. 7, the switching time from video A to video B is 4 seconds (16-12=4), the switching time shown in FIG. 5 is 16 seconds, and the switching time shown in FIG. 6 is 8 seconds. shorter than Thereby, it is possible to shorten the time required to switch the moving image due to the switching operation.
(動画Bのs04の取得が遅れた場合)
図7に示した例は、ケース1の条件である回線スループットが4Mビット/秒に維持された場合を示している。回線スループットが4Mビット/秒に維持されることにより、動画Bのs04のセグメントが受信バッファ20に上書きされた直後に、動画デコーダ14により、受信バッファ20から動画Bのs04のセグメントが読み出され再生される。このため、切替再生のタイミングは再生時刻16秒となる。
(If the acquisition of s04 of video B is delayed)
The example shown in FIG. 7 shows a case where the line throughput, which is the condition of case 1, is maintained at 4 Mbit/sec. By maintaining the line throughput at 4 Mbit/s, the
ここで、サーバ2から動画Bのs04のセグメントが送信されているときに、回線スループットが4Mビット/秒未満となった場合を想定する。この場合、動画Bのs04のセグメントの上書き完了時刻は、再生時刻16秒よりも遅れてしまい、再生時刻16秒のタイミングにおいて、動画Bのs04のセグメントを再生することができない。動画Aから動画Bへの切替再生のタイミングは、再生時刻16秒よりも遅れることとなる。
Here, it is assumed that the line throughput becomes less than 4 Mbit/sec while the segment s04 of the video B is being transmitted from the
図8は、図7において、動画Bのs04のセグメントの取得が遅れた場合を説明する図である。回線スループットが4Mビット/秒未満となったため(点線αを参照)、動画Aのs03のセグメントの再生が完了する再生時刻16秒のタイミングにおいて、動画Bのs04のセグメントの上書きが完了していない。動画デコーダ14は、受信バッファ20から動画Bのs04のセグメントを読み出して再生することができない。
FIG. 8 is a diagram illustrating a case where the acquisition of the segment s04 of the video B in FIG. 7 is delayed. Because the line throughput became less than 4 Mbit/s (see dotted line α), the overwriting of the s04 segment of video B was not completed at the playback time of 16 seconds, when the playback of the s03 segment of video A was completed. . The
このため、再生時刻16秒のタイミングにおいて、動画Aのs04のセグメントの読み出し及び再生が行われ、動画Bのs08のセグメントの取得が行われる。これにより、受信バッファ20は、動画Bのs05~s08のセグメントが格納された状態となる。
Therefore, at the playback time of 16 seconds, the segment s04 of the video A is read out and played back, and the segment s08 of the video B is acquired. As a result, the receiving
そして、再生時刻20秒のタイミングにおいて、動画Bのs05のセグメントの読み出し及び再生が行われる(枠で囲まれたs05)。これにより、動画Aの再生が終了し、動画Bの再生に切り替わり、これ以降は動画Bの再生が継続する。つまり、図7に示した再生時刻16秒よりも遅れた再生時刻20秒のタイミングで、切替再生が行われることとなる。 Then, at the reproduction time of 20 seconds, the segment s05 of the moving image B is read out and reproduced (s05 surrounded by a frame). As a result, the reproduction of the moving image A is ended, and the reproduction is switched to the moving image B, and the reproduction of the moving image B continues from this point on. In other words, the switching playback is performed at a timing of 20 seconds later than the playback time of 16 seconds shown in FIG.
前述のとおり、図6に示した特願2019-12836号公報記載の発明の例では、切替操作時に回線スループットが低下すると、受信バッファ20に格納されたセグメントの数が低下する。また、切り替え前後の動画A,Bが交互に再生されて乱れるという不体裁が発生する可能性がある。
As mentioned above, in the example of the invention described in Japanese Patent Application Publication No. 2019-12836 shown in FIG. 6, if the line throughput decreases during the switching operation, the number of segments stored in the receiving
これに対し、本発明の実施形態では、受信バッファ20に空きがある場合に、動画Bのセグメントは、受信バッファ20の最前領域から最後領域へ向けてその空きが埋まるように追加される。また、受信バッファ20に空きがなく、動画Aが格納されている場合に、動画Bのセグメントは、動画Aの最後部から最前部へ向けて順番に上書きされる。このため、切替操作時に回線スループットが低下した場合であっても、受信バッファ20は、動画Bのセグメントが連続した領域に格納された状態となる。
In contrast, in an embodiment of the present invention, when there is free space in the receiving
したがって、本発明の実施形態では、受信バッファ20に格納されたセグメントの数の低下を抑えることができ、動画A,Bが交互に再生されて乱れるという不体裁の発生を防止することができる。
Therefore, in the embodiment of the present invention, it is possible to suppress a decrease in the number of segments stored in the
〔切替操作時の他の動作例〕
次に、切替操作時の他の動作例について説明する。図9は、従来技術において、ケース2の場合のセグメントの変化及び動画Bの切替再生タイミングを説明する図である。図10は、特願2019-12836号公報記載の発明において、ケース2の場合のセグメントの変化及び動画Bの切替再生タイミングを説明する図である。図11は、本発明の実施形態において、ケース2の場合のセグメントの変化及び動画Bの切替再生タイミングを説明する図である。
[Other operation examples during switching operation]
Next, another example of operation during the switching operation will be described. FIG. 9 is a diagram illustrating changes in segments and switching playback timing of moving image B in
図9、図10及び図11において、横軸は再生時刻(秒)を示し、縦軸は受信バッファ時間(秒)を示す。細い実線で囲まれたセグメントは、動画Aのセグメントの動画データを示し、太い実線で囲まれたセグメントは、動画Bのセグメントの動画データを示す。 In FIGS. 9, 10, and 11, the horizontal axis indicates playback time (seconds), and the vertical axis indicates reception buffer time (seconds). Segments surrounded by thin solid lines indicate video data of segments of video A, and segments surrounded by thick solid lines indicate video data of segments of video B.
ケース2は、1セグメント分の動画時間を4秒、受信バッファ時間を32秒、動画ビットレートを1Mビット/秒、回線スループットを4Mビット/秒の条件を示している。図5~図8に示したケース1とこのケース2とを比較すると、受信バッファ時間が異なり、その他の条件は同じである。ケース1の受信バッファ時間は16秒であるのに対し、ケース2の受信バッファ時間は32秒である。
再生時刻0秒からセグメントの取得が開始され、セグメントが受信バッファ時間32秒分取得されたときに、動画デコーダ14による再生が開始される。動画デコーダ14が動画を再生する際には、1セグメント分の動画データが受信バッファから瞬時に読み出される。
The acquisition of segments starts from the playback time of 0 seconds, and when 32 seconds worth of segments have been acquired, which is the reception buffer time, playback by the
ケース2の条件から、ケース1の場合と同様に、サーバ2から1セグメント分の動画取得時間は、4秒×(1Mビット/秒)/(4Mビット/秒)=1秒となる。動画再生のシナリオは、再生時刻16秒のタイミングで、動画Aから動画Bへの切替操作が行われるものとする。
From the conditions of
図9を参照して、従来技術では、切替操作が行われると、受信バッファ20に格納されている動画Aの全てのセグメントの再生が完了した後に、動画Bの再生が行われる。
Referring to FIG. 9, in the prior art, when a switching operation is performed, video B is played back after all segments of video A stored in
このため、従来技術の場合、動画Aから動画Bへの切替再生のタイミングは、再生時刻48秒となり、動画Aから動画Bへの切替時間は、32秒(48-16=32)となる。 Therefore, in the case of conventional technology, the timing of switching playback from video A to video B is the playback time of 48 seconds, and the switching time from video A to video B is 32 seconds (48-16=32).
また、図10を参照して、特願2019-12836号公報記載の発明では、切替操作が行われると、ダウンロード予測時間に基づいて動画Bの上書領域(上書きするセグメント番号)が決定され、動画Bがその上書領域から上書きされる。 Further, with reference to FIG. 10, in the invention described in Japanese Patent Application No. 2019-12836, when a switching operation is performed, the overwriting area (segment number to be overwritten) of video B is determined based on the predicted download time, Video B is overwritten from the overwrite area.
このため、特願2019-12836号公報記載の発明の場合、動画Aから動画Bへの切替再生のタイミングは、再生時刻24秒となる。そして、動画Aから動画Bへの切替時間は8秒(24-16=8)となり、図9に示した従来技術の場合の切替時間32秒よりも短い。 Therefore, in the case of the invention described in Japanese Patent Application No. 2019-12836, the timing of switching playback from video A to video B is the playback time of 24 seconds. The switching time from moving image A to moving image B is 8 seconds (24-16=8), which is shorter than the switching time of 32 seconds in the case of the conventional technique shown in FIG.
また、図11を参照して、本発明の実施形態では、切替操作が行われると、受信バッファ20に空きがある場合、動画Bのセグメントは受信バッファ20に追加される。一方、受信バッファ20に空きがなく、かつ動画Aが格納されている場合、動画Bのセグメントは、動画Aの最後部の領域に上書きされる。
Further, referring to FIG. 11, in the embodiment of the present invention, when a switching operation is performed, the segments of video B are added to the
このため、本発明の実施形態の場合、動画Aから動画Bへの切替再生のタイミングは、再生時刻24秒となり、動画Aから動画Bへの切替時間は8秒(24-16=8)となる。これは、図10に示した特願2019-12836号公報記載の発明の場合と同じである。 Therefore, in the case of the embodiment of the present invention, the timing of switching playback from video A to video B is the playback time of 24 seconds, and the switching time from video A to video B is 8 seconds (24-16=8). Become. This is the same as the case of the invention described in Japanese Patent Application No. 2019-12836 shown in FIG.
しかしながら、前述のとおり、切替操作時に回線スループットが低下した場合、本発明の実施形態は、特願2019-12836号公報記載の発明よりも有効に機能する。すなわち、特願2019-12836号公報記載の発明では、受信バッファ20に格納されたセグメントの数が低下し、動画A,Bが交互に再生されて乱れるという不体裁が発生する。しかし、本発明の実施形態では、受信バッファ20に格納されたセグメントの数の低下を抑えることができ、不体裁の発生を防止することができる。
However, as described above, when the line throughput decreases during the switching operation, the embodiment of the present invention functions more effectively than the invention described in Japanese Patent Application No. 2019-12836. That is, in the invention described in Japanese Patent Application No. 2019-12836, the number of segments stored in the
以上のように、本発明の実施形態のユーザ端末1によれば、受信バッファ管理部13のセグメント要求部21は、ユーザにより切替操作に伴う動画切替要求を入力し、受信バッファ20に空きがあると判定した場合、受信バッファ20に格納された最後部の次のSG番号を取得SG番号saに決定し、SG要求(sa)を出力する。SG要求(sa)はサーバ2へ送信され、サーバ2から切替操作後の動画Bにおける取得SG番号saのセグメントが送信される。
As described above, according to the user terminal 1 of the embodiment of the present invention, the
受信バッファ管理部13の格納処理部22は、切替操作後の動画Bにおける取得SG番号saのセグメントを受信バッファ20に追加する。
The
セグメント要求部21は、受信バッファ20に空きがなく、切替操作前の動画Aのセグメントが格納されていると判定した場合、受信バッファ20に格納された切替操作前の動画Aのセグメントのうち最後部のセグメントのSG番号を取得SG番号sbに決定し、SG要求(sb)を出力する。SG要求(sb)はサーバ2へ送信され、サーバ2から切替操作後の動画Bにおける取得SG番号sbのセグメントが送信される。
If the
格納処理部22は、切替操作後の動画Bにおける取得SG番号sbのセグメントを、受信バッファ20に格納された切替操作前の動画Aにおける取得SG番号sbのセグメントの領域に上書きする。
The
セグメント要求部21は、受信バッファ20に切替操作前の動画Aのセグメントが格納されていないと判定した場合、通常時のセグメント取得処理へ移行する。
When the
これにより、切替操作時の受信バッファ20には、動画Bのセグメントが追加または上書きされるため、受信バッファ20に格納されたセグメントの数の低下を抑えることができると共に、動画Bが連続して格納されることとなる。
As a result, the segment of video B is added to or overwritten in the
したがって、動画Aを視聴しているユーザが切替操作を行ったときに、新たな動画Bの視聴開始までの待ち時間を短縮することができると共に、動画A,Bが交互に再生されて乱れるという不体裁の発生を防止し、一層安定した再生を実現することができる。 As a result, when a user watching video A performs a switching operation, the waiting time until the user can start watching the new video B can be shortened, and the awkwardness of videos A and B being played back alternately can be prevented, realizing more stable playback.
以上、実施形態を挙げて本発明を説明したが、本発明は前記実施形態に限定されるものではなく、その技術思想を逸脱しない範囲で種々変形可能である。例えば、前記実施形態では、セグメントを再生する順番を示すSG番号を用いてセグメントの位置を決定し、セグメントを取得する等の処理を行うようにしたが、SG番号の代わりに、セグメントの先頭を再生する時刻を示すタイムスタンプを用いるようにしてもよい。 Although the present invention has been described above with reference to the embodiments, the present invention is not limited to the embodiments described above, and can be modified in various ways without departing from the technical concept thereof. For example, in the embodiment described above, the position of the segment is determined using the SG number indicating the order in which the segment is played, and processing such as acquiring the segment is performed. A timestamp indicating the playback time may also be used.
尚、タイプスタンプはセグメント番号から以下の式にて求められる。タイムスタンプをTS、タイムスタンプの初期値をTS0、セグメント番号をSG、セグメント番号の初期値をSG0、セグメント長(セグメントの時間長)をSGTとする。
[式1]
TS=(SG-SG0)×SGT+TS0 ・・・(1)
Note that the timestamp is calculated from the segment number using the following formula. Assume that the time stamp is TS, the initial value of the time stamp is TS0, the segment number is SG, the initial value of the segment number is SG0, and the segment length (segment time length) is SGT.
[Formula 1]
TS=(SG-SG0)×SGT+TS0...(1)
具体的には、端末装置1に備えた受信バッファ管理部13のセグメント要求部21は、動画切替要求を入力し、受信バッファ20に空きがあると判定した場合、受信バッファ20に格納された最後部のセグメントのタイムスタンプを特定する。そして、セグメント要求部21は、特定したタイムスタンプにセグメント長SGTを加算することで、その次のセグメント(空き領域に格納されるべきセグメント)のタイムスタンプを求める。
Specifically, when the
セグメント要求部21は、切替操作後の動画Bにおける加算結果のタイムスタンプのセグメントを取得するためのSG要求をサーバ2へ出力する。これにより、サーバ2から端末装置1へ、当該SG要求に対応するセグメントが送信される。
The
格納処理部22は、受信した当該SG要求に対応するセグメント、すなわち切替操作後の動画Bにおける前記タイムスタンプのセグメントを受信バッファ20に追加する。
The
セグメント要求部21は、受信バッファ20に空きがなく、切替操作前の動画Aのセグメントが格納されていると判定した場合、受信バッファ20に格納された切替操作前の動画Aのセグメントのうち最後部のセグメントのタイムスタンプを特定する。そして、セグメント要求部21は、切替操作後の動画Bにおける特定したタイムスタンプのセグメントを取得するためのSG要求をサーバ2へ出力する。これにより、サーバ2から端末装置1へ、当該SG要求に対応するセグメントが送信される。
If the
格納処理部22は、受信した当該SG要求に対応するセグメント、すなわち切替操作後の動画Bにおける前記タイムスタンプのセグメントを、受信バッファ20に格納された切替操作前の動画Aにおける前記タイムスタンプのセグメントの領域に上書きする。
The
尚、本発明の実施形態によるユーザ端末1のハードウェア構成としては、通常のコンピュータを使用することができる。ユーザ端末1は、CPU、RAM等の揮発性の記憶媒体、ROM等の不揮発性の記憶媒体、及びインターフェース等を備えたコンピュータによって構成される。 In addition, a normal computer can be used as the hardware configuration of the user terminal 1 according to the embodiment of the present invention. The user terminal 1 is configured by a computer equipped with a CPU, a volatile storage medium such as RAM, a non-volatile storage medium such as ROM, an interface, etc.
ユーザ端末1に備えた通信インターフェース10、OS11、WEBブラウザ12、受信バッファ管理部13、動画デコーダ14及び表示部15の各機能は、これらの機能を記述したプログラムをCPUに実行させることによりそれぞれ実現される。また、受信バッファ管理部13について、受信バッファ20、セグメント要求部21及び格納処理部22の各機能は、これらの機能を記述したプログラムをCPUに実行させることによりそれぞれ実現される。
The functions of the
これらのプログラムは、前記記憶媒体に格納されており、CPUに読み出されて実行される。また、これらのプログラムは、磁気ディスク(フロッピー(登録商標)ディスク、ハードディスク等)、光ディスク(CD-ROM、DVD等)、半導体メモリ等の記憶媒体に格納して頒布することもでき、ネットワークを介して送受信することもできる。 These programs are stored in the storage medium, and are read and executed by the CPU. Additionally, these programs can be stored and distributed in storage media such as magnetic disks (floppy (registered trademark) disks, hard disks, etc.), optical disks (CD-ROMs, DVDs, etc.), semiconductor memories, etc., and can be distributed via networks. You can also send and receive messages.
1 ユーザ端末
2 サーバ
3 インターネット
4 ストレージ
10 通信インターフェース
11 OS(オペレーティングシステム)
12 WEBブラウザ
13 受信バッファ管理部
14 動画デコーダ
15 表示部
20 受信バッファ
21 セグメント要求部
22 格納処理部
A,B 動画
sa,sb 取得SG番号
1
12
Claims (3)
前記インターネットを介して受信したそれぞれの前記セグメントを、受信バッファの最前領域から最後領域まで格納する受信バッファ管理部と、
前記受信バッファの前記最前領域に格納された前記セグメントを読み出し、当該セグメントをデコードする動画デコーダと、を備え、
前記受信バッファ管理部は、
ユーザにより新たな前記動画を再生するための切替操作が行われると、
前記受信バッファに前記セグメントを格納するための空き領域がある場合、新たな前記動画の切替後セグメントを取得し、当該切替後セグメントを前記受信バッファの前記空き領域に追加し、
前記空き領域がなく、かつ前記受信バッファに再生中の前記動画の切替前セグメントが格納されている場合、前記受信バッファに格納された全ての前記切替前セグメントのうち最後に読み出される前記切替前セグメントを最後部の前記切替前セグメントとして特定し、新たな前記動画の切替後セグメントを取得し、当該切替後セグメントを、前記受信バッファにおける前記最後部の前記切替前セグメントが格納された領域に上書きする、ことを特徴とするユーザ端末。 A user terminal that receives a segment of a video distributed from a server via the Internet, buffers and reads the segment, decodes and plays the segment,
a reception buffer management unit that stores each of the segments received via the Internet from the foremost area to the last area of the reception buffer;
a video decoder that reads the segment stored in the foremost area of the reception buffer and decodes the segment;
The reception buffer management unit includes:
When the user performs a switching operation to play the new video,
If the receive buffer has a free space to store the segment, obtain a new post-switch segment of the video, and add the post-switch segment to the free space of the receive buffer;
If there is no free space and a pre-switching segment of the moving image being played is stored in the receiving buffer, the pre-switching segment is read out last among all the pre-switching segments stored in the receiving buffer. is specified as the last pre-switching segment, obtains a new post-switching segment of the moving image, and overwrites the post-switching segment in the area in the reception buffer where the last pre-switching segment is stored. , a user terminal characterized by:
前記受信バッファ管理部は、セグメント要求部及び格納処理部を備え、
前記ユーザにより前記切替操作が行われると、
前記セグメント要求部は、
前記受信バッファに前記セグメントを格納するための前記空き領域があるかないかを判定し、前記空き領域があると判定した場合、前記受信バッファに格納された全ての前記セグメントのうち前記最後部を特定し、当該最後部の次のセグメントにおけるセグメント番号またはタイムスタンプを特定し、当該セグメント番号または当該タイムスタンプに対応する前記切替後セグメントを取得するためのセグメント要求として、第1セグメント要求を生成し、
前記格納処理部は、
前記セグメント要求部により生成された前記第1セグメント要求に対応する前記切替後セグメントを取得し、当該切替後セグメントを前記受信バッファの前記空き領域に追加し、
前記セグメント要求部は、
前記空き領域が無いと判定した場合、前記受信バッファに前記切替前セグメントが格納されているか否かを判定し、前記切替前セグメントが格納されていると判定した場合、前記受信バッファに格納された全ての前記切替前セグメントのうち前記最後部を特定し、当該最後部のセグメントにおけるセグメント番号またはタイムスタンプを特定し、当該セグメント番号または当該タイムスタンプに対応する前記切替後セグメントを取得するためのセグメント要求として、第2セグメント要求を生成し、
前記格納処理部は、
前記セグメント要求部により生成された前記第2セグメント要求に対応する前記切替後セグメントを取得し、当該切替後セグメントを、前記受信バッファの前記最後部の領域に上書きする、ことを特徴とするユーザ端末。 The user terminal according to claim 1,
The reception buffer management unit includes a segment request unit and a storage processing unit,
When the switching operation is performed by the user,
The segment requesting unit includes:
Determining whether or not the receiving buffer has the free space for storing the segment, and if it is determined that there is the free space, identifying the last part of all the segments stored in the receiving buffer. and specifying a segment number or a timestamp in the next segment of the last segment, and generating a first segment request as a segment request for acquiring the post-switching segment corresponding to the segment number or the timestamp;
The storage processing unit includes:
acquiring the post-switching segment corresponding to the first segment request generated by the segment requesting unit, and adding the post-switching segment to the free area of the reception buffer;
The segment requesting unit includes:
If it is determined that there is no free space, it is determined whether the pre-switching segment is stored in the receiving buffer, and if it is determined that the pre-switching segment is stored, the segment is stored in the receiving buffer. A segment for identifying the last part of all the pre-switching segments, identifying a segment number or a timestamp in the last segment, and obtaining the post-switching segment corresponding to the segment number or timestamp. generating a second segment request as a request;
The storage processing unit includes:
The user terminal obtains the post-switching segment corresponding to the second segment request generated by the segment requesting unit, and overwrites the post-switching segment in the rearmost area of the reception buffer. .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020053275A JP7458848B2 (en) | 2020-03-24 | 2020-03-24 | User terminal and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020053275A JP7458848B2 (en) | 2020-03-24 | 2020-03-24 | User terminal and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2021153270A JP2021153270A (en) | 2021-09-30 |
JP7458848B2 true JP7458848B2 (en) | 2024-04-01 |
Family
ID=77886764
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020053275A Active JP7458848B2 (en) | 2020-03-24 | 2020-03-24 | User terminal and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7458848B2 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016136676A (en) | 2015-01-23 | 2016-07-28 | 日本放送協会 | Receiver, buffer management method, and program |
JP2016208072A (en) | 2015-04-15 | 2016-12-08 | 西日本電信電話株式会社 | Reception terminal and video acquisition method |
JP2017108217A (en) | 2015-12-07 | 2017-06-15 | 日本放送協会 | Reception device, reproduction time control method, and program |
WO2018139284A1 (en) | 2017-01-30 | 2018-08-02 | ソニー株式会社 | Image processing device and method, and program |
JP2020123765A (en) | 2019-01-29 | 2020-08-13 | 日本放送協会 | User terminal and program |
-
2020
- 2020-03-24 JP JP2020053275A patent/JP7458848B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016136676A (en) | 2015-01-23 | 2016-07-28 | 日本放送協会 | Receiver, buffer management method, and program |
JP2016208072A (en) | 2015-04-15 | 2016-12-08 | 西日本電信電話株式会社 | Reception terminal and video acquisition method |
JP2017108217A (en) | 2015-12-07 | 2017-06-15 | 日本放送協会 | Reception device, reproduction time control method, and program |
WO2018139284A1 (en) | 2017-01-30 | 2018-08-02 | ソニー株式会社 | Image processing device and method, and program |
JP2020123765A (en) | 2019-01-29 | 2020-08-13 | 日本放送協会 | User terminal and program |
Also Published As
Publication number | Publication date |
---|---|
JP2021153270A (en) | 2021-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109714634B (en) | Decoding synchronization method, device and equipment for live data stream | |
KR101737325B1 (en) | Method and apparatus for reducing decreasing of qualitly of experience in a multimedia system | |
US9558282B2 (en) | Playlists for real-time or near real-time streaming | |
US6496980B1 (en) | Method of providing replay on demand for streaming digital multimedia | |
US8639832B2 (en) | Variant streams for real-time or near real-time streaming to provide failover protection | |
CN107690073B (en) | Video live broadcast method and video live broadcast server | |
WO2013008867A1 (en) | Transmission device, method for controlling transmission device, control program, and recording medium | |
US20200267423A1 (en) | Method for initiating a transmission of a streaming content delivered to a client device and access point for implementing this method | |
CN111225171B (en) | Video recording method, device, terminal equipment and computer storage medium | |
US9516357B2 (en) | Recording variable-quality content stream | |
US7809680B2 (en) | Contents distribution system with integrated recording rights control | |
JP4680268B2 (en) | Distribution device and playback device | |
JP4315914B2 (en) | Image reproducing apparatus and image reproducing method | |
KR20110044493A (en) | Method and apparatus for storing data in digital broadcasting system providing video on demand service | |
US20220256236A1 (en) | Latency management for content delivery | |
JP7458848B2 (en) | User terminal and program | |
US20150296254A1 (en) | A method, apparatus and software for inserting ancillary content | |
JP2004104704A (en) | Video reproducing apparatus, video reproducing method, and program | |
WO2018139283A1 (en) | Image processing device, method and program | |
JP7195163B2 (en) | User terminal and program | |
JP2002094560A (en) | Method for providing information | |
JP4888955B2 (en) | Content delivery method and apparatus | |
JP2012222530A (en) | Receiving device and method, and program | |
JP5144771B2 (en) | Image processing apparatus, image reproducing apparatus, image recording apparatus, image processing method, image reproducing method, and image recording method | |
JP4356225B2 (en) | Information providing method, information providing apparatus, and information recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230201 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240209 |
|
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: 20240222 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240319 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7458848 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |