linux:tools:downloader
This is an old revision of the document!
Table of Contents
youtube-dl
Installation
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
Nötige Pakete
apt-get install jq
Datei download
youtube-dl <URL> youtube-dl --list-extractors --> Verfügbare Sites zum Download youtube-dl -x --audio-format mp3 --audio-quality 5 <URL> --> extrahier mp3 aus dem Video youtube-dl -F <URL> --> Verfügbare qualität der Videos youtube-dl -f <qualität> <URL> --> läd Video mit vorgegebener qualität runterladen youtube-dl -f bestaudio <URL> -o - | ffplay -nodisp -autoexit -i -
Playlist download
Bsp. Youtube:
Playlist auswählen/anklicken → Fenster mit 1. Video → rechts Playlist (alle Videos) → Playlist-Name rechte Maus → Link-Adresse kopieren
z.B.: https://www.youtube.com/playlist?list=PLzMcBGfZo4-kwmIcMDdXSuy_wSqtU-xDP (Playlist-URL)
youtube-dl --continue --ignore-errors <Playlist-URL> youtube-dl -ci <Playlist-URL> youtube-dl -ci <Playlist-URL> -o "%(title)s-%(id)s.%(ext)s"
Video-Liste erstellen
Liste mit Video-URLs
youtube-dl -j --flat-playlist "https://www.youtube.com/path/to/videos" | jq -r '.id, .title' | sed 's_^_https://youtu.be/_;n' > video_list.txt
Liste mit Video-URLs und Titel
youtube-dl -j --flat-playlist "https://www.youtube.com/path/to/videos" | jq -r '.id, .title' | sed 's_^_https://youtu.be/_;n' > video_list_title.txt
yt-dlp
Installation
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp sudo chmod a+rx /usr/local/bin/yt-dlp
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" <URL> cat urls https://youtu.be/0tjWWS2DGmU https://youtu.be/Cyqahzn-cXw ... for i in `cat urls` do yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" $i done
linux/tools/downloader.1668452110.txt.gz · Last modified: 2023/01/11 20:30 (external edit)