a PHP script that wraps around youtube-dl which allows you to enter in a youtube ID. The script then downloads the entire video at the highest resolution and uses javascript to write an HTML5 video element to the page which in turn autoplays the video you just downloaded.
this is a terrible idea and most likely against youtube's TOS - don't use it! Further, after I wrote this I found alltube (github or alltubedownload.net), which is almost identical to this project, but WAY more fancy. Use that instead!
for me, it's more like why not!? here's why for me:
- no trackers
- no ads
- no "playing next!"
- no recommendations
- no buffering mid video (just possibly a very long wait before it even starts ;)
- no low quality video
- no toxic comments
- all video, all the time
This is the alpha version! maybe later ;)
Assumes you're on ubuntu:
- create a dir with
mkdir
that's in a web accessible location on an ubuntu machine - install youtube-dl and pafy so they're accsible by apache:
sudo mkdir /var/www/.local
sudo mkdir /var/www/.cache
sudo chown www-data.www-data /var/www/.local
sudo chown www-data.www-data /var/www/.cache
sudo -H -u www-data pip install youtube-dl pafy
- Install PHP and ffmpeg with
sudo apt install php ffmpeg
- install jquery with something like
curl https://code.jquery.com/jquery-3.4.1.min.js -o jquery.min.js
- install this gist in the web accessible dir
curl -o index.php https://gist.githubusercontent.com/Ths2-9Y-LqJt6/9975f4a180382b54ac9be8ef58ce4903/raw/422bb555901b8e341c81372db2dd4f4c216ba178/index.php
- make sure your web user can write to dir with something like
chown www-data .
- partaaaay!