Shafq ur Réhman Image and Video Compression

Size: px
Start display at page:

Download "Shafq ur Réhman Image and Video Compression"

Transcription

1 Shafq ur Réhman Image and Video Compression

2 outline mage/video compression: what and why source coding basics basic idea symbol codes stream codes compression systems and standards system standards and quality measures image coding JPEG video coding and MPEG Summary 2

3 need for compression Image: 6.0 million pixel camera, 3000x MB per image -> 56 pictures / 1GB Video: DVD Disc 4.7 GB video 720x480, RGB, 30 f/s -> 31.1MB/sec audio 16bits x 44.1KHz stereo -> 176.4KB/s ->1.5 min per DVD disc Send video from cellphone: 352*240, RGB, 15 frames / second 3.8 MB/sec ->$38.00/sec levied by AT&T 3

4 Data Compression Wikipedia: data compression, or source coding, is the process of encoding information using fewer bits (or other information-bearing units) than an unencoded representation would use through use of specific encoding schemes. Applications General data compression:.zip,.gz Image over network: telephone/internet/wireless/etc Slow device: 1xCD-ROM 150KB/s, bluetooth v1.2 up to ~0.25MB/s Large multimedia databases Understanding compression: what are behind jpeg/mpeg/mp4 formats? what are the good/fine/super fine quality modifiers in my Canon 400D? why/when do I want to use raw/jpeg format in my digital camera? why doesn t zipping jpeg files help? what are the best ways to do compression? are we doing our best? (yes/no/maybe) 4

5 what can we compress? Goals of compression Remove redundancy Reduce irrelevance irrelevance or perceptual redundancy not all visual information is perceived by eye/brain, so throw away those that are not. redundant : exceeding what is necessary or normal symbol redundancy: the common and uncommon values cost the same to store. spatial and temporal redundancy: Temperatures: tend to be similar in adjacent geographical areas, also tend to be similar in the same month over different years 5

6 symbol/inter-symbol redundancy Letters and words in English e, a, i, s, t, a, the, me, I good, magnificent, fyi, btw, ttyl In the evolution of language we naturally chose to represent frequent meanings with shorter representations. 6

7 Data and information Data is not the same thing as information. Data is the means with which information is expressed. The amount of data can be much larger than the amount of information. Redundant data doesn't provide additional information. Image coding or compression aims at reducing the amount of data while keeping the information by reducing the amount of redundancy. 7

8 Image Compression Image compression addresses the problem of reducing the amount of data required to represent a digital image. The underlying basis of reduction process is the removal of redundant data Transforming a 2-D pixel array into a statistically uncorrelated data set

9 Different Types of Redundancy Coding Redundancy: Some gray levels are more common than others. Inter-pixel Redundancy: The same gray level may cover a large area. Psycho-Visual Redundancy: The eye can only resolve about 32 gray levels locally M. C. Escher, Drawing Hands,

10 Redundancy Spatial redundancy Similarities between adjacent pixels Temporal redundancy Similarities between pixels in adjacent frames

11 Modes of compression Lossless preserve all information, perfectly recoverable examples: morse code, zip/gz Lossy throw away perceptually insignificant information cannot recover all bits 11

12 Image Compression Image compression can be: Reversible (lossless), with no loss of information. The image after compression and decompression is identical to the original image. Often necessary in image analysis applications. The compression ratio is typically 2 to 10 times. Non reversible (lossy), with loss of some information. Lossy compression is often used in image communication, compact cameras, video, www, etc. The compression ratio is typically 10 to 30 times. 12

13 Image Coding and Compression Image coding How the image data can be represented. Image compression Reducing the amount of data required to represent an image. Enabling efficient image storage and transmission. f ^f 13

14 Lossless compression 14

15 Objective Measures of Image Quality: Rate 15

16 Objective Measures of Image Quality: Compression Ratio Compression ratio serves as the primary measure of a compression technique s effectiveness. It is a measure of the number of bits that can be eliminated from an uncompressed representation of a source image. Let N1 be the total number of bits required to store an uncompressed (raw) source image and let N2 be the total number of bits required to store the compressed data. The compression ratio Cr is then defined as the ratio of N1 to N2 Larger compression ratios indicate more effective compression Smaller compression ratios indicate less effective compression Compression ratios less than one indicate that the compressed representation is actually larger than the uncompressed representation. 16

17 Objective Measures of Image Quality 17

18 Objective Measures of Image Quality Objective fidelity criteria 18

19 MSE vs PSNR 19

20 Subjective Measures of Image Quality The problem The objective image quality measures previously shown does not always fit with our perception of image quality. One solution Let a number of test persons rate the image quality of the images on a scale. This will result in a subjective measure of image quality, or rather fidelity, but it will be based on how we perceive the quality of the images. Subjective fidelity criteria Excellent Fine Passable Marginal Inferior unusable 20

21 Information Measure Using Elements of Information theory 21

22 Example Assume that the grading levels are A, B, C, D, E, F These are equally distributed How much information do you have if you know that you don t have grade F? How much information is needed to know your exact grade? (5/6)*-log 2 (5/6) = 0,22 bits log 2 (6) - ((1/6)*-log 2 (1/6)) = 2,15 bits

23 Information Measure: Entropy Shannon Entropy = average information per source output H(z)= L 1 k=0 p r k log 2 p(rk) where rk is gray level number k, and L is the number of gray levels.

24 Measure the Amount of Data The average length of the code words assigned to various gray-level values is found by summing the product of the number of bits used to represent each gray level and the probability that the gray level occurs 24

25 Example 3-bit image 25

26 The noiseless coding theorem It is possible to make L avg/n arbitrary close to H(z) by coding infinitely long extensions of the source lim n L avg / n n H ( z)

27 Redundancy Coding Redundancy: Some gray levels are more common than others. Inter-pixel Redundancy: The same gray level may cover a large area. Psycho-Visual Redundancy: The eye can only resolve about 32 gray levels locally M. C. Escher, Drawing Hands,

28 Definitions (revisited) Larger compression ratios indicate more effective compression Smaller compression ratios indicate less effective compression Compression ratios less than one indicate that the compressed representation is actually larger than the uncompressed representation. 28

29 Dealing with coding redundancy Basic idea: Different gray levels occur with different probability (non uniform histogram). Use shorter code words for the more common gray levels and longer code words for less common gray levels. This is called Variable Code Length. Code 1 Lavg = 3 Code 2 Lavg = 2,7 29

30 Revisit: Desired properties of symbol codes good codes are not only short but also easy to encode/decode Non-singular: every symbol in X maps to a different code word. Uniquely decodable: every sequence {x1, xn} maps to different codeword sequence. Instantaneous: no codeword is a prefix of any other codeword a.k.a. prefix code, self-punctuating code, prefix-free code. 30

31 Huffman Coding First 1. Sort the gray levels by decreasing probability 2. Sum the two smallest probabilities. 3. Sort the new value into the list. 4. Repeat 1 to 3 until only two probabilities remains. David Albert Huffman Second 1. Give the code 0 to the highest probability, and the code 1 to the lowest probability in the summed pair. 2. Go backwards through the tree one node and repeat from 1 until all gray levels have a unique code. 31

32 Example of Huffman coding 32

33 Huffman Coding First 1. Sort the gray levels by decreasing probability 2. Sum the two smallest probabilities. 3. Sort the new value into the list. 4. Repeat 1 to 3 until only two probabilities remains. David Albert Huffman Second 1. Give the code 0 to the highest probability, and the code 1 to the lowest probability in the summed pair. 2. Go backwards through the tree one node and repeat from 1 until all gray levels have a unique code. 33

34 Example of Huffman coding Assigning codes 34

35 Example of Huffman coding 35

36 Huffman coding. The Huffman code is completely reversible, i.e., lossless. The table for the translation has to be stored together with the coded image. The resulting code is unambiguous. That is, for the previous example, the encoded string can only be parsed into the code words 0, 110, 1110, 1011 and decoded as 7, 4, 5, 0. The Huffman code does not take correlation between adjacent pixels into consideration. 36

37 Interpixel Redundancy Also called spatial or geometric redundancy Adjacent pixels are often correlated, i.e., the value of neighboring pixels of an observed pixel can often be predicted from the value of the observed pixel. Coding methods: Run-length coding Difference coding 37

38 Run-length coding Every code word is made up of a pair (g,l) where g is the gray level, and l is the number of pixels with that gray level (length or run ). E.g., results in the run-length code (1,3)(3,3)(4,1)(2,4)(1,5) The code is calculated row by row in this scan pattern: (Newer methods can take advantage of runs of repetitive patterns like: ) 38

39 Difference coding Definition: E.g., The code is calculated row by row in the following scan pattern: Both run-length and difference coding are reversible and can be combined with, e.g., Huffman coding. 39

40 Combining Difference and Huffman Coding Original image Difference coding 40

41 Combining Difference and Huffman Coding 41

42 Combining Difference and Huffman Coding 42

43 LZW Coding What if the symbol probabilities are unknown? LZW, Lempel-Ziv-Welch In contrast to Huffman with variable code length, LZW uses fixed lengths of code words which are assigned to variable length sequences of source symbols. The coding is done from left-to-right and row-by-row. Requires no a priori knowledge of the probability of occurrence of the symbols to be encoded. Removes some of the inter-pixel redundancy. During encoding a dictionary or code-book with symbol sequences is created which is recreated when decoding. (Many modern lossless compression methods uses Huffman coding in combination with methods like LZW.) 43

44 LZW-Coding Lempel-Ziv-Welch Integrated to mainstream imaging file formats Graphic interchange format GIF Tagged image file format TIFF Portable document format - PDF Widely used: GIF, TIFF, PDF Its royalty-free variant (DEFLATE) used in PNG, ZIP, Unisys U.S. LZW Patent No. 4,558,302 expired on June 20, unisys/lzw

45

46 LZW Coding dictionary (code book) is created while data are being encoded LZW decoder builds an identical decompression dictionary as it decodes the data stream Flush the code book When the codebook is full When coding is inefficient

47 Bit Plane coding Divide the gray level/color image into series of binary images (with one image per bit). Code each image separately using the above described methods. An 8-bit image will be represented by 8 coded binary images. It is based on the concept of decomposing a multilevel image into a series of binary images and compressing each binary image via one of several well-known binary compression methods Alternative decomposition approach start with representation of Gray code successive gray level differ with one bit

48 Constant area coding (CAC) Image is divided into areas of size p x q Classify all white, all black, mixed Example white=0, black=10, mixed = 11+pixel values If dominantly white Example white=0, black or mixed = 1 + pixel values

49 Lossless Predictive Coding Does not require decomposition of an image into a collection of bitplanes Based on eliminating the interpixel interference of closely spaced pixels by extracting and coding only the new information in each pixel Contains encoder, decoder and predictor The output of the predictor is rounded to the nearest integer

50 Lossless Predictive Coding Prediction error Is coded using an variable length code Decoder reconstructs The predictor uses m previous pixels n n n f f e ˆ n n n f e f ˆ )], ( [ ), ( ˆ 1 m i i n i y x f round y x f

51 Lossy Predictive Compression A Typical Predictive Coder

52 Lossy Predictive Compression Reduce the accuracy of the saved image for increased compression One of the simplest lossy predictive coding schemes is known as Delta Modulation. Record the approximate error (difference) between the predicted and actual samples values. For a sequence of samples S that are indexed by k to generate an approximate sequence of samples S by using a fixed delta value, the approximate error is given by 52

53 Lossy Predictive Compression: Effect of delta value 53

54 Delta Modulation Example 54

55 Delta Modulation Example 55

56 Psycho-Visual Redundancy If the only intended use of an image is visual observation, much of the information can be psycho-visual redundant, i.e., it can be removed without changing the visual appearance or perceived quality of the image. Loss of information inflict a lossy method kb (uncompressed) 78 kb (low quality JPEG) 56

57 Psycho-Visual redundancy Psycho-Visual redundancy is often reduced by quantification. E.g., Uniform quantification of gray levels Remove the least significant bits of the data. Causes edge effects. The edge effects can be reduced by Improved Gray Scale (IGS). Remove the least significant bit, and add a random number based on the sum of the least significant bits of the present, and the previous pixel. IGS reduces edge effects, but will at the same time unsharpen true edges. 57

58 Improved Gray Scale (IGS) (a) Original image. (b) Uniform quantization to 16 levels. (c) IGS quantization to 16 levels. 58

59 Transform Coding A compression technique that is based on modifying the transform of an image For most natural images a significant number of the coefficients have small magnitudes and can be coarsely quantized or discarded with little image distortion

60 Transform Coding Sub image decomposition Transformation Quantization Coding Adaptive transform coding or nonadaptive transform coding

61 Transform Coding 1) Divide the image into n n sub-images. 2) Transform each sub-image using a reversible transform (e.g., the Hotelling transform, the discrete Fourier transform (DFT) or the discrete cosine transform (DCT)). 3) Quantify, i.e., truncate the transformed image (e.g., by using DFT, and DCT frequencies with small amplitude can be removed without much information loss). The quantification can be either image dependent (IDP) or image independent (IIP). 4) Code the resulting data, normally using some kind of variable length coding, e.g., Huffman code. The coding is not reversible (unless step 3 is skipped).

