Files
VidBee/resources
Nexmoe 3bc9d76f6e Add JS runtime support for yt-dlp #36 (#46)
* Add yt-dlp JS runtime support

* Update build scripts and logging

* fix: update README to include DeepWiki badge and correct contributor badge logo
2025-12-21 10:38:04 +08:00
..
2025-11-15 12:29:31 +08:00
2025-10-25 11:06:40 +08:00

Resources Directory

This directory contains bundled resources for the application.

yt-dlp Binaries

To bundle yt-dlp with the application, place the appropriate binaries in this directory:

Required Files

  1. Windows: yt-dlp.exe
  2. macOS: yt-dlp_macos
  3. Linux: yt-dlp_linux

How to Download

You can download the latest yt-dlp binaries from the official GitHub releases:

Option 1: Manual Download

Option 2: Using curl/wget (Linux/macOS)

# For Windows binary
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe -o resources/yt-dlp.exe

# For macOS binary
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos -o resources/yt-dlp_macos
chmod +x resources/yt-dlp_macos

# For Linux binary
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o resources/yt-dlp_linux
chmod +x resources/yt-dlp_linux

Option 3: Using PowerShell (Windows)

# Download all three binaries
Invoke-WebRequest -Uri "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe" -OutFile "resources/yt-dlp.exe"
Invoke-WebRequest -Uri "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_macos" -OutFile "resources/yt-dlp_macos"
Invoke-WebRequest -Uri "https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp" -OutFile "resources/yt-dlp_linux"

ffmpeg Binaries

ffmpeg is required for merging audio/video streams and audio extraction. Bundle the matching binary for each target platform:

Required Files

  1. Windows: ffmpeg.exe
  2. macOS: ffmpeg_macos
  3. Linux: ffmpeg_linux

How to Download

Note

  • Bundled binaries are required for Windows builds. On macOS/Linux the app can also use ffmpeg/yt-dlp from the system PATH.
  • You can override the lookup paths via the YTDLP_PATH or FFMPEG_PATH environment variables if you prefer custom locations.
  • File sizes: ~10-15 MB per yt-dlp binary, ~40-80 MB per ffmpeg binary

JS Runtime (Deno)

yt-dlp uses an external JS runtime (Deno by default) for some extractors. Bundle a Deno binary so the app can run without system dependencies.

Required Files

  1. Windows: deno.exe
  2. macOS: deno
  3. Linux: deno

How to Download

Note

  • You can override the runtime path via YTDLP_JS_RUNTIME_PATH if needed.