---
title: "Scaling robotics datasets with video encoding"
description: "LeRobot stores the camera frames of robotics datasets as AV1 video instead of per-frame PNGs."
url: "https://swe.quest/articles/scaling-robotics-datasets-with-video-encoding-d6f6eb77294415c9"
canonical: "https://huggingface.co/blog/video-encoding"
source: "Hugging Face"
published: "2024-08-27"
difficulty: "medium"
kind: "Research"
reading_minutes: 18
tags: ["video-media","machine-learning","performance","storage-systems"]
---

# Scaling robotics datasets with video encoding

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-08-27, 18 min read, Research. Original: [https://huggingface.co/blog/video-encoding](https://huggingface.co/blog/video-encoding)

## Summary

LeRobot stores the camera frames of robotics datasets as AV1 video instead of per-frame PNGs. That cuts datasets to about 14% of their original size on average and as little as 0.2% at best, while keeping them usable for training. An FFmpeg benchmark across four datasets measured codec, pixel format, GOP size and CRF against size, decoding time, quality (MSE, PSNR, SSIM) and browser compatibility, using frame-access patterns typical of policy training. The chosen settings are libsvtav1 with yuv420p, g=2 and crf=30. With them, a single-frame load is about as fast as loading a PNG, and loading several consecutive frames takes 25–50% of the PNG time.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Video & media](https://swe.quest/tags/video-media.md) (Domains)
- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)

## Prerequisites

- video codec basics ([easy posts on Video & media](https://swe.quest/tags/video-media.md?difficulty=easy))
- FFmpeg
- PyTorch data loading

## Keywords

LeRobot, LeRobotDataset, FFmpeg, AV1, libsvtav1, H.264, torchvision, Hugging Face Hub

## Related posts

- [Record, train, and deploy from one place with Strands Agents, LeRobot, and Hugging Face Storage Buckets](https://swe.quest/articles/record-train-and-deploy-from-one-place-with-strands-agents-lerobot-and-hugging-5e62e45211b44f62.md): Hugging Face · 2026-08-13 · Medium · 19 min read · ML platforms, Data pipelines, Storage systems, Model training, Python
  Strands Robots 0.6 and LeRobot 0.7 form a continuous robot data loop.
- [\`LeRobotDataset:v3.0\`: Bringing large-scale datasets to \`lerobot\`](https://swe.quest/articles/lerobotdataset-v3-0-bringing-large-scale-datasets-to-lerobot-9eb16984e25fad4b.md): Hugging Face · 2025-09-16 · Medium · 10 min read · Data pipelines, Machine learning, Python, Storage systems
  LeRobotDataset v3.0 replaces the one-episode-per-file layout of v2, which hit file-system limits at millions of episodes, with multi-episode Parquet and MP4 files indexed by relational metadata that records episode boundaries and video timestamps.
- [Reducing Instagram’s basic video compute time by 94 percent](https://swe.quest/articles/reducing-instagram-s-basic-video-compute-time-by-94-percent-8efd07bfee25d57c.md): Meta Engineering · 2022-11-04 · Medium · 5 min read · Video & media, Cost optimization, Capacity planning, Performance engineering
  Instagram cut the compute cost of its basic adaptive bit rate (ABR) video encodings by 94 percent by reusing the frames from its progressive encodings and repackaging them into a DASH-capable file structure instead of transcoding from the original upload.
- [LeRobot v0.4.0: Supercharging OSS Robot Learning](https://swe.quest/articles/lerobot-v0-4-0-supercharging-oss-robot-learning-7c8c384b6ea4fa15.md): Hugging Face · 2025-10-24 · Medium · 9 min read · Machine learning, Model training, Open source, Python
  LeRobot v0.4.0 introduces Datasets v3.0 with a chunked episode format, video streaming and unified Parquet metadata for OXE-scale (\>400GB) robot datasets, plus a lerobot-edit-dataset CLI to merge, split and delete episodes.
- [SmolVLA: Efficient Vision-Language-Action Model trained on Lerobot Community Data](https://swe.quest/articles/smolvla-efficient-vision-language-action-model-trained-on-lerobot-community-data-99cf2ea745877ec8.md): Hugging Face · 2025-06-03 · Hard · 17 min read · Machine learning, Model training, Inference & serving, Computer vision, Open source
  SmolVLA is a 450M-parameter open-source vision-language-action model for robotics, pretrained on about 10M frames from 487 curated LeRobot community datasets and able to run on consumer hardware.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
