Presentation is loading. Please wait.

Presentation is loading. Please wait.

Performance Analysis and Comparison of H.264 based on JM and FFMPEG Softwares Guided by Dr K.R.Rao By Kiran Jonnavittula.

Similar presentations


Presentation on theme: "Performance Analysis and Comparison of H.264 based on JM and FFMPEG Softwares Guided by Dr K.R.Rao By Kiran Jonnavittula."— Presentation transcript:

1 Performance Analysis and Comparison of H.264 based on JM and FFMPEG Softwares Guided by Dr K.R.Rao By Kiran Jonnavittula

2 What Exactly Is 'Codec'? "Codec" is a technical name for "coder/decoder". It also stands for "compressor/decompressor“. It is a computer program(realized on a hardware and software) that both shrinks large movie files, and makes them playable on computer/ devices. Codec programs are required for the media player to play audio/video files.

3 Why codecs? Because video and music files are large, they become difficult to transfer across the Internet quickly. To help speed up downloads, mathematical "codecs" were built to encode ("shrink") a signal for transmission and then decode it for viewing or editing, and also for storage purposes. A video codec is a device or software that enables video compression and/or decompression for digital video.

4 Complexity of a codec is decided by factors such as the quantity of the data needed to represent it (also known as the bit rate). the complexity of the encoding and decoding algorithms. robustness to data losses and errors, ease of editing. the state of the art of compression algorithm design and end-to-end delay

5 Introduction of H.264 [8] H.264/MPEG-4 Part 10 or AVC (Advanced Video Coding) is a standard for video compression[4]. Purpose of H.264: – Higher coding efficiency than previous standards, MPEG-1,2,4 part 2, H.261, H.263[4]. – Simple syntax specifications. – Various applications like video broadcasting, video streaming, video conferencing, D-Cinema, HDTV – Balance between coding efficiency, implementation complexity and cost - based on state-of the-art in VLSI design technology.

6 H.264 block coding structure Encoder Fig1: H.264 macro block coding [4]

7 Decoder Motion Compensation Entropy Decoding Intra Prediction Intra/Inter Mode Selection Inverse Quantization & Inverse Transform Deblocking Filter + + Bitstream Input Video Output Picture Buffering Fig2: H.264 decoder block [4]

8 Profiles of H.264 Fig3: H.264 profiles [4]

9 Specific coding schemes of profiles Fig4: H.264 coding profile schemes [4]

10 Cif and Qcif sequences CIF (Common International Format), also known as FCIF (Full Common Intermediate Format), is a format used to standardize the horizontal and vertical resolutions in pixels of YCbCr sequences in video signals, commonly used in video teleconferencing systems. QCIF means "Quarter CIF". To have one fourth of the area as "quarter" implies the height and width of the frame are halved. The differences in Y, Cb and Cr of cif and qcif are as shown below in figure 4a.[16] Figure 4a: 4:2:0 format of cif and qcif.

11 H.264/MPEG-4 AVC codecs x264: A GPL-licensed implementation of the H.264 video standard. x264 is only an encoder[6] Nero Digital: Commercial MPEG-4 ASP and AVC codecs developed by Nero AG.[3] QuickTime H.264: H.264 implementation released by Apple.[3] DivX Pro Codec: An H.264 decoder and encoder was added in version 7.[3] JM software FFMpeg

12 FFMPEG Fast Forwarding Mpeg. Ffmpeg 0.6.1. FFmpeg is a free software / open source project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files Download the source code, link the files, build and get the required excecutable. [1]

