youtube-scripts / README.md
Lax3n's picture
Upload folder using huggingface_hub
58b0fc8 verified
|
Raw History Blame Contribute Delete
4.69 kB
---
license: other
license_name: academic-source-terms
license_link: https://huggingface.co/datasets/umarigan/youtube_scripts
task_categories:
- video-classification
- text-to-video
- video-text-to-text
tags:
- video
- youtube
- tornadolabs
pretty_name: "youtube_scripts — YouTube source videos"
configs:
- config_name: videos
default: true
data_files: metadata.jsonl
- config_name: annotations
data_files: captions.parquet
---
# youtube_scripts — YouTube source videos
**1,864 source IDs** with their source links and availability.
**48 videos** (3.3 GB) with 48 subtitle files, downloaded at source
quality and hosted for direct download.
> **Coverage (2026-11-17):** 48 complete YouTube source videos are hosted here. They come from a prepared selection of 1,864 YouTube IDs read from [`umarigan/youtube_scripts`](https://huggingface.co/datasets/umarigan/youtube_scripts) (revision `40c298cdc044`); the selection stopped because all matching upstream metadata files were read.
> Of the prepared IDs: 48 hosted, 1 unavailable at download time, 0 failed downloads, 0 not added because of the 6 GB cap, 0 in progress and 1,815 not attempted.
> The `videos` configuration lists **every prepared ID**, hosted or not: `video_url` is filled only for the 48 hosted videos, and `availability` gives the state of each row when this card was generated. The annotations cover all listed IDs.
> **Public release:** capped at 6 GB (6,000,000,000 bytes), including media and indexes.
> **Unit:** complete YouTube source videos. Upstream clip intervals, where present, remain in the annotations; the videos have not been cut to those intervals. The index lists every prepared ID; only part of them is hosted.
## What's inside
- **`metadata.jsonl`** — 1,864 rows, one per prepared source ID: `video_id`, `youtube_url`, `availability`, `in_prepared_selection`, `video_url` (direct HTTPS download, CDN-backed; empty when the video is not hosted), `subtitle_url`, `size_bytes`, `last_attempt_at`
- 48 of these videos (3.3 GB) are hosted on Hugging Face storage; the other rows keep their source link only
- **`captions.parquet`** — 2,886 academic annotations (source: `annotations.csv`)
## Quick start
```python
from datasets import load_dataset
# videos (default config): one row per source ID; video_url is set for hosted videos only
ds = load_dataset("TornadoLabs/youtube-scripts", "videos", split="train")
print(ds[0])
# keep the hosted videos, then download one
import requests
hosted = ds.filter(lambda r: r["video_url"] is not None)
r = requests.get(hosted[0]["video_url"])
open(f"{hosted[0]['video_id']}.mp4", "wb").write(r.content)
# annotations for all listed source videos
ann = load_dataset("TornadoLabs/youtube-scripts", "annotations", split="train")
```
## How this dataset was built
Each file is the complete YouTube source video (best available quality), fetched through the [Tornado API](https://tornadoapi.io?ref=hf-youtube-scripts-how) into a temporary location, measured, then copied into the public storage only while the release stayed under 6 GB. Clip intervals from the upstream annotations are kept as annotations and are not applied to the files. Videos that were unavailable, failed or did not fit are counted in the coverage note above.
## Provenance & citation
- Original dataset: https://huggingface.co/datasets/umarigan/youtube_scripts
- Paper: See the upstream dataset card
- The upstream repository declares APACHE-2.0 for its annotations; rights to the third-party videos are separate.
The video files remain the property of their respective YouTube uploaders. The
annotations belong to the original dataset authors — cite their paper if you use
them. This re-hosting is provided for reproducible research; if you are a rights
holder and want content removed, open a discussion on this repo.
## Request a larger or custom delivery
This release is capped at 6 GB. Additional videos from the prepared selection or from the complete upstream ID list can be collected on request: **[request a delivery quote from Tornado API](https://tornadoapi.io?ref=hf-youtube-scripts-cta)**.
What can be delivered depends on each video's current availability on YouTube and on the applicable rights: recovery of every listed source is not guaranteed, and no commercial rights to the source videos are granted. The upstream terms continue to apply.
---
<!-- tornado-logo -->
<p align="center">
<a href="https://tornadoapi.io?ref=hf-youtube-scripts-logo"><img src="https://tornadoapi.io/logo.png" alt="Tornado API" width="96"></a><br>
Collected and delivered with <a href="https://tornadoapi.io?ref=hf-youtube-scripts-logo">Tornado API</a>
</p>