Top Banner
Video and Streaming Video and Streaming Media Media Andy Dozier
43

Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Dec 28, 2015

Download

Documents

Poppy Golden
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Video and Streaming MediaVideo and Streaming Media

Andy Dozier

Page 2: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

ApproachApproachVideo Standards

– Analog Video– Digital Video

Video Quality Parameters– Frame Rate– Color Depth– Resolution

Encoding/Decoding Standards

Page 3: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Video Standard SummaryVideo Standard Summary

Analog Video– Composite– Component

Digital Video

Page 4: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Composite Video Overview Composite Video Overview Optimized for wireless broadcast operation

– Frequency allocations are controlled by the FCC – 54 MHz to 806 MHz (68 Channels)– Allocate 6 MHz/Channel

Utilizes a single communication channel– Coaxial cable transmission– Terrestrial broadcast

Lowest resolution

Page 5: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Composite Video Overview Composite Video Overview (cont’d)(cont’d)

Defined by National Television Systems Committee (NTSC)– Interface Standard (System M-NTSC)

documented in ANSI T1.502.1988M-NTSC Features

– Color or monochrome– 30 frames/second– 525 horizontal scan lines (483 usable)

Page 6: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

InterlacingInterlacing A refresh rate of 30 frames/second exhibits flicker

– One frame is a complete image at a point in time Solution is to divide each frame into two “fields”

– One field consists of either all odd, or all even scan lines– Odd and even scan lines are “interlaced”

262.5 horizontal scan lines/field

– Each field is refreshed at a rate of 30/second 60 fields/second total

Phosphor persistence allows the eye to perceive both fields at the same time– Eliminates flicker problem

Page 7: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Composite Video ResolutionComposite Video Resolution Horizontal/vertical dimension ratio is 4/3 Usable horizontal scan lines = 483 In order to make a horizontal line consistent in an

image, it is necessary for the image line to cover more than one scan line– Number of horizontal image lines = 70% of the number of

horizontal scan lines– Vertical resolution is 0.7 X 483, or 338 horizontal line/space

pairs Require the same horizontal resolution

– 4/3 X 338, or 450 vertical line/space pairs

Composite Video Resolution is equivalent to 450 X 338 pixels

Page 8: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Composite VideoComposite Video

Features: Single Wire or Channel NTSC Standard Suitable for Broadcasting Lowest Resolution Equivalent to 450 X 338 Pixels

Page 9: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Color TheoryColor Theory

Color theory is based on the psychophysical properties of human color vision– First stated by Herman Grassman of Germany in 1854

Any color can be matched by an additive combination of different amounts of three additive primary colors– Additive primary colors are different from subtractive

primary colors Red/Green/Blue (RGB)

– In video, phosphors emit light, therefore we use additive primaries

Page 10: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

DefinitionsDefinitions Intrinsic nature of color is called Hue, or “U” Intensity of color is called Saturation, or “V” Hue and saturation taken together define color, or

Chrominance, C– Hue + Saturation = Chrominance = C

Brightness is described as Luminous Flux– Luminance = Y

C and Y totally describe color sensation

Page 11: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Color Spatial ResolutionColor Spatial Resolution

For most images, the fine detail picked up by the human eye is conveyed by changes in Luminance– Cannot pick up color for small objects

This implies that for very small areas in a scene, the human eye is much more sensitive to changes in Luminance, or brightness of the scene

For large areas, the eye responds mostly to colors

Page 12: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Analog Component VideoAnalog Component Video

NTSC committee desired to design a color TV signal system that was compatible with the black and white (monochrome) system

Split the signal into components– Luminance (Y)– Chrominance (C)

This signal system accounts for the variation in sensitivity of the eye to different colors

Y = 0.30 R + 0.59 G + 0.11 B

Page 13: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Analog Component Video Analog Component Video (cont’d)(cont’d)

A variety of signal systems are used to provide color displays

Composite signal systems embed the Chrominance information into the transmitted signal

Systems which separate the Y, C, U, and V information are referred to as Component Video systems– Digital and analog versions– Component video provides higher fidelity

Page 14: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Analog Component VideoAnalog Component VideoYUVYUV

Features: Separates Y, U, and V Current Color TV System Combine YUV for transmission Used for Color TV Receivers

Page 15: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Analog Component VideoAnalog Component VideoY/CY/C

Features: Separates Y and C Intermediate Quality 2-wire system Called “S-Video” Used for Hand-Held Cameras Hi-8 Super VHS

Page 16: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Analog Component VideoAnalog Component VideoRGBRGB

Features: Separates R, G, and B signals Easily transformed into other signal systems Y/C YUVUsed for Color Monitors

Page 17: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Digital VideoDigital Video

Major disadvantages of analog techniques are: – Susceptibility to electromagnetic noise– Quality degrades with multiple generations of copies

Digital video techniques represent component signals as streams of “1s” and “0s”– Eliminates degradation of multiple copy generations– Excellent noise immunity– Can be stored on hard disk drives, DVD, and CD-ROM– Can be transported via data networks

Page 18: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Digital Video FeaturesDigital Video Features

Generated by digitizing analog video signals– Composite Digital - D2 Standard– Component Digital - D1 Standard

Image quality is defined by three parameters– Frame Resolution and Scaling– Color Depth– Frame Rate

Page 19: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Frame Resolution and ScalingFrame Resolution and Scaling

Each frame (image) is represented by an array of pixels

If the pixel array is equal to the monitor resolution, the image fills the monitor screen– Example: 640 X 480 pixels

Partial screen images may be displayed (scaled) Using a full screen resolution of 640 X 480 pixels:

