Files
VidBee/resources
Nexmoe 40113a2b53 feat(ffmpeg): add ffmpeg manager, bundle/download ffmpeg in CI and (#11)
* feat(ffmpeg): add ffmpeg manager, bundle/download ffmpeg in CI and

* fix(download-engine): let yt-dlp merge format to avoid codec conflicts and use actual format for filenames

* chore(ci): replace monolithic job with platform-specific reusable jobs

* chore(ci): run build matrix for windows, macos, linux in one to

* feat(ci): remove platform matrix and platform gating to simplify build

* chore(ci): pin github-translate-action to specific commit to ensure
2025-11-02 17:42:33 +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