Compression and File Formats. Compressing Moving Images. Why and where to compress

Similar documents
Compressing Moving Images. Compression and File Formats updated to include HTML5 video tag. The DV standard. Why and where to compress

Video compression: Performance of available codec software

Figure 1: Relation between codec, data containers and compression algorithms.

ATLAS.ti 6 Using Video Data

Managing video content in DAM How digital asset management software can improve your brands use of video assets

Video compression. Contents. Some helpful concepts.

How to use Adobe Media Encoder CS6

White paper. H.264 video compression standard. New possibilities within video surveillance.

Video Encoding Best Practices

White paper. An explanation of video compression techniques.

Module 8 VIDEO CODING STANDARDS. Version 2 ECE IIT, Kharagpur

Digital Video: A Practical Guide

Video Coding Basics. Yao Wang Polytechnic University, Brooklyn, NY11201

How To Compare Video Resolution To Video On A Computer Or Tablet Or Ipad Or Ipa Or Ipo Or Ipom Or Iporom Or A Tv Or Ipro Or Ipot Or A Computer (Or A Tv) Or A Webcam Or

Video Formats. A Guide to Understanding Video Containers & Codecs

Develop Computer Animation

Recommended codecs: MJPEG, Apple ProRes, H264 (bitrate if possible) > 2MBit/s and uncompressed (very large file)

IMPACT OF COMPRESSION ON THE VIDEO QUALITY

Best practices for producing quality digital video files


Digital Audio and Video Data

The Essence of Image and Video Compression 1E8: Introduction to Engineering Introduction to Image and Video Processing

Narrow Bandwidth Streaming Video Codec

Computer Vision and Video Electronics

Quick Start. Guide. The. Guide

Application Note. Introduction. Video Basics. Contents. IP Video Encoding Explained Series Understanding IP Video Performance.

PERFORMANCE ANALYSIS OF VIDEO FORMATS ENCODING IN CLOUD ENVIRONMENT

Streaming Networks with VLC. Jean-Paul Saman

PRODUCING DV VIDEO WITH PREMIERE & QUICKTIME

CS-184: Computer Graphics

Video Coding Standards. Yao Wang Polytechnic University, Brooklyn, NY11201

Compression Workshop. notes. The Illities. Richard Harrington. With RICHARD HARRINGTON

Power Benefits Using Intel Quick Sync Video H.264 Codec With Sorenson Squeeze

Optimizing BrightSign Video Quality

Video and Audio Codecs: How Morae Uses Them

VOD Encoder Fast HIDef Video Encoding

Sending, Storing & Sharing Video With latakoo

GUIDE TO DIGITAL VIDEO DISTRO

White Paper: Video Compression for CCTV

Introduction to image coding

Understanding Video Latency What is video latency and why do we care about it?

IP Video Rendering Basics

Introduction to Digital Video

Study and Implementation of Video Compression Standards (H.264/AVC and Dirac)

Development process for multimedia applications

DivX Plus Converter for Windows User Guide

Episode 6 Format Support

FAQs. Getting started with the industry s most advanced compression technology. when it counts

How to play video on Xbox One

Overview: Video Coding Standards

For More Information. Setting Bitrate Control and Keyframe Parameters

a basic guide to video conversion using SUPER

Video-Conferencing System

Introduzione alle Biblioteche Digitali Audio/Video

9! Multimedia Content! Production and Management

Multimedia I Glossary From Frameworks Fall 2009 Unit 1: Introduction to Multimedia Quiz 1

Chapter 6: Broadcast Systems. Mobile Communications. Unidirectional distribution systems DVB DAB. High-speed Internet. architecture Container

Quick start guide! Terri Meyer Boake

Media Object Production - Hardware and Software Tools

Video Coding Technologies and Standards: Now and Beyond

Parametric Comparison of H.264 with Existing Video Standards

Vcodes Automated Content Preparation System

Understanding HD: Frame Rates, Color & Compression

