Computer Science
Grade 9
20 min
Video Basics
Video Basics
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Define key video terminology, including resolution, frame rate, codec, and bitrate.
Explain how a digital video is constructed from a sequence of individual images (frames).
Calculate the uncompressed data size of a video clip using its resolution, color depth, and frame rate.
Estimate the file size of a compressed video using its bitrate and duration.
Differentiate between a video codec and a container format.
Describe the trade-off between video quality, bitrate, and file size.
Ever wonder how your phone can store hours of high-definition video, but a simple text file is thousands of times smaller? 🎬 Let's find out!
In this lesson, we'll break down the fundamental building blocks of digital video. You'll learn how a stream of simple pic...
2
Key Concepts & Vocabulary
TermDefinitionExample
ResolutionThe number of distinct pixels in each dimension that can be displayed. It's typically expressed as width × height.A Full HD video has a resolution of 1920x1080, meaning it is 1,920 pixels wide and 1,080 pixels high.
Frame Rate (FPS)The frequency (rate) at which consecutive images, called frames, are displayed per second to create the illusion of motion.Standard movies are often 24 FPS, while high-action video games aim for 60 FPS or higher for smoother visuals.
Codec (Coder-Decoder)A software algorithm that compresses (codes) raw video data to make the file size smaller, and then decompresses (decodes) it for playback.H.264 and AV1 are popular codecs used to compress videos for streaming on the web. They are why you can watch HD video without waiting h...
3
Core Syntax & Patterns
Uncompressed Data Rate Calculation
Data Rate (bits/sec) = Width (px) * Height (px) * Color Depth (bits) * FPS
Use this formula to calculate the raw, uncompressed data required for one second of video. This shows why compression is so essential. A common color depth is 24 bits (8 bits each for Red, Green, and Blue).
Compressed File Size Estimation
File Size (bits) = Bitrate (bits/sec) * Duration (seconds)
Use this formula to estimate the final size of a compressed video file. This is the most practical way to understand how long a video will take to download or how much storage it will consume.
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
Two 10-second videos are created with the same 5 Mbps bitrate. Video A is 1080p at 60 FPS. Video B is 1080p at 30 FPS. Which statement is most likely true about their compressed quality?
A.Video A will look better because it has a higher frame rate.
B.Video B will look better because each individual frame gets more data.
C.Both videos will have identical quality because their bitrate is the same.
D.Both videos will have identical file sizes, but Video A will be shorter.
Challenging
A live streamer has an internet connection with a maximum stable upload speed of 6 Mbps. They want to stream fast-paced gameplay. Which is the best strategy to provide a good viewing experience without buffering?
A.Stream at 4K resolution and 60 FPS, and let the bitrate exceed 6 Mbps.
B.Stream at 1080p resolution and 30 FPS, using a bitrate of 8 Mbps.
C.Stream at 720p resolution and 60 FPS, using a bitrate of around 4-5 Mbps.
D.Stream at 1080p resolution and 60 FPS, using a bitrate of 2 Mbps.
Challenging
A student calculates the uncompressed size of a 10-second, 1920x1080, 30 FPS, 24-bit video. Their formula is: `(1920 * 1080 * 24 * 30 * 10) / 8 / 1000 / 1000 = 186.6 MB`. The correct answer is approximately 1,493 MB. What is the most likely error in their calculation?
A.They forgot to multiply by the duration of 10 seconds.
B.They divided by 8 to convert bits to bytes, but then used 1000 twice for KB and MB, when they should have used 1024 twice.
C.They divided by 8, but they should have multiplied by 8.
D.They used the formula for compressed video instead of uncompressed video.
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free