1 / 17

Video Compression

Video Compression. Bee Fong. Lossy Compression. Inter Frame Compression Compression among frames Intra Frame Compression Compression in a frame. Intra Frame Compression. Similar to Image Compression Do not discussion, please refer to the image compression section (JPEG).

zahi
Download Presentation

Video Compression

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Video Compression Bee Fong

  2. Lossy Compression • Inter Frame Compression • Compression among frames • Intra Frame Compression • Compression in a frame

  3. Intra Frame Compression • Similar to Image Compression • Do not discussion, please refer to the image compression section (JPEG)

  4. Coding Order != Display Order • Figure 1 • Figure 2 Encoding rate may be slow, but Decoding rate is fast

  5. Inter Frame Compression • I Frame • Intra Frame • P Frame • Predictive Frame • B Frame • Bidirectional Frame • D Frame

  6. Compression Methods • Subsampling • Duplicate frames, 1 compression stream • Differencing • Compare a Frame with its predecessor. Take the difference. • Block Differencing • Frame divided into blocks, compare block difference.

  7. Compression Methods • Motion Compensation • Motion vector, compare blocks with location difference. • Frame Segmentation • Frame divided into equal-size nonoverlapping blocks, block size affecting the chance of matching • Search Threshold • Compare #difference with a predefined value

  8. Compression Methods • Block Search • Search area = (width + 2dx)(height + 2dy) • Distortion Measure • Use Pel difference instead of mean absolute difference

  9. Compression Methods • Suboptimal Search Methods • Do some search in the search area, not all. • Coding Motion Vector • Use prediction motion vector • Grouping motion vectors • Image Objects • Use overlapping object layers

  10. My Ideas • “Cutting-Sandwich Compression” • Motivation: for high quality compression, or lossless video compression  compression rate is low.

  11. Cutting-Sandwich Compression • Cutting Frames horizontally or vertically, then do compression • Reason: for a single frame, the repeating rate of pixels is low • Assumption: the repeating chance of the same line of frames may be higher.

  12. Implementation • Base on the general Video compression approach, treat images in another dimensions (horizontal cutting images, or vertical cutting images) • Treat as a 3-d block of frames, stored in buffer for encoding / decoding.

  13. Implementation • For each 3-d block, compare the general, horizontal and vertical compression rate, take the best. • Add two extra bits for mode selection. • 00 for general mode, 01 for vertical mode, 10 for horizontal mode and 11 for open. • Tradeoff is low.

  14. Tradeoff • For example, 1 block = 640 frames of (640 x 480) image, 3 bits per pixel. • 2 extra bits / (640 x 640 x 480 x 3) bits ~= 0%.

  15. Tradeoff • More resources are needed for the compression (time, software, hardware) • Encoding rate may be slower, Decoding rate – no big difference if we take some buffer (again, only decoding needed to be fast in general case) • Software and hardware are cheap now, not a technical problem.

  16. Tradeoff • Buffer is needed for encoding and decoding in video compression, not a big deal.

  17. Other supportive compression methods in Sandwich • Run-Length Encoding • LZ77 • LZW

More Related