Engineering Project
Engineering Project
Engineering Project
Abstract - Rate control plays an important role in video coding, control (SRC) is designed to meet both constraints (low-
although its not a normative tool for any video coding standard. latency and buffer constraints). A variable frame rate approach
In video communications, rate control must ensure the coded can be used to achieve the target bit rate. The similar
bitstream can be transmitted successfully and make full use of
technique can also extend at slice or macroblock layers [5-7].
the limited bandwidth. As a consequence, a proper rate control
The two rate control methods for MPEG-4 that are used in this
scheme is usually recommended by a standard during the
development, e.g. test model number 5 (TMN 5), TMN 8 and
work are as follows:
TMN 12 for H.263, and Verification Model 8 (VM8) for MPEG- OFFLINE: In this option, the bit rate control takes the form of
4, etc. Some work on rate control has been done for H.264/AVC changing the quantization levels over the frames encoded after
too. In the contribution, a rate control scheme based on VM8 is the first I- or P-frame. There will be no frame skipping in this
adopted by H.264/AVC test model. The performance evaluation mode.
suggested in this work will enable the user analyzing ONLINE: In this mode, the bit rate control is accomplished by
experimental results of different rate control methods and how adaptively changing the quantization values at the macroblock
optimum rate-distortion performance for H.263 and MPEG-4
level. Frame skipping is allowed in this mode.
video codec achieve.
Keywords Bit rate, coefficient of Correlation, Peak Signal to II. FUNCTION OF RATE CONTROL
Nose Ratio, Quantization Parameter and Rate control.
Rate control is that the encoder estimates the video bitrate
I. INTRODUCTION based on the network available bandwidth, ensures the coded
bitstream can be transmitted successfully and makes full use
The bit rate resulting from the DCT-based coding algorithm of the limited bandwidth. In other words, it is adjusting video
fluctuates according to the nature of the video sequence. output bits according to the channel is fixed or variable
Variations in the speed of moving objects, their size and transmission rate [8-11].
texture are the main cause for bit rate variation. The objective Now the core part of many video coding standards is the
of a rate controller is not only to achieve a constant bit rate for motion compensation and the DCT transform coding based on
transmission over a circuit switched network but also to block. The number of the encoder output bits of each frame is
maintain good quality of the reconstructed videos. A changing with the active input image. Therefore, the bitstream
transmission buffer is usually needed to smooth out the bit has the inherent characteristics of changing. If the coding
rate fluctuations, which are inherent in the interframe coding parameters remain unchanged in the compression process, the
scheme [1-4].The H.263 codec used in this work simulates bits of the consumption of different frame will be significantly
three rate control methods different. Due to the actual network bandwidth and storage
C1: Off line medium, if we have nothing to do with the bitstream, the
C2: Test model no.5 (TMN-5) video communication system is likely to go abnormally.
C3: Test model no.8 (TMN-8) Generally, using a buffer makes the output bitstream smooth.
Bit rate control and buffer regulation is an important issue for The buffer capacity has certain limitation (If buffer is too big,
constant bit rate (CBR) application. The scalable bit rate the propagation delay of real-time communication is longer
1
Input Frame
which is difficult to be accepted). In order to prevent buffer
+ DCT Quantizer VLC
Output
overflow and underflow [5], rate control must be used in -
encoder.
III. OVERVIEW OF RATE CONTROL Inverse
Quantizer
Because of transmission bandwidth and storage space
limitation, video applications for higher compression ratio,
nondestructive coding can provide the compression ratio but IDCT
cannot satisfy the demand of actual video applications, but if
we can accept some degree of distortion, high compression + +
ME/MC
ratio is easy to get. Human visual system for high frequency
signals change not sensitive information loss, high frequency
Memory
part does not reduce subjective visual quality. Video coding
algorithm of mainstream DCT quantization method is adopted Fig.1: Block diagram of H.263 coder
to eliminate video signals, the visual physiology redundant Where, DCT - Discrete Cosine Transform VLC Variable Length Coding
than lossless higher compression ratio and will not bring the ME/MC- Motion Estimation/Motion Compensation
i( x, y) e( x, y)
x 0 y 0
COC
X 1 Y 1 X 1 Y 1 (1)
i( x, y) 2
x 0 y 0
x 0 y 0
e( x, y ) 2
Fig.4: Snapshot of Angiography video sequence, frame 30
The PSNR for each frame is defined as : TABLE-I: DETAIL OF THE VIDEO SEQUENCE MOBILE
255 2 255
PSNR 10 log 10 ( ) 20 log 10 ( ) ( for each Y ,U ,V ) S.No. Detail of Sequence
MSE MSE 1 Name Mobile
Where MSE is Mean square error
2 Size CIF (352x288)
Table 5 gives the summary of results obtained in this work
3 Total size[byte] 23612683
regarding the performance of MPEG-4 codec for various rate
4 Frames 300
control methods at 14.4 and 100 kbps target bit rates. It is
5 Playing time[s] 10.03Min
observed that online & offline rate control methods have
6 frame size[byte] 79
almost same performance as far PSNR is concerned. An 7 Max frame size[byte] 118449
Offline control method has less compression ratio and high bit 8 Mean frame size[byte] 78447.45
rate in comparison to online method. Online control (with 9 Mean bit rate[bit/s] 18827388.44
frame skipping) provides lowest bit rate & compression ratio. 10 Peak bit rate[bit/s] 31586400
Video coding using less number of frames can be used in 11 Mean I-frames[byte] 110923.58
applications such as video conferencing & video telephony. 12 Mean P-frames[byte] 81525.07
When rate control is applied and target bit rate is reduced, it is 13 Mean B-frames[byte] 73071.45
observed that the PSNR, bit rate and storage requirement also
reduces [4]. No control method corresponds to fixed
quantization parameter (Q=13) and independent of the target
bit-rate. It may not be suited for CBR applications.
X Y
1
MSE
XY
[i( x, y) e( x, y)]
x 1 y 1
2
(3)
Y-PSNR(dB)
120.7 0.99111 29.87 0.99107 29.59 0.99109 29.72
36
C1
203.47 0.99848 32.58 0.9985 32.62 0.99857 32.75
34
C2
304.26 0.99971 34.31 0.9997 34.29 0.99978 34.56
32 C3
404.32 1.00004 35.63 1.00001 35.49 1.00006 35.78
30
507.65 1.00029 36.71 1.00023 36.22 1.00033 36.87
28
607.9 1.00066 37.51 1.00052 37.1 1.0007 37.7 120.7 203.47 304.26 404.32 507.65 607.9 710.06 810.02 913.65 1018.13
VIII.
ANALYSIS OF EXPERIMENTAL
RESULTS
TABLE III: MOBILE VIDEO SEQUENCE SIMULATION RESULTS FOR MPEG-4 VIDEO CODEC
Table 1 describe the Details of the Video sequence Mobile
(a)No Table 2 gives the Simulation results for C1, C2 and C3 for
(c) Bit rate
Contr (b) Bit (d) Bit rate video sequence Angiography and Table 3 gives simulation
Target Control
Various ol Rate Control results for MPEG-4 video codec.
bit rate Online(with
Parameter over Control Online(without
(Kbps) frame The Angiography video sequence has 59 frames, with fixed
bit Offline frame skipping
skipping) background texture and different moving objects. Since
rate
Average performance of rate control methods C1, C2, & C3 depend
48.44 34.12 34.55 34.54
PSNR Y (dB) upon speed, size and texture.
Average C3 giving the best performance among all the three rate
49.78 38.15 38.83 39.12
PSNR U (dB) control methods, and C2 is giving worst quality. There is
Average improvement of 0.13-1.54dB in C3 over C1 and C2 and 0.02-
49.88 38.35 38.87 39.41
PSNR V (dB) 1.32dB in C1 over C2.
100
Bit rate
98.95 99.5 99.9 99.9
(kb/sec)
IX. CONCLUSION
Compression
7:01 95:01:00 95:01:00 95:01:00
ratio
The performance of H.263 codec is analyze and evaluated
Average
44.44 27.85 27.83 27.49 with rate control methods. Effect of different rate control
PSNR Y (dB)
method on different video sequence is shown in this Paper
Average The figure 6 compares the performance of H.263 codec with
45.78 33.7 34.75 33.68
PSNR U (dB) three rate control methods for video sequence Angiography.
Average
46.36 34.15 35.17 33.95 Since no rate control method gives best performance for all
PSNR V (dB) sequences, hence the use of particular method very much
14.4
Bit rate 1478. depend on the nature of video sequence.
44 15.7 27
(kb/sec) 3
Also In this paper we have investigated the effect of rate
Compression
7:01 205:01:00 556:01:00 304:01:00 control methods on the rate-distortion performance of MPEG-
Ratio
4 video codec. It is observed that for the constant bit-rate
(CBR) applications, both on-line and off-line rate control
methods gives the obtained bit-rate very close to the target bit-
rate for medium and high target bit rates. However, for low bit
rate applications only online rate control method results in the 21. http:\\www.ubvideo.com
actual bit-rate being close to the target bit rate. Further it is 22. D.Marpe, T.Wiegand and G.J.Sullivan, The H.264/MPEG Advance
video coding standard and its applications, IEEE Communications
observed that the use of the deblocking filter at the decoder Magazine, vol.44, no.8, pp.134-144, Aug.2006.
improves the subjective quality of the video codec at the 23. V. Lappalainen, A. Hallapuro, T. D. Hmlinen,"Complexity of
Optimized H.26L Video Decoder Implementation," IEEE Trans. Circ
expense of computational complexity. There are many other and Syst. for Video Technol., vol. 13, pp. 717-725, July 2003.
parameters and functionalities in MPEG-4 which are aimed to 24. Information Technology Coding of Audio-Visual Objects Part 10:
be investigated in future. Advanced Video Coding, ISO/IEC International Standard 14496-10,
June 2003.
25. Compressed video communications, by Abdul H. Sadka,published by
REFERENCES John Wiley and sons,2002.
26. Manjanaik.N, Manjunath.R Intra Frame Coding for Advanced Video
1. Video coding for low bit rate communicationITU-T, Recommendation Coding Standard to Control PSNR and Bitrate Using Gaussian Pulse
H.263, ver.1, 1995. International Journal of Emerging Science and Engineering (IJESE)
ISSN: 23196378, Volume-2, Issue-5, March 2014.
2. http://spmg.ece.ubc.co/h.263pleas/h.263 plus.html
27. A. M. Tekalp, Digital Video Processing, Prentice Hall, 1995.
3. ITU-T H.263 Encoder, version 2,Signal Processing and Multimedia
Group, University of British Columbia, Canada. 28. J. Ribas-Conklin, S. Lei. Rate control in DCT video coding for low-
delay communication.IEEE Trans. Circuit Syst. Video Technol. Feb
4. Frank H. P. Fitzek MPEG4 and H.263 Video Traces for Network 1999, 9(1):172-185 proposed draft of adaptive rate control. JVT H017.
Performance Evaluation, IEEE Transactions on Circuits and Systems , 8`s Meeting: Geneva, 20-26. May, 2003.
Vol.2 (2001).
29. Ronda J, Eckert M, et al. Rate control and bit allocation for MPEG-4.
5. Y. Wang, J. Ostermann, Y. Q. Zhang, Video processing and IEEE Trans. Circuit Syst. Video Technol. 1999, 9(8): 1243-1258.
communications, Prentice Hall, New Jersey, 2001.
6. ITU-T H.263 Encoder, version 2,Signal Processing and Multimedia
Group, University of British Columbia, Canada.
7. ISO/IEC JTC/SC29/WGl 1.MPEG 97/M1931. Joint rate control for
multiple video objects based on quadratic rate-distortion model[s].
8. Brown, M., D. Bushmitch, K. Kerpez, D. Waring & Y. Wang, (2009)
Low-bit rate video codec parameter evaluation and optimization, in
Military Communications Conference, MILCOM 2009, IEEE, pp. 1-20.
9. Sandeep Narain, Syed Hasan Saeed MIMO System Performance
Evaluation for High Data Rate Wireless using Space time codes with
orthogonal structureIJMER Vol-4, Issue-6,Mar-2014.
10. Syed Hasan Saeed Yogendra Singh, Shailendra Kumar Implementation
of Switching System for High Speed Data Transmission using
VHDLIJETT Vol-11, Issue-3 pp: 114-117 2014.
11. http://www.ispreview.co.uk, Accessed 5/12/2013.
12. Kidwai Naimur Rahman, Alam M., Khan Ekram, Beg Rizwan,(2012),
"A Efficient memory no list Set partitioned embedded block (NLSK)
wavelet image coding algorithm for low memory devices", International
Journal of Signal Processing, Image Processing and Pattern Recognition
(IJSIP), SERSC, Korea, Vol. 5,No. 4, 2012 ,pp 93-106.
13. www.mobile.ecs.soton.ac.uk/peter/h263/h263.html.
14. http://www.acm.org/sigs/sigmm/mm97/papers/yu/paper.html.
15. Video coding for low bit rate communication, Int.
Telecommun.Union-Telecommun. (ITU-T), Recommendation H.263,
version 1,1995; version 2, 1998; version 3, 2000.
16. A. Garzelli A. Andreadis, G. Benelli and S. Susini, \FEC coding for
H.263compatible video transmission," in International Conference on
Image Processing, Santa Barbara, CA, Oct. 1997.
17. M.Ghanbari,Video Coding: an introduction to standard codes;IEE
press, London 1999.
18. P.Topiwala, G.sullivan, A.Joch, and F.Kossentini, Performance
evaluation of H.26L, TML8 vs. H.263++ and MPEG-4,ITU-T Q.6/SG6
(VCEG) Tech. Rep. N8, sept.2001.
19. Hung-Ju Lee, Ya-Qin Zhang. Scalable Rate Control for MPEG-4 Video.
IEEE Trans. Circuits and Systems for Video Technology2000, 10(6):
878-894.
20. ITU-T Recommendation H.264 and ISO/IEC 14496-10 (MPEG-4)
AVC,Advanced Video Coding for Generic Audiovisual Services,
Version 3: 2005.