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

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

पैकेज मैनेजर, pipx या आधिकारिक binary से Linux पर yt-dlp और ffmpeg इंस्टॉल करें।

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

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.

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

क्या मुझे अपने डिस्ट्रीब्यूशन का yt-dlp पैकेज इस्तेमाल करना चाहिए?
चलता है, पर डिस्ट्रीब्यूशन के पैकेज अक्सर महीनों पीछे रहते हैं, और पुराना yt-dlp मतलब ऐसे extractor जो काम करना बंद कर चुके हैं। pipx या आधिकारिक binary आपको नया बनाए रखते हैं।
मेरे repository में ffmpeg नहीं है।
Fedora पर वह RPM Fusion में है, जिसे पहले चालू करना पड़ता है। बाकी ज़्यादातर डिस्ट्रीब्यूशन उसे मुख्य repository में देते हैं।
yt-dlp कैसे अपडेट करूँ?
अकेली binary खुद को yt-dlp -U से अपडेट कर लेती है। पैकेज मैनेजर से इंस्टॉल किया हो तो उसी से अपडेट करें; खुद-अपडेट उस फ़ाइल को छूने से मना कर देगा जो उसकी नहीं है। किसी भी flag से ज़्यादा समस्याएँ अपडेट करने से हल होती हैं।