Computational Complexity Management of a Real-Time H.264/AVC Encoder C S Kannangara, I E Richardson, and A J Miller CSVT 2008 1.

Slides:



Advertisements
Similar presentations
H.264 Intra Frame Coder System Design Özgür Taşdizen Microelectronics Program at Sabanci University 4/8/2005.
Advertisements

A Performance Analysis of the ITU-T Draft H.26L Video Coding Standard Anthony Joch, Faouzi Kossentini, Panos Nasiopoulos Packetvideo Workshop 2002 Department.
-1/20- MPEG 4, H.264 Compression Standards Presented by Dukhyun Chang
Technion - IIT Dept. of Electrical Engineering Signal and Image Processing lab Transrating and Transcoding of Coded Video Signals David Malah Ran Bar-Sella.
S HORT D ISTANCE I NTRA C ODING S CHEME FOR H IGH E FFICIENCY V IDEO C ODING IEEE Transaction on Image Processing, Vol. 22, No. 2, February 2013 Xiaoran.
1 Video Coding Concept Kai-Chao Yang. 2 Video Sequence and Picture Video sequence Large amount of temporal redundancy Intra Picture/VOP/Slice (I-Picture)
An Early Block Type Decision Method for Intra Prediction in H.264/AVC Jungho Do, Sangkwon Na and Chong-Min Kyung VLSI Systems Lab. Korea Advanced Institute.
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,
H.264/AVC Baseline Profile Decoder Complexity Analysis Michael Horowitz, Anthony Joch, Faouzi Kossentini, and Antti Hallapuro IEEE TRANSACTIONS ON CIRCUITS.
1 Adaptive slice-level parallelism for H.264/AVC encoding using pre macroblock mode selection Bongsoo Jung, Byeungwoo Jeon Journal of Visual Communication.
Compressed-domain-based Transmission Distortion Modeling for Precoded H.264/AVC Video Fan li Guizhong Liu IEEE transactions on circuits and systems for.
Li Liu, Robert Cohen, Huifang Sun, Anthony Vetro, Xinhua Zhuang BMSB
CABAC Based Bit Estimation for Fast H.264 RD Optimization Decision
2009/04/07 Yun-Yang Ma.  Overview  What is CUDA ◦ Architecture ◦ Programming Model ◦ Memory Model  H.264 Motion Estimation on CUDA ◦ Method ◦ Experimental.
Wei Zhu, Xiang Tian, Fan Zhou and Yaowu Chen IEEE TCE, 2010.
Yu-Han Chen, Tung-Chien Chen, Chuan-Yung Tsai, Sung-Fang Tsai, and Liang-Gee Chen, Fellow, IEEE IEEE CSVT
Highly Parallel Rate-Distortion Optimized Intra-Mode Decision on Multicore Graphics Processors Ngai-Man Cheung, Oscar C. Au, Senior Member, IEEE, Man-Cheung.
Ch. 6- H.264/AVC Part I (pp.160~199) Sheng-kai Lin
Overview of the H.264/AVC Video Coding Standard
Optimum Bit Allocation and Rate Control for H.264/AVC Wu Yuan, Shouxun Lin, Yongdong Zhang, Wen Yuan, and Haiyong Luo CSVT 2006.
Improving Scene Cut Quality for Real-Time Video Decoding Giovanni Motta, Brandeis University James A. Storer, Brandeis University Bruno Carpentieri, Universita’
Low-complexity mode decision for MVC Liquan Shen, Zhi Liu, Ping An, Ran Ma and Zhaoyang Zhang CSVT
An Error-Resilient GOP Structure for Robust Video Transmission Tao Fang, Lap-Pui Chau Electrical and Electronic Engineering, Nanyan Techonological University.
Context-Based Adaptive Binary Arithmetic Coding in the H.264/AVC Video Compression Standard Detlev Marpe, Heiko Schwarz, and Thomas Wiegand IEEE Transactions.
1 Single Reference Frame Multiple Current Macroblocks Scheme for Multiple Reference IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY Tung-Chien.
An Efficient Low Bit-Rate Video-coding Algorithm Focusing on Moving Regions Kwok-Wai Wong, Kin-Man Lam, Wan-Chi Siu IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS.
Analysis, Fast Algorithm, and VLSI Architecture Design for H
Decision Trees for Error Concealment in Video Decoding Song Cen and Pamela C. Cosman, Senior Member, IEEE IEEE TRANSACTION ON MULTIMEDIA, VOL. 5, NO. 1,
2015/6/271 Intra-Prediction in H.264(JM82) Student : 林鴻志 Advisor : 杭學鳴 教授.
1 An Efficient Mode Decision Algorithm for H.264/AVC Encoding Optimization IEEE TRANSACTION ON MULTIMEDIA Hanli Wang, Student Member, IEEE, Sam Kwong,
Feature-Based Intra-/InterCoding Mode Selection for H.264/AVC C. Kim and C.-C. Jay Kuo CSVT, April 2007.
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.
BIN LI, HOUQIAN LI, LI LI, AND JINLEI ZHANG IEEE TRANSACTIONS ON IMAGE PROCESSING, VOL.23, NO.9, SEPTEMBER
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.
Optimizing Baseline Profile in H
An Introduction to H.264/AVC and 3D Video Coding.
HARDEEPSINH JADEJA UTA ID: What is Transcoding The operation of converting video in one format to another format. It is the ability to take.
Video Transcoding in H.264 Prof. Maurizio Bonuccelli Francesca Martelli Francesca Lonetti PISATEL.
Liquan Shen Zhi Liu Xinpeng Zhang Wenqiang Zhao Zhaoyang Zhang An Effective CU Size Decision Method for HEVC Encoders IEEE TRANSACTIONS ON MULTIMEDIA,
By Sudeep Gangavati ID EE5359 Spring 2012, UT Arlington
Kai-Chao Yang Hierarchical Prediction Structures in H.264/AVC.
Philipp Merkle, Aljoscha Smolic Karsten Müller, Thomas Wiegand CSVT 2007.
1 Efficient Reference Frame Selector for H.264 Tien-Ying Kuo, Hsin-Ju Lu IEEE CSVT 2008.
EE 5359 PROJECT PROPOSAL FAST INTER AND INTRA MODE DECISION ALGORITHM BASED ON THREAD-LEVEL PARALLELISM IN H.264 VIDEO CODING Project Guide – Dr. K. R.
1 Data Partition for Wavefront Parallelization of H.264 Video Encoder Zhuo Zhao, Ping Liang IEEE ISCAS 2006.
By, ( ) Low Complexity Rate Control for VC-1 to H.264 Transcoding.
Fast Mode Decision for H.264/AVC Based on Rate-Distortion Clustering IEEE TRANSACTIONS ON MULTIMEDIA, VOL. 14, NO. 3, JUNE 2012 Yu-Huan Sung Jia-Ching.
2 3 Be introduced in H.264 FRExt profile, but most H.264 profiles do not support it. Do not need motion estimation operation.
- By Naveen Siddaraju - Under the guidance of Dr K R Rao Study and comparison between H.264.
Figure 1.a AVS China encoder [3] Video Bit stream.
-BY KUSHAL KUNIGAL UNDER GUIDANCE OF DR. K.R.RAO. SPRING 2011, ELECTRICAL ENGINEERING DEPARTMENT, UNIVERSITY OF TEXAS AT ARLINGTON FPGA Implementation.
Optimizing Baseline Profile in H.264/AVC Video Coding by Parallel Programming and Fast Intra and Inter Predictions BY Under the Guidance of VINOOTHNA GAJULA.
Guillaume Laroche, Joel Jung, Beatrice Pesquet-Popescu CSVT
Fast motion estimation and mode decision for H.264 video coding in packet loss environment Li Liu, Xinhua Zhuang Computer Science Department, University.
Video Coding Using Spatially Varying Transform Cixun Zhang, Kermal Ugur, Jani Lainema, Antti Hallapuro and Moncef IEEE TRANSACTIONS ON CIRCUITS AND SYSTEM.
High-efficiency video coding: tools and complexity Oct
IEEE Transactions on Consumer Electronics, Vol. 58, No. 2, May 2012 Kyungmin Lim, Seongwan Kim, Jaeho Lee, Daehyun Pak and Sangyoun Lee, Member, IEEE 報告者:劉冠宇.
-BY KUSHAL KUNIGAL UNDER GUIDANCE OF DR. K.R.RAO. SPRING 2011, ELECTRICAL ENGINEERING DEPARTMENT, UNIVERSITY OF TEXAS AT ARLINGTON FPGA Implementation.
Transcoding from H.264/AVC to HEVC
A Frame-Level Rate Control Scheme Based on Texture and Nontexture Rate Models for HEVC IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY,
Outline  Introduction  Observations and analysis  Proposed algorithm  Experimental results 2.
Implementation and comparison study of H.264 and AVS china EE 5359 Multimedia Processing Spring 2012 Guidance : Prof K R Rao Pavan Kumar Reddy Gajjala.
Fine-granular Motion Matching for Inter-view Motion Skip Mode in Multi-view Video Coding Haitao Yanh, Yilin Chang, Junyan Huo CSVT.
Computational Controlled Mode Selection for H.264/AVC June Computational Controlled Mode Selection for H.264/AVC Ariel Kit & Amir Nusboim Supervised.
Fast Decision of Block size, Prediction Mode and Intra Block for H
Standards Presentation ECE 8873 – Data Compression and Modeling
Optimizing Baseline Profile in H
Introduction to H.264/AVC Video Coding
Bongsoo Jung, Byeungwoo Jeon
Presentation transcript:

