Rate-Control in Video Codec Heejune AHN Embedded Communications Laboratory Seoul National Univ. of Technology Fall 2008 Last updated 2008. 11. 16.

Slides:



Advertisements
Similar presentations
MPEG-1 MUMT-614 Jan.23, 2002 Wes Hatch. Purpose of MPEG encoding To decrease data rate How? –two choices: could decrease sample rate, but this would cause.
Advertisements

LOGO Video Packet Selection and Scheduling for Multipath Streaming IEEE TRANSACTIONS ON MULTIMEDIA, VOL. 9, NO. 3, APRIL 2007 Dan Jurca, Student Member,
Onur G. Guleryuz & Ulas C.Kozat DoCoMo USA Labs, San Jose, CA 95110
Technion - IIT Dept. of Electrical Engineering Signal and Image Processing lab Transrating and Transcoding of Coded Video Signals David Malah Ran Bar-Sella.
Presented by Santhi Priya Eda Vinutha Rumale.  Introduction  Approaches  Video Streaming Traffic Model  QOS in WiMAX  Video Traffic Classification.
Efficient Bit Allocation and CTU level Rate Control for HEVC Picture Coding Symposium, 2013, IEEE Junjun Si, Siwei Ma, Wen Gao Insitute of Digital Media,
SCHOOL OF COMPUTING SCIENCE SIMON FRASER UNIVERSITY CMPT 820 : Error Mitigation Schaar and Chou, Multimedia over IP and Wireless Networks: Compression,
Recursive End-to-end Distortion Estimation with Model-based Cross-correlation Approximation Hua Yang, Kenneth Rose Signal Compression Lab University of.
Video Coding with Linear Compensation (VCLC) Arif Mahmood, Zartash Afzal Uzmi, Sohaib A Khan Department of Computer.
Optimum Bit Allocation and Rate Control for H.264/AVC Wu Yuan, Shouxun Lin, Yongdong Zhang, Wen Yuan, and Haiyong Luo CSVT 2006.
Analysis, Fast Algorithm, and VLSI Architecture Design for H
EE 685 presentation Optimization Flow Control, I: Basic Algorithm and Convergence By Steven Low and David Lapsley Asynchronous Distributed Algorithm Proof.
Efficient Fine Granularity Scalability Using Adaptive Leaky Factor Yunlong Gao and Lap-Pui Chau, Senior Member, IEEE IEEE TRANSACTIONS ON BROADCASTING,
Scalable Rate Control for MPEG-4 Video Hung-Ju Lee, Member, IEEE, Tihao Chiang, Senior Member, IEEE, and Ya-Qin Zhang, Fellow, IEEE IEEE TRANSACTIONS ON.
Rate-Distortion Optimized Motion Estimation for Error Resilient Video Coding Hua Yang and Kenneth Rose Signal Compression Lab ECE Department University.
A New Rate-Complexity-QP Algorithm for HEVC Intra-Picture Rate Control LING TIAN, YIMIN ZHOU, AND XIAOJUN CAO 2014 INTERNATIONAL CONFERENCE ON COMPUTING,
BY AMRUTA KULKARNI STUDENT ID : UNDER SUPERVISION OF DR. K.R. RAO Complexity Reduction Algorithm for Intra Mode Selection in H.264/AVC Video.
A Sequence-Based Rate Control Framework for Consistent Quality Real-Time Video Bo Xie and Wenjun Zeng CSVT 2006.
H.264/AVC for Wireless Applications Thomas Stockhammer, and Thomas Wiegand Institute for Communications Engineering, Munich University of Technology, Germany.
Xinqiao LiuRate constrained conditional replenishment1 Rate-Constrained Conditional Replenishment with Adaptive Change Detection Xinqiao Liu December 8,
Statistical Multiplexer of VBR video streams By Ofer Hadar Statistical Multiplexer of VBR video streams By Ofer Hadar.
Distributed Video Coding Bernd Girod, Anne Margot Aaron, Shantanu Rane, and David Rebollo-Monedero IEEE Proceedings 2005.
Guidelines for Selecting Practical MPEG Group of Pictures The IASTED International Conference on Internet and Multimedia Systems and Applications (EuroIMSA.
G. Valenzise *, M. Tagliasacchi *, S. Tubaro *, L. Piccarreta Picture Coding Symposium 2007 November 7-9, 2007 – Lisboa, Portugal * Dipartimento di Elettronica.
Variable Bit Rate Video Coding April 18, 2002 (Compressed Video over Networks: Chapter 9)
An Introduction to H.264/AVC and 3D Video Coding.
January 26, Nick Feamster Development of a Transcoding Algorithm from MPEG to H.263.
Introduction to Optimization (Part 1)
Normalised Least Mean-Square Adaptive Filtering
EE 5359 H.264 to VC 1 Transcoding Vidhya Vijayakumar Multimedia Processing Lab MSEE, University of Arlington Guided.
1 Motivation Video Communication over Heterogeneous Networks –Diverse client devices –Various network connection bandwidths Limitations of Scalable Video.
©2003/04 Alessandro Bogliolo Background Information theory Probability theory Algorithms.
Kai-Chao Yang Hierarchical Prediction Structures in H.264/AVC.
 Coding efficiency/Compression ratio:  The loss of information or distortion measure:
Frame by Frame Bit Allocation for Motion-Compensated Video Michael Ringenburg May 9, 2003.
1 Efficient Reference Frame Selector for H.264 Tien-Ying Kuo, Hsin-Ju Lu IEEE CSVT 2008.
Rate-distortion modeling of scalable video coders 指導教授:許子衡 教授 學生:王志嘉.
1 Optimal Multicast Smoothing of Streaming Video over an Internetwork S. Sen, D. Towsley, Z-L. Zhang, J. Dey
Quantization Heejune AHN Embedded Communications Laboratory Seoul National Univ. of Technology Fall 2013 Last updated
Physics 114: Exam 2 Review Lectures 11-16
Image and Video Compression Fundamentals Heejune AHN Embedded Communications Laboratory Seoul National Univ. of Technology Fall 2013 Last updated 2013.
Mohamed Hefeeda 1 School of Computing Science Simon Fraser University, Canada Optimal Partitioning of Fine-Grained Scalable Video Streams Mohamed Hefeeda.
Adaptive Multi-path Prediction for Error Resilient H.264 Coding Xiaosong Zhou, C.-C. Jay Kuo University of Southern California Multimedia Signal Processing.
Pravin Rajamoney CSE-581 Network Technology
Entropy Coding Heejune AHN Embedded Communications Laboratory Seoul National Univ. of Technology Fall 2013 Last updated
British Computer Society (BCS)
EE 6332, Spring, 2014 Wireless Communication Zhu Han Department of Electrical and Computer Engineering Class 11 Feb. 19 th, 2014.
Compression video overview 演講者:林崇元. Outline Introduction Fundamentals of video compression Picture type Signal quality measure Video encoder and decoder.
Minimizing Energy Consumption in Sensor Networks Using a Wakeup Radio Matthew J. Miller and Nitin H. Vaidya IEEE WCNC March 25, 2004.
Compression of Real-Time Cardiac MRI Video Sequences EE 368B Final Project December 8, 2000 Neal K. Bangerter and Julie C. Sabataitis.
Guillaume Laroche, Joel Jung, Beatrice Pesquet-Popescu CSVT
EE 685 presentation Optimization Flow Control, I: Basic Algorithm and Convergence By Steven Low and David Lapsley.
Scalable Video Coding and Transport Over Broad-band wireless networks Authors: D. Wu, Y. Hou, and Y.-Q. Zhang Source: Proceedings of the IEEE, Volume:
Advanced Technology Laboratories Practical Considerations for Smoothing Multimedia Traffic over Packet- Switched Networks Christos Tryfonas
Fast motion estimation and mode decision for H.264 video coding in packet loss environment Li Liu, Xinhua Zhuang Computer Science Department, University.
1 Source Coding and Compression Dr.-Ing. Khaled Shawky Hassan Room: C3-222, ext: 1204, Lecture 10 Rate-Distortion.
Video Compression—From Concepts to the H.264/AVC Standard
Global MINMAX Interframe Bit Allocation for Embedded Video Coding Michael Ringenburg Qualifying Project Presentation Advisors: Richard Ladner (CSE) and.
Encoding Stored Video for Streaming Applications IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY, VOL. 11, NO. 2, FEBRUARY 2001 I.-Ming.
Image Processing Architecture, © Oleh TretiakPage 1Lecture 4 ECE-C490 Winter 2004 Image Processing Architecture Lecture 4, 1/20/2004 Principles.
COMPARATIVE STUDY OF HEVC and H.264 INTRA FRAME CODING AND JPEG2000 BY Under the Guidance of Harshdeep Brahmasury Jain Dr. K. R. RAO ID MS Electrical.
Managing VBR Videos. The VBR Problem Constant quality Burstiness over multiple time scales Difference within and between scenes Frame structure of encoding.
Hongjie Zhu,Chao Zhang,Jianhua Lu Designing of Fountain Codes with Short Code-Length International Workshop on Signal Design and Its Applications in Communications,
Image Processing Architecture, © Oleh TretiakPage 1Lecture 5 ECEC 453 Image Processing Architecture Lecture 5, 1/22/2004 Rate-Distortion Theory,
Multi-Frame Motion Estimation and Mode Decision in H.264 Codec Shauli Rozen Amit Yedidia Supervised by Dr. Shlomo Greenberg Communication Systems Engineering.
Rate Control Evgeny Kaminsky.
Optimal Mode Selection For Robust Video Transmission
Video Compression - MPEG
Standards Presentation ECE 8873 – Data Compression and Modeling
Presentation transcript:

Rate-Control in Video Codec Heejune AHN Embedded Communications Laboratory Seoul National Univ. of Technology Fall 2008 Last updated

Heejune AHN: Image and Video Compressionp. 2 Agenda Basic Concepts Rate-Distortion Theory Practical Rate-Control Algorithms Other issues

Heejune AHN: Image and Video Compressionp Rate Control Concepts Key players coded video quality: (usu. Lower limits) bit-rate: some constraints (usu. upper limits) input video sequence: (noisy, degree of details, motion complexity) coding parameters (standards, coded mode, quantization step) Rate-optimization select the parameters for best video quality under constraints Poor algorithm : low quality, large fluctuation, dropped frames encoder Input Video Coded Video Bit-rate contraints network/ storage Rate Control Coding para. selection

Heejune AHN: Image and Video Compressionp. 4 Video stream Bit-rate characteristics Factors Encoding algorithms (intra/inter, forward/bi- direction, DCT/Wavelet, standards, etc) Input video Encoding parameters Q step, picture &mb mode, mv search area, GOP structures

Heejune AHN: Image and Video Compressionp. 5 Bit-rate Constraints Typical constraints parameters Average (mean) bit-rate (with duration) Peak (maximum) bit-rate Maximum variation in bit rate Prevention of underflow and overflows at encoder &decoder buffer Required latency Examples DVD video Total 4.7GB (play time 3 hours), peak rate => 3.5Mbps with some peak limits Video conferencing in ISDN or Circuit switching network Constant transmission bit-rate and delay => Based on buffer size, peak, average rate is calcuated Vide streaming over internet and packet switched network Network condition is variable. Should be adaptive rate control

Heejune AHN: Image and Video Compressionp Rate Control Theory Revisit to Quantization For Uniform distributed Input & Uniform quantizer Rate Distortion Theory General trends are same as above distortion ~ input signal variance and exp. desc.(bitrate) !!

Heejune AHN: Image and Video Compressionp. 7 Rate-Distortion Curve Rate decreases as distortion increases depends on input statistics (complex image => large variance) PSNR measure is 10log 10 (255 2 /D)

Heejune AHN: Image and Video Compressionp. 8 Rate-Distortion Optimization Motivation Which subject I have to study if I gets 90pts in Math, 50pts in Eng. ? Image coding Condition: we can use 10KBytes for one picture and each parts have different complexity (i.e, simpler and complex, variance) Which parts I have to assign more bits? simpler blocks More complex blocks

Heejune AHN: Image and Video Compressionp. 9 Lagrange multiplier Constrained Optimization Problem Minimize distortion with bits no larger than max bits Cannot use partial differential for minima and maxima Lagrange Multiplier technique Insert one more imaginary variable (called Lagrange) We have multivariable minimization problem

Heejune AHN: Image and Video Compressionp. 10 Side note: why not partial differential Simple example min subject to Solution By substitution minimum ½ at x = y = 1/sqrt(2) Wrong Solution With complex contraints, we cannot use substitution of variable method We cannot change partial different with ordinary difference If we check, x = y = 0 ? 1 1

Heejune AHN: Image and Video Compressionp. 11 An Example: Lagrange Multiplier Optimization Problem multiple independent Gaussian variables Lagrange multiplier optimization

Heejune AHN: Image and Video Compressionp. 12 Solution M 개를 모두 곱하고 M square 를 하면 Bit-allocation Lagrange value

Heejune AHN: Image and Video Compressionp. 13 RDO in Image Coding Bit allocation problem Modified Lagrange Method First proposed by H. Everett, then signal processing domain by Shoham and Gersho Theorem For any  the solution B*(  to the ‘unconstrained’ problem is also a solution to the ‘constrained’ problem subject to Here B = {r 1,r 2,..., r N }, ie. Bit allocaton each r i such that

Heejune AHN: Image and Video Compressionp. 14 RDO algorithm How to find such  that results to Algorithm Set Get R i for each i independently ie. tagent to slope of RD curve Get R (e.g. sum of r i ’s) Repeat until R = R c, changing  (note: large  small b) Diverse Constraints Sum Ri < R Embedded sum Ri < Rx Buffer controls Dependency condition

Heejune AHN: Image and Video Compressionp. 15 RDO algorithm Intuitive understanding Reverse Water filling theory larger bits for larger variance block The returns will be same at the equivalent point Large variance RD curve small variance RD curve R S * R L *

Heejune AHN: Image and Video Compressionp. 16 Practical Rate Control Problem in Lagrange optimization too much computational complexity for real-time use Rate control Model Buffer occupancy level B at the end of i-th frame B i PRE = B i-1 + Rv – Rc B i = B i PRE if 0< B i PRE <B max = B max if overflow (B i PRE >B max ) = 0 if underflow (B i PRE < 0) Rate Control (a negative feedback loop) : see Fig High level => large Q step => smaller Rv => level down Low level => smaller Q step => larger Rv => level up Rate Control Encoder Quant step Rv Rc Input Video

Heejune AHN: Image and Video Compressionp. 17 Practical Rate Control H263 Test Model Rate control Frame Level Bit allocation for preventing buffer underflow and overflow (some times even frame skip) Macroblock level Allocate bits for each MB A : # of pixles in a MB,   : standard deviation, Q i : quant. step Step 1: calculate the MB complexity   Step 2: calculate Q i from K, A, C, a ,   Step 3: encode MB Step 4: update the model parameters K, C

Heejune AHN: Image and Video Compressionp. 18 MPEG-2 Test Model 5 Bit allocation Assign a target bits to current GOP Assign to each current picture –Based on Complexity of previous I, P, B pictures (Q-Step and resultant bit) Rate control Compare coded bit with expected values, and adjust Q-Step Modulation block activity, increase Q-step

Heejune AHN: Image and Video Compressionp Other Rate Control Issue Variable Complexity Algorithm Constraints on computational power Motion search algorithm & search range Rate Control Mode selection Frame rate (skipping) Trade off Computation complexity v.s. video quality Also depends on input image (time-varying) Usage Computation limited Mobile device (usu. Software based codec) Iain E.G. Richardson, the athor of textbook,’s interest Performance Measure PSNR is not enough (for subject quality measure) Some objective measures are under development SSIM(Structural SIMiliarity)

Appendix Rate distortion theory

Heejune AHN: Image and Video Compressionp. 21 Rate-Distortion Theory Distortion of X’ from X D = H(X) – H(X|X’) X 전체의 정보양에서 X’ 을 통하여 확보한 X 의 정보양을 뺀것 (make sense? Yeh ~~~) 참고 : mutual information : I (X:X’) = H(X:X’) = H(X’:X) Information theoretic definition I(X:X’) H(X’) H(X) D = H(X) – I(X:X’) Note: 붉음색은 X’ = Quant(X) 인경우

Heejune AHN: Image and Video Compressionp. 22 Rate Distortion Rate-distortion function Inverse relation between Information/Data Rate and Distortion Example with Gaussian R.V. (known as most difficult distribution) Refer to element of Information theory

Heejune AHN: Image and Video Compressionp. 23 Derivation