Video Transcoding Fundamentals
What you'll learn: How uploaded videos are converted into multiple formats and quality levels to enable smooth playback across different devices and network conditions.
The Core Problem
When a user uploads a single high-resolution video (say, 4K at 60fps), not everyone can watch it smoothly. A mobile user on 3G needs something lighter than a desktop user on fiber. Video transcoding solves this by converting one source video into multiple versions optimized for different scenarios.
What Is Transcoding?
Transcoding is the process of decoding a video from its original format and re-encoding it into multiple target formats, resolutions, and bitrates. Think of it like translating a book into different languages and creating abridged versions for different reading levels—same content, multiple accessible forms.
Key Transformations
Format conversion: Original upload might be MOV, AVI, or MKV—transcode to web-friendly formats like MP4 (H.264/H.265) or WebM.
Resolution ladder: Create multiple sizes from the same source:
- 1080p (1920×1080) for high-quality
- 720p (1280×720) for standard
- 480p, 360p for mobile/slow connections
Bitrate variants: Even at the same resolution, encode at different bitrates (e.g., 5 Mbps, 2.5 Mbps, 1 Mbps) to match available bandwidth.
Adaptive Streaming Connection
These multiple outputs feed adaptive streaming protocols (like HLS or DASH), which automatically switch quality during playback based on network speed. The processing pipeline from lesson 1597 triggers this transcoding asynchronously after upload completes—it's too CPU-intensive to block the upload response.
Key Takeaway: Video transcoding converts a single uploaded video into multiple format/resolution/bitrate combinations, enabling adaptive streaming that automatically delivers the best quality each viewer's device and network can handle.