ffmpeg has the option to build in quite a few dependencies / external libraries, so it's rather complex. Last time I did it I used https://github.com/rdp/ffmpeg-windows-build-helpers but there are other build scripts on GitHub that also seem like they'd be good Answer from ElectronRotoscope on reddit.com
ffmpeg has the option to build in quite a few dependencies / external libraries, so it's rather complex. Last time I did it I used https://github.com/rdp/ffmpeg-windows-build-helpers but there are other build scripts on GitHub that also seem like they'd be good Answer from ElectronRotoscope on reddit.com
🌐
CODEX FFMPEG
gyan.dev › ffmpeg › builds
Builds - CODEX FFMPEG @ gyan.dev
Last build update: 2026-04-09 Next build update: 2026-04-16 ... version: 2026-04-09-git-d3d0b7a5ee ffmpeg-git-essentials.7z .ver .sha256 ffmpeg-git-full.7z .ver .sha256
🌐
GitHub
github.com › BtbN › FFmpeg-Builds
GitHub - BtbN/FFmpeg-Builds · GitHub
Static Windows (x86_64) and Linux (x86_64) Builds of ffmpeg master and latest release branch.
Starred by 10.7K users
Forked by 1.4K users
Languages   Shell 83.4% | Dockerfile 14.0% | CMake 2.6%
🌐
Reddit
reddit.com › r/ffmpeg › can anyone tell me how you compile ffmpeg from a github version, preferably into a static build?
r/ffmpeg on Reddit: Can anyone tell me how you compile ffmpeg from a GitHub version, preferably into a static build?
September 26, 2022 - But if you click the download snapshot button on here https://ffmpeg.org/download.html it downloads the current git version of ffmpeg ... Yeah I have found some, just non I can get to work. Do you know of one that works? ... MacOS compilation guide. For better understanding, you can also read Ubuntu and Generic ones. Though, unless you need the bleeding edge version, libfdk-aac or ffplay, you can just download the evermeet build.
🌐
FFmpeg
ffmpeg.org › download.html
Download FFmpeg
Static builds for macOS 64-bit · Download Snapshot Download PGP Signing Key · You can retrieve the source code through Git by using the command: git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg · Snapshot Browse Cannot access Git or wish to speed up the cloning and reduce the bandwidth usage?
🌐
FFmpeg
ffmpeg.org › platform.html
Platform Specific Information
The recommendation for x264 is to build it from source, as it evolves too quickly for Cygwin Ports to be up to date. With Cygwin you can create Windows binaries that do not need the cygwin1.dll. Just install your Cygwin as explained before, plus these additional "Devel" packages: ... ./configure --target-os=mingw32 --enable-shared --disable-static --extra-cflags=-mno-cygwin --extra-libs=-mno-cygwin · FFmpeg does not intend to support the Windows ARM64EC build configuration; patches for changing the individual libraries for the purposes of ARM64EC will not be accepted.
🌐
GitHub
github.com › btbn › ffmpeg-builds › releases
Releases · BtbN/FFmpeg-Builds
Contribute to BtbN/FFmpeg-Builds development by creating an account on GitHub.
Author   BtbN
Find elsewhere
Top answer
1 of 4
13

I used to compile ffmpeg on a linux machine with MinGW, but now I'm able to compile on a windows machine, in my case Windows 10.

NOTE: For me it only worked for ffmpeg versions >= 3.0 and I tested using VS 2013 and 2015

Few steps but very important:

Download and install (except YASM):

  • Visual Studio 2013 or 2015
  • YASM
  • MSYS2

Steps:

  1. Install MSYS2 to a fixed folder (eg.: C:\Dev\msys64)
  2. Run msys2.exe
  3. Execute command "pacman -S make gcc diffutils" and press "Y" to install
  4. Close msys2
  5. Rename C:\Dev\msys64\usr\bin\link.exe to some other name (eg.: msys2_link.exe)
  6. Copy and rename "yasm--win64.exe" to "C:\Dev\yasm.exe"
  7. Add "C:\Dev" to environment variables PATH
  8. Run VS2013/2015 x86 (for x86) or x64 for (x64) Command Prompt
  9. Execute "C:\Dev\msys64\msys2_shell.cmd -msys -use-full-path"
  10. On the msys2 window execute "which cl" and you should see the path of your VS
  11. Execute "which link" and you should also see the path of your VS
  12. Go to the ffmpeg source path (eg.: "cd /c/ffmpeg3.3")
  13. Run ./configure and make

I use this configuration:

./configure \
    --toolchain=msvc \
    --arch=x86_64 \
    --enable-yasm \
    --enable-asm\
    --enable-shared \
    --enable-w32threads \
    --disable-programs \
    --disable-ffserver \
    --disable-doc \
    --disable-static \
    --prefix=/c/ffmpeg3.3/DLLS

NOTE2: If you used the last line --prefix=/c/ffmpeg3.3/DLLS, as a final step, run make install and the binaries will be copied to that path

Hope it helped.

Best of luck

2 of 4
4

