GumletGumlet logo
Pricing
Login
Book a Demo
Signup

Footer

Gumlet Company logo
USA

Gumlet LLC
8 The Green, Dover, DE 19901

Singapore

Gumlet Pte Ltd
20A, Tanjong Pagar Road, Singapore (088 443)

Gumlet aicp logoGumlet soc2 logoGumlet iso logo
PRODUCT
  • Video Overview
  • Video Analytics
  • DRM Video Protection
  • Video CMS
  • Video Protection
  • Video Player Customization
  • Video Streaming
  • Video Transcoding
  • Video DRM
  • Online Video Hosting
  • Image Optimization
  • No-code Integration
  • Wordpress
  • Vimeo Alternative
  • Cloudinary Alternative
  • Imgix Alternative
  • Wistia Alternative
RESOURCES
  • Blog
  • Learn
  • Glossary
  • Tools
  • Startup Credits
  • Why Gumlet
  • Webinars
  • Documentation
  • Howdrm.works
SUPPORT
  • Product Updates
  • Feedback
  • Community
  • Become an Affiliate
  • Contact Us
  • Service Status
COMPANY
  • Pricing
  • About Us
  • Customers
  • Careers
  • Press Kit

© 2025 Gumlet Pte. Ltd.

Privacy Policy

Terms of Service

Back to Glossary

R

1 min read

Run-length Encoding

Run-length Encoding (RLE) is a simple compression algorithm for video encoding and other digital data processing applications.

What is Run-length Encoding?

Run-length Encoding (RLE) is a simple compression algorithm for video encoding and other digital data processing applications. It reduces the amount of data needed to represent an image or video by identifying repeated data patterns and replacing them with a shorter symbol. This makes the data more compact and easier to store and transmit.

For example, if a video frame contains a sequence of 15 white pixels, instead of storing each pixel individually, RLE would represent the sequence as "15w." This significantly reduces the amount of data needed to store the frame and the amount of data that needs to be transmitted during video streaming.

One of the key advantages of RLE is its simplicity. It is easy to implement and can be applied to various data types, including images, videos, and audio. It is also very fast and can be used in real-time applications like video streaming.

Drawbacks of RLE

However, RLE has several drawbacks that limit its effectiveness in certain applications. One of the main drawbacks is that it is not very effective for compressing data that contains a lot of randomness or complexity. In these cases, RLE may increase the data size because it requires additional symbols to represent the data.

Another drawback of RLE is that it is not very flexible. It can only identify consecutive runs of the same data value and cannot handle more complex patterns or variations in the data. This limits its usefulness in applications that require more advanced video compression techniques.

Run-length encoding and LZ77

LZ77 is a compression algorithm that is often compared to RLE, as it also works by identifying patterns in the data and replacing them with shorter symbols. However, there are some key differences between the two algorithms.

In LZ77, instead of replacing runs of the same data value with a single symbol, repeated data patterns are replaced with a shorter symbol that points back to the location of the original pattern. This allows for more efficient compression of complex data patterns and is often combined with other compression techniques to achieve even greater compression ratios.

Similar readings

Rebuffering
Posted on Jan 29, 2024
Rate-distortion optimization
Posted on Oct 03, 2023
Images or videos loading slow?

We compress them so that your users don't need to wait.

Try Gumlet

Images or videos loading slow?We compress them so that your users don't need to wait.  Try Gumlet →

Ready to get started?

Sign up and start optimizing your videos by up to 57% with Gumlet. No credit card required. Reach out to contact sales or to get a custom pricing estimate that fits your needs.

Start now Contact sales →
Optimizing videos is hard, but our pricing is not
Simple per-minute pricing with no hidden fees.
Pricing details →
Effortlessly integrate Gumlet into your existing stack
Upload with API and set webhooks for output in minutes.
Integragtion guide →