Digital Video LECTURE 07 RAZIA NISAR NOORANI Basic
Digital Video LECTURE 07 RAZIA NISAR NOORANI
Basic Digital Video Concepts 2 Movie length Frame size Frame rate Quality Color bit depth Data rate (bit rate) CS 118 – Web Engineering
Movie length 3 File size is proportional to the movie length. Videos longer than 1 or 2 minutes cause long download times. If it is a long video, consider to use streaming video. CS 118 – Web Engineering
Frame size 4 “Full-screen” video is 640 x 480 pixels. The most common frame size for web video is 160 x 120 pixels. Not recommend to use a frame size larger than 320 x 240. The size depends on the CPU power and the Internet connection bandwidth. CS 118 – Web Engineering
Image and Video? 5 CS 118 – Web Engineering
Frame rate 6 Frame rate is measured in number of frames per second (fps). Standard TV-quality video uses 30 fps. For the web, 15 or even 10 fps is more appropriate and produces fair smooth quality for the user. Commercial Internet Broadcasts are using 0. 5, 0. 25 frames per second. CS 118 – Web Engineering
Quality 7 Many video-editors allow you to set the overall quality of the video. The degree of compression controls the target quality. The low or medium setting results a fairly high compression which is appropriate for web delivery. Frame rate and quality are usually tradeoff in different applications. CS 118 – Web Engineering
Color bit depth 8 The number of pixel colors in each frame affects the size of the video. The file size of the video will be greatly reduced by changing the number of colors from 24 -bit to 8 -bit. It sacrifices the image quality of the video. CS 118 – Web Engineering
Data rate (bit rate) 9 This is the rate that the data must be transferred in order to ensure the video can play smoothly without interruption. It is measured in kilobytes per second (K/sec or Kbps). It can be calculated by dividing the size of the file (in K) by the movie length (in seconds). E. g. the video file size is 1. 9 MB 1900 K Play 40 seconds long, Data rate = 47. 5 K/sec Consider the Internet bandwidth! CS 118 – Web Engineering
Calculate space requirements of Video 10 NTSC video (640 x 480 and 29. 97 fps) Frame size = ([Pixel width x pixel height x bit depth]/8)/1024 E. g. 200 KB/Frame : 6. 0 MB/sec 200 KB x 30 fps = 6000 KB/s, 6 MB/sec PAL video (768 x 576 and 25 fps) E. g. 200 KB/Frame : 5. 0 MB/sec 200 KB x 25 fps = 5000 KB/s, 5 MB/sec CS 118 – Web Engineering
Video CODECs 11 CODEC is “Compression/Decompression” algorithms. The sound and frame images of a digital video must be compressed. The vast amount of data Compressed in a number of ways Lossless and Lossy compression Spatial and Temporal compression CS 118 – Web Engineering
Video Clip Demo 12 reference CS 118 – Web Engineering
Lossless and Lossy compression 13 Lossless compression means no information is lost and the final file is the same as the original. Most compression methods are lossy. Sacrifices some data from the file in order to achieve higher compression rates. Use complicated algorithm to toss out some data that is not discernible to the human eye or ear. CS 118 – Web Engineering
Spatial and Temporal compression 14 Spatial (Intraframe) compression takes place on each individual frame of the video. Temporal (Interframe) compression applies on a series of frames, it takes advantages of areas of the image remain unchanged from frame to frame. Relies on the key frames and delta frames. A key frame is placed once every second. E. g. 15 fps, a key frame once 15 frames. CS 118 – Web Engineering
Delta frame 15 CS 118 – Web Engineering
Video File Formats 16 Quick. Time Movie (. mov) Introduced by Apple Computer in 1991. First developed for Macintosh, now also supports the PCs. Also supports streaming. How to create? Most video editor, Quick. Time Pro. How to play? Quick. Time plug-in or Quick. Time player. CS 118 – Web Engineering
http: //www. apple. com/quicktime/gallery/cubicvr/times_square. htm Quicktime 17 CS 118 – Web Engineering
Real. Media (. rm) 18 Industry standard streaming format. Real. Player for playback. Real. Server for serving streams. Real. Producer for creating. rm files. Good for Long-playing video or broadcast to many people. How to create? Real. System Producer How to play? Real. Player (Free), Real. Player Plus (Commerical) CS 118 – Web Engineering
Windows Media (. wmv/. asf) 19 Created by Microsoft, closely integrated with Windows OS. Support Windows Media Video (. wmv) and Advanced Streaming Format (. asf) and other formats (. avi, . mpeg, …) Also support streaming. How to create? Windows Media Encoder, Windows Media Author How to play? Media Player in Windows OS CS 118 – Web Engineering
AVI (. avi) 20 Stands for Audio/Video Interleaved. Introduced by Microsoft in 1992. In a AVI file, the audio and video information are interleaved every frame. Good for Short web clips, high-quality video How to create? Most video editing tools. How to play? Windows Media, Quick. Time, etc. CS 118 – Web Engineering
Video Clip Demo reference 21 CS 118 – Web Engineering
MPEG (. mpg/. mpeg) 22 Created by Moving Picture Experts Group (MPEG). Supports 1) Video, 2) Audio, 3) Streaming. Extremely high compression rates with small quality degradation (lossy). MPEG-1 : VHS quality MPEG-2 : HQ standard for TV broadcast MPEG-4 : Very HQ for AV compression MPEG can be compressed by using three schemes: Layer-I, Layer-III. CS 118 – Web Engineering
Official MPEG page 23 reference CS 118 – Web Engineering
MPEG Comparison 24 MPEG-1 MPEG-2 MPEG-4 Standard since 1992 1995 1999 Default Video resolution (NTSC) 352 x 288 640 x 480 Max. Audio Frequency range 48 KHz 96 KHz Max. audio Channel 2 8 8 Regular data rate 1380 kbit/s 6500 kbit/s 880 kbit/s Frames per sec (NTSC) 30 30 30 Video Quality Satisfactory Very good Very Good Hardware requirement for encoding/decoding Low Medium High CS 118 – Web Engineering
Flash & Shockwave 25 Advantages: File sizes are small Image quality is high It uses streaming technology It uses high-quality streaming audio It is scriptable Disadvantages: A plug-in player is required Expensive authoring software Problems on printing their content CS 118 – Web Engineering
Summary 26 Discuss the basic digital audio/video terminology. Introduction to different formats: WAV, MP 3, Quick. Time, Real. Media, Windows Media, AVI, MPEG. To deliver long-playing audio/video or live broadcasts, you should choose one of the streaming media. Flash and shockwave are popular and appropriate format for the Web. CS 118 – Web Engineering
- Slides: 26