Computational Complexity Management of a Real-Time H.264/AVC Encoder C S Kannangara, I E Richardson, and A J Miller CSVT

Outline  Coding Complexity of H.264/AVC  Frame Rate vs. Coding Complexity  Objective  Architecture  Frame Level Control Algorithm  Per-frame Complexity Control Algorithm  Experimental Results 2

Coding Complexity of H.264/AVC Variable block size  Increase 2.5% complexity for each additional mode  Reduce 4~20% bit rate Hadamard transform  Increase 20% access frequency CABAC  Increase 25~30% access frequency  Reduce 16% bit-rate Multiple reference frame  Increase 20% access frequency for each added frame  Reduce 2~14% bit rate J. Ostermann, J. Bormans, P. List, D. Marpe, M. Narroschke, F. Pereira, T. Stockhammer, and T. Wedi, "Video Coding with H.264/AVC: Tools, Performance and Complexity," IEEE Circuits and Systems Magazine, vol. 4, pp. 7-28,

Frame Rate vs. Coding Complexity  Video encoding over limited computational resources Reduce frame rate or encoding complexity?  Subjective quality of high activity videos  Subjective quality of low activity videos J. A. F. Ronnie, T. Apteker, Valentin S. Kisimov, and Hanoch Neishlos, "Video Acceptability and Frame Rate," IEEE Multimedia, vol. 2, pp ,

Objective  Managed complexity (MC) coder Maintain a smooth video frame rate Frame level control algorithm  Calculate total delay  Calculate target encoding time for the next frame  Drop the frame if coding delay is too high Per-frame complexity control algorithm  Lagrangian cost  Complexity control 5

Architecture 6

Frame Level Control Algorithm (1/2)  Timing scenario of the buffer  Encoding delay Total_Delay n = T n st – T last + T f (Buffer_level-1)  T f + T f (B-1) (drop frames in this situation) F1F1 T1T1 T2T2 T3T3 T4T4 T5T5 TfTf TfTf TfTf TfTf T 1 st T 2 st T 3 st T 4 st T 1 enc T 2 enc T 3 enc F1F1 F2F2 F2F2 F3F3 F3F3 F3F3 F4F4 F4F4 F5F5 F2F2 F3F3 F4F4 F5F5 T 3 st – T 3 T 4 st – T 5 + T f The last input frame time The maximum buffer size 7

Frame Level Control Algorithm (2/2)  Target encoding time for the next frame Total_Delay n+k =Total_Delay n+k-1 –T f +T n+k-1 target  Total_Delay n+k =Total_Delay n –kT f +T n target +T n+1 target +…+T n+k-1 target Assume Total_Delay n+k = 0  (T n target +T n+1 target +…+T n+k-1 target )/k = T f – Total_Delay n /k Assume T n target T n+1 target …T n+k-1 target  T n target = T f –Total_Delay n /k Max Total_Delay n  Min T n target = 0  0 = T f - T f B/k  k = B T n target = T f – [T n st – T last + T f (Buffer_level- 1) ]/B 8 Delay due to F n+k-1 T n+k-1 st T last TfTf T n+k-1 target

Per-frame Complexity Control Algorithm (1/3)  Encode Fn within time T n target  Lagrangian cost (code or skip a MB) Code a MB  J code = D code + r R code + c C code Skip a MB  J skip = D skip (MV=0 without residual) J skip < J code ? skip : coding r  r  Aexp(BQP)  A=7.410 -8 F+5.210 -5 B=-3.710 -5 F+0.3  F = (Avg. MSE per MB)  (Avg. bits per MB) Set to 1 Detail 9

Per-frame Complexity Control Algorithm (2/3)  r (RD control) D(x i,M i )=F i  R -1 (X i,M i )   F = (1/N)F i   r  A  exp(B  QP)  A=7.410 -8 F+5.210 -5  B=-3.710 -5 F+0.3  (by linear regression) Carephone( ) Foreman( ) Foreman( ) C.S. Kannangara, I.E.G. Richardson, M. Bystrom, J.R. Solera, Y. Zhao, A. MacLennan and R. Cooney, “ Low Complexity Skip Prediction for H.264 Through Lagrangian Cost Estimation”, IEEE Trans. Circuits and Systems for Video Tech., vol. 16, no. 2, pp , February

Per-frame Complexity Control Algorithm (3/3)  c (Complexity control) c n = c n-1 +  c n  c n =   c 2 = 0.2(1-) 2 (T 1 enc – T 2 enc )   c 1 = 0 Limitation:  -2   c n  1 (handling Non-stationary behaviour)  Similar number of drop MBs between successive frames  c n  Limit c (limiting the number of drop MBs)  Drop frames rather than drop MBs Actual encoding time Target percentage of saved coding time 11 C. S. Kannangara and I. E. G. Richardson, "Computational Control of an H.264 Encoder through Lagrangian Cost Function Estimation", VLBV 2005, Sardinia, Italy, September 2005.

Experimental Results (1/6)  Environment JM 7.4  Baseline Profile  One reference frame, IPPP…  RDO disabled  Start at 15fps frame rate Multiple processing threads  Proposed algorithm  Encoding process 12

Experimental Results (2/6)  Initial environment 13

Experimental Results (3/6) 14

Experimental Results (4/6) 15

Experimental Results (5/6) 16

Experimental Results (6/6) 17