– 320 X 240 pixels would fill 1/4 of the screen– 160 X 120 pixels would fill 1/16 of the screen

Page 20: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Scaling of Image SizeScaling of Image Size

Full Screen 1/4 Screen 1/16 Screen

Page 21: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Color DepthColor Depth

Color depth is defined by the number of bits used to represent the color of each pixel

This determines the maximum number of colors that can be represented, and therefore the “realism” of the image. As an example:

Red = 8 bits/pixelGreen = 8 bits/pixelBlue = 8 bits/pixel

Using 24 bits/pixel allows representation of 16.7 Million colors

Page 22: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Frame RateFrame Rate

The number of times/second an image is refreshed controls image quality– Flicker– Jerkiness of motion

Some encoding systems allow adjustment of the frame rate to stay within the bandwidth allocated by the network– Basic Rate ISDN allows a maximum of 128 kbps– Most high quality video conferencing systems use at

least 384/kbps

Page 23: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Digital Video Bandwidth Digital Video Bandwidth RequirementsRequirements

Consider the following:

Frame Rate = 60 frames/secondColor Depth = 24 bits/pixelFrame Size = 640 X 480 pixels

This example would require 442.37 Mbps to transmit uncompressed video in real timeWe have to consider compression techniques to transmit video for affordable systems

Page 24: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Digital Video Bandwidth Digital Video Bandwidth RequirementsRequirements

Uncompressed D-1 video requires 270 Mbps This implies that it is still impossible to transport

an uncompressed D-1 signal over the wide area– Bandwidth is too expensive

It is also difficult to transport it over the local area– Requires Gigabit Ethernet

Page 25: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Video Stream BandwidthVideo Stream Bandwidth

Page 26: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Intraframe CompressionIntraframe Compression

The eye is not as sensitive to changes in color on a small scale as intensity

This implies that a video imaging system can “throw away” some of the color information in each frame, and still appear realistic to the human eye– Color sampling can be easily changed (sub-sampling)

If this is done consistently for each frame, this technique is referred to as “Intraframe” compression

Page 27: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Intraframe CompressionIntraframe CompressionColor SubsamplingColor Subsampling

The previous example would require 221 Mbps @ 4:1:1

Page 28: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Alternative Intraframe Alternative Intraframe Compression TechniquesCompression Techniques

The key to successful intraframe techniques is that each frame be preserved at the highest resolution possible– Allows editing on a “frame by frame” basis

The approach is to “throw away” information that cannot be perceived by the human eye by adjusting parameters

Page 29: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Alternative Intraframe Alternative Intraframe Compression (cont’d)Compression (cont’d)

Page 30: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

JPEGJPEG

The Joint Photographic Experts Group (JPEG) developed a compression standard for 24-bit “True Color” photographic images– Single frame encoding technology

This technique utilizes Intraframe compression– Subsampling of Chroma information– Algorithm quantizes 8 X 8 blocks of pixels

Achieves an image compression ratio of 2 to 30 over uncompressed images– One image equals one video frame

Page 31: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Motion JPEGMotion JPEG

Utilizes JPEG encoding for each frame– 30 frames/sec– Variable compression rations (2:1 to 30:1)

This allows editing on a “frame by frame” basis– Industry standard for high definition storage and retrieval

One drawback is that the MJPEG standard does not encode audio– Proprietary solution required

One hour of broadcast video utilizing a 6:1 compression ratio requires 13 GBytes

Page 32: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Interframe CompressionInterframe Compression

Significant compression must be achieved to transport and handle video streams via wide area networks (WANs)– Achieved by “Interframe” compression

Adjustment of image parameters Data compression achieved by dropping information between

frames

Common interframe compression techniques available today:– MPEG

Page 33: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

MPEG CompressionMPEG Compression

In order to achieve significant compression ratios predictive techniques are required

These techniques encode one complete frame periodically, and “predict” the changes between these “key frames”– MPEG encodes every 16th frame

Example: Talking head, where only the lips and head of the speaker are moving

Page 34: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

MPEG Encoding SchemeMPEG Encoding Scheme

Page 35: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

MPEG DisadvantagesMPEG Disadvantages

Since you have complete information every sixteen frames (~ every ½ second) video editing is more difficult

Sound may need to be correlated to the frame of choice

Page 36: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Encoding TechniquesEncoding Techniques

Encoders are now available at reasonable prices that bring the compression ratios into an affordable range (< 1.5 Mbits/sec)

Two types of encoders are available– Symmetric– Asymmetric

Symmetric encoders can encode in real time– Used for video streaming applications

Asymmetric encoders cannot encode in real time– Used for CD and DVD applications

Page 37: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Encoder/Decoder (Codec) TypesEncoder/Decoder (Codec) Types

Page 38: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Streaming VideoStreaming Video

Originally, video was played via the “Download and Play” method

For long video clips, it is more desirable to start playing before waiting for the entire file to download– Streaming video– Requires Isochronous playback– This is achieved by buffering

Page 39: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Download and PlayDownload and Play

Page 40: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Isochronous PlaybackIsochronous Playback

Page 41: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Video StreamingVideo Streaming

Page 42: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Video Editing and AuthoringVideo Editing and Authoring

In order to create useful applications, it is necessary to capture multiple streams, and combine them into one

Multiple rates may also be required for different users

After the streams are captured, an “Editing and Authoring” process is required

Page 43: Video and Streaming Media Andy Dozier. Approach Video Standards – Analog Video – Digital Video Video Quality Parameters – Frame Rate – Color Depth – Resolution.

Video Editing ProcessVideo Editing Process