Acquire Video Wall. Revolutionising digital interaction.

Affdex SDK for Windows!

Honeycomb TM experience on-the-go!

H.264/MPEG-4 AVC Video Compression Tutorial

Classes of multimedia Applications

Technical Paper. Dolby Digital Plus Audio Coding

Comparison of different image compression formats. ECE 533 Project Report Paula Aguilera

A Brief History of Video Coding

Study and Implementation of Video Compression standards (H.264/AVC, Dirac)

Bandwidth Adaptation for MPEG-4 Video Streaming over the Internet

A Method of Pseudo-Live Streaming for an IP Camera System with

Any Video Converter Professional User Manual 1. Any Video Converter Professional. User Manual

Color management workflow in Adobe After Effects CS4

Autonomous Car - Monitoring Remote Sensors

MPEG-4. The new standard for multimedia on the Internet, powered by QuickTime. What Is MPEG-4?

Windows Media Components for QuickTime

MMGD0203 Multimedia Design MMGD0203 MULTIMEDIA DESIGN. Chapter 3 Graphics and Animations

Dolby Vision for the Home

Sponsorship Technical specification

MPEG-1 and MPEG-2 Digital Video Coding Standards

REIHE INFORMATIK 7/98 Efficient Video Transport over Lossy Networks Christoph Kuhmünch and Gerald Kühne Universität Mannheim Praktische Informatik IV

Switch. The only tool professionals need to play, inspect and correct all their files

H 261. Video Compression 1: H 261 Multimedia Systems (Module 4 Lesson 2) H 261 Coding Basics. Sources: Summary:

Audiovisual Asset Deliverables Standards

Anime Studio Debut vs. Pro

Transcription:

Compression and File Formats 1 Compressing Moving Images Moving versus still images: Temporal as well as spatial compression Data transfer rates are critical How much data is needed to maintain 24 frames/sec? Methods: Motion JPEG, Cinepak, Indeo, MPEG, many others Known as CODECs compression / decompression algorithms hardware and software implementations symmetrical / asymmetrical 2 Why and where to compress Consider video as displayed on a television screen Raw data rate is huge: 768 (across) by 576 (vertical) by 25 (frames/sec) 31Mbytes/sec or 1.85Gbytes/minute Can we compress in hardware and/or in software to provide reasonable data rates and storage requirements? 3 1

The DV standard Digital video (DV) standard includes compression on camera CCIR601 standard specifies signal sampling Subsamples chrominance Eyes are less sensitive to variations in colour than to variations in brightness Uses luminance, Y (=0.2125R + 0.7154G + 0.0721B), B-Y, and R-Y Luminance is sent each pixel, but others are subsampled e.g. colour (B-Y & R-Y) sent every 4 th pixel Data rate is 166Mbits (just over 20Mbytes)/second 4 The DV standard 166Mbits/second is inconveniently high DV standard uses further compression to bring the data rate down to 25Mbits/second (just over 3Mbytes/sec) Compression is on-camera Widely used Still too high a data rate for storage 25Mbits/sec = 210Mbytes/min = about 12Gbytes per hour High for transmission, or for storage on a DVD 5 Spatial Compression Compress each frame (still image) independently Animated GIFs single file containing multiple images compressed using LZW compression only suitable for simple, cartoon-like animations Motion JPEG (MJPEG) compresses each frame using JPEG suitable for videos of real-world action implemented in hardware for real-time capture and compression of video no standard file format! (MJPEG-A emerging) 6 2

Temporal Compression Relies on only small changes between frames: 7 Difference Frames Naïve approach subtracts each pixel in current frame from corresponding pixel in previous frame result is 0 for pixels that do not change between frames difference frames will contain large numbers of zeros and so will compress well, using e.g. run-length encoding (RLE). - = 8 Motion Compensation Can possibly do better when there is movement between frames whole objects (e.g. a walking person) move between frames or camera moves Difference frame would be better if we could match pixels from the moving object between frames - = Displacement vector 9 3