Assuming with x64 you mean the standard 64-bit version, yes it is possible. See the fate page for all tested builds of FFmpeg, there's various 32- and 64-bit versions of Visual Studio in that list, including VS2013 and VS2015 64-bit. Search for "Microsoft (R) C/C++ Optimizing Compiler Version 18.00.40629 for x64" (or "19.00.24215.1") or "VS2013"/"VS2015", all the way at the bottom. For exact build options, see here for 2013 or here for 2015. The important part is to open a Windows shell with the 64-bit commandline build tools in your $PATH and open a msys shell from there, and then run configure using the --arch=x86_64 --target-os=win64 --toolchain=msvc options. For more detail, see the MSVC compilation wiki page.

🌐
GitHub
github.com › markus-perl › ffmpeg-build-script
GitHub - markus-perl/ffmpeg-build-script: The FFmpeg build script provides an easy way to build a static FFmpeg on OSX and Linux with non-free codecs included. · GitHub
The FFmpeg build script provides an easy way to build a static FFmpeg on OSX and Linux with non-free codecs included. - markus-perl/ffmpeg-build-script
Starred by 1.2K users
Forked by 365 users
Languages   Shell 90.2% | Dockerfile 9.8%
🌐
Ampere
amperecomputing.com › tuning-guides › FFmpeg-Tuning-Guide
FFmpeg Build and Tuning Guide
Learn how to build the latest version of FFmpeg, x264, x265, libvpx, and libaom to take advantage of the latest optimizations for Ampere® Cloud Native Processors.
🌐
Johnvansickle
johnvansickle.com › ffmpeg
John Van Sickle - FFmpeg Static Builds
Welcome! Here you'll find the latest versions of FFmpeg for Linux kernels 3.2.0 and up. For installation instructions please read the FAQ. Note: it's highly recommended to use git master builds, because bug fixes and other improvements are added daily.
🌐
Mux
mux.com › articles › how-to-get-started-in-ffmpeg
How to get started in ffmpeg | Mux
FFmpeg is an open-source multimedia framework for recording, converting, streaming, and playing multimedia files. It supports a vast range of formats and codecs. It’s used in many applications all across the Internet today.
🌐
Dektec
dektec.com › products › SDK › ffmpeg › windows
FFmpeg Build Guide (Windows)
Create a build directory and navigate to it: mkdir /c/ffmpeg_build cd /c/ffmpeg_build · Configure and build FFmpeg: /c/ffmpeg_sources/configure --target-os=win64 --arch=x86_64 \ --toolchain=msvc --enable-dektec \ --enable-nonfree --prefix=/c/ffmpeg_bin make make install ·
🌐
FFmpeg Forgejo
code.ffmpeg.org › BtbN › FFmpeg-Builds
BtbN/FFmpeg-Builds - FFmpeg Forgejo
Static Windows (x86_64) and Linux (x86_64) Builds of ffmpeg master and latest release branch.
🌐
OTTVerse
ottverse.com › home › ffmpeg builds
FFmpeg Builds - OTTVerse
September 20, 2023 - FFmpeg builds - static and shared builds for Windows 64-bit and this replaces the builds provided by Zeranoe.
🌐
SourceForge
sourceforge.net › projects › ffmpeg-windows-builds
FFmpeg Windows Builds download | SourceForge.net
April 27, 2021 - Download FFmpeg Windows Builds for free. FFmpeg Nightly and Release binaries for Windows. FFmpeg is a "complete, cross-platform solution to record, convert and stream audio and video". We provide easy to use binaries for Windows.
🌐
GitHub
github.com › tato11 › ffmpeg-build
GitHub - tato11/ffmpeg-build: Ffmpeg Build script wizard capable to compile and build FFmpeg and codecs from its repositories. · GitHub
Ffmpeg Build script wizard capable to compile and build FFmpeg and codecs from its repositories. - tato11/ffmpeg-build
Author   tato11
🌐
GitHub
github.com › rdp › ffmpeg-windows-build-helpers
GitHub - rdp/ffmpeg-windows-build-helpers: Helper script for cross compiling some media tools for windows, like customizable ffmpeg.exe (with or without non-free components, etc), and some other bonuses like mplayer, mp4box, mxf, etc. · GitHub
This helper script lets you cross compile a windows-based 32 or 64-bit version of ffmpeg.exe/mplayer/mp4box.exe, etc, including their dependencies and libraries that they use. Note that I do offer custom builds, price negotiable.
Starred by 1.2K users
Forked by 424 users
Languages   Shell 99.1% | Dockerfile 0.9%
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › tutorials
FFmpeg 7.x compilation - Linux Mint Forums
March 5, 2023 - #7. libfdk-aac cd ~/ffmpeg_sources && git -C fdk-aac pull 2> /dev/null || git clone --depth 1 https://github.com/mstorsjo/fdk-aac && cd fdk-aac && autoreconf -fiv && ./configure --prefix="$HOME/ffmpeg_build" --disable-shared && make -j$(nproc) && make -j$(nproc) install