Skip to content

build ffmpeg for windows

ck edited this page Sep 4, 2021 · 2 revisions

how to build ffmpeg ?

  1. winxp/win7 msys2 environment
    download and install msys2

  2. install required packages

pacman -S git
pacman -S make
pacman -S mingw-w64-i686-gcc
pacman -S mingw-w64-i686-yasm
pacman -S mingw-w64-i686-nasm
pacman -S mingw-w64-i686-pkg-config
pacman -S mingw-w64-i686-diffutils
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-yasm
pacman -S mingw-w64-x86_64-nasm
pacman -S mingw-w64-x86_64-pkg-config
pacman -S mingw-w64-x86_64-diffutils
  1. execute build_ffmpeg_for_windows.sh script
    (you can find it in fanplayer project source code.)

./build_ffmpeg_for_windows.sh

can't find xxxxx.dll ?

they are under the msys2 directory. find them and release them with ffmpeg dlls and your apps.

Clone this wiki locally