Temporal Compression Basic idea is this: Certain frames designated as key frames e.g. every sixth frame (may be user-settable) Key frames either are left uncompressed or only spatially compressed Each frame between key frames is replaced by a difference frame records only differences between frame and preceding frame or preceding key frame Difference frames readily compressed with RLE or dictionarybased schemes 10 Software CODECs for Multimedia Multimedia is often delivered on CD/DVD or over the Internet low to very low data transfer rates High compression required for video Software implementations of a variety of codecs Cinepak Intel Indeo MPEG-1, MPEG-2, MPEG-4. Processing power needed for compression and (real-time) decompression limits frame size and rate 11 Cinepak and Indeo Similar methods that use vector quantization. Each frame divided into small rectangular blocks of pixels (the vectors) Use a code book consisting of typical vectors areas of flat colour sharp or soft edges different textures (the dictionary of still image compression) Quantization is the process of matching each image vector with its closest vector in the code book. Each image vector is replaced by its index in the code book. Note there may not be an exact match resulting in loss of quality. 12 4

Cinepak and Indeo (2) Highly asymmetric: compression takes much longer than decompression -> 150:1 for Cinepak Also use temporal compression based on key and difference frames Automatic keyframe selection Good enough for 320x240 pixels at 12 frames/sec from CD- ROM on a basic PC not great viewing... 13 MPEG-1 Motion Picture Experts Group Audiovisual compression See http://www.mpeg.org/mpeg/starting-points.html Defines a data stream and a decompressor Compression is left to the software developer competitive advantage in the marketplace Standard does define compression implicitly Spatial compression similar to JPEG Temporal compression via difference frames and motion compensation. 14 Motion Compensation Motion compensation in MPEG does not attempt to identify objects in a scene A hard computer vision / artificial intelligence problem Divides each frame into 16 by 16 pixel blocks, known as macroblocks Different from the smaller blocks used in spatial compression Attempts to predict where the corresponding macroblock is in the next frame via simple searching in a limited area around the macroblock Difference frame constructed by subtracting matching macroblocks BUT also need to store displacement vectors 15 5

Frame Types in MPEG Key frames called I-pictures (I for intra) Difference frames based on previous frames called P-pictures (predictive pictures) MPEG also allows difference frames based on later frames: B- pictures (bi-directional prediction) Display order: IBBPBBIBBPBBI Bitstream order: IPBBIBBPBBIBB decoder needs to reconstruct display order from bitstream Group of Pictures (GOP): IBBPBBPBBPBBIBBPBBPB 16 MPEG Variations MPEG-1: Delivers around 2Mbps of video and 250Kbps of 2- channel audio from CD-ROM 352x240 pixels at 30 fps on standard PC 40 minutes of video on CD-ROM (9 hours on DVD) best for multimedia applications MPEG-2: Needs higher data rates of 3-15Mbps, but delivers better picture quality, interlaced video formats and multichannel audio designed for broadcast digital video (e.g. DVD) 17 MPEG-4 Newer standard offering multiple data rates H.264 or MPEG-4 Advanced Video Coding (MPEG-4 AVC) Based on Profiles 5Kbps to 4Mbyte/s, with interactive multimedia as well as video Low rate profiles for video-phones. Simple profile, Advanced simple profile Allow different compression techniques for different rectangular areas Widely used: HDTV, Blu-ray Web: HTML5 video, YouTube, Flash Player, Silverlight 18 6

