diff --git a/contrib/src/ffmpeg/fetch_and_patch.bat b/contrib/src/ffmpeg/fetch_and_patch.bat
index 4988f2a14910a857ea4ef2babc81d8b36f6b63dc..8002be719bab8a5dd4be34fb5191e330c13da103 100644
--- a/contrib/src/ffmpeg/fetch_and_patch.bat
+++ b/contrib/src/ffmpeg/fetch_and_patch.bat
@@ -1,15 +1,16 @@
-git clone --recursive 
-
-set BUILD=%SRC%..\build
-
-set FFMPEG_URL=git://github.com/Microsoft/FFmpegInterop.git
-
-mkdir %BUILD%
-cd %BUILD%
-
-git clone --recursive %FFMPEG_URL%
-
-cd FFmpegInterop\ffmpeg
-git apply --reject --whitespace=fix %SRC%\ffmpeg\0004-avformat-fix-find_stream_info-not-considering-extradata.patch
-
+set BUILD=%SRC%..\build
+
+set FFMPEG_URL=git://github.com/Microsoft/FFmpegInterop.git
+
+mkdir %BUILD%
+cd %BUILD%
+
+git clone --recursive %FFMPEG_URL%
+
+cd FFmpegInterop
+git apply --reject --whitespace=fix %SRC%\ffmpeg\ffmpeg-uwp.patch
+
+cd ffmpeg
+git apply --reject --whitespace=fix %SRC%\ffmpeg\0004-avformat-fix-find_stream_info-not-considering-extradata.patch
+
 cd %SRC%
\ No newline at end of file
diff --git a/contrib/src/ffmpeg/ffmpeg-uwp.patch b/contrib/src/ffmpeg/ffmpeg-uwp.patch
new file mode 100644
index 0000000000000000000000000000000000000000..3fa4d39657dc91431522d5ae5d0d65aa5f544dbf
--- /dev/null
+++ b/contrib/src/ffmpeg/ffmpeg-uwp.patch
@@ -0,0 +1,77 @@
+--- a/FFmpegConfig.sh
++++ b/FFmpegConfig.sh
+@@ -22,7 +22,7 @@ if [ "$1" == "Win10" ]; then
+         --extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00" \
+         --extra-ldflags="-APPCONTAINER WindowsApp.lib" \
+         --prefix=../../../Build/Windows10/x86
+-        make install
++        make -j install
+         popd
+ 
+     elif [ "$2" == "x64" ]; then
+@@ -43,7 +43,7 @@ if [ "$1" == "Win10" ]; then
+         --extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00" \
+         --extra-ldflags="-APPCONTAINER WindowsApp.lib" \
+         --prefix=../../../Build/Windows10/x64
+-        make install
++        make -j install
+         popd
+ 
+     elif [ "$2" == "ARM" ]; then
+@@ -67,7 +67,7 @@ if [ "$1" == "Win10" ]; then
+         --extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_APP -D_WIN32_WINNT=0x0A00 -D__ARM_PCS_VFP" \
+         --extra-ldflags="-APPCONTAINER WindowsApp.lib" \
+         --prefix=../../../Build/Windows10/ARM
+-        make install
++        make -j install
+         popd
+ 
+     fi
+@@ -93,7 +93,7 @@ elif [ "$1" == "Win8.1" ]; then
+         --extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -D_WIN32_WINNT=0x0603" \
+         --extra-ldflags="-APPCONTAINER" \
+         --prefix=../../../Build/Windows8.1/x86
+-        make install
++        make -j install
+         popd
+ 
+     elif [ "$2" == "x64" ]; then
+@@ -114,7 +114,7 @@ elif [ "$1" == "Win8.1" ]; then
+         --extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -D_WIN32_WINNT=0x0603" \
+         --extra-ldflags="-APPCONTAINER" \
+         --prefix=../../../Build/Windows8.1/x64
+-        make install
++        make -j install
+         popd
+ 
+     elif [ "$2" == "ARM" ]; then
+@@ -138,7 +138,7 @@ elif [ "$1" == "Win8.1" ]; then
+         --extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP -D_WIN32_WINNT=0x0603 -D__ARM_PCS_VFP" \
+         --extra-ldflags="-APPCONTAINER -MACHINE:ARM" \
+         --prefix=../../../Build/Windows8.1/ARM
+-        make install
++        make -j install
+         popd
+ 
+     fi
+@@ -167,7 +167,7 @@ elif [ "$1" == "Phone8.1" ]; then
+         --extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -D_WIN32_WINNT=0x0603 -D__ARM_PCS_VFP" \
+         --extra-ldflags="-APPCONTAINER -MACHINE:ARM -subsystem:console -opt:ref WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib -NODEFAULTLIB:kernel32.lib -NODEFAULTLIB:ole32.lib" \
+         --prefix=../../../Build/WindowsPhone8.1/ARM
+-        make install
++        make -j install
+         popd
+ 
+     elif [ "$2" == "x86" ]; then
+@@ -188,7 +188,7 @@ elif [ "$1" == "Phone8.1" ]; then
+         --extra-cflags="-MD -DWINAPI_FAMILY=WINAPI_FAMILY_PHONE_APP -D_WIN32_WINNT=0x0603" \
+         --extra-ldflags="-APPCONTAINER -subsystem:console -opt:ref WindowsPhoneCore.lib RuntimeObject.lib PhoneAppModelHost.lib -NODEFAULTLIB:kernel32.lib -NODEFAULTLIB:ole32.lib" \
+         --prefix=../../../Build/WindowsPhone8.1/x86
+-        make install
++        make -j install
+         popd
+ 
+     fi
+-- 
+2.8.1.windows.1
+