Presentation is loading. Please wait.

Presentation is loading. Please wait.

PERFORMANCE ANALYSIS AND COMPARISON OF DIRAC VIDEO CODEC WITH H

Similar presentations


Presentation on theme: "PERFORMANCE ANALYSIS AND COMPARISON OF DIRAC VIDEO CODEC WITH H"— Presentation transcript:

1 PERFORMANCE ANALYSIS AND COMPARISON OF DIRAC VIDEO CODEC WITH H
PERFORMANCE ANALYSIS AND COMPARISON OF DIRAC VIDEO CODEC WITH H.264 / MPEG-4 PART 10 AVC - Aruna Ravi MS-EE Student , UTA July 17th 2009

2 Overview Dirac - overview H.264/MPEG-4 AVC - overview
Dirac performance analysis based on quality factor Performance comparison of Dirac with H.264 at constant bit rates Results Conclusions Future research References

3 What is Dirac? Motion-compensated state-of-the-art hybrid video codec developed by BBC. Uses modern techniques - wavelet transforms, arithmetic coding. Open technology – no license fees. Easily recreated for new platforms. Applications - HDTV to web streaming.

4 Dirac encoder / decoder blocks
Transform: 2D discrete wavelet transform Scaling and Quantization: Dead zone quantization Motion estimation: Hierarchical motion estimation Motion compensation: Overlapped block-based motion compensation (OBMC) Entropy coding: Arithmetic coding

5 Dirac - Architecture Vin : Input video frame; P: Previous frame; Motion compensated prediction error (MCPE): e = Vin – P; eTQ : MCPE after wavelet transformation and quantization; e’ : MCPE after inverse transformation; Vlocal = P + e’

6 Dirac encoder / decoder blocks
Transform: 2D discrete wavelet transform Scaling and Quantization: Dead zone quantization Motion estimation: Hierarchical motion estimation Motion compensation: Overlapped block-based motion compensation (OBMC) Entropy coding: Arithmetic coding

7 Dirac - Wavelet Transform
More efficient than block transforms with still images. Operates on entire picture. Flexible – operates at a range of resolutions. Repeated filtering of signals into low- and high-frequency parts. Horizontal and vertical filtering for 2D signals. Logarithmic frequency decomposition into sub-bands at each stage. Daubechies wavelet filters

8 Wavelet Transform contd..
Packs most information into low frequency sub-bands - compression achieved. Process repeated to achieve higher levels of wavelet transform. Coded picture free from block artifacts, superior moving images.

9 Stages of wavelet transform

10 Dirac encoder / decoder blocks
Transform: 2D discrete wavelet transform Scaling and Quantization: Dead zone quantization Motion estimation: Hierarchical motion estimation Motion compensation: Overlapped block-based motion compensation (OBMC) Entropy coding: Arithmetic coding

11 Dirac - Scaling and Quantization
Scaling - Extracting frame data after wavelet transform, scaling the coefficients to perform quantization. Quantization - rate distortion optimization, strip information from frame data that results in as little visual distortion as possible. Dead-zone quantization - coarser quantization on smaller values.

12 Dirac encoder / decoder blocks
Transform: 2D discrete wavelet transform Scaling and Quantization: Dead zone quantization Motion estimation: Hierarchical motion estimation Motion compensation: Overlapped block-based motion compensation (OBMC) Entropy coding: Arithmetic coding

13 Dirac - Motion Estimation
Exploits temporal redundancy in video streams. Hierarchical motion estimation - three stages. Stage I: Pixel accurate MV determined for each block, reference frame by hierarchical block matching. Stage II: Pixel-accurate vectors refined. Stage III: Mode decisions made for each macro-block.

14 Intra & Inter prediction
Three types of frames : I (Intra), L1 (Level 1) and L2 (Level 2). I frames coded without reference. Inter frames - L1, L2 frames coded with reference to previously coded frames. L1 frames used as temporal references for other frames, L2 frames are not. Each frame predicted from up to two reference frames. Prediction modes: Intra, Reference 1 only, Reference 2 only, Bi-directional.

15 Dirac encoder / decoder blocks
Transform: 2D discrete wavelet transform Scaling and Quantization: Dead zone quantization Motion estimation: Hierarchical motion estimation Motion compensation: Overlapped block-based motion compensation (OBMC) Entropy coding: Arithmetic coding

16 Dirac - Motion Compensation
Overlapped block-based motion compensation - good compression, prevents blocky edges. Interaction of neighboring blocks. Basic blocks arranged into macro-blocks (4x4). Data padding for exact number of horizontal and vertical macro-blocks. Smaller blocks selected for lower resolution frames. Linear ramp mask - weight function on predicting block.

17 Motion Compensation contd..
Splitting of macro-blocks Default (streaming, SD) -12x12 blocks, overlapped at intervals of 8 pixels vertically and horizontally. Sub-pixel MC with MV - 1/8th pixel accuracy. MV predicts current frame identical to previous frame at low bit rates, minimizes cost of encoding residual data.

18 Dirac encoder / decoder blocks
Transform: 2D discrete wavelet transform Scaling and Quantization: Dead zone quantization Motion estimation: Hierarchical motion estimation Motion compensation: Overlapped block-based motion compensation (OBMC) Entropy coding: Arithmetic coding

19 Dirac - Entropy Coding Three stages: binarization, context modeling and arithmetic coding. First stage provides bit stream with easily analyzable statistics, encoded using arithmetic coding. Context modeling - coefficient is small or not, well-predicted by its neighbors and parents. Arithmetic coding performs lossless compression - flexible and efficient.

20 Advantages of Dirac Open technology - no licensing costs.
Flexible, ease of operation over many applications. Capable of compressing high resolution files. Exploits lossy compression using long group of picture (GOP) formats for broadcasting and other distribution outlets. Quality similar to that of AVC/H.264. More freedom for future implementations, more scope to improve performance Comparable to other codecs despite simple toolset. Relative simplicity and clean architecture supports high performance. Good quality at low bit rates, lower costs.

21 Applications of Dirac Broadcasting Clip distribution
Live streaming video Pod casting Creative archive Peer to peer transfers HDTV with SD (standard definition) simulcast capability Higher density channel packing Desktop production News links Archive storage PVRs (personal video recorder) Multilevel Mezzanine coding (aka SMPTE VC-2)

22 Overview of H.264 / AVC Open, licensed standard, latest block-oriented motion-compensation-based codec. Good video quality at substantially lower bit rates. Better rate-distortion performance and compression efficiency without increasing design complexity. Simple syntax specifications, very flexible. Wide variety of applications such as video broadcasting, video streaming, video conferencing, D-Cinema, HDTV. Network friendly; demonstrates a balance between coding efficiency, implementation complexity and cost. Layered structure - consists of two layers: Network Abstraction Layer (NAL) and Video Coding Layer (VCL); supports 4:2:0 chroma sampling picture format including QCIF and CIF formats.

23 Overview of H.264 contd.. Uses hybrid block based video compression techniques such as: Transformation - reduction of spatial correlation Quantization - bit-rate control Motion compensated prediction - reduction of temporal correlation Entropy coding - reduction in statistical correlation Includes the following features: Intra-picture prediction 4x4 integer transform Multiple reference pictures Variable block sizes Quarter pel precision for motion compensation In-loop de-blocking filter Improved entropy coding

24 H.264 / MPEG-4 AVC architecture

25 Algorithmic Element Comparison

26 Quality factor in Dirac
Overall trade-off factor derived from value termed “QF” - quality/quantization factor. Picture lambda values used for rate-distortion control of quantization and motion estimation Initially derived from picture QF: Set directly on command line, used for all pictures Determined by means of Rate Control algorithm

27 Dirac Performance Analysis based on Quality Factor

28 Dirac Performance Analysis based on QF contd..

29 Dirac Performance Analysis based on QF contd..

30 Dirac Performance Analysis based on QF contd..

31 Dirac Performance Analysis based on QF contd..

32 Dirac Performance Analysis based on QF contd..

33 Dirac performance analysis test results

34 Dirac performance analysis test results contd..

35 Dirac performance analysis test results contd..
Point of lossless coding Good SSIM even at lower QF for CIF !

36 Dirac performance analysis test results contd..

37 Dirac performance analysis test results contd..

38 Performance comparison of Dirac with H.264 at constant bit rates (CBR)
Test sequence: “Miss-america.yuv”, QCIF (150 frames) Dirac performs better than H.264 at lower bit rates!