Other CODECs Low bitrate applications (e.g. 28kbps over a phoneline) More sophisticated motion estimation Wavelets, fractals etc H.261 and H.263 designed for video conferencing use multiple compression techniques better than nothing performance over a phoneline High bitrate applications VC-1 Microsoft s alternative to MPEG 4 Windows Media Video 9 HD and Blu-Ray 19 Summary of Bit Rates (from https://en.wikipedia.org/wiki/bit_rate) 16 kbit/s videophone quality (minimum necessary for a consumer-acceptable "talking head" picture using various video compression schemes) 128 384 kbit/s business-oriented videoconferencing quality using video compression 400 kbit/s YouTube 240p videos (using H.264) [21] 1 Mbit/s YouTube 480p videos (using H.264) [21] 1.15 Mbit/s max VCD quality (using MPEG1 compression) [22] 2.5 Mbit/s YouTube 720p videos (using H.264) [21] 3.5 Mbit/s typ Standard-definition television quality (with bit-rate reduction from MPEG-2 compression) 4.5 Mbit/s YouTube 1080p videos (using H.264) [21] 20 Summary of Bit Rates (contd) 9.8 Mbit/s max DVD (using MPEG2 compression) [23] 8 to 15 Mbit/s typ HDTV quality (with bit-rate reduction from MPEG-4 AVC compression) 19 Mbit/s approximate HDV 720p (using MPEG2 compression) [24] 24 Mbit/s max AVCHD (using MPEG4 AVC compression) [25] 25 Mbit/s approximate HDV 1080i (using MPEG2 compression) [24] 29.4 Mbit/s max HD DVD 40 Mbit/s max 1080p Blu-ray Disc (using MPEG2, MPEG4 AVC or VC-1 compression) [26] 21 7

File Formats for Video Like file formats for still images, they provide a packaging that includes details of the contents of the file, such as the codec used. Various formats, such as... Microsoft s AVI & WMV QuickTime MPEG Ogg & WebM: open source (support on some HTML5 browsers) You need appropriate player and CODECs on your computer to play files. Windows Media Player, QuickTime, HTML5 <video> 22 Video for Windows AVI: Audio and Video Interleaved Video and synchronized audio in a small window at around 15 frames-per-second without specialized hardware Video is interleaved with the audio Variety of codecs (identified by 4-byte code, FOURCC): Cinepak (CVID) Intel Indeo Microsoft Video Microsoft RLE (MRLE) Others ASF (Advanced Systems Format) WMV (Windows Media Video) streaming 23 QuickTime QuickTime movie (.mov ) is a framework for organizing and manipulating the data that make up the actual video frames many video codecs supported can contain media other than video media not necessarily stored in the.mov file A movie plays according to a time base frames may be dropped to keep in time enables constant playback speed on any system maintains synchronization between video and audio 24 8

QuickTime Component-based architecture Plug in new components to deal with new formats or provide new operations Components include: Compressors (e.g. Cinepak, Indeo, Sorenson) Sequence grabbers: digitize video Movie player: will handle AVI and MPEG Transcoders: translate between data formats 25 Open Formats OGG: open container format high quality digital multimedia streaming multiplex a number of independent streams for audio, video, text (such as subtitles), and metadata. CODECS: Theora But OGG files can contain MPEG-4 video and others WebM: open format for HTML5 <video> sponsored by Google CODECS: VP8 and VP9 26 Streamed Video Playback as it arrives over the Internet Progressive download download movie to hard disk start playing back when playback time of downloaded content equals download time of remainder of movie still a large delay before playback begins and not suitable for live video True streaming never stored on user s disk must arrive at playback rate different movie formats depending on connection speed Streaming QuickTime and RealVideo 27 9

File Formats for Animation Adobe s Shockwave Flash Native file format for Flash movies Vector images and animations Metafile: can incorporate bitmap images and sound De facto standard for animation on the Web Browser plugins freely available SVG / SMIL / X3D XML languages for use on web pages Microsoft s Silverlight Programmable web browser plugin.net languages and development tools 28 Shockwave Flash (SWF) File contains two broad classes of items Definitions: dictionary of symbols that appear in the animation Control items: instructions to place, remove or move a symbol movement specified using transformation matrices Rather like a program (cf. FIG, POVRay, SVG, X3D) stored in compressed binary format: SMALL! 29 10