Skip to content

cmake: add logic to download ffmpeg for win32 - #190

Merged
dabrain34 merged 2 commits into
KhronosGroup:mainfrom
crmurillo:ffmpeg_win32_download
Sep 11, 2026
Merged

cmake: add logic to download ffmpeg for win32#190
dabrain34 merged 2 commits into
KhronosGroup:mainfrom
crmurillo:ffmpeg_win32_download

Conversation

@crmurillo

@crmurillo crmurillo commented Apr 3, 2026

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 Radeon RX 6600 (1002:73ff) / AMD proprietary driver 26.8.1 (AMD proprietary shader compiler) / Windows 10

Total Tests: 88
Passed: 37
Crashed: 7
Failed: 2
Not Supported: 42
Success Rate: 80.4%

Intel(R) UHD Graphics 770 (ADL-S GT1) (8086:4680) / Intel open-source Mesa driver Mesa 26.3.0-devel (git-fe1491b758) / Ubuntu 24.04.4 LTS

Total Tests: 85
Passed: 57
Crashed: 0
Failed: 0
Not Supported: 25
Skipped: 3 (in skip list)
Success Rate: 100.0%

AMD Radeon RX 7600 (RADV NAVI33) (1002:7480) / radv Mesa 26.3.0-devel (git-fe1491b758) / Ubuntu 24.04.4 LTS

Total Tests: 85
Passed: 69
Crashed: 0
Failed: 0
Not Supported: 12
Skipped: 4 (in skip list)
Success Rate: 100.0%

Additional Details (optional)

For AMD proprietary driver for Windows, 7 tests crash and 2 fail, same behavior as with the main branch.

@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 3 times, most recently from e93e08b to 1e1c21f Compare April 21, 2026 14:44
@crmurillo
crmurillo force-pushed the ffmpeg_win32_download branch from 1e1c21f to fa9e96f Compare September 9, 2026 20:17
Comment thread CMakeLists.txt Outdated
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.
@crmurillo
crmurillo force-pushed the ffmpeg_win32_download branch from fa9e96f to add2bd8 Compare September 10, 2026 11:28
Comment thread BUILD.md Outdated
Comment thread BUILD.md Outdated
Comment thread cmake/FindFFmpeg.cmake
-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.
@crmurillo
crmurillo force-pushed the ffmpeg_win32_download branch from add2bd8 to ebabe88 Compare September 11, 2026 09:24
@dabrain34
dabrain34 merged commit 3266d91 into KhronosGroup:main Sep 11, 2026
20 checks passed
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