62 g(x,y,u,v) = Forward transformation kernel h(x,y,u,v) = Inverse transformation kernel ),,, ( ), ( ), ( N x N y v u y x g y x f v u T ),,, ( ), ( ), ( N u N v v u y x h v u T y x f

63 Fourier Transform N vy ux j N vy ux j e N v u y x h e N v u y x g )/ ( 2 2 )/ ( ),,, ( 1 ),,, (

64 Walsh-Hadamard Transform - WHT 1 0 )] ( ) ( ) ( ) ( [ 1) ( 1 ),,, ( ),,, ( m i i i i i v p y b u p x b N v u y x h v u y x g The Fourier Transform consists of a projection onto a set of orthogonal sinusoidal waveforms. The FT coefficients are called frequency components and the waveforms are ordered by frequency. The Hadamard Transform consists of a projection onto a set of square waves called Walsh functions. The HT coefficients are called sequence components and the Walsh functions are ordered by the number of their zero-crossings.

65 Discrete Cosine Transform - DCT The discrete cosine transform (DCT) is used to transform a signal from the spatial domain into the frequency domain. The reverse process, that of transforming a signal from the frequency domain into the spatial domain, is called the inverse discrete cosine transform (IDCT). A signal in the frequency domain contains the same information as that in the spatial domain. The order of values obtained by applying the DCT is coincidentally from lowest to highest frequency This feature and the psychological observation that the human eye and ear are less sensitive to recognizing the higher-order frequencies leads to the possibility of compressing a spatial signal by transforming it to the frequency domain and dropping high-order values and keeping low-order ones. When reconstructing the signal, and transforming it back to the spatial domain, the results are remarkably similar to the original signal.

66 Discrete Cosine Transform - DCT , 2 / 0 1/ ) ( ) 2 1) (2 )cos( 2 1) (2 )cos( ( ) ( ),,, ( N u N u N u N v y N u x v u v u y x h

67 JPEG - Sequential baseline system Limited to 8-bit words DCT-values restricted to 11 bit DCT computation, quantization, variable length coding Subimages 8 x 8 left to right, top to bottom

68 Image size selection

69 JPEG: example of transform coding File size in bytes JPEG quality % % % % % % % % 70

70 Wavelet Coding The principal difference between wavelet coding and transform coding is the omisson of the subimage processing stage JPEG2000

71 File Formats with Lossy Compression JPEG, Joint Photographic Experts Group, based on a cosine transform on 8x8 pixel blocks and Run- Length coding. Give arise to ringing and block artifacts. (.jpg.jpe.jpeg) JPEG2000, created by the Joint Photographic Experts Group in Based on wavelet transform and is superior to JPEG. Give arise only to ringing artifacts and allows flexible decompression (progressive transmission, region of interest,...) and reading. (.jp2.jpx) 72

72 JPEG vs JPEG

73 Typical steps in losy image compression 74

74 How to represent a face image 75

75 DCT Approach (block-based) =a +b +f +g +x

76 PCA Approach (full-frame) 77

77 JPEG/JFIF overview 78

78 Using the 2D FFT for image compression Image = 200x320 matrix of values Compress by keeping largest 2.5% of FFT components Similar idea used by jpeg 79

79 Trade-off 80

80 File Formats with Lossless Compression TIFF, Tagged Image File Format, flexible format often supporting up to 16 bits/pixel in 4 channels. Can use several different compression methods, e.g., Huffman, LZW. GIF, Graphics Interchange Format. Supports 8 bits/pixel in one channel, that is only 256 colors. Uses LZW compression. Supports animations. PNG, Portable Network Graphics, supports up to 16 bits/pixel in 4 channels (RGB + transparency). Uses Deflate compression (~LZW and Huffman). Good when interpixel redundancy is present. 81

81 Vector based file formats 82

82 Vector based file formats PS, PostScript, is a page description language developed in 1982 for sending text documents to printers. EPS, Encapsulated PostScript, like PS but can embed raster images internally using the TIFF format. PDF, Portable Document Format, widely used for documents and are supported by a wide range of platforms. Supports embedding of fonts and raster/bitmap images. Beware of the choice of coding. Both lossy and lossless compressions are supported. SVG, Scalable Vector Graphics, based on XML supports both static and dynamic content. All major web browsers supports it (Internet Explorer from version 9). 83

83 Choosing image file format Image analysis Lossless formats are vital. TIFF supports a wide range of different bit depths and lossless compression methods. Images for use on the web JPEG for photos (JPEG2000), PNG for illustrations. GIF for small animations. Vector format: SVG, nowadays supported by web browsers. Line art, illustrations, logotypes, etc. Lossless formats such as PNG etc. (or a vector format) 84

84 Video Compression 85

85 Video Compression Standards Once video is in digital format, it makes sense to compress it Similarly to image compression, we want to store video data as efficiently as possible Again, we want to both maximize quality and minimize storage space and processing resources This time, we can exploit correlation in both space and time domains

86 Video Compression Standards Unlike image encoding, video encoding is rarely done in lossless form No storage medium has enough capacity to store a practical sized lossless video file Lossless DVD video Mbps Compressed DVD video - 4 Mbps 50:1 compression ratio! Teleconference H.261, H.262, H.263, H.230 Multimedia video MPEG-1 MPEG-2 MPEG-4

87 Two organizations dominate video compression standardization: ITU-T Video Coding Experts Group (VCEG) International Telecommunications Union Telecommunications Standardization Sector (ITU-T, a United Nations Organization, formerly CCITT), ISO/IEC Moving Picture Experts Group (MPEG) International Standardization Organization and International Electrotechnical Commission, Joint Technical Committee Number 1, Subcommittee 29, Working Group 11 88

88 Definitions Bitrate Information stored/transmitted per unit time Usually measured in Mbps (Megabits per second) Ranges from < 1 Mbps to > 40 Mbps Resolution Number of pixels per frame Ranges from 160x120 to 1920x1080 FPS (frames per second) Usually 24, 25, 30, or 60 Don t need more because of limitations of the human eye 89

89 Scan types Interlaced scan Odd and even lines displayed on alternate frames Initially used to save bandwidth on TV transmission When displaying interlaced video on a progressive scan display, can see comb effect Progressive scan Display all lines on each frame New fixed-resolution displays (such as LCD, Plasma) all use progressive scan Deinterlacing is not a trivial task 90

90 MPEG (Moving Pictures Expert Group) Committee of experts that develops video encoding standards Until recently, was the only game in town (still the most popular, by far) Suitable for wide range of videos Low resolution to high resolution Slow movement to fast action Can be implemented either in software or hardware 91

91 MPEG (Moving Pictures Expert Group) MPEG:s main components are: Block (8 8 pixels) Macro block (2 2 block) Slice (One row of macro blocks) Picture (An entire video frame) Group of pictures (GOP) Video Sequence (One or more GOP:s) 92

92 MPEG 8 8 Block Macro block Slice 93

93 Evolution of MPEG MPEG-1 Initial audio/video compression standard Used by VCD s MP3 = MPEG-1 audio layer 3 Target of 1.5 Mb/s bitrate at 352x240 resolution Only supports progressive pictures MPEG-2 Current de facto standard, widely used in DVD and Digital TV Ubiquity in hardware implies that it will be here for a long time Transition to HDTV has taken over 10 years and is not finished yet Different profiles and levels allow for quality control

94 Evolution of MPEG MPEG-2 Current de facto standard, widely used in DVD and Digital TV Ubiquity in hardware implies that it will be here for a long time Transition to HDTV has taken over 10 years and is not finished yet Different profiles and levels allow for quality control

95 Evolution of MPEG MPEG-3 Originally developed for HDTV, but abandoned when MPEG-2 was determined to be sufficient MPEG-4 Includes support for AV objects, 3D content, low bitrate encoding, and DRM In practice, provides equal quality to MPEG-2 at a lower bitrate, but often fails to deliver outright better quality MPEG-4 Part 10 is H.264, which is used in HD-DVD and Blu-Ray MPEG-7, 2001 : metadata for audio-video streams, Multimedia Content Description Interface MPEG-21, 2002 : distribution, exchange, user access of multimedia data and intellectual property management

96 MPEG Block Diagram

97 MPEG technical specification Part 1 - Systems - describes synchronization and multiplexing of video and audio. Part 2 - Video - compression codec for interlaced and noninterlaced video signals. Part 3 - Audio - compression codec for perceptual coding of audio signals. A multichannel-enabled extension of MPEG-1 audio. Part 4 - Describes procedures for testing compliance. Part 5 - Describes systems for Software simulation. Part 6 - Describes extensions for DSM-CC (Digital Storage Media Command and Control.) Part 7 - Advanced Audio Coding (AAC) Part 8 - Deleted Part 9 - Extension for real time interfaces. Part 10 - Conformance extensions for DSM-CC.

98 MPEG video spatial domain processing Spatial domain handled very similarly to JPEG Convert RGB values to YUV colorspace Split frame into 8x8 blocks 2-D DCT on each block Quantization of DCT coefficients Run length and entropy coding

99 Intra-Frame Encoded Quantization major reduction controls quality Zig-Zag Scan, Run-length coding 100

100 MPEG YUV compression Y Y Y Y U V Y Y Y Y U U V V 4:2:0 4:2:2 Y Y Y Y U V Y Y U U V V Y Y Y Y U V Y Y U U V V 4:1:1 4:4:4 4:2:0 or 4:1:1 common in consumer products (DV) 4:2:2 common on professional products (DVCPro) 4:4:4 is rarely used gives no visible improvement compared with 4:2:2 101

101 MPEG Block compression The same as JPEG 8 High frequencies DCT Quantization Low Frequencies Spatial domain Frequency domain RLE Huffman 102

102 MPEG video time domain processing (Temporal compression) Adjacent frames share large similarities Temporal compression can be achieved in two ways: Discarding images (reduce the frame rate) Through motion estimation and motion vectors 103

103 MPEG video time domain processing Totally new ballgame (this concept doesn t exist in JPEG) General idea Use motion vectors to specify how a 16x16 macroblock translates between reference frames and current frame, then code difference between reference and actual block

104 Types of frames I frame (intra-coded) Coded without reference to other frames P frame (predictive-coded) Coded with reference to a previous reference frame (either I or P) Size is usually about 1/3 rd of an I frame B frame (bi-directional predictive-coded) Coded with reference to both previous and future reference frames (either I or P) Size is usually about 1/6 th of an I frame

105 GOP (Group of Pictures) GOP is a set of consecutive frames that can be decoded without any other reference frames Usually 12 or 15 frames Transmitted sequence is not the same as displayed sequence Random access to middle of stream Start with I frame

106 Things about prediction Only use motion vector if a close match can be found Evaluate closeness with MSE or other metric Can t search all possible blocks, so need a smart algorithm If no suitable match found, just code the macroblock as an I-block If a scene change is detected, start fresh Don t want too many P or B frames in a row Predictive error will keep propagating until next I frame Delay in decoding

107 MPEG Group Of Pictures (GOP) MPEG uses three types of frames Grouped in a Group Of Pictures (GOP) I-pictures (Intracoded) P-pictures (Predictive Coded) B-pictures (Bidirectionally interpolated) I B B P B B P Forward Prediction I B B P B B P Bidirectional Prediction 108

108 Compressed video stream 109

109 Temporal Redundancy Reduction I frames are independently encoded P frames are based on previous I, P frames B frames are based on previous and following I and P frames In case something is uncovered

110 MPEG Motion Estimation Macro block Calculate the position for the macro block in the new image Store the motion vector and difference in appearance 111

111 MPEG Motion Estimation Help understanding the content of image sequence Help reduce temporal redundancy of video For compression Stabilizing video by detecting and removing small, noisy global motions For building stabilizer in camcorder A hard problem in general! 112

112 Bitrate allocation CBR Constant BitRate Streaming media uses this Easier to implement VBR Variable BitRate DVD s use this Usually requires 2-pass coding Allocate more bits for complex scenes This is worth it, because you assume that you encode once, decode many times

113 MPEG Data stream Display order I B B P B B P Order in data stream I P B B P B B

114 MPEG - Audio MPEG-1 3 layers of increasing quality, layer 3 being the most common (MP3) 16 bits Samping rate - 32, 44.1, or 48 khz Bitrate 32 to 320 kbps De facto khz sample rate, 192 kbps bitrate MPEG-2 Supports > 2 channels, lower sampling frequencies, low bitrate improvement AAC (Advanced Audio Coding) More sample frequencies (8 khz to 96 khz) Higher coding efficiency and simpler filterbank 96 kbps AAC sounds better than 128 kbps MP3 Usually CBR, but can do VBR

115 MPEG Container Format Container format is a file format that can contain data compressed by standard codecs 2 types for MPEG Program Stream (PS) Designed for reasonably reliable media, such as disks Transport Stream (TS) Designed for lossy links, such as networks or broadcast antennas

116 AV Synchronization Want audio and video streams to be played back in sync with each other Video stream contains presentation timestamps MPEG-2 clock runs at 90 khz Good for both 25 and 30 fps PCR (Program Clock Reference) timestamps are sent with data by sender Receiver uses PLL (Phase Lock Loop) to synchronize clocks

117 Real time video encoding Motion estimation will be worse, so need higher bitrate to compensate Very hard to do in software, need dedicated hardware or hardware assistance Tivo, ReplayTV do this

118 Streaming media Common types include Flash, RealVideo, Quicktime Usually have low bandwidth available, need to optimize as such Want dedicated network protocols for this purpose TCP will wait indefinitely for retransmission, so is often not suitable

119 MPEG data stream

120 Analysis Pros Overall sharp picture Audio and video stay in sync with each other What if we were transmitting this over a network? Cons Picture flashes, blurs when there is too much movement on screen Higher bitrate often does not solve this problem

121 Image/Video Compression Standards Bitstream useful only if the recipient knows the code! Standardization efforts are important Technology and algorithm benchmark System definition and development Patent pool management Defines the bitstream (decoder), not how you generate them (encoder)! 122

122 current industry focus: H.264 encoding/decoding on mobile devices, low-latency video transmission over various networks, low-power video codec 123

123 audio coding versus image coding 124

124 VC demo 125

Image coding and compression

Image coding and compression Image coding and compression Robin Strand Centre for Image Analysis Swedish University of Agricultural Sciences Uppsala University Today Information and Data Redundancy Image Quality Compression Coding

More information

Image Coding and Compression

Image Coding and Compression Lecture 17, Image Coding and Compression GW Chapter 8.1 8.3.1, 8.4 8.4.3, 8.5.1 8.5.2, 8.6 Suggested problem: Own problem Calculate the Huffman code of this image > Show all steps in the coding procedure,

More information

Data and information. Image Codning and Compression. Image compression and decompression. Definitions. Images can contain three types of redundancy

Data and information. Image Codning and Compression. Image compression and decompression. Definitions. Images can contain three types of redundancy Image Codning and Compression data redundancy, Huffman coding, image formats Lecture 7 Gonzalez-Woods: 8.-8.3., 8.4-8.4.3, 8.5.-8.5.2, 8.6 Carolina Wählby carolina@cb.uu.se 08-47 3469 Data and information

More information

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression

IMAGE COMPRESSION. Image Compression. Why? Reducing transportation times Reducing file size. A two way event - compression and decompression IMAGE COMPRESSION Image Compression Why? Reducing transportation times Reducing file size A two way event - compression and decompression 1 Compression categories Compression = Image coding Still-image

More information

CSCD 443/533 Advanced Networks Fall 2017

CSCD 443/533 Advanced Networks Fall 2017 CSCD 443/533 Advanced Networks Fall 2017 Lecture 18 Compression of Video and Audio 1 Topics Compression technology Motivation Human attributes make it possible Audio Compression Video Compression Performance

More information

IMAGE COMPRESSION. Chapter - 5 : (Basic)

IMAGE COMPRESSION. Chapter - 5 : (Basic) Chapter - 5 : IMAGE COMPRESSION (Basic) Q() Explain the different types of redundncies that exists in image.? (8M May6 Comp) [8M, MAY 7, ETRX] A common characteristic of most images is that the neighboring

More information

Lecture 5: Compression I. This Week s Schedule

Lecture 5: Compression I. This Week s Schedule Lecture 5: Compression I Reading: book chapter 6, section 3 &5 chapter 7, section 1, 2, 3, 4, 8 Today: This Week s Schedule The concept behind compression Rate distortion theory Image compression via DCT

More information

06/12/2017. Image compression. Image compression. Image compression. Image compression. Coding redundancy: image 1 has four gray levels

06/12/2017. Image compression. Image compression. Image compression. Image compression. Coding redundancy: image 1 has four gray levels Theoretical size of a file representing a 5k x 4k colour photograph: 5000 x 4000 x 3 = 60 MB 1 min of UHD tv movie: 3840 x 2160 x 3 x 24 x 60 = 36 GB 1. Exploit coding redundancy 2. Exploit spatial and

More information

VC 12/13 T16 Video Compression

VC 12/13 T16 Video Compression VC 12/13 T16 Video Compression Mestrado em Ciência de Computadores Mestrado Integrado em Engenharia de Redes e Sistemas Informáticos Miguel Tavares Coimbra Outline The need for compression Types of redundancy

More information

Compression; Error detection & correction

Compression; Error detection & correction Compression; Error detection & correction compression: squeeze out redundancy to use less memory or use less network bandwidth encode the same information in fewer bits some bits carry no information some

More information

IMAGE PROCESSING (RRY025) LECTURE 13 IMAGE COMPRESSION - I

IMAGE PROCESSING (RRY025) LECTURE 13 IMAGE COMPRESSION - I IMAGE PROCESSING (RRY025) LECTURE 13 IMAGE COMPRESSION - I 1 Need For Compression 2D data sets are much larger than 1D. TV and movie data sets are effectively 3D (2-space, 1-time). Need Compression for

More information

Lecture 6: Compression II. This Week s Schedule

Lecture 6: Compression II. This Week s Schedule Lecture 6: Compression II Reading: book chapter 8, Section 1, 2, 3, 4 Monday This Week s Schedule The concept behind compression Rate distortion theory Image compression via DCT Today Speech compression

More information

Video Compression An Introduction

Video Compression An Introduction Video Compression An Introduction The increasing demand to incorporate video data into telecommunications services, the corporate environment, the entertainment industry, and even at home has made digital

More information

DIGITAL TELEVISION 1. DIGITAL VIDEO FUNDAMENTALS

DIGITAL TELEVISION 1. DIGITAL VIDEO FUNDAMENTALS DIGITAL TELEVISION 1. DIGITAL VIDEO FUNDAMENTALS Television services in Europe currently broadcast video at a frame rate of 25 Hz. Each frame consists of two interlaced fields, giving a field rate of 50

More information

ECE 417 Guest Lecture Video Compression in MPEG-1/2/4. Min-Hsuan Tsai Apr 02, 2013

ECE 417 Guest Lecture Video Compression in MPEG-1/2/4. Min-Hsuan Tsai Apr 02, 2013 ECE 417 Guest Lecture Video Compression in MPEG-1/2/4 Min-Hsuan Tsai Apr 2, 213 What is MPEG and its standards MPEG stands for Moving Picture Expert Group Develop standards for video/audio compression

More information

Topic 5 Image Compression

Topic 5 Image Compression Topic 5 Image Compression Introduction Data Compression: The process of reducing the amount of data required to represent a given quantity of information. Purpose of Image Compression: the reduction of

More information

Professor Laurence S. Dooley. School of Computing and Communications Milton Keynes, UK

Professor Laurence S. Dooley. School of Computing and Communications Milton Keynes, UK Professor Laurence S. Dooley School of Computing and Communications Milton Keynes, UK How many bits required? 2.4Mbytes 84Kbytes 9.8Kbytes 50Kbytes Data Information Data and information are NOT the same!

More information

7: Image Compression

7: Image Compression 7: Image Compression Mark Handley Image Compression GIF (Graphics Interchange Format) PNG (Portable Network Graphics) MNG (Multiple-image Network Graphics) JPEG (Join Picture Expert Group) 1 GIF (Graphics

More information

Digital Video Processing

Digital Video Processing Video signal is basically any sequence of time varying images. In a digital video, the picture information is digitized both spatially and temporally and the resultant pixel intensities are quantized.

More information

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION

15 Data Compression 2014/9/21. Objectives After studying this chapter, the student should be able to: 15-1 LOSSLESS COMPRESSION 15 Data Compression Data compression implies sending or storing a smaller number of bits. Although many methods are used for this purpose, in general these methods can be divided into two broad categories:

More information

Computer and Machine Vision

Computer and Machine Vision Computer and Machine Vision Deeper Dive into MPEG Digital Video Encoding January 22, 2014 Sam Siewert Reminders CV and MV Use UNCOMPRESSED FRAMES Remote Cameras (E.g. Security) May Need to Transport Frames

More information

Compression; Error detection & correction

Compression; Error detection & correction Compression; Error detection & correction compression: squeeze out redundancy to use less memory or use less network bandwidth encode the same information in fewer bits some bits carry no information some

More information

Multimedia Systems Image III (Image Compression, JPEG) Mahdi Amiri April 2011 Sharif University of Technology

Multimedia Systems Image III (Image Compression, JPEG) Mahdi Amiri April 2011 Sharif University of Technology Course Presentation Multimedia Systems Image III (Image Compression, JPEG) Mahdi Amiri April 2011 Sharif University of Technology Image Compression Basics Large amount of data in digital images File size

More information

Fundamentals of Video Compression. Video Compression

Fundamentals of Video Compression. Video Compression Fundamentals of Video Compression Introduction to Digital Video Basic Compression Techniques Still Image Compression Techniques - JPEG Video Compression Introduction to Digital Video Video is a stream

More information

2014 Summer School on MPEG/VCEG Video. Video Coding Concept

2014 Summer School on MPEG/VCEG Video. Video Coding Concept 2014 Summer School on MPEG/VCEG Video 1 Video Coding Concept Outline 2 Introduction Capture and representation of digital video Fundamentals of video coding Summary Outline 3 Introduction Capture and representation

More information

Index. 1. Motivation 2. Background 3. JPEG Compression The Discrete Cosine Transformation Quantization Coding 4. MPEG 5.

Index. 1. Motivation 2. Background 3. JPEG Compression The Discrete Cosine Transformation Quantization Coding 4. MPEG 5. Index 1. Motivation 2. Background 3. JPEG Compression The Discrete Cosine Transformation Quantization Coding 4. MPEG 5. Literature Lossy Compression Motivation To meet a given target bit-rate for storage

More information

Video coding. Concepts and notations.

Video coding. Concepts and notations. TSBK06 video coding p.1/47 Video coding Concepts and notations. A video signal consists of a time sequence of images. Typical frame rates are 24, 25, 30, 50 and 60 images per seconds. Each image is either

More information

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression Digital Compression Page 8.1 DigiPoints Volume 1 Module 8 Digital Compression Summary This module describes the techniques by which digital signals are compressed in order to make it possible to carry

More information

Image compression. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Image compression. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year Image compression Stefano Ferrari Università degli Studi di Milano stefano.ferrari@unimi.it Methods for Image Processing academic year 2017 2018 Data and information The representation of images in a raw

More information

MULTIMEDIA AND CODING

MULTIMEDIA AND CODING 07 MULTIMEDIA AND CODING WHAT MEDIA TYPES WE KNOW? TEXTS IMAGES SOUNDS MUSIC VIDEO INTERACTIVE CONTENT Games Virtual reality EXAMPLES OF MULTIMEDIA MOVIE audio + video COMPUTER GAME audio + video + interactive

More information

IMAGE COMPRESSION TECHNIQUES

IMAGE COMPRESSION TECHNIQUES IMAGE COMPRESSION TECHNIQUES A.VASANTHAKUMARI, M.Sc., M.Phil., ASSISTANT PROFESSOR OF COMPUTER SCIENCE, JOSEPH ARTS AND SCIENCE COLLEGE, TIRUNAVALUR, VILLUPURAM (DT), TAMIL NADU, INDIA ABSTRACT A picture

More information

Part 1 of 4. MARCH

Part 1 of 4. MARCH Presented by Brought to You by Part 1 of 4 MARCH 2004 www.securitysales.com A1 Part1of 4 Essentials of DIGITAL VIDEO COMPRESSION By Bob Wimmer Video Security Consultants cctvbob@aol.com AT A GLANCE Compression

More information

Wireless Communication

Wireless Communication Wireless Communication Systems @CS.NCTU Lecture 6: Image Instructor: Kate Ching-Ju Lin ( 林靖茹 ) Chap. 9 of Fundamentals of Multimedia Some reference from http://media.ee.ntu.edu.tw/courses/dvt/15f/ 1 Outline

More information

Digital Image Processing

Digital Image Processing Lecture 9+10 Image Compression Lecturer: Ha Dai Duong Faculty of Information Technology 1. Introduction Image compression To Solve the problem of reduncing the amount of data required to represent a digital

More information

Digital video coding systems MPEG-1/2 Video

Digital video coding systems MPEG-1/2 Video Digital video coding systems MPEG-1/2 Video Introduction What is MPEG? Moving Picture Experts Group Standard body for delivery of video and audio. Part of ISO/IEC/JTC1/SC29/WG11 150 companies & research

More information

Introduction to Video Encoding

Introduction to Video Encoding Introduction to Video Encoding INF5063 23. September 2011 History of MPEG Motion Picture Experts Group MPEG1 work started in 1988, published by ISO in 1993 Part 1 Systems, Part 2 Video, Part 3 Audio, Part

More information

VIDEO COMPRESSION STANDARDS

VIDEO COMPRESSION STANDARDS VIDEO COMPRESSION STANDARDS Family of standards: the evolution of the coding model state of the art (and implementation technology support): H.261: videoconference x64 (1988) MPEG-1: CD storage (up to

More information

Lecture 8 JPEG Compression (Part 3)

Lecture 8 JPEG Compression (Part 3) CS 414 Multimedia Systems Design Lecture 8 JPEG Compression (Part 3) Klara Nahrstedt Spring 2012 Administrative MP1 is posted Today Covered Topics Hybrid Coding: JPEG Coding Reading: Section 7.5 out of

More information

Week 14. Video Compression. Ref: Fundamentals of Multimedia

Week 14. Video Compression. Ref: Fundamentals of Multimedia Week 14 Video Compression Ref: Fundamentals of Multimedia Last lecture review Prediction from the previous frame is called forward prediction Prediction from the next frame is called forward prediction

More information

Image, video and audio coding concepts. Roadmap. Rationale. Stefan Alfredsson. (based on material by Johan Garcia)

Image, video and audio coding concepts. Roadmap. Rationale. Stefan Alfredsson. (based on material by Johan Garcia) Image, video and audio coding concepts Stefan Alfredsson (based on material by Johan Garcia) Roadmap XML Data structuring Loss-less compression (huffman, LZ77,...) Lossy compression Rationale Compression

More information

CISC 7610 Lecture 3 Multimedia data and data formats

CISC 7610 Lecture 3 Multimedia data and data formats CISC 7610 Lecture 3 Multimedia data and data formats Topics: Perceptual limits of multimedia data JPEG encoding of images MPEG encoding of audio MPEG and H.264 encoding of video Multimedia data: Perceptual

More information

Image and Video Coding I: Fundamentals

Image and Video Coding I: Fundamentals Image and Video Coding I: Fundamentals Heiko Schwarz Freie Universität Berlin Fachbereich Mathematik und Informatik H. Schwarz (FU Berlin) Image and Video Coding Organization Vorlesung: Montag 14:15-15:45

More information

Introduction to Video Compression

Introduction to Video Compression Insight, Analysis, and Advice on Signal Processing Technology Introduction to Video Compression Jeff Bier Berkeley Design Technology, Inc. info@bdti.com http://www.bdti.com Outline Motivation and scope

More information

IMAGE COMPRESSION- I. Week VIII Feb /25/2003 Image Compression-I 1

IMAGE COMPRESSION- I. Week VIII Feb /25/2003 Image Compression-I 1 IMAGE COMPRESSION- I Week VIII Feb 25 02/25/2003 Image Compression-I 1 Reading.. Chapter 8 Sections 8.1, 8.2 8.3 (selected topics) 8.4 (Huffman, run-length, loss-less predictive) 8.5 (lossy predictive,

More information

International Journal of Emerging Technology and Advanced Engineering Website: (ISSN , Volume 2, Issue 4, April 2012)

International Journal of Emerging Technology and Advanced Engineering Website:   (ISSN , Volume 2, Issue 4, April 2012) A Technical Analysis Towards Digital Video Compression Rutika Joshi 1, Rajesh Rai 2, Rajesh Nema 3 1 Student, Electronics and Communication Department, NIIST College, Bhopal, 2,3 Prof., Electronics and

More information

VIDEO SIGNALS. Lossless coding

VIDEO SIGNALS. Lossless coding VIDEO SIGNALS Lossless coding LOSSLESS CODING The goal of lossless image compression is to represent an image signal with the smallest possible number of bits without loss of any information, thereby speeding

More information

About MPEG Compression. More About Long-GOP Video

About MPEG Compression. More About Long-GOP Video About MPEG Compression HD video requires significantly more data than SD video. A single HD video frame can require up to six times more data than an SD frame. To record such large images with such a low

More information

Image and video processing

Image and video processing Image and video processing Digital video Dr. Pengwei Hao Agenda Digital video Video compression Video formats and codecs MPEG Other codecs Web video - 2 - Digital Video Until the arrival of the Pentium

More information

Review and Implementation of DWT based Scalable Video Coding with Scalable Motion Coding.

Review and Implementation of DWT based Scalable Video Coding with Scalable Motion Coding. Project Title: Review and Implementation of DWT based Scalable Video Coding with Scalable Motion Coding. Midterm Report CS 584 Multimedia Communications Submitted by: Syed Jawwad Bukhari 2004-03-0028 About

More information

Image Compression - An Overview Jagroop Singh 1

Image Compression - An Overview Jagroop Singh 1 www.ijecs.in International Journal Of Engineering And Computer Science ISSN: 2319-7242 Volume 5 Issues 8 Aug 2016, Page No. 17535-17539 Image Compression - An Overview Jagroop Singh 1 1 Faculty DAV Institute

More information

Image and Video Coding I: Fundamentals

Image and Video Coding I: Fundamentals Image and Video Coding I: Fundamentals Thomas Wiegand Technische Universität Berlin T. Wiegand (TU Berlin) Image and Video Coding Organization Vorlesung: Donnerstag 10:15-11:45 Raum EN-368 Material: http://www.ic.tu-berlin.de/menue/studium_und_lehre/

More information

CoE4TN4 Image Processing. Chapter 8 Image Compression

CoE4TN4 Image Processing. Chapter 8 Image Compression CoE4TN4 Image Processing Chapter 8 Image Compression Image Compression Digital images: take huge amount of data Storage, processing and communications requirements might be impractical More efficient representation

More information

G64PMM - Lecture 3.2. Analogue vs Digital. Analogue Media. Graphics & Still Image Representation

G64PMM - Lecture 3.2. Analogue vs Digital. Analogue Media. Graphics & Still Image Representation G64PMM - Lecture 3.2 Graphics & Still Image Representation Analogue vs Digital Analogue information Continuously variable signal Physical phenomena Sound/light/temperature/position/pressure Waveform Electromagnetic

More information

Department of electronics and telecommunication, J.D.I.E.T.Yavatmal, India 2

Department of electronics and telecommunication, J.D.I.E.T.Yavatmal, India 2 IJESRT INTERNATIONAL JOURNAL OF ENGINEERING SCIENCES & RESEARCH TECHNOLOGY LOSSLESS METHOD OF IMAGE COMPRESSION USING HUFFMAN CODING TECHNIQUES Trupti S Bobade *, Anushri S. sastikar 1 Department of electronics

More information

Chapter 1. Digital Data Representation and Communication. Part 2

Chapter 1. Digital Data Representation and Communication. Part 2 Chapter 1. Digital Data Representation and Communication Part 2 Compression Digital media files are usually very large, and they need to be made smaller compressed Without compression Won t have storage

More information

Introduction to Video Coding

Introduction to Video Coding Introduction to Video Coding o Motivation & Fundamentals o Principles of Video Coding o Coding Standards Special Thanks to Hans L. Cycon from FHTW Berlin for providing first-hand knowledge and much of

More information

Lecture Information Multimedia Video Coding & Architectures

Lecture Information Multimedia Video Coding & Architectures Multimedia Video Coding & Architectures (5LSE0), Module 01 Introduction to coding aspects 1 Lecture Information Lecturer Prof.dr.ir. Peter H.N. de With Faculty Electrical Engineering, University Technology

More information

MRT based Fixed Block size Transform Coding

MRT based Fixed Block size Transform Coding 3 MRT based Fixed Block size Transform Coding Contents 3.1 Transform Coding..64 3.1.1 Transform Selection...65 3.1.2 Sub-image size selection... 66 3.1.3 Bit Allocation.....67 3.2 Transform coding using

More information

What is multimedia? Multimedia. Continuous media. Most common media types. Continuous media processing. Interactivity. What is multimedia?

What is multimedia? Multimedia. Continuous media. Most common media types. Continuous media processing. Interactivity. What is multimedia? Multimedia What is multimedia? Media types +Text + Graphics + Audio +Image +Video Interchange formats What is multimedia? Multimedia = many media User interaction = interactivity Script = time 1 2 Most

More information

Image and Video Compression Fundamentals

Image and Video Compression Fundamentals Video Codec Design Iain E. G. Richardson Copyright q 2002 John Wiley & Sons, Ltd ISBNs: 0-471-48553-5 (Hardback); 0-470-84783-2 (Electronic) Image and Video Compression Fundamentals 3.1 INTRODUCTION Representing

More information

Digital Image Representation Image Compression

Digital Image Representation Image Compression Digital Image Representation Image Compression 1 Image Representation Standards Need for compression Compression types Lossless compression Lossy compression Image Compression Basics Redundancy/redundancy

More information

Optical Storage Technology. MPEG Data Compression

Optical Storage Technology. MPEG Data Compression Optical Storage Technology MPEG Data Compression MPEG-1 1 Audio Standard Moving Pictures Expert Group (MPEG) was formed in 1988 to devise compression techniques for audio and video. It first devised the

More information

CS 335 Graphics and Multimedia. Image Compression

CS 335 Graphics and Multimedia. Image Compression CS 335 Graphics and Multimedia Image Compression CCITT Image Storage and Compression Group 3: Huffman-type encoding for binary (bilevel) data: FAX Group 4: Entropy encoding without error checks of group

More information

Video Compression MPEG-4. Market s requirements for Video compression standard

Video Compression MPEG-4. Market s requirements for Video compression standard Video Compression MPEG-4 Catania 10/04/2008 Arcangelo Bruna Market s requirements for Video compression standard Application s dependent Set Top Boxes (High bit rate) Digital Still Cameras (High / mid

More information

Features. Sequential encoding. Progressive encoding. Hierarchical encoding. Lossless encoding using a different strategy

Features. Sequential encoding. Progressive encoding. Hierarchical encoding. Lossless encoding using a different strategy JPEG JPEG Joint Photographic Expert Group Voted as international standard in 1992 Works with color and grayscale images, e.g., satellite, medical,... Motivation: The compression ratio of lossless methods

More information

1.Define image compression. Explain about the redundancies in a digital image.

1.Define image compression. Explain about the redundancies in a digital image. 1.Define image compression. Explain about the redundancies in a digital image. The term data compression refers to the process of reducing the amount of data required to represent a given quantity of information.

More information

Multimedia. What is multimedia? Media types. Interchange formats. + Text +Graphics +Audio +Image +Video. Petri Vuorimaa 1

Multimedia. What is multimedia? Media types. Interchange formats. + Text +Graphics +Audio +Image +Video. Petri Vuorimaa 1 Multimedia What is multimedia? Media types + Text +Graphics +Audio +Image +Video Interchange formats Petri Vuorimaa 1 What is multimedia? Multimedia = many media User interaction = interactivity Script

More information

Multimedia Communications. Transform Coding

Multimedia Communications. Transform Coding Multimedia Communications Transform Coding Transform coding Transform coding: source output is transformed into components that are coded according to their characteristics If a sequence of inputs is transformed

More information

ELL 788 Computational Perception & Cognition July November 2015

ELL 788 Computational Perception & Cognition July November 2015 ELL 788 Computational Perception & Cognition July November 2015 Module 11 Audio Engineering: Perceptual coding Coding and decoding Signal (analog) Encoder Code (Digital) Code (Digital) Decoder Signal (analog)

More information

Compression and File Formats

Compression and File Formats Compression and File Formats 1 Compressing Moving Images Methods: Motion JPEG, Cinepak, Indeo, MPEG Known as CODECs compression / decompression algorithms hardware and software implementations symmetrical

More information

PREFACE...XIII ACKNOWLEDGEMENTS...XV

PREFACE...XIII ACKNOWLEDGEMENTS...XV Contents PREFACE...XIII ACKNOWLEDGEMENTS...XV 1. MULTIMEDIA SYSTEMS...1 1.1 OVERVIEW OF MPEG-2 SYSTEMS...1 SYSTEMS AND SYNCHRONIZATION...1 TRANSPORT SYNCHRONIZATION...2 INTER-MEDIA SYNCHRONIZATION WITH

More information

A Comprehensive Review of Data Compression Techniques

A Comprehensive Review of Data Compression Techniques Volume-6, Issue-2, March-April 2016 International Journal of Engineering and Management Research Page Number: 684-688 A Comprehensive Review of Data Compression Techniques Palwinder Singh 1, Amarbir Singh

More information

The Scope of Picture and Video Coding Standardization

The Scope of Picture and Video Coding Standardization H.120 H.261 Video Coding Standards MPEG-1 and MPEG-2/H.262 H.263 MPEG-4 H.264 / MPEG-4 AVC Thomas Wiegand: Digital Image Communication Video Coding Standards 1 The Scope of Picture and Video Coding Standardization

More information

Compression Part 2 Lossy Image Compression (JPEG) Norm Zeck

Compression Part 2 Lossy Image Compression (JPEG) Norm Zeck Compression Part 2 Lossy Image Compression (JPEG) General Compression Design Elements 2 Application Application Model Encoder Model Decoder Compression Decompression Models observe that the sensors (image

More information

AN ANALYTICAL STUDY OF LOSSY COMPRESSION TECHINIQUES ON CONTINUOUS TONE GRAPHICAL IMAGES

AN ANALYTICAL STUDY OF LOSSY COMPRESSION TECHINIQUES ON CONTINUOUS TONE GRAPHICAL IMAGES AN ANALYTICAL STUDY OF LOSSY COMPRESSION TECHINIQUES ON CONTINUOUS TONE GRAPHICAL IMAGES Dr.S.Narayanan Computer Centre, Alagappa University, Karaikudi-South (India) ABSTRACT The programs using complex

More information

Lecture Information. Mod 01 Part 1: The Need for Compression. Why Digital Signal Coding? (1)

Lecture Information. Mod 01 Part 1: The Need for Compression. Why Digital Signal Coding? (1) Multimedia Video Coding & Architectures (5LSE0), Module 01 Introduction to coding aspects 1 Lecture Information Lecturer Prof.dr.ir. Peter H.N. de With Faculty Electrical Engineering, University Technology

More information

compression and coding ii

compression and coding ii compression and coding ii Ole-Johan Skrede 03.05.2017 INF2310 - Digital Image Processing Department of Informatics The Faculty of Mathematics and Natural Sciences University of Oslo After original slides

More information

JPEG Compression Using MATLAB

JPEG Compression Using MATLAB JPEG Compression Using MATLAB Anurag, Sonia Rani M.Tech Student, HOD CSE CSE Department, ITS Bhiwani India ABSTRACT Creating, editing, and generating s in a very regular system today is a major priority.

More information

Lecture 8 JPEG Compression (Part 3)

Lecture 8 JPEG Compression (Part 3) CS 414 Multimedia Systems Design Lecture 8 JPEG Compression (Part 3) Klara Nahrstedt Spring 2011 Administrative MP1 is posted Extended Deadline of MP1 is February 18 Friday midnight submit via compass

More information

Image Compression Algorithm and JPEG Standard

Image Compression Algorithm and JPEG Standard International Journal of Scientific and Research Publications, Volume 7, Issue 12, December 2017 150 Image Compression Algorithm and JPEG Standard Suman Kunwar sumn2u@gmail.com Summary. The interest in

More information

Multimedia Networking ECE 599

Multimedia Networking ECE 599 Multimedia Networking ECE 599 Prof. Thinh Nguyen School of Electrical Engineering and Computer Science Based on B. Lee s lecture notes. 1 Outline Compression basics Entropy and information theory basics

More information

Megapixel Video for. Part 2 of 4. Brought to You by. Presented by Video Security Consultants

Megapixel Video for. Part 2 of 4. Brought to You by. Presented by Video Security Consultants rought to You by 2009 Video Security Consultants Presented by Part 2 of 4 A1 Part 2 of 4 How to Avert a Compression Depression Illustration by Jerry King While bandwidth is widening, larger video systems

More information

So, what is data compression, and why do we need it?

So, what is data compression, and why do we need it? In the last decade we have been witnessing a revolution in the way we communicate 2 The major contributors in this revolution are: Internet; The explosive development of mobile communications; and The

More information

REVIEW ON IMAGE COMPRESSION TECHNIQUES AND ADVANTAGES OF IMAGE COMPRESSION

REVIEW ON IMAGE COMPRESSION TECHNIQUES AND ADVANTAGES OF IMAGE COMPRESSION REVIEW ON IMAGE COMPRESSION TECHNIQUES AND ABSTRACT ADVANTAGES OF IMAGE COMPRESSION Amanpreet Kaur 1, Dr. Jagroop Singh 2 1 Ph. D Scholar, Deptt. of Computer Applications, IK Gujral Punjab Technical University,

More information

CMPT 365 Multimedia Systems. Media Compression - Image

CMPT 365 Multimedia Systems. Media Compression - Image CMPT 365 Multimedia Systems Media Compression - Image Spring 2017 Edited from slides by Dr. Jiangchuan Liu CMPT365 Multimedia Systems 1 Facts about JPEG JPEG - Joint Photographic Experts Group International

More information

Video Coding Standards. Yao Wang Polytechnic University, Brooklyn, NY11201 http: //eeweb.poly.edu/~yao

Video Coding Standards. Yao Wang Polytechnic University, Brooklyn, NY11201 http: //eeweb.poly.edu/~yao Video Coding Standards Yao Wang Polytechnic University, Brooklyn, NY11201 http: //eeweb.poly.edu/~yao Outline Overview of Standards and Their Applications ITU-T Standards for Audio-Visual Communications

More information

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm International Journal of Engineering Research and General Science Volume 3, Issue 4, July-August, 15 ISSN 91-2730 A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

More information

Audio and video compression

Audio and video compression Audio and video compression 4.1 introduction Unlike text and images, both audio and most video signals are continuously varying analog signals. Compression algorithms associated with digitized audio and

More information

Perceptual Coding. Lossless vs. lossy compression Perceptual models Selecting info to eliminate Quantization and entropy encoding

Perceptual Coding. Lossless vs. lossy compression Perceptual models Selecting info to eliminate Quantization and entropy encoding Perceptual Coding Lossless vs. lossy compression Perceptual models Selecting info to eliminate Quantization and entropy encoding Part II wrap up 6.082 Fall 2006 Perceptual Coding, Slide 1 Lossless vs.

More information

Image/video compression: howto? Aline ROUMY INRIA Rennes

Image/video compression: howto? Aline ROUMY INRIA Rennes Image/video compression: howto? Aline ROUMY INRIA Rennes October 2016 1. Why a need to compress video? 2. How-to compress (lossless)? 3. Lossy compression 4. Transform-based compression 5. Prediction-based

More information

Final Review. Image Processing CSE 166 Lecture 18

Final Review. Image Processing CSE 166 Lecture 18 Final Review Image Processing CSE 166 Lecture 18 Topics covered Basis vectors Matrix based transforms Wavelet transform Image compression Image watermarking Morphological image processing Segmentation

More information

JPEG 2000 vs. JPEG in MPEG Encoding

JPEG 2000 vs. JPEG in MPEG Encoding JPEG 2000 vs. JPEG in MPEG Encoding V.G. Ruiz, M.F. López, I. García and E.M.T. Hendrix Dept. Computer Architecture and Electronics University of Almería. 04120 Almería. Spain. E-mail: vruiz@ual.es, mflopez@ace.ual.es,

More information

Outline Introduction MPEG-2 MPEG-4. Video Compression. Introduction to MPEG. Prof. Pratikgiri Goswami

Outline Introduction MPEG-2 MPEG-4. Video Compression. Introduction to MPEG. Prof. Pratikgiri Goswami to MPEG Prof. Pratikgiri Goswami Electronics & Communication Department, Shree Swami Atmanand Saraswati Institute of Technology, Surat. Outline of Topics 1 2 Coding 3 Video Object Representation Outline

More information

7.5 Dictionary-based Coding

7.5 Dictionary-based Coding 7.5 Dictionary-based Coding LZW uses fixed-length code words to represent variable-length strings of symbols/characters that commonly occur together, e.g., words in English text LZW encoder and decoder

More information

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF INFORMATION TECHNOLOGY ACADEMIC YEAR / ODD SEMESTER QUESTION BANK

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF INFORMATION TECHNOLOGY ACADEMIC YEAR / ODD SEMESTER QUESTION BANK KINGS COLLEGE OF ENGINEERING DEPARTMENT OF INFORMATION TECHNOLOGY ACADEMIC YEAR 2011-2012 / ODD SEMESTER QUESTION BANK SUB.CODE / NAME YEAR / SEM : IT1301 INFORMATION CODING TECHNIQUES : III / V UNIT -

More information

Compressed-Domain Video Processing and Transcoding

Compressed-Domain Video Processing and Transcoding Compressed-Domain Video Processing and Transcoding Susie Wee, John Apostolopoulos Mobile & Media Systems Lab HP Labs Stanford EE392J Lecture 2006 Hewlett-Packard Development Company, L.P. The information

More information

Multimedia on the Web

Multimedia on the Web Multimedia on the Web Graphics in web pages Downloading software & media Digital photography JPEG & GIF Streaming media Macromedia Flash Graphics in web pages Graphics are very popular in web pages Graphics

More information

Image Compression for Mobile Devices using Prediction and Direct Coding Approach

Image Compression for Mobile Devices using Prediction and Direct Coding Approach Image Compression for Mobile Devices using Prediction and Direct Coding Approach Joshua Rajah Devadason M.E. scholar, CIT Coimbatore, India Mr. T. Ramraj Assistant Professor, CIT Coimbatore, India Abstract

More information

Advanced Video Coding: The new H.264 video compression standard

Advanced Video Coding: The new H.264 video compression standard Advanced Video Coding: The new H.264 video compression standard August 2003 1. Introduction Video compression ( video coding ), the process of compressing moving images to save storage space and transmission

More information

MPEG-2. ISO/IEC (or ITU-T H.262)

MPEG-2. ISO/IEC (or ITU-T H.262) MPEG-2 1 MPEG-2 ISO/IEC 13818-2 (or ITU-T H.262) High quality encoding of interlaced video at 4-15 Mbps for digital video broadcast TV and digital storage media Applications Broadcast TV, Satellite TV,

More information