Skip to content

Instantly share code, notes, and snippets.

View DevStefIt's full-sized avatar
👨‍💻

Stef DevStefIt

👨‍💻
View GitHub Profile
@DevStefIt
DevStefIt / ffmpeg_compile_debug.sh
Last active February 8, 2025 17:08
Statically compiling FFmpeg on Windows with MSVC
# Make sure you opened the x64 Native Tools Command Prompt for VS 2022 and then opened MSYS2 shell command
echo Compiling ffmpeg...
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ../build
mkdir ffmpeg
cd ffmpeg
CC=cl \
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:../../installed/x264/lib/pkgconfig:../../installed/x265/lib/pkgconfig:../../installed/SDL/lib/pkgconfig" \
../../sources/ffmpeg/configure \
--prefix=../../installed/ffmpeg \