Skip to content

cmake: add logic to download ffmpeg for win32#190

Open
crmurillo wants to merge 2 commits intoKhronosGroup:mainfrom
crmurillo:ffmpeg_win32_download
Open

cmake: add logic to download ffmpeg for win32#190
crmurillo wants to merge 2 commits intoKhronosGroup:mainfrom
crmurillo:ffmpeg_win32_download

Conversation

@crmurillo
Copy link
Copy Markdown
Contributor

Description

Currently, using FFmpeg on Windows requires manual installation.

This patch adds a cmake module that downloads FFmpeg shared libraries for Windows when they are not already present. Pre-built LGPL binaries are fetched from BtbN/FFmpeg-Builds for win64 and winarm64 platforms, and verified against published SHA256 checksums.

The automatic download can be disabled with -DDOWNLOAD_FFMPEG=OFF.

Type of change

feature

Tests

AMD proprietary driver 26.3.1 (AMD proprietary shader compiler) / Windows 10

Total Tests: 73
Passed: 37
Crashed: 2
Failed: 2
Not Supported: 28
Skipped: 4 (in skip list)
Success Rate: 90.2%

Intel(R) UHD Graphics 770 (ADL-S GT1) / Intel open-source Mesa driver Mesa 26.1.0-devel (git-055aec542e) / Ubuntu 24.04.4 LTS

Total Tests: 73
Passed: 54
Crashed: 0
Failed: 0
Not Supported: 14
Skipped: 5 (in skip list)
Success Rate: 100.0%

AMD Radeon RX 7600 (RADV NAVI33) / radv Mesa 26.1.0-devel (git-055aec542e) / Ubuntu 24.04.4 LTS

Total Tests: 73
Passed: 63
Crashed: 0
Failed: 0
Not Supported: 6
Skipped: 4 (in skip list)
Success Rate: 100.0%

Additional Details (optional)

For AMD proprietary driver for Windows, there are 2 tests that fail and 2 tests that crash.
Those tests should be skipped, this change is currently part of another pull request.
See commit 5b6c01.

@crmurillo crmurillo force-pushed the ffmpeg_win32_download branch 3 times, most recently from c78d419 to 2ae4448 Compare April 6, 2026 13:16
@crmurillo crmurillo marked this pull request as ready for review April 7, 2026 08:38
Comment thread .github/workflows/main.yml Outdated
Comment thread cmake/DownloadFFmpeg.cmake Outdated
Comment thread cmake/DownloadFFmpeg.cmake Outdated
Comment thread cmake/DownloadFFmpeg.cmake Outdated
Comment thread cmake/DownloadFFmpeg.cmake Outdated
Comment thread BUILD.md Outdated
Comment thread BUILD.md Outdated
@crmurillo crmurillo force-pushed the ffmpeg_win32_download branch 2 times, most recently from 07c051a to e93e08b Compare April 21, 2026 14:43
Download FFmpeg shared libraries for Windows if they are not already
present. Pre-built LGPL binaries are fetched
from BtbN/FFmpeg-Builds for win64 and winarm64 platfoms. Downloads are
verified against published SHA256 checksums.

The automatic download can be disabled with -DDOWNLOAD_FFMPEG=OFF.
-Removed step to download FFmpeg for Windows since this is now handled
by cmake.
-Downloading FFmpeg is enabled by default for 64-bit builds except for
the new job windows-x64-without-ffmpeg.
-Disabled FFmpeg download for 32-bit Windows builds: pre-built 32-bit
FFmpeg libraries are not available from BtbN/FFmpeg-Builds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants