Skip to content
Learnearn.uk » Home » Encoding & Compressing Video

Encoding & Compressing Video

Introduction

How is video recorded and stored?

The videos that we watch on YouTube or TV are made up two components – video & audio. Capturing them is quite straightforward in theory – you simply record at a number of frames per second, encoding the data into a stream of bytes (usually a frame rate of between 24 and 50 depending on your needs) and record and encode the audio separately.

Then you combine use a codec (Coder / Decoder) to encode these separate recordings into a single container. When the recording is played back the audio and video playback are each stream of data is passed to their respective devices – the audio stream is passed to the sound card and the video stream is passed to the video/graphics card and the playback is synced.

The problem of course is that storing such a large number of frames of video becomes a huge problem and as a result the video (and audio) needs to the be compressed – this is done by the codec as part of the encoding process as seen later on. Depending on which codec is used, and therefore which compression algorithm, the end video file will vary in file size, quality and playback device compatibility.

Further Reading: H.264 vs H.265

Common Video Resolutions

Different video cameras support different video resolutions, for example:

  • HD 720p – 1280 x 720
  • Full HD 1080p – 1920 x 1080
  • Quad HD 4K or 2160p – 3840 x 2160
  • Ultra HD8K or 4320p – 7680 x 4320

Choosing a video resolution when recording

You could choose to record at the highest quality but there are 3 issues:

  1. Higher resolutions /FPS require more storage capacity and great transmission bandwidth
  2. Higher resolutions/FPS will use more battery power in your video camera than a lower resolution /fps
  3. Most playback devices (TVs, Cinema, Phones) don’t support 8K and you probably wouldn’t notice the difference for most content.

Therefore when recording videos using your phone or a dedicated video camera you need to think about what you are going to be recording (do you need a high FPS to slow down action?) and how your content is going to be viewed (is it going to be on high resolution devices?).

Compression

Redundancy

Encoding

Bit Rate

Distribution

Resources