ionutdanila / ffmpeg.UWP

FFmpeg libraries (x86, x64, ARM, ARM64) for UWP (Universal Windows Platform)
GNU Lesser General Public License v2.1
28 stars 11 forks source link
arm arm64 ffmpeg ffmpeg-libraries ffmpeginterop uwp x64 x86

FFmpeg for UWP (Universal Windows Platform)

You can install the NuGet Package (FFmpeg UWP 4.1.3) from here.

You can download the latest compiled libraries (FFmpeg UWP 4.1.3) from here.


Scope of this project

Disclaimer

The original compilation guide for WinRT/UWP can be found on FFmpeg website. I extended the instructions from the original Microsoft FFmpegInterop project. This project builds libraries only for Windows 10 (UWP) using Visual Studio 2017 (this way we can also build for ARM64).

License

Prerequisites

FFmpeg source code

The project uses an embedded git submodule that points to the latest tested release of FFmpeg.


Visual Studio Setup

Download and install Microsoft Visual Studio 2017 on a Windows 10 machine.


MSYS2 Setup


YASM Setup


gas-preprocessor Setup

Download gas-preprocessor.pl Perl script and place it in your MSYS2 path (eg.: C:\msys64\usr\bin\gas-preprocessor.pl)

Compilation

Invoke BuildFFmpeg.bat script without any parameters to build the libraries on all available architectures (x86, x64, ARM, ARM64). Also, you can invoke the script with parameters:

    BuildFFmpeg.bat             - Build for UWP ARM, x64, x86 and ARM64
    BuildFFmpeg.bat ARM64           - Build for UWP ARM64 only
    BuildFFmpeg.bat x86 x64         - Build for UWP x86 and x64 only