multimedia framework
FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line โ€ฆ Wikipedia
Factsheet
Original authors Fabrice Bellard
Bobby Bingham (libavfilter)
Developer FFmpeg team
Initial release December 20, 2000; 25 years ago (2000-12-20)
Factsheet
Original authors Fabrice Bellard
Bobby Bingham (libavfilter)
Developer FFmpeg team
Initial release December 20, 2000; 25 years ago (2000-12-20)
๐ŸŒ
FFmpeg
ffmpeg.org โ€บ download.html
Download FFmpeg
FFmpeg only provides source code. Below are some links that provide it already compiled and ready to go. Debian โ€“ Official packages for Stable-Backports, Testing, Unstable Debian โ€“ deb-multimedia packages for Oldstable, Stable, Testing, Unstable Ubuntu โ€“ Official packages Fedora and Red Hat Enterprise Linux packages ยท 64-bit static and shared builds ยท Windows builds from gyan.dev Windows builds by BtbN ยท
๐ŸŒ
CODEX FFMPEG
gyan.dev โ€บ ffmpeg โ€บ builds
Builds - CODEX FFMPEG @ gyan.dev
This page hosts packages containing binaries of ffmpeg, ffprobe and ffplay. Builds require Windows 10 or later but may work on Windows 7 if UCRT is installed.
Discussions

Is it possible to build ffmpeg x64 on Windows? - Stack Overflow
The real answer is probably "no", but still, just to double check. Has anyone ever been able to build ffmpeg x64 on Windows (VS2013 or VS2015)? I know it is not possible with publicly available sou... More on stackoverflow.com
๐ŸŒ stackoverflow.com
FFmpeg Windows Builds

Is there any plan to provide shared libraries, just like zeronae before

More on reddit.com
๐ŸŒ r/codexffmpeg
98
16
September 16, 2020
FFmpeg Windows static builds
These are very complete builds. Much appreciated, thanks. More on reddit.com
๐ŸŒ r/ffmpeg
8
38
September 16, 2020
FFmpeg Windows 32-bit shared builds
Found it! https://github.com/advancedfx/ffmpeg.zeranoe.com-builds-mirror More on reddit.com
๐ŸŒ r/ffmpeg
4
3
February 11, 2021
๐ŸŒ
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%
๐ŸŒ
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.
๐ŸŒ
FFmpeg
ffmpeg.org โ€บ platform.html
Platform Specific Information
If you want to build FFmpeg with additional libraries, download Cygwin "Devel" packages for Ogg and Vorbis from any Cygwin packages repository: ... 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.
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.

Find elsewhere
๐ŸŒ
Reddit
reddit.com โ€บ r/codexffmpeg โ€บ ffmpeg windows builds
r/codexffmpeg on Reddit: FFmpeg Windows Builds
September 16, 2020 - I have been trying to compile debugging libraries for windows enabling libmfx but no luck yet. ... Your website says, "All builds are 64-bit and licensed as GPL v3." Can you explain which GPLv3 components are included in your builds? ... VMAF, OpenCORE and VisualOn libraries require GPLv3. ... ffmpeg -i "input.mkv" -map_metadata -1 -map 0:v -map 0:a:1 -c:v libaom-av1 -strict experimental -vf "scale=1024:576" -cpu-used 5 -crf 48 -b:v 700k -maxrate 800k -bufsize 800k -g 48 -pass 1 -sn -an -row-mt 1 -tile-columns 1 -f null /dev/null && ^ ffmpeg -i "input.mkv" -map_metadata -1 -map 0:v -map 0:a:1 -c:v libaom-av1 -strict experimental -vf "scale=1024:576" -cpu-used 5 -crf 48 -b:v 700k -maxrate 800k -bufsize 800k -g 48 -pass 2 -sn -c:a libopus -b:a 64k -row-mt 1 -tile-columns 1 "output_av1.webm"
๐ŸŒ
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%
๐ŸŒ
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.
๐ŸŒ
Dektec
dektec.com โ€บ products โ€บ SDK โ€บ ffmpeg โ€บ windows
FFmpeg Build Guide (Windows)
ln -s /c/Program\ Files\ \(x86\)/DekTec/SDKs/WinSDK $HOME/WinSDK export PKG_CONFIG_PATH=$HOME/WinSDK/DTAPI/Lib/VC17/pkgconfig:\ /c/vcpkg/installed/x64-windows-static/lib/pkgconfig ... /c/ffmpeg_sources/configure --target-os=win64 --arch=x86_64 \ --toolchain=msvc --enable-dektec \ --enable-nonfree --prefix=/c/ffmpeg_bin make make install
๐ŸŒ
Transloadit
transloadit.com โ€บ devtips โ€บ how-to-install-ffmpeg-on-windows-a-complete-guide
How to install FFmpeg on Windows: a complete guide | Transloadit
This guide explains how to install FFmpeg on Windows, including download options, system requirements, and troubleshooting tips. Before installing FFmpeg, ensure your system meets these requirements: For gyan.dev essentials build: Windows 7 or later.
๐ŸŒ
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
๐ŸŒ
Reddit
reddit.com โ€บ r/ffmpeg โ€บ ffmpeg windows static builds
r/ffmpeg on Reddit: FFmpeg Windows static builds
September 16, 2020 - I have also uploaded a couple of win64 builds to my github repository for those that wish to try either of them. https://github.com/88keyz/FFmpeg/releases/download/n4.3.1/ffmpeg-n4.3.1-win64-static.7z
๐ŸŒ
GitHub
github.com โ€บ AnimMouse โ€บ ffmpeg-autobuild
GitHub - AnimMouse/ffmpeg-autobuild: Automated nonfree builds of FFmpeg for Windows using GitHub Actions ยท GitHub
Automated nonfree builds of FFmpeg for Windows using GitHub Actions - AnimMouse/ffmpeg-autobuild
Starred by 355 users
Forked by 26 users
๐ŸŒ
Super User
superuser.com โ€บ questions โ€บ 1662924 โ€บ compiling-ffmpeg-for-windows
Compiling FFMpeg for windows - Super User
July 16, 2021 - I have a version from MCEBuddy that includes the libfdk_aac library I'm interested in and it's a single file. How can I compile the program and have a single ffmpeg file as a result? ... I went through a similar process and came upon vcpkg. This is a package manager that essentially automates the download and build process.
๐ŸŒ
PhoenixNAP
phoenixnap.com โ€บ home โ€บ kb โ€บ sysadmin โ€บ installing ffmpeg on windows
Installing FFmpeg on Windows {Step-by-Step}
September 3, 2024 - Visit the FFmpeg download page. The More downloading options section has FFmpeg packages and executable files for Linux, Windows, and Mac. To get the Windows version: 1. Hover over the Windows logo and click the Windows builds from gyan.dev link.
๐ŸŒ
Roxlu
roxlu.com โ€บ 2019 โ€บ 062 โ€บ compiling-ffmpeg-with-x264-on-windows-10-using-msvc
Compiling FFmpeg with X264 on Windows 10 using MSVC | ROXLU
cd tmp/build mkdir ffmpeg cd ffmpeg export CC=cl ./../../sources/ffmpeg/configure \ --prefix=./../../installed \ --toolchain=msvc \ --arch=x86_64 \ --enable-yasm \ --enable-asm \ --enable-shared \ --disable-static \ --disable-programs \ --enable-avresample \ --enable-libx264 \ --enable-gpl \ --extra-ldflags="-LIBPATH:./../../installed/lib/" \ --extra-cflags="-I./../../installed/include/" make V=1 -j 8 make install