13 FFMPEG syntax ffmpeg [[infile options][`-i' infile]]... {[outfile options] outfile} Default Profile: Main Profile Figure 5 : Command prompt of FFMPEG.

14 JM Software Current software version 17.2 Modify.config file based on each Profile:  encoder_baseline.cfg  encoder.cfg  encoder_main.cfg  encoder_extended.cfg [3]

15 JM commands Access “lencode.exe” and appropriate config file. Change the config file parameters such as quantization parameter, number of frames to be encoded etc. Figure 6 : Command prompt of JM software.

16 FFMPEG Calculations For Akiyo_Qcif Table1: Akiyo_Qcif calculations using ffmpeg. Quantization parameter Encoding Time(seconds)PSNR(dB)SSIMBit Rates (kbps) Compression Ratio Decoding Time(seconds) 22.444.670.9892226.9167.742.4 5 38.950.968695400.642.4 102.434.70.929350.2562.872.4 202.431.040.865927.7671.672.4 252.429.910.841924771.82.4 312.428.230.812222.7893.872.4

17 JM Software Calculations for Akiyo_Qcif Table2: Akiyo_Qcif calculations using JM software. Quantization parameter Encoding Time(seconds)PSNR(dB)SSIM Bit Rates (Kbps) Compressio n Ratio Decoding Time(seconds) 2101.63962.5180.9954710.573.0714.88 693.79355.2750.9933728.65.4614.975 1038.42851.8320.99751292.517.0584.471 2835.71538.4310.9722204.1444.2022.727 4034.0429.8360.860966.05137.5182.102 5133.08212.790.390912.76618.8331.204

18 FFMPEG Calculations for Bus_Cif Table3: Bus_cif calculations using ffmpeg. Quantization parameter Encoding Time(seconds)PSNR (Y)SSIM Bit Rates (kbps) Compression Ratio Decoding Time(seconds) 22.441.70.98615510.45.672.4 3 39.10.975536967.5622.4 4 36.990.964222802.39.9752.4 6 34.20.9392180715.4522.4 102.430.970.88891010.727.5752.4 202.427.010.7853434.863.9842.4 302.424.990.7075268.1103.672.4 312.424.840.7033258.4107.7632.4

19 JM Calculations for Bus_Cif Table4: Bus_cif calculations using JM software. Quantization parameter Encoding Time(seconds) PSNR (Y)SSIM Bit Rates (Kbps) Compression Ratio Decoding Time(seconds) 21313.60464.7350.99516857.591.98730.77 61211.56955.7920.99312825.12.61425.088 201141.29342.570.9653626.329.24615.59 401163.05326.7590.867193.94170.6253.754 501055.15520.7220.38648.48682.54.141

20 File Name: Bus_cif.yuv Number of Frames : 60 Figure7 : Plot of quantization parameter versus PSNR for bus_cif sequence.

21 File Name: Bus_cif.yuv Number of Frames : 60 Figure8 : Plot of quantization parameter versus SSIM for bus_cif sequence.

22 File Name: Bus_cif.yuv Number of Frames : 60 Figure9 : Plot of quantization parameter versus bit rate for bus_cif sequence.

23 File Name: Bus_cif.yuv Number of Frames : 60 Figure10 : Plot of quantization parameter versus encoding time for bus_cif sequence.

24 File Name: Bus_cif.yuv Number of Frames : 60 Figure11 : Plot of quantization parameter versus compression ratio for bus_cif sequence.

25 File Name: Bus_cif.yuv Number of Frames : 60 Figure12 : Plot of quantization parameter versus decoding time for bus_cif sequence.

26 File Name: Akiyo_qcif.yuv Number of Frames : 60 Figure13 : Plot of quantization parameter versus PSNR for Akiyo_qcif sequence.

27 File Name: Akiyo_qcif.yuv Number of Frames : 60 Figure14 : Plot of quantization parameter versus SSIM for Akiyo_qcif sequence.

28 File Name: Akiyo_qcif.yuv Number of Frames : 60 Figure15 : Plot of quantization parameter versus bit rates for Akiyo_qcif sequence.

29 File Name: Akiyo_qcif.yuv Number of Frames : 60 Figure16 : Plot of quantization parameter versus compression ratio for Akiyo_qcif sequence.

30 File Name: Akiyo_qcif.yuv Number of Frames : 60 Figure17 : Plot of quantization parameter versus encoding time for Akiyo_qcif sequence.

31 File Name: Akiyo_qcif.yuv Number of Frames : 60 Figure18 : Plot of quantization parameter versus decoding time for Akiyo_qcif sequence.

32 Focus and progress of Project Performance Analysis and Comparison of H.264 on JM and FFMPEG Softwares. Encoding time Bit Rates. Compression ratio. PSNR(peak-peak Signal to Noise Ratio). SSIM(structural similarity Index metric)-for ffmpeg. Decoding time.

33 Conclusion Parameter AnalyzedQcifCif Encoding time.FFMPEG offers faster encoding time than JM software. Bit rates.FFMPEG offers lower bit rates than JM software. Compression ratio.FFMPEG offers higher compression ratio. FFMPEG offers higher compression ratio at lower QP. PSNR.JM offers better PSNR than FFMPEG JM offers better PSNR than FFMPEG. SSIM.FFMPEG offers better SSIM that JM. Decoding Time.FFMPEG offers faster decoding time than JM software. Table5: Conclusion and analysis.

34 Conclusion of H.264 benchmarks JM Reference Codec Is the official reference encoder and decoder of the H.264/AVC standardization bodies. It implements all the features of the standard (all profiles and levels), but it is designed for describing and verifying the standard, and it exhibits very low performance. It is not recommended for computer architecture or compiler evaluations. [14]

35 Conclusion of H.264 benchmarks FFmpeg H.264 decoder Includes a H.264/AVC encoder-decoder that implements most of the features of the main and high profiles of the standard. The code is very optimized and include MMX/SSE and Altivec SIMD instructions for the most time consuming kernels. It is widely used in free multimedia players like MPlayer, VideoLAN, Xine and others. [14]

36 References 1.http://ffmpeg.org/ - FFMPEG source code.http://ffmpeg.org/ 2.http://www.ffmpeg.org/ffmpeg-doc.html - FFMPEG commands documentation.http://www.ffmpeg.org/ffmpeg-doc.html 3.http://iphome.hhi.de/suehring/tml/ - JM software source codehttp://iphome.hhi.de/suehring/tml/ 4.https://helixcommunity.org – developers guide.https://helixcommunity.org 5.D. Marpe, T. Wiegand and G. J. Sullivan, “The H.264/MPEG-4 AVC standard and its applications”, IEEE Communications Magazine, vol. 44, pp. 134-143, Aug. 2006 6.Joint Video Team (JVT) of ISO/IEC MPEG & ITU-T VCEG (ISO/IEC JTC1/SC29/WG11 and ITU-T SG16 Q.6), 16th Meeting: Poznan, Poland, 24-29 July, 2005. 7.Soon-kak Kwon, A. Tamhankar and K.R. Rao ‖Overview of H.264 / MPEG-4 Part 10‖, J. Visual Communication and Image Representation, vol. 17, pp.186-216, April 2006. 8.The H.264 Advanced Video Compression Standard, Iain E. Richardson, Wiley publications, Second Edition, Copyright © 2010 John Wiley & Sons, Ltd. 9.T. Wiegand, et al “Overview of the H.264/AVC video coding standard”, IEEE Trans. on circuits and systems for video technology, vol. 13, pp. 560-576, July 2003. 10.P. N. Tudor, “MPEG-2 video compression”, Electronics \& communication engineering journal, vol. 7, pp. 257-264, 2005. 11.K. V. S. Swaroop, and K. R Rao, “Performance Analysis and Comparison of JM 15.1 and Intel IPP H.264 Encoder and Decoder”, IEEE 2010 42nd Southeastern Symposium on System Theory (SSST), pp. 371-375, 2010. 12.G. Sullivan, et al “The H.264/AVC Advanced Video Coding Standard: Overview and Introduction to the Fidelity Range Extensions”. Proceedings of SPIE - The International Society for Optical Engineering, vol. 5558, pp. 454-474, Applications of Digital Image Processing XXVII, 2004. 13.Video Sequences : http://trace.eas.asu.edu/yuv/http://trace.eas.asu.edu/yuv/ 14.http://personals.ac.upc.edu/alvarez/hdvideobench/node3.html - H.264 benchmarks summarization and their applications.http://personals.ac.upc.edu/alvarez/hdvideobench/node3.html 15.http://www.ece.uwaterloo.ca/~z70wang/research/ssim/ - SSIM reference.http://www.ece.uwaterloo.ca/~z70wang/research/ssim/ 16.S.Kwon, A. Tamhankar and K.R. Rao, “Overview of H.264 / MPEG-4 Part 10”, J. Visual Communication and Image Representation, vol. 17, pp.186-216, April 2006.


Download ppt "Performance Analysis and Comparison of H.264 based on JM and FFMPEG Softwares Guided by Dr K.R.Rao By Kiran Jonnavittula."

Similar presentations


Ads by Google