In the previous post, we created our first video file using GStreamer. The pipeline worked correctly, but there was one major problem: the generated file was very large.

The reason is simple. We stored every video frame as raw, uncompressed image data. While this is easy to understand, it is highly inefficient for storage and distribution.

In this post, we will introduce video compression using the H.264 codec and see how dramatically it reduces file size.

What You Will Learn

How to create a video file using H.264 encoding