Log in

View Full Version : Building ffmpeg on Windows the easy way


minaust
14th March 2016, 20:21
Want to build ffmpeg yourself - your own build of ffmpeg with only your desired libraries or withe non-free libraries? And you don't have the time, patience, or expertise to "roll your own"?

I've just run across the darndest thing I've ever seen. Go here (https://github.com/jb-alvarado/media-autobuild_suite) and git this multimedia tool suite. Alternatively, git clone git://github.com/jb-alvarado/media-autobuild_suite.git

But put it in a folder by itself. It;s nothing but text files. It's a windows batch script and three bash scripts, and that's all there is to it. I couldn't believe it - it works.

First, it takes you through a brief Q&A session as the type of build (static, shared, or both, x86, x64, or both), which libraries (pick & choose, emulate zeranoe, or full). Do you want standalone binaries, and so on.

Then it downloads and installs msys2 (in the media tools suite folder so it won't clash with existing installations) then updatesit, downloads the build tools then updates them. Then it starts gitting and downloading the necessary libries, doing a configure make install routine. then you find something else to do for a few hours. It took me about four hours for the first run of full anything, x86 and x64. Subsequent runs (it saves your selections). take half that, and is just double-click the batch script and walk away.

The thing about the standalone binaries is, if you enable it, not only will you have libx264 linked into ffmpeg, you also will get x264.exe.

Here's what I got for audio:
faac.exe fdkaac.exe flac.exe lame.exe metaflac.exe oggdec.exe oggenc.exe opusdec.exe opusenc.exe opusinfo.exe sox.exe

For video::
bmxparse.exe bmxtranswrap.exe ffmpeg.exe ffplay.exe ffprobe.exe h264dump.exe kvazaar.exe mediainfo.exe mencoder.exe movdump.exe MP4Box.exe mplayer.exe mpv.exe mxf2raw.exe MXFDump.exe raw2bmx.exe rtmpdump.exe rtmpgw.exe rtmpsrv.exe rtmpsuck.exe vpxdec.exe vpxenc.exe x264-10bit.exe x264.exe x265-numa.exe x265.exe

Plus 64-bit versions, and ffmpeg dynamically linked. And everything is today current. (I don't even know what some of this stuff does) I said I set it to full everything.

I was skeptical a first, because I assumed the author just had a bunch of out-of-date sources on his server, but that's not the case. The script gets the libraries in source format from the original source. Give it a try.