# YouTube import

URL: https://skali.dppst.com/docs/youtube-import/

> Migrate or archive your public and unlisted YouTube videos into your sovereign Skali library on Cloudflare R2.

Already have videos hosted on YouTube (public or unlisted) that you want to bring home onto your own Cloudflare instance? Skali includes a built-in YouTube import workflow powered by **`yt-dlp`** and FFmpeg.

## Setting up `yt-dlp`

If `yt-dlp` is already installed on your system `PATH`, Skali detects it automatically. Otherwise, Skali lets you download the official standalone `yt-dlp` binary in **one click** directly inside the app.

## How it works

1. Open **Skali** and paste a YouTube video URL into the import panel (or pass it through the CLI).
2. Skali fetches the best available stream locally, extracts the title and description, encodes a clean adaptive HLS fMP4 ladder, builds WebP thumbnails and timeline sprites, and publishes it to your selected Skali instance.
3. Once published, your video lives 100% in your private R2 bucket, free of YouTube ads, tracking, and sudden link rot.

## Importing unlisted or restricted videos

- **Public and standard Unlisted videos** usually download directly from their URL without signing in.
- **Age-restricted, private, or bot-challenged videos** may require YouTube authentication cookies. Skali lets you supply browser cookies (or a `cookies.txt` file exported from your browser) strictly locally on your machine; those cookies are **never** uploaded to your Cloudflare Worker or stored in D1.

## Tips for clean migrations

- Pick **1080p max** for standard YouTube videos, or **Auto / 4K** / **Archive / 4K HQ** if the source video is 4K.
- Set the initial visibility to **Draft** or **Private** if you want to review titles, collections, and thumbnails in `/admin` before sharing links.
- Only import videos that you own or have the legal right to archive and host.
