# Make sure you opened the x64 Native Tools Command Prompt for VS 2022 and then opened MSYS2 shell command git clone https://code.videolan.org/videolan/x264.git cd x264 cd ../../build mkdir x264 cd x264 CC=cl ../../sources/x264/configure --prefix=../../installed/x264 --enable-static --disable-cli --enable-debug --extra-cflags="-MTd -Od -Zi -RTC1 -W4" --extra-ldflags="-DEBUG" make make install # Test script cd ../../installed/x264/bin ./x264 --crf 18 --preset slow --output output_file.mkv input_file