Lossy Video Compression Using Well Known Mathematical Functions and a Limited Set of Reference Values
Total Page:16
File Type:pdf, Size:1020Kb
Popular and Democratic Republic of Algeria Ministry of Higher Education and Scientific Research Colonel Ahmed Draia University of Adrar Faculty of Sciences and Technology Department of Mathematics and Computer Science A Thesis Presented to Fulfill the Partial Requirement for Master’s Degree in Computer Science Option: Networks and Intelligent Systems Title: Lossy Video compression using well known mathematical functions and a limited set of reference values Prepared by Miss. Leyla OULAD BENSAID Supervised by Dr. Mohammed OMARI Academic year 2016/2017 ABSTRACT Nowadays the amount of digital video applications is rapidly increasing. The amount of raw video data is very large which makes storing, processing, and transmitting video sequences very complex tasks. Furthermore, while the demand for enhanced user experience is growing, the sizes of devices capable of performing video processing operations are getting smaller. This further increases the practical limitations encountered when handling these large amounts of data, and makes research on video compression systems and standards very important. For this reason, many compression techniques have been proposed; some of these have been effective in some areas and failed in others. In this thesis we propose a new lossy video compression technique using well known mathematical functions and a limited set of reference values. Our approach is based on finding a compressed value whose corresponding pair of the corresponding mathematical function and reference value, aiming to produce shorter expressions compared to the regular form. In addition, we integrated an approach that utilizes binary search algorithm in order to efficiently find a better compressed value with shorter reduced form that does not harm the original image quality. The preliminary results of our method show promising results compared to other peer techniques. Keywords: Lossy video compression, video codec, mathematical function compression, compression ratios, PSNR, Video codec standards. ii Acknowledgements First, I thank Allah the Almighty for giving me courage, strength and patience to complete this modest work. I wish to express my profound gratitude to Dr. OMARI Mohammed, my Respected supervisor, for his excellent guidance, caring, patience, I ask Allah to bless him. My respect and gratitude to the jury members who gave me the honor of judging this work through their availability, observations and reports that have enabled me to enhance my scientific contribution. Thanks to all the teachers of our faculty of Sciences and Technology. I thank all those who participate. iii Dedicates I would like to dedicate this work To the spring that never stops giving… To my mother To the big heart... My dear father To the people who paved our way of science and knowledge All our distinguished teachers To every person who supported me in my studies. iv TABLE OF CONTENTS ABSTRACT ............................................................................................................................... ii ACKNOLEDGEMENTS .......................................................................................................... iii DEDICATION .......................................................................................................................... iv TABLE OF CONTENTS ........................................................................................................... v LIST OF FIGURES ................................................................................................................. viii LIST OF TABLES ..................................................................................................................... x GLOSSARY …………… ......................................................................................................... xi INTRODUCTION ...................................................................................................................... 1 Chapter1 : Introduction to video compression ............................................................... 3 1.1.Introduction .......................................................................................................................... 3 1.2.History of video compression: ............................................................................................. 3 1.3.Concepts and Definitions ..................................................................................................... 5 1.3.1.Frame rate ...................................................................................................................... 5 1.3.2.Frame dimensions .......................................................................................................... 6 1.3.3.Bit Rate (BR) ................................................................................................................. 6 1.3.4.Natural video scenes ...................................................................................................... 7 1.4.Capture ................................................................................................................................. 8 1.4.1.Spatial Sampling ............................................................................................................ 8 1.4.2.Temporal Sampling ....................................................................................................... 9 1.4.3.Frames and Fields ........................................................................................................ 11 1.5.Representation of colors: .................................................................................................... 12 1.5.1.RGB coding ................................................................................................................. 13 1.5.2.YUV Coding ................................................................................................................ 14 1.5.3.YIQ Color Space ........................................................................................................ 15 1.6.Video formats ..................................................................................................................... 17 1.7.Video standards .................................................................................................................. 19 1.8.Video compression: ............................................................................................................ 19 1.8.1.Lossy and lossless compression .................................................................................. 20 1.8.2.Why is video compression used? ................................................................................. 21 v 1.8.3.Image and Video Compression Standards ................................................................... 21 1.9.Video Quality Measure ...................................................................................................... 22 1.10.Explanation of File Formats ............................................................................................. 23 1.11.Conclusion ........................................................................................................................ 24 Chapter 2: Video compression techniques ..................................................................... 25 2.1.Introduction ........................................................................................................................ 25 2.2.Video Compression Techniques ......................................................................................... 25 2.3.Two basic standards: JPEG and MPEG ............................................................................. 26 2.4.The next step: H.264 .......................................................................................................... 27 2.5.An overview of video compression techniques .................................................................. 27 2.5.1.JPEG ............................................................................................................................ 27 2.5.2.Motion JPEG ............................................................................................................... 28 2.5.3.JPEG 2000 ................................................................................................................... 28 2.5.4.Motion JPEG 2000 ...................................................................................................... 29 2.5.5.H.261/ H.263 ............................................................................................................... 29 2.5.6.MPEG1 ........................................................................................................................ 30 2.5.7.MPEG-2 ....................................................................................................................... 31 2.5.8.MPEG-3 ....................................................................................................................... 32 2.5.9.MPEG-4 ....................................................................................................................... 32 2.5.10.H.264 ......................................................................................................................... 33 2.5.11.MPE G-7 .................................................................................................................... 33 2.5.12.MPE G-21 .................................................................................................................