A slice is a piece of a video frame that can be decoded independently of the other slices in the same frame. Most frames in modern codecs are a single slice — one chunk of macroblocks or CTUs encoded as one unit. But the codecs also let the encoder split a frame into multiple slices for two specific purposes: error resilience and parallel processing. Each slice has its own header, can't reference content from other slices in the same frame, and decodes independently.

The original purpose was error resilience. In broadcast and other lossy-transmission contexts, if a packet gets corrupted or dropped, the decoder only loses the slice containing that packet — not the whole frame. The viewer might see a horizontal stripe of blocky video where the lost slice was, but the rest of the frame keeps playing cleanly. This was critical for satellite and over-the-air broadcast in the H.264 era.

For parallel processing, multiple slices let the encoder (and decoder) split the work across CPU cores: slice 1 to core 1, slice 2 to core 2, and so on. This was H.264's main parallelism strategy. Modern codecs prefer tiles (HEVC, AV1, VVC) over slices for parallelism because tiles have cleaner geometric boundaries and better cache behaviour, but slices remain in the standards for backward compatibility. For a product team, slices are mostly invisible — the encoder picks how to use them based on settings — but if you see weirdly-shaped artefacts in a video that hit only horizontal bands of the frame, that's a sign of slice-level packet loss in the transmission chain.

Book cover: Video Encoding, Volume 1 of the Fora Soft Video Engineering Handbook

The book · Volume 1 of 7

Video Encoding: A Complete Guide to Video Compression — From Pixels and Color to H.264, HEVC, AV1, Quality Metrics, and AI

Slices let decoders recover from packet loss and run in parallel, but every slice boundary costs compression. Volume 1 covers slices in detail alongside tiles and wavefront processing: slice types, error resilience in lossy networks, slice-based parallelism, and the bitrate cost of splitting frames. Written by Nikolay Sapunov, CEO at Fora Soft.

Read it on Amazon →Kindle & paperback · Fora Soft Video Engineering Handbook

Tuning slices for low-latency streaming over lossy networks?

Share your network conditions and latency target: we recommend slice and tile settings that balance error recovery, decode speed and bitrate. 250+ video products shipped since 2005.

Book a 30-min call →WhatsApp →Email us →