Common issues and how to resolve them.
Error: Error: Ytdlp binary not found
Solution:
The library tries to download yt-dlp automatically. If it fails, you can run the download manually:
Or set binaryPath in the constructor to point to your system's yt-dlp.
Error: ERROR: ffmpeg not found. Please install or provide the path using --ffmpeg-location
Solution: FFmpeg is required for merging audio/video and format conversion.
brew install ffmpeg / apt install ffmpeg).await ytdlp.downloadFFmpeg().Problem: When using mergevideo, you get a video file without audio or two separate files.
Cause: FFmpeg is required to merge video and audio streams into a single file.
Solution:
Error: HTTP Error 429: Too Many Requests
Solution: YouTube is rate-limiting your IP.
cookies or cookiesFromBrowser option).proxy option).Error: Unable to extract signature
Solution:
This usually means yt-dlp is outdated or the JS runtime is missing.
yt-dlp: await ytdlp.updateYtDlpAsync().jsRuntime: 'node'.Error: Sign in to confirm you’re not a bot
Solution: YouTube is blocking automated requests.
cookiesFromBrowser: 'chrome' (or your browser).