
The steps described here must be done in this console. Run MSYS console with msys2_shell.cmd located at MSYS root directory. For instance, I have it as C:\yasm\yasm.exe. Rename/copy the downloaded executable as yasm.exe. In my case its root directory is C:\msys64.ĭownload yasm as a single exe file. This guide mostly follows the official compilation guide on FFmpeg wiki.ĭownload and install MSYS2 for windows. Note that they cover all the decoders included.
-enable-parser=h264,mpeg4video,aac,mpegaudio: Include this set of parsers. -enable-decoder=roq,h264,mpeg4,aac,mp3: Include this set of codecs (for decoding only). -enable-demuxer=roq,mov,m4v,avi: Support this set of containers. -enable-avformat -enable-avcodec -enable-swresample -enable-swscale: Build these four libraries.
The remaining parameters enable back precisely the features which are necessary for TDM: Note: If your FFmpeg package does not support -disable-autodetect yet, then you have to manually disable every external library which FFmpeg tries to use in your case.
-disable-autodetect: Disable all the external libraries. -disable-all: Disable all the features of FFmpeg. The next set of parameters is necessary for disabling feature which we don't explicitly allow: -enable-gpl: Make sure resulting binaries are GPL-licensed (just as TDM is). -enable-static -disable-shared: Make sure to get static libraries. -disable-debug: Strip debug information, otherwise the resulting libs will be huge.
-toolchain=msvc: Use Visual C++ compiler in build. This is the command for configuring FFmpeg. enable-parser=h264,mpeg4video,aac,mpegaudio \ enable-avformat -enable-avcodec -enable-swresample -enable-swscale \ In the FFmpeg root directory, create a text file named tdm_configure.sh with the following contents: In my case it is at C:\TheDarkMod\ffmpeg-3.3.7\.
Unpack the source code into some directory. It is recommended to choose the major/minor version which was cut from master at least a year ago, and take the latest build of it. As a first step on any platform, you have to download FFmpeg source code.