logo

Suletuxe.de
Linux - Nutzer
helfen
Linux - Nutzern

Willkommen, Gast. Bitte Login oder Registrieren.
28. März 2024, 14:27:22
Übersicht Hilfe Suche Login Registrieren

Amateurfunk Sulingen
Diskussions- und Newsboard der Linux Interessen Gruppe Suletuxe  |  allgemeine Kategorie  |  Welches Linux-Programm verwende ich anstelle von xyz (Windows)?  |  Thema: yt-dlp config « zurück vorwärts »
Seiten: [1] nach unten Drucken
   Autor  Thema: yt-dlp config  (Gelesen 1604 mal)
Sebastian
Sr. Member
****

Offline

Einträge: 363





Profil anzeigen
yt-dlp config
« am: 04. August 2022, 15:56:41 »

Hier möchte ich euch eine yt-dlp config Datei zu Verfügung stellen. Wenn ihr vielleicht selbst noch ein paar Sinnvolle Einstellungen kennt dürft ihr sie gerne dazu schreiben.

Falls ihr yt-dlp nicht kennen solltet dies ist ein Fork von youtube-dl mit ein paar Verbesserungen.

Die meisten Optionen teilt sich yt-dlp mit youtube-dl so das ein migrieren seiner youtube-dl config schnell von statten gehen sollte. Falls man umsteigen möchte. yt-dlp wird von vielen Programmen auch als alternative zu youtube-dl erkannt. Somit ist dem mpv Player z.B. egal ob youtube-dl oder yt-dlp installiert ist um Youtube Videos direkt abspielen zu können.

die Config könnt ihr einfach unter folgendem Pfad speichern dann findet sie bei Verwendung von yt.dlp automatisch Anwendung.

Code:

$HOME/.config/yt-dlp/config


Code:

# Network Options:

# Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy,
# specify a proper scheme. Eg: socks5://user:pass@127.0.0.1:1080/. Pass
# in an empty string (--proxy "") for direct connection
# Uncomment to Use Tor when tor is running on your Device
#--proxy socks5://localhost:9050

# Filesystem Options:

# Restrict filenames to only ASCII characters, and avoid "&" and spaces
# in filenames
--restrict-filenames

# Output filename template; see "OUTPUT TEMPLATE" for details
--output '%(channel)s/%(playlist_title)s/%(upload_date)s-%(title)s-[%(id)s]'

# Video Format Options:

# Prefer video formats with free containers over non-free ones of
# same quality. Use with "-S ext" to strictly prefer free containers
# irrespective of quality
--prefer-free-formats

# Sort the formats by the fields given, see "Sorting Formats" for more
# details Download the best video available with the largest resolution
# but no better than 720p, or the best video with the smallest resolution
# if there is no video under 720p Resolution is determined by using the
# smallest dimension.  So this works correctly for vertical videos as well
--format-sort "res:720"

# If a merge is required (e.g. bestvideo+bestaudio), output to given
# container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge
# is required
#--merge-output-format mkv

# SponsorBlock Options:

# SponsorBlock categories to create chapters for, separated by
# commas. Available categories are sponsor, intro, outro, selfpromo,
# preview, filler, interaction, music_offtopic, poi_highlight, all and
# default (=all). You can prefix the category with a "-" to exclude
# it. See [1] for description of the categories.
# Eg: --sponsorblock-mark all,-preview
--sponsorblock-mark all

# SponsorBlock categories to be removed from the video file, separated
# by commas. If a category is present in both mark and remove, remove
# takes precedence. The syntax and available categories are the same as
# for --sponsorblock-mark except that "default" refers to "all,-filler"
# and poi_highlight is not available
#--sponsorblock-remove sponsor,selfpromo,intro,outro

Die Option --sponsorblock-remove ist erst mal auskommentiert, da es zur zeit da noch ein Bug mit ffmpg gibt.

mit einem update von ffmpeg kann man dies später mal wieder ausprobieren ob dies mittlerweile gefixt wurde.
« Letzte Änderung: 05. August 2022, 13:34:40 von Sebastian » Gespeichert

Andreas
Administrator
*****

Offline

Einträge: 1135



Linux von Innen

Profil anzeigen
Re:yt-dlp config
« Antwort #1 am: 04. August 2022, 16:56:02 »

Ich verwende yt-dlp schon länger. youtube-dl hat bei mir meistens nur schnarchlangsame Downloads hinbekommen. Danke für die Config!

Interessant wäre noch die Option einzubinden dass der Download via TOR erfolgen soll. Ich nutze das als Parameter auf der command line - kann man bestimmt auch in die Config einbauen...

LG
Andreas
Gespeichert

Wissen ist das einzige Gut, das mehr wird, wenn man es teilt - wenn es Menschen gibt, die es weitergeben, und es Menschen gibt, die bereit sind, dieses Geschenk auch unter eigenem Einsatz anzunehmen.


Freiheit zu erkämpfen reicht nicht. Man muss sie auch verteidigen.
Sebastian
Sr. Member
****

Offline

Einträge: 363





Profil anzeigen
Re:yt-dlp config
« Antwort #2 am: 05. August 2022, 13:42:36 »

Code:

# Network Options:

# Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy,
# specify a proper scheme. Eg: socks5://user:pass@127.0.0.1:1080/. Pass
# in an empty string (--proxy "") for direct connection
# Uncomment to Use Tor when tor is running on your Device
#--proxy socks5://localhost:9050


Habe der Config die Standard Einstellung hinzugefügt für die Verwendung von Tor. Wenn man standardmäßig yt-dlp über tor verwenden möchte, die Option einfach auskommentieren.

Möchte man die Einstellung auf der Command Line einmalig überschreiben, einfach der
Code:
yt-dlp --proxy ""
einen leeren String mitgeben.
Gespeichert

Seiten: [1] nach oben Drucken 
Diskussions- und Newsboard der Linux Interessen Gruppe Suletuxe  |  allgemeine Kategorie  |  Welches Linux-Programm verwende ich anstelle von xyz (Windows)?  |  Thema: yt-dlp config « zurück vorwärts »
Gehe zu: 


Login mit Username, Passwort und Session Länge

 Es wird die Verwendung "Blink"-basierter Browser und mindestens 1024x768 Pixel Bildschirmauflösung
für die beste Darstellung empfohlen
 
freie Software für freie Menschen!
Powered by MySQL Powered by PHP Diskussions- und Newsboard der Linux Interessen Gruppe Suletuxe | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
- modified by Andreas Richter (DF8OE)
Valid XHTML 1.0! Valid CSS!