---
title: "Build awesome datasets for video generation"
description: "A three-stage pipeline for building small video-generation fine-tuning datasets: acquisition with yt-dlp and scene splitting, per-frame filtering for watermarks, aesthetics and NSFW content plus an OpenCV motion score, and captioning with Florence-2 or a video captioner like Qwen2VL."
url: "https://swe.quest/articles/build-awesome-datasets-for-video-generation-234cead646e03175"
canonical: "https://huggingface.co/blog/vid_ds_scripts"
source: "Hugging Face"
published: "2025-02-12"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["model-training","computer-vision","data-pipelines","video-media"]
---

# Build awesome datasets for video generation

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-02-12, 5 min read, How-to. Original: [https://huggingface.co/blog/vid\_ds\_scripts](https://huggingface.co/blog/vid_ds_scripts)

## Summary

A three-stage pipeline for building small video-generation fine-tuning datasets: acquisition with yt-dlp and scene splitting, per-frame filtering for watermarks, aesthetics and NSFW content plus an OpenCV motion score, and captioning with Florence-2 or a video captioner like Qwen2VL. Filtering the crush-smol dataset on pwatermark \< 0.1 and aesthetic \> 5.5 kept only 47 of 1493 clips. The authors conclude that averaging watermark scores across frames with a 0.2–0.3 threshold works better, and that aesthetic scores are biased toward colorful, regular shapes and suit a minimum cutoff of about 4.25–4.5. The resulting datasets were used to fine-tune CogVideoX-5B with finetrainers for effects like Crush and Cakeify.

Written by swe.quest, not by the author.

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

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Video & media](https://swe.quest/tags/video-media.md) (Domains)

## Prerequisites

- diffusion model fine-tuning basics ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- image classifiers

## Keywords

video2dataset, Florence-2, yt-dlp, CogVideoX, finetrainers, Qwen2VL, LAION-5B-WatermarkDetection

## Related posts

- [FineVideo: behind the scenes](https://swe.quest/articles/finevideo-behind-the-scenes-1b09a2a2c7d0563a.md): Hugging Face · 2024-09-23 · Medium · 15 min read · Data pipelines, Computer vision, LLMs, Model training, Video & media
  FineVideo is a 43K-video, 3.4K-hour dataset distilled from 1.9M English YouTube-Commons videos, annotated with scene splits, narrative details, descriptions and QA pairs.
- [PRX Part 4: Our Data Strategy](https://swe.quest/articles/prx-part-4-our-data-strategy-65ac8355bac33db9.md): Hugging Face · 2026-07-06 · Hard · 20 min read · Model training, Data pipelines, Computer vision, Machine learning
  PRX's pre-training corpus for a 7B text-to-image model is assembled from public and internal datasets, re-captioned with a VLM into long dense paragraphs, curated in Lance and streamed to training as Mosaic Data Shards.
- [Open Preference Dataset for Text-to-Image Generation by the 🤗 Community](https://swe.quest/articles/open-preference-dataset-for-text-to-image-generation-by-the-community-51063f2eca79d4de.md): Hugging Face · 2024-12-09 · Easy · 7 min read · Model training, Computer vision, Evaluation, Open source
  Data is Better Together released an Apache 2.0 text-to-image preference dataset of 10K pairs, with over 30K annotations from more than 250 community members collected in under two weeks.
- [A Dive into Text-to-Video Models](https://swe.quest/articles/a-dive-into-text-to-video-models-47048e6531120574.md): Hugging Face · 2023-05-08 · Easy · 10 min read · Computer vision, Model training, Machine learning
  Text-to-video generation is much harder than text-to-image because frames must stay spatially and temporally consistent, training compute is high, paired datasets are scarce and noisy, and a single caption cannot describe events unfolding over time.
- [State of open video generation models in Diffusers](https://swe.quest/articles/state-of-open-video-generation-models-in-diffusers-9770186e8fdb5a0a.md): Hugging Face · 2025-01-27 · Medium · 16 min read · Inference & serving, Computer vision, Video & media, Performance engineering, Model training
  Open video generation models such as HunyuanVideo, CogVideoX, LTX-Video, Mochi-1 and Allegro share a common architecture: T5-style text encoders, a DiT-based denoiser over 3D spatio-temporal tokens, a spatially and temporally compressing VAE, and a scheduler.

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)
