Lumaktaw sa nilalaman
yt-dlp

I-install ang yt-dlp sa Linux

I-install ang yt-dlp at ffmpeg sa Linux mula sa iyong package manager, pipx o sa opisyal na binary.

Hindi pa naisasalin ang artikulong ito, kaya ipinapakita ito sa Ingles. Nananatili sa iyong wika ang interface.

1. Install yt-dlp

Distribution packages are convenient but often lag by months, and yt-dlp is a tool where being three months behind means extractors that no longer work. pipx or the official binary keep you current.

pipx install yt-dlp

Or the standalone binary, which bundles everything and self-updates:

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

2. Install ffmpeg

sudo apt install ffmpeg      # Debian, Ubuntu
sudo dnf install ffmpeg      # Fedora
sudo pacman -S ffmpeg        # Arch

On Fedora, ffmpeg lives in RPM Fusion; enable that repository first if the package is not found.

3. Check it worked

yt-dlp --version
ffmpeg -version

Cookies on a headless machine

--cookies-from-browser needs a browser profile on the same machine, so on a server it is not an option. Export a Netscape-format cookies.txt on your desktop, copy it across and point at it with --cookies. Treat that file as a credential — it is a live session.

Updating

yt-dlp -U               # standalone binary
pipx upgrade yt-dlp     # pipx

Installed from your distribution's repository, update it with the package manager; -U will refuse to touch a file it does not own.

Mga madalas itanong

Dapat ko bang gamitin ang yt-dlp package ng aking distribusyon?
Gumagana ito, ngunit madalas na buwan ang pagkahuli ng mga package ng distribusyon, at ang lumang yt-dlp ay nangangahulugang mga extractor na tumigil na sa paggana. Pinapanatili kang updated ng pipx o ng opisyal na binary.
Wala ang ffmpeg sa aking repositoryo.
Sa Fedora, nasa RPM Fusion ito na kailangan munang i-enable. Kasama ito sa pangunahing repositoryo ng karamihan sa ibang distribusyon.
Paano ko ia-update ang yt-dlp?
Ina-update ng nakatayong binary ang sarili nito gamit ang yt-dlp -U. Kung naka-install sa pamamagitan ng package manager, doon mo rin ito i-update; tumatanggi ang self-update na baguhin ang file na hindi nito pag-aari. Mas maraming problema ang nalulutas ng pag-update kaysa sa kahit anong iisang flag.