Lumaktaw sa nilalaman
yt-dlp

I-install ang yt-dlp sa macOS

I-install ang yt-dlp at ffmpeg sa macOS gamit ang Homebrew o pipx, at panatilihing updated ang mga ito.

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

1. Install yt-dlp

Homebrew is the path of least resistance and installs both tools in one line.

brew install yt-dlp ffmpeg

Without Homebrew, pipx keeps yt-dlp in its own environment so it cannot collide with anything else you have installed through Python.

pipx install yt-dlp

Avoid a bare pip install into the system Python: recent macOS releases push back on it, and when it does work it tends to break later for unrelated reasons.

2. Install ffmpeg

Included above if you used Homebrew. Otherwise install it separately — merging, MP3 extraction and embedding all depend on it.

brew install ffmpeg

3. Check it worked

yt-dlp --version
ffmpeg -version

If the shell cannot find yt-dlp after a pipx install, run pipx ensurepath and open a new terminal.

Cookies from Safari

--cookies-from-browser safari needs Full Disk Access for your terminal, granted in System Settings → Privacy & Security. Without it the read fails with a permissions error that does not mention the setting. Chrome and Firefox work without it.

Updating

brew upgrade yt-dlp     # Homebrew
pipx upgrade yt-dlp     # pipx

Mga madalas itanong

Hindi mahanap ng macOS ang yt-dlp matapos mag-install gamit ang pipx.
Patakbuhin ang pipx ensurepath, tapos magbukas ng bagong terminal para magamit ang na-update na PATH.
May kailangan pa bang dagdag para sa cookies sa macOS?
Para lang sa Safari: nangangailangan ang --cookies-from-browser safari ng Full Disk Access para sa iyong terminal, sa System Settings → Privacy & Security. Gumagana ang Chrome at Firefox kahit wala ito.
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.