cse679: mpeg r mpeg-1 r mpeg-2. mpeg r mpeg: motion pictures experts group r standard for encoding...
TRANSCRIPT
![Page 1: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/1.jpg)
CSE679: MPEG
MPEG-1 MPEG-2
![Page 2: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/2.jpg)
MPEG
MPEG: Motion Pictures Experts Group Standard for encoding videos/movies/motion
pictures Evolving set of standards
MPEG-1, MPEG-2, MPEG-4
Exploit motion prediction Apply the similar techniques as JPEG to
individual image
![Page 3: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/3.jpg)
MPEG Compression Steps
Data preparation Similar to JPEG
Data processing Motion prediction DCT
Quantization Entropy encoding
![Page 4: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/4.jpg)
Data Preparation
Subsample Chrominance signals 4:1:1 in MPEG-1 NTSC: Y=352*240, Cb=Cr=176*120
PAL: Y=352*288, Cb=Cr=176*144
Macroblocks 16*16 samples (pixels) for the luminance
component. 8*8 samples (pixels) for the chrominance
component.
![Page 5: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/5.jpg)
Data Processing
Apply motion prediction at the Macroblock level In most cases, predictive encoding only makes sense
for parts of images and not for the whole image.
Motion prediction used to figure out where this macroblock may be in the next frame
Forward prediction Prediction based on previous frames
Backward prediction Prediction based on future frames
Bidirectional prediction Prediction based on both previous and future frames
![Page 6: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/6.jpg)
IPB Frames
I frames Independently coded and no temporal prediction Can start decoding once we have an I-frame
P Frames Forward predicted frames Based on previous I or P frames
B frames Bi-directionally predicted frames, based on previous and
following I and P frames Group of Pictures (GOP): Set of frames between two I
frames IBBPBBPBBI or IPPPI, or II
MPEG decoders may have to buffer extra frames of data besides being displayed
![Page 7: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/7.jpg)
![Page 8: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/8.jpg)
DCT
Apply DCT on the 8*8 data blocks DC coefficients AC coefficients
![Page 9: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/9.jpg)
Quantization
Apply Quantization on the frequency domain coefficients
Favor low frequency coefficients
![Page 10: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/10.jpg)
Entropy Encoding
Convert 2 dimensional symbols into 1 dimensional series Use zig-zag or vertical scans
Apply run-length coding on the 1-D series Apply Huffman coding
![Page 11: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/11.jpg)
Summary of MPEG-1
Successive frames may have significantly same data
MPEG exploits motion prediction Apply motion prediction at the Macroblock level I, P, and B frames
The standard allows the use of I-frame only, I and P frames only or I-, P- and B-frames.
More about MPEG……
![Page 12: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/12.jpg)
MPEG-2
MPEG-2 strives for a higher resolution. MPEG-1 is near the maximum data rate of about
1.5Mbits/s. MPEG-2 targets at 40Mbits/s => high resolution.
MPEG-2 supports four levels Low, main, high 1440 and high
There are five profiles associated with each level
The low level of MPEG-2 is compatible with MPEG-1.
![Page 13: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/13.jpg)
![Page 14: CSE679: MPEG r MPEG-1 r MPEG-2. MPEG r MPEG: Motion Pictures Experts Group r Standard for encoding videos/movies/motion pictures r Evolving set of standards](https://reader036.vdocuments.us/reader036/viewer/2022062321/56649daf5503460f94a9d442/html5/thumbnails/14.jpg)
Conclusion
MPEG MPEG-2
Targets at high resolution Profiles and levels Compatible to MPEG-1