a VOD service to altCensored.com uploader based on tubeup
Project description
tubein is a VOD service to altCensored.com uploader, based on tubeup and tubeup_ac
tubein uses yt-dlp to download a Youtube video (or any other provider supported by yt-dlp), and then uploads it with a metadata json to altCensored.com.
tubeup 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.8 or higher and
pipinstalled - 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
- Install
ffmpeg, pip3 (typicallypython3-pip), and git. To install ffmpeg in Ubuntu, enable the Universe repository.
For Debian/Ubuntu:
sudo apt install ffmpeg python3-pip git
- Use pip3 to install the required python3 packages. At a minimum Python 3.7.13 and up is required (latest Python preferred).
pip install tubein
- 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.
tubein <url>
Perodically before running, upgrade tubeup and its dependencies by running:
pip install tubein -U
Usage
Usage:
tubein <url>... [--username <user>] [--password <pass>]
[--cookies=<filename>]
[--proxy <prox>]
[--quiet] [--debug]
[--use-download-archive]
[--output <output>]
[--ignore-existing-item]
[--new-item-id <item_id>]
[--ydl-option-format <format>]
[--ydl-option-subtitleslangs <subtitleslangs>]
tubein -h | --help
tubein --version
Arguments:
<url> yt-dlp compatible URL to download.
Check yt-dlp documentation for a list
of compatible websites.
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
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.
License (GPLv3)
Copyright (C) 2020 Bibliotheca Anonoma
Copyright (C) 2024 altCensored.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tubein-0.0.8-py3-none-any.whl.
File metadata
- Download URL: tubein-0.0.8-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f308156ff85066e219381dbdfee8dbcfdd4d8d2f70590971753a93175a78fe7
|
|
| MD5 |
68c9388801c7087e25290ba57b58e919
|
|
| BLAKE2b-256 |
052e807e496b528a9e025edc679012421ed8cf11029b7c863ac287ddeb16d716
|