Tubeup
Use yt-dlp to download video/metadata and upload to the Internet Archive.
Install / Use
/learn @bibanon/TubeupREADME
Tubeup - a multi-VOD service to Archive.org uploader
tubeup uses yt-dlp to download a Youtube video (or any other provider supported by yt-dlp), and then uploads it with all metadata to the Internet Archive using the python module internetarchive.
It was designed by the Bibliotheca Anonoma to archive single videos, playlists (see warning below about more than video uploads) or accounts to the Internet Archive.
Prerequisites
This script strongly recommends Linux or some sort of POSIX system (such as macOS), preferably from a rented VPS and not your personal machine or phone.
Reccomended system specifications:
- Linux VPS with Python 3.10 or higher and
pipxinstalled - 2GB of RAM, 100GB of storage or much more for anything other than single short video mirroring. If your OS drive is too small,
symlinkit to something larger.
Setup and Installation
Installation via third-party package managers like Homebrew, MacPorts, or Linux system packages (apt, yum, etc.) is not supported.
- Install
ffmpeg, pip3 (typicallypython3-pipxor in Archpython-pipx), and Deno (external java script support required by yt-dlp for Youtube extractor).
To install ffmpeg in Ubuntu, enable the Universe repository.
For Debian/Ubuntu:
sudo apt remove yt-dlp ; sudo apt install ffmpeg python3-pipx deno
Then run:
pipx ensurepath
- Use pipx to install the required python packages. At a minimum Python 3.9 and up is required (latest Python preferred).
pipx install "yt-dlp[default,curl-cffi]" internetarchive tubeup
-
If you don't already have an Internet Archive account, register for one to give the script upload privileges.
-
Configure
internetarchivewith your Internet Archive account.
ia configure
You will be prompted for your login credentials for the Internet Archive account you use.
Once configured to upload, you're ready to go.
- Start archiving a video by running the script on a URL (or multiple URLs) supported by yt-dlp.. For YouTube, this includes account URLs and playlist URLs.
tubeup <url>
-
Each archived video gets its own Archive.org item. Check out what you've uploaded at
http://archive.org/details/@YOURUSERNAME. -
Upgrading
Perodically before running, upgrade tubeup its pyton dependencies and Deno by running:
pipx upgrade-all ; deno upgrade
To use a nightly yt-dlp build, inject it into your yt-dlp virtual environment:
pipx inject yt-dlp "yt-dlp[default,curl-cffi] @ https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/download/[NIGHTLY TAG]/yt-dlp.tar.gz" --force
Where [NIGHTLY TAG] would for example be 2025.10.11.232807 in this yt-dlp release.
Upgrades will take it to latest nightly, which yt-dlp releases with a stable tag (see notes about upgrading below).
Docker
Dockerized tubeup is provided by etnguyen03/docker-tubeup. Instructions are provided.
Windows Setup
- Install WSL2, pick a distribution of your choice. Ubuntu is popular and well-supported.
- Use Windows Terminal by Microsoft to interact with the WSL2 instance.
- Fully update the Linux installation with your package manager of choice.
sudo apt update ; sudo apt upgrade - Install python
pipx,ffmpeganddeno. - Install Tubeup using steps 4-6 in the Linux configuration guide above and configuring
internetarchivefor your Archive.org account. - Periodically update your Linux packages and python packages.
Usage
Usage:
tubeup <url>... [--username <user>] [--password <pass>]
[--metadata=<key:value>...]
[--cookies=<filename>]
[--proxy <prox>]
[--quiet] [--debug]
[--use-download-archive]
[--output <output>]
[--dir <dir>]
[--ignore-existing-item]
tubeup -h | --help
tubeup --version
Arguments:
<url> yt-dlp compatible URL to download.
Check yt-dlp documentation for a list
of compatible websites.
--metadata=<key:value> Custom metadata to add to the archive.org
item.
--dir <dir> Provide a directory for downloads and metadata.
Options:
-h --help Show this screen.
-p --proxy <prox> Use a proxy while uploading.
-u --username <user> Provide a username, for sites like Nico Nico Douga.
-p --password <pass> Provide a password, for sites like Nico Nico Douga.
-a --use-download-archive Record the video url to the download archive.
This will download only videos not listed in
the archive file. Record the IDs of all
downloaded videos in it.
-q --quiet Just print errors.
-d --debug Print all logs to stdout.
-o --output <output> yt-dlp output template.
-i --ignore-existing-item Don't check if an item already exists on archive.org
Metadata
You can specify custom metadata with the --metadata flag.
For example, this script will upload your video to the Community Video collection by default.
You can specify a different collection with the --metadata flag:
tubeup --metadata=collection:opensource_audio <url>
Any arbitrary metadata can be added to the item, with a few exceptions. You can learn more about archive.org metadata here.
Collections
Archive.org users can upload to four open collections:
- Community Audio where the identifier is
opensource_audio. - Community Software where the identifier is
opensource_software. - Community Texts where the identifier is
opensource. - Community Video where the identifier is
opensource_movies.
Note that care should be taken when uploading entire channels. Read the appropriate section in this guide for creating collections, and contact the collections staff if you're uploading a channel or multiple channels on one subject (gaming or horticulture for example). Internet Archive collections staff will either create a collection for you or merge any uploaded items based on the YouTube uploader name that are already up into a new collection.
Dumping entire channels into Community Video is abusive and may get your account locked. Talk to the Internet Archive admins first before doing large uploads; it's better to ask for guidence or help first than run afoul of the rules.
If you do not own a collection you will need to be added as an admin for that collection if you want to upload to it. Talk to the collection owner or staff if you need assistance with this.
Troubleshooting
- Some videos are copyright blocked in certain countries. Use the proxy or torrenting/privacy VPN option to use a proxy to bypass this. Sweden and Germany are good countries to bypass geo-restrictions.
- Upload taking forever? Getting s3 throttling on upload? Tubeup has specifically been tailored to wait the longest possible time before failing, and we've never seen a S3 outage that outlasted the insane wait times set in Tubeup. Disabling waits for S3 timeouts won't make the upload work, instead it will leave the downloaded contents on your disk in the downloads folder (
~/.tubeup/downloads) because the download will immeaditly fail instead of gracefully waiting. The waits are a safety in case timeouts occur, do not disable them.
A note on live videos
-
yt-dlp cannot do simultaneous downloads, cannot prioritize live video first on Youtube over live chat, This couldn't be fixed unless for YT which is what most people use it for, except by disabling livechat ripping to start video ripping, but even if that solution was acceptable by building in a flag on our end that disables chats to get video (again unacceptable) thats canceled by the next problem....
-
yt-dlp has a unacceptably high failure rate with
--live-from-startis called, sometimes the result doesn't mux, and in Twitches case is incomplete and isn't supported by all extractors. This flag is actually considered experimental by yt-dlp maintainers and has been said is unsuitable for archival purposes.
Do not use Tubeup to archive live Youtube (or any other site) video. We will not/cannot fix it, it's not even our problem, and any solutions are unpalitable since they involve more code complexity to be maintained ontop of having to disable livechat for one extractor only for live video.
Major Credits (in no particular order)
- emijrp who wrote the original youtube2internetarchive.py in 2012
- Matt Hazinski who forked emijrp's work in 201
Related Skills
openai-image-gen
328.6kBatch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
claude-opus-4-5-migration
80.9kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
docs-writer
98.6k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
328.6kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