39 Performance comparison of Dirac with H
Performance comparison of Dirac with H.264 at constant bit rates (CBR) contd.. Results comparable to H.264

40 Test sequence: “Stefan.yuv”, CIF (90 frames)
Performance comparison of Dirac with H.264 at constant bit rates (CBR) contd.. Test sequence: “Stefan.yuv”, CIF (90 frames)

41 Performance comparison of Dirac with H
Performance comparison of Dirac with H.264 at constant bit rates (CBR) contd..

42 Test sequence: “Susie.yuv”, SDTV (25 frames)
Performance comparison of Dirac with H.264 at constant bit rates (CBR) contd.. Test sequence: “Susie.yuv”, SDTV (25 frames)

43 Performance comparison of Dirac with H
Performance comparison of Dirac with H.264 at constant bit rates (CBR) contd..

44 Performance comparison of Dirac with H
Performance comparison of Dirac with H.264 at constant bit rates (CBR) contd.. Almost similar compression achieved !

45 Performance comparison of Dirac with H
Performance comparison of Dirac with H.264 at constant bit rates (CBR) contd.. Note the scale of difference!

46 Consistent performance
Performance comparison of Dirac with H.264 at constant bit rates (CBR) contd.. Consistent performance over large range of bit rates

47 Performance comparison of Dirac with H
Performance comparison of Dirac with H.264 at constant bit rates (CBR) contd..

48 Conclusions Dirac is very comparable to H.264.
Dirac achieves slightly higher compression ratios for lower bitrates than H.264 in case of QCIF sequences. At higher QCIF bitrates both Dirac and H.264 achieve similar compression. H.264 provides slightly better compression especially for CIF, SD media. H.264 has slightly better SSIM than Dirac for all the test sequences. H.264 achieves better PSNR and lower MSE than Dirac. Dirac’s encoder is less complex and fast encoding (about 5-10 minutes) is possible. H.264 takes a longer time (around 25 minutes) to encode the same video sequence. Decoder complexity of Dirac and H.264 is nearly the same. Both codecs require about the same time to perform decoding. Dirac is simple yet robust codec, nearly equaling H.264 in performance, sans the cost of royalty fees.

49 Future Research Dirac video codec can be further improved by integrating it with audio codecs such as AAC/ MP2/ Vorbis/ FLAC. According to Dr. T. Borer, Dirac team leader, BBC: Dirac wrapped in container format can be used with audio Put into transport streams with MPEG-TS supported audio format Transcoding possible by: Multiplexing video and audio coded bit streams to create a single bit stream for transmission and de-multiplexing streams at receiving end. Synchronization of audio and video during playback. DiracPRO / SMPTE VC-2: Intra frame version of Dirac Non proprietary, royalty free, open technology Intended for high quality applications with lower compression ratios Optimized for professional production , archiving applications More significant transcoding long GOP from H.264

50 REFERENCES [1] T. Borer, and T. Davies, “Dirac video compression using open technology”, BBC EBU Technical Review, July 2005 [2] BBC Research on Dirac: [3] H. Eeckhaut, et al, “Speeding up Dirac’s entropy coder”, Proc. 5th WSEAS Int. Conf. on Multimedia, Internet and Video Technologies, pp , Greece, Aug [4] The Dirac web page: [5] K. Onthriar, K. K. Loo and Z. Xue, “Performance comparison of emerging Dirac video codec with H.264/AVC”, IEEE International Conference on Digital Telecommunications, 2006, ICDT; Vol. 06, Page: 22, Issue: 29-31, Aug [6] T.Davies , “The Dirac Algorithm” [7] M. Tun and W. A. C. Fernando, “An error-resilient algorithm based on partitioning of the wavelet transform coefficients for a DIRAC video codec” , Tenth International Conference on Information Visualization, 2006, IV, Vol , pp.: 615 – 620, Issue : July 2006. [8] T. Davies, “A modified rate-distortion optimization strategy for hybrid wavelet video coding” , IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP 2006 Proceedings. 2006, Vol.: 2, pp.: II, Publication Date: May 2006. [9] M. Tun, K. K. Loo and J. Cosmas, “Semi-hierarchical motion estimation for the Dirac video codec”, IEEE International Symposium on Broadband Multimedia Systems and Broadcasting, pp.: 1-6, Publication Date: March April [10] /CMPT 365 Course Slides/, School of Computing Science, Simon Fraser University, fig3: [11] Dirac developer support: Overlapped block-based motion compensation : [12] S.K.Kwon, A.Tamhankar and K.R.Rao, “Overview of H.264 / MPEG-4 Part 10” J. Visual Communication and Image Representation, Vol 17, pp , April 2006. [13] T.Wiegand, et al “Overview of the H.264/AVC video coding standard”, IEEE Trans. CSVT, Vol.13, pp , July 2003.

51 REFERENCES contd.. [14] T. Wiegand and G. J. Sullivan, “The H.264 video coding standard”, IEEE Signal Processing Magazine, vol. 24, pp , March 2007. [15] D. Marpe, T. Wiegand and G. J. Sullivan, “The H.264/MPEG-4 AVC standard and its applications”, IEEE Communications Magazine, vol. 44, pp , Aug [16] I. Richardson, “The H.264 AVC standard”, to be published in late 2009. [17]  C. Gargour et al, “A short introduction to wavelets and their applications”, IEEE Circuits and Systems Magazine, vol. 9, pp , II Quarter, 2009. [18] “Dirac Pro to bolster BBC HD links”: [19] “And now, Dirac from the Olympics, a new free codec!”: [20] ‘Dirac codec’: [21] ‘Video encoding’: [22] “Video encoding and bandwidth requirements”: [23] Z. Wang, et al “Image quality assessment: From error visibility to structural similarity”, IEEE Trans. on Image Processing, vol. 13, pp , Apr [24] [25] Microsoft Windows Media: [26] MPEG-4 Part 2, ISO/IEC , International Organization for Standardization, [27] [28] Dirac software and source code: [29]

52 REFERENCES contd.. [30] Dirac video codec - A programmer's guide:
[31] H. Jia and L. Zhang, “Directional diamond search pattern for fast block motion estimation”, IEE Electronics Letters, Vol. 39, No. 22, pp , 30th October 2003. [32] Video test sequences (YUV 4:2:0): [33] Video test sequences ITU601: [34] MPEG–2 advanced audio coding, AAC. International Standard IS 13818–7, ISO/IEC JTC1/SC29 WG11, 1997 [35] G. A. Davidson, et al “ATSC video and audio coding”, Proceedings of IEEE, vol. 94, pp , Jan. 2006 [36] A. Puri, X. Chen and A. Luthra, “Video coding using the H.264/MPEG-4 AVC compression standard”, Signal Processing: Image Communication Magazine, vol. 19, pp , Oct. 2004 [37] H.264 AVC JM software: [38] SSIM: [39] Daubechies wavelet: [40] Daubechies wavelet filter design: [41] Dirac developer support: Wavelet transform: [42] Dirac developer support: RDO motion estimation metric: [43] Digital down converter: [44] T. Jacob, K. R. Rao and D. N. Kim, “Image Mirroring, Rotation and Interpolation in Wavelet Domain”, Applications of Digital Image Processing XXXII conference, SPIE symposium on Optical Engineering, 2-6 Aug [45] H.264/MPEG-4 AVC:

53 REFERENCES contd.. [46] M.Fieldler, “Implementation of basic H.264/AVC Decoder”, seminar paper at Chemnitz University of Technology, June 2004. [47] H.264 encoder and decoder: [48] “H.264 video compression standard”, White paper, Axis communications. [49] MPEG-4: ISO/IEC JTC1/SC : Information technology – Coding of audio-visual objects - Part 10: Advanced Video Coding, ISO/IEC, 2005. [50] D. Kumar, P. Shastry and A. Basu, “Overview of the H.264 / AVC”, 8th Texas Instruments Developer Conference India, 30 Nov – 1 Dec 2005, Bangalore. [51] R. Schäfer, T. Wiegand and H. Schwarz, “The emerging H.264/AVC standard”, EBU Technical Review, Jan [52] Joint Photographic Experts Group, JPEG: [53] FLAC - Free Lossless Audio Codec: [54] Vorbis: [55] MPEG Layer II: [56] MPEG-TS / MPEG transport stream: [57] MP3 / MPEG Layer III: [58] Dirac Pro: [59] T. Borer, “Dirac coding: Tutorial & Implementation”, EBU Networked Media Exchange seminar, June 2009. [60] DiracPRO software:

54 Thank You!

55

56 Performance metrics Compression ratio quantifies reduction in data size due to data compression. Bitrate refers to the number of bits used per unit of playback time to represent a continuous medium such as video after data compression.

57 Performance metrics contd..
Mean squared error (MSE) for two m×n monochrome images I and K (one considered a noisy approximation of the other) is given by: Peak signal-to-noise ratio (PSNR): Ratio between maximum possible power of a signal and power of corrupting noise that affects the fidelity of its representation. Expressed in terms of the logarithmic decibel scale. where MAXI is the maximum possible pixel value of the image

58 Performance metrics contd..
Structural Similarity (SSIM) index is a method for measuring similarity between two images. Compares local patterns of pixel intensities normalized for luminance and contrast. Full reference metric, measurement of image quality based on original uncompressed image as reference. SSIM between two windows of size N x N x and y is given by:

59 H.264 profiles

60 H.264 encoder / decoder architecture

61 H.264 - Transform 4x4 multiplier-free integer transform
Transform coefficients perfectly invertible Hierarchical structure - 4 x 4 Integer DCT, Hadamard transform Hadamard transform applied when (16x16) intra prediction mode is used with (4x4) integer DCT MB size for chroma depends on 4:2:0, 4:2:2 and 4:4:4 formats

62 H.264 - Scaling and Quantization
Multiplication operation for exact transform combined with multiplication of scalar quantization Scale factor for each element in each sub-block varies as a function of quantization parameter associated with macro-block that contains sub block; position of element within sub-block Rate-control algorithm in encoder controls value of quantization parameter Encoder performs post-scaling and quantization

63 H.264 – Entropy Coding CAVLC (Context-based Adaptive Variable Length Coding). CABAC (Context-based Adaptive Binary Arithmetic Coding). CAVLC makes use of run-length encoding. CABAC utilizes arithmetic coding; codes both MV and residual transform coefficients. Typically CABAC provides % reduction in bit rate compared to CAVLC, for the same PSNR. All syntax elements are encoded by Exp-Golomb codes (Universal Variable Length Codes (UVLC)).

64 H.264 – Deblock filtering In-Loop deblock filter – smoothes blocky edges; increases rate-distortion performance. Frame decode process - top/left neighbors fully reconstructed and available as inputs for de-blocking current MB. Applied to all 4x4 blocks except at picture boundaries. Vertical edges filtered first (left to right) followed by horizontal edges (top to bottom).

65 H.264 – Intra Prediction Spatial domain prediction
Uses reconstructed data from neighboring macro-blocks to predict current macro-block coefficients. Prediction from samples in pixel domain; flexible bit-rate control; eliminates redundancies across multiple directions.

66 Intra Prediction: Mode decisions for 4x4 blocks
For Luminance pixels: 4x4 partition: 9 intra-prediction modes 16x16 partition: 4 intra-prediction modes 16 x 16 mode - better compression for flat regions of picture, lower costs. Avoids gradients in flat regions with high quantization parameters

67 H.264 – Inter Prediction Motion estimation, Motion compensation included. Generates predicted version of a rectangular array of pixels. Similar sized rectangular arrays of pixels chosen from previously decoded reference pictures. Reference arrays translated to current rectangular array positions. Half-pel interpolated using a 6-tap FIR filter with weights (1, -5, 20, 20, -5, 1)/32. Quarter-pel produced using bilinear interpolation between neighboring half- or integer-pel samples.

68 H.264 – Motion Compensation
Predicted rectangular arrays of pixels: 4x4, 4x8, 8x4, 8x8, 16x8, 8x16, and 16x16. Translation from other array positions in reference picture specified with quarter pixel precision. In case of 4:2:0 format, the chroma MVs have a resolution of 1/8 of a pixel, derived from transmitted luma MVs of 1/4 pixel resolution.

69 H.264 – Multi-Picture Motion Compensation
More than one prior-coded picture used as a reference for motion-compensated prediction. Encoder, decoder store reference pictures in a multi-picture buffer. Decoder replicates multi-picture buffer of the encoder, according to reference picture buffering type specified in the bit stream.


Download ppt "PERFORMANCE ANALYSIS AND COMPARISON OF DIRAC VIDEO CODEC WITH H"

Similar presentations


Ads by Google