Ir para o conteúdo
yt-dlp

Instalar o yt-dlp no macOS

Instale o yt-dlp e o ffmpeg no macOS com Homebrew ou pipx, e mantenha-os atualizados.

Este artigo ainda não foi traduzido, então aparece em inglês. A interface está no seu idioma.

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

Perguntas frequentes

O macOS não encontra o yt-dlp depois de instalar com pipx.
Rode pipx ensurepath e abra um terminal novo para o PATH atualizado ser carregado.
Preciso de algo extra para cookies no macOS?
Só para o Safari: --cookies-from-browser safari exige acesso total ao disco para o seu terminal, em Ajustes do Sistema → Privacidade e Segurança. Chrome e Firefox funcionam sem isso.
Como atualizo o yt-dlp?
Um binário independente se atualiza com yt-dlp -U. Se você instalou por um gerenciador de pacotes, atualize por ele; a autoatualização recusa modificar um arquivo que não é dela. Atualizar resolve mais problemas que qualquer flag.