Run the make-solutions.bat - during the processing, the CMake GUI will open with properties highlighted red.Update - libx265 should now have a corresponding make-solutions.bat file for Visual Studio 2017. I’m using 2017, so my command is: cmake -G "Visual Studio 15 Win64". Change the generator command to match the version of VS you want to use. Using a text editor, open make-solutions.bat. It is likely there will not be one matching the newest version of Visual Studio, so use the latest one available (In my case it was vc12-x86_64) Find the directory that matches the VC compiler you want to use. Close the msys2 shell for now - we’ll relaunch later from a Visual Studio command promptĬreate the directory c:\third_party and cd from a command prompt to it.
Ffmpeg windows builder install#
When the msys2 shell opens - use pacman to install the following: pacman -S gcc (thanks to Scott Davies for pointing this out)
![ffmpeg windows builder ffmpeg windows builder](https://opentoonz.readthedocs.io/ja/latest/_images/get_the_packages.png)
This is done so msys2 can use your existing PATH environment variable. With a text editor, open the file C:\tools\msys64\msys2_shell.cmd and un-comment the line rem set MSYS2_PATH_TYPE=inherit
![ffmpeg windows builder ffmpeg windows builder](https://i.imgur.com/dDVjR4y.png)
Ffmpeg windows builder how to#
Some of the steps will also detail some of the errors I ran into along the way - in case someone else runs into trouble, hopefully then it will show how to overcome any future hurdles.
![ffmpeg windows builder ffmpeg windows builder](https://user-images.githubusercontent.com/1076514/131265257-016250be-9405-42c5-8d29-e3394ca0b493.png)
Here are the exact steps I did to build both ffmpeg and libx265 with Visual Studio 2017 on Windows. I discovered that by default - most ffmpeg builds include only 8-bit support for HEVC encoding with libx265.Ĭertainly, you can get builds that already enable 10 or even 12-bit support - but I’m usually a glutton for punishment so I thought I would see how hard it was to just build it manually. Incompatible pixel format 'yuv420p10le' for codec 'libx265', auto-selecting format 'yuv420p' So I was trying to create some 10-bit test HEVC content with ffmpeg and ran into the following error: ffmpeg -i "input.mkv" -c:v libx265 -preset slow -crf 18 -pix_fmt yuv420p10le -c:a copy -y output_10bit.mkv