सामग्री पर जाएँ
yt-dlp

macOS पर yt-dlp इंस्टॉल करें

Homebrew या pipx से macOS पर yt-dlp और ffmpeg इंस्टॉल करें और उन्हें अपडेट रखें।

यह लेख अभी अनुवादित नहीं है, इसलिए अंग्रेज़ी में दिख रहा है। इंटरफ़ेस आपकी भाषा में है।

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

अक्सर पूछे जाने वाले प्रश्न

pipx से इंस्टॉल करने के बाद macOS को yt-dlp नहीं मिल रहा।
pipx ensurepath चलाएँ, फिर नया टर्मिनल खोलें ताकि अपडेट हुआ PATH पढ़ा जाए।
macOS पर cookies के लिए कुछ और चाहिए?
केवल Safari के लिए: --cookies-from-browser safari को आपके टर्मिनल के लिए Full Disk Access चाहिए, System Settings → Privacy & Security में। Chrome और Firefox उसके बिना चलते हैं।
yt-dlp कैसे अपडेट करूँ?
अकेली binary खुद को yt-dlp -U से अपडेट कर लेती है। पैकेज मैनेजर से इंस्टॉल किया हो तो उसी से अपडेट करें; खुद-अपडेट उस फ़ाइल को छूने से मना कर देगा जो उसकी नहीं है। किसी भी flag से ज़्यादा समस्याएँ अपडेट करने से हल होती हैं।