Geometrically determining the leaky bucket parameters for video streaming over constant bit-rate channels

https://doi.org/10.1016/j.image.2004.11.005Get rights and content

Abstract

For streaming of pre-encoded bitstreams over constant bit rate (CBR) channels, the channel bandwidth, the receiver buffer capacity as well as the latency requirement vary greatly from application to application. In this paper, we attempt to determine the minimum buffer size and the minimum start-up delay required for streaming a pre-encoded bitstream over CBR channels at any specific bit rate. The proposed method employs geometric operations to derive the optimal determination for low or high bit rates and sub-optimal determination for medium bit rates. The algorithm developed requires little extra information from the encoder and is easy to implement. Our algorithm is implemented in a H.264/AVC video encoder and its performance is compared with that of H.264/AVC hypothetical reference decoder. Our approach provides new theoretical insight and an excellent solution for determining the leaky bucket parameters for video streaming over CBR channels.

Introduction

In most video encoders, bits used to encode the individual video frames fluctuate with varying frame complexities. An encoder buffer is usually used to smooth out the bit rate variation so that the encoded bitstream is suitable for transmission over channels of limited bandwidth. A large buffer size allows large bit rate variation and is helpful for the video quality.1 However, long start-up delay and large decoder buffer may be required in this case for video streaming. This phenomenon prevents us from using arbitrary encoder buffer size even if the available buffer capacity of the video encoder may be infinite.

The video buffering verifier (VBV) [1], [2] mechanism in MPEG video coding standards and the hypothetical reference decoder (HRD) [3], [9] model in H.264/AVC [10] address the relation between buffer size, channel bandwidth and start-up delay. A VBV/HRD-compliant encoder guarantees that the bitstream can be delivered to a receiver with certain buffer capacity at the given transmission bit rate and then decoded with the given start-up delay. A closely related concept is the leaky bucket model [4], which is a direct metaphor of the encoder buffer and can be characterized by (R,B,Γ), where B is encoder buffer size, R is channel bandwidth, and Γ is start-up encoder buffer delay, which means the bit transmission from the encoder buffer starts Γ seconds after the bits for the first frame are pushed into the buffer.

An encoder usually creates a bitstream according to a specified leaky bucket. For streaming of a bitstream encoded using leaky bucket (R,B,Γ), if the channel bandwidth, the buffer capacity and the delay requirement for the video application happen to be equal to those specified by the given leaky bucket, there will be not any problem in delivering and decoding the bitstream. However, if the available channel bandwidth, decoder buffer size or the expected delay is smaller than that specified by the leaky bucket, problem will occur if we do not adjust the transmission parameters appropriately.

Thus, it is necessary to determine the minimum resource (leaky bucket parameters) required for a video streaming system. In [8], a generalized hypothetical reference decoder (GHRD) for H.264/AVC is presented to tackle this problem. The idea of the GHRD is as follows: given a number of leaky buckets that are known to contain the bitstream, the decoder can determine which leaky bucket to use if the bit rate is known. If the available channel bandwidth equals the bit rate specified by any of the leaky buckets, the leaky bucket is used directly for streaming. Otherwise, a linearly interpolated or extrapolated leaky bucket that safely contains the bitstream is used.

This paper proposes a simple but effective algorithm that geometrically determine the optimal or sub-optimal leak bucket parameters for video streaming over constant bit rate (CBR) channels at any specific bit rates, based on our previous work [6]. The advantages of the proposed algorithm include: (1) achieving optimal determination for low and high bit rates, and sub-optimal determination for medium bit rates; (2) being easy to implement; (3) requiring little extra information from the encoder; (4) providing new theoretical insight on determining parameters for video streaming.

The rest of this paper is organized as follows. Section 2 introduces the leaky bucket model and the connection between the encoder buffer and decoder buffer in a video streaming system. Section 3 describes the proposed algorithm. Section 4 presents the experimental results. Section 5 concludes the paper.

Section snippets

The leaky bucket model

A video streaming system represented by a virtual encoder, a virtual transmission channel and a virtual decoder is graphically illustrated in Fig. 1, where Be is the encoder buffer size and Bd is the decoder buffer size. The video streaming process is as follows: the virtual encoder reads the bits b0 for frame f0 from the pre-encoded bitstream and pushes them into the encoder buffer instantaneously at time instant E0. After a start-up encoder buffer delay Γe, bits in the encoder buffer are then

Determination of the leaky bucket parameters

The virtual encoding process using (R,B,Γ) at a fixed frame rate F is graphically illustrated in Fig. 2, where N is the length of the video sequence and xdly is the time instant when transmission starts. In the figure, the step-wise curve denotes the amount of bits written into the buffer and is referred to as bits-written curve; the lowest curve (straight when no underflow) denotes the amount of bits transmitted over the channel and is referred to as the bits-transmitted curve; the curve on

Experimental results and comparison

The proposed algorithm has been implemented in a H.264/AVC reference video encoder version JM6.1e [5]. Three QCIF video sequences, News, Foreman and Container, are tested. For all three sequences, the first 300 frames are encoded at 30 frames per second. The first frame is encoded as “I” frame and the rest of the frames are encoded as “P” frames. The other test conditions are as follows: MVresolution=14pel,RDO=OFF,searchrange=16 and referenceframes=1. Since all three tests demonstrate good

Conclusion

A new approach has been proposed to determine the minimum buffer size, minimum start-up delay and minimum bit rate required for streaming a pre-encoded bitstream over CBR channels at any bit rate. The proposed approach provides new theoretical insight for the problem. It is shown that the problem to determine the leaky bucket parameters for video streaming can be solved using simple geometric manipulations. The proposed algorithm requires little extra information from the encoding process since

References (10)

  • Annex C—Video buffering verifier, in: Information Technology—Generic Coding of Moving Pictures and Associated Audio...
  • ISO/IEC JTC1/SC29/WG11 MPEG2001/N4507, Levels for MPEG-4 Visual Profiles, Pattaya, Thailand, December...
  • Annex B—Hypothetical reference decoder, in: Video Coding for Low Bit Rate Communication, ITU-T Recommendation H.263,...
  • Joint Video Team (JVT) of ITU-T VCEG and ISO/IEC MPEG, Hypothetical reference decoder, Doc. JVT-B118, Pattaya,...
  • Joint Video Team (JVT) of ITU-T VCEG and ISO/IEC MPEG, JVT Test Model JM, Doc. JVT-D147, Klagenfurt, Austria, July...
There are more references available in the full text version of this article.

Cited by (8)

View all citing articles on Scopus
View full text