User Tools

Site Tools


linux:tools:downloader

This is an old revision of the document!


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 -cit <Playlist-URL>

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
linux/tools/downloader.1649663563.txt.gz · Last modified: 2023/01/11 20:30 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki