Anon 08/06/2024 (Tue) 09:57 No.10782 del
>>10781
>[simple code here]
Was surprisingly easy to get it working:
$ sudo chmod -R a+rwx /zc/put/cunt/
$ cat /usr/lib/cgi-bin/yt.sh
#!/bin/bash
echo "Content-type: text/html"
echo
echo "<pre>"
id=$(echo $REQUEST_URI | sed "s/.*=//g")
#-- not H264 #yt-dlp "https://www.youtube.com/watch?v=$id" -f mp4 -f "bestvideo[height<=900]+bestaudio/best[height<=900]" -o /zc/put/cunt/$id.mp4
#-- not H264 #yt-dlp "https://www.youtube.com/watch?v=$id" -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]" -o /zc/put/cunt/$id.mp4
yt-dlp "https://www.youtube.com/watch?v=$id" -f "bestvideo[height<=900]+bestaudio/best[height<=900]" -S "codec:h264" -o /zc/put/cunt/$id.mp4 
echo "</pre>"
$ # works 2024-08-06T07:11Z
"sudo chmod -R a+rwx" = recursively allow read+write+execute for all users (incl. www-data).