Compiling for Windows is supported with MinGW-w64. This can be used to produceboth 32-bit and 64-bit executables, and it works for building on Windows andcross-compiling from Linux and Cygwin. MinGW-w64 is available from:http://mingw-w64.sourceforge.net.
While building a complete MinGW-w64 toolchain yourself is possible, there are afew build environments and scripts to help ease the process, such as MSYS2 andMXE. Note that MinGW environments included in Linux distributions are oftenbroken, outdated and useless, and usually don't use MinGW-w64.
Mpv tutorial and 60 fps playback on OS X. Last updated: 30 October 2016. With interpolation because of different Python versions. Kodi uses Python 2. But you should still be able to use build-in interpolation of mpv. Save hide report. I'm using my mac as a development machine and after the latest osx.
Warning: the original MinGW (http://www.mingw.org) is unsupported.
When cross-compiling, you have to run mpv's configure with these arguments:
MXE makes it very easy to bootstrap a complete MingGW-w64environment from a Linux machine. See a working example below.
Alternatively, you can try mingw-w64-cmake,which bootstraps a MinGW-w64 environment and builds mpv and dependencies.
Example with MXE
For Windows developers looking to get started quickly, MSYS2 can be used tocompile mpv natively on a Windows machine. The MSYS2 repositories have binarypackages for most of mpv's dependencies, so the process should only involvebuilding mpv itself.
To build 64-bit mpv on Windows:
Installing MSYS2
Updating MSYS2
To prevent errors during post-install, the MSYS2 core runtime must be updatedseparately.
Installing mpv dependenciesBuilding mpv
Clone the latest mpv from git and install waf. Note:
/usr/bin/python3 is invoked directly here, since an MSYS2 version of Python is required.
Finally, compile and install mpv. Binaries will be installed to
/mingw64/bin or /mingw32/bin .
Or, compile and install both libmpv and mpv:
Linking libmpv with MSVC programs
mpv/libmpv cannot be built with Visual Studio (Microsoft is too incompetent tosupport C99/C11 properly and/or hates open source and Linux too much toseriously do it). But you can build C++ programs in Visual Studio and link themwith a libmpv built with MinGW.
To do this, you need a Visual Studio which supports
stdint.h (recent ones do),and you need to create a import library for the mpv DLL:
The string in the
/name: parameter must match the filename of the DLL (thisis simply the filename the MSVC linker will use). The mpv.def can beretrieved from the mpv build directory, or can be produced by MingGW'sgendef.exe helper from the mpv DLL.
Static linking is not possible.
Running mpv
If you want to run mpv from the MinGW-w64 shell, you will find the experiencemuch more pleasant if you use the
winpty utility
If you want to move / copy
mpv.exe and mpv.com to somewhere other than/mingw64/bin/ for use outside the MinGW-w64 shell, they will still depend onDLLs in that folder. The simplest solution is to add C:msys64mingw64bin to the windows system %PATH% . Beware though that this can cause problems orconfusion in Cygwin if that is also installed on the machine.
Use of the ANGLE OpenGL backend requires a copy of the D3D compiler DLL thatmatches the version of the D3D SDK that ANGLE was built with(
d3dcompiler_43.dll in case of MinGW-built ANGLE) in the path or in thesame folder as mpv. It must be of the same architecture (x86_64 / i686) as thempv you compiled. You can find copies here:
Setting up mpv
(developer's web site)
mpv must be built with Vapoursynth support. Installation - Windows
Since developer's web site doesn't provide Vapoursynth-enabled Windows version you have to use our custom build of mpv.exe and/or mpv-1.dll.
Please install the following packages via SVP's 'Additional programs and features':
Update: starting from 2017-12-29 you can also use builds by shinchiro. Keep in mind that SVPcode (transcoding extension) and SVPcast (streaming extension) functionality may be limited with those builds because of missing built-in hardware encoders.
Installation - Linux
See building instructions
Installation - macOSCompiling mpv from sources
To use Vapoursynth filters you have to install the Vapoursynth package and build mpv 0.17.0 or later with the --enable-vapoursynth build flag.
Basic settings
The only necessary mpv option is (Linux and macOS)
or (Windows)
You can put this line into mpv.conf (usually located in ~/.config/mpv on OS X and Linux and in %APPDATA%mpv on Windows)
Only 'copy-back' hardware video decoders are compatible with Vapoursynth filters, use
This one fixes audio desync
'Watch later' feature is not compatible with SVP, set
More useful options:
Since mpv has tons of options it's recommended to use SMPlayer instead of plain mpv (sadly NOT for OS X users).
Advanced features
Retrieved from 'https://www.svp-team.com/w/index.php?title=SVP:mpv&oldid=5667'
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |