mpv.net is a modern media player for Windows that works just like mpv.
mpv.net is based on libmpv which offers a straightforward C API that was designed from the ground up to make mpv usable as a library and facilitate easy integration into other applications. mpv is like vlc not based on DirectShow or Media Foundation.
mpv.net has the CLI of mpv.
libmpv has an OpenGL based video output that is capable of many features loved by videophiles, such as video scaling with popular high quality algorithms, color management, frame timing, interpolation, HDR, and more.
The OSC of libmpv offers play controls with a modern flat design. (Screenshot)
libmpv leverages the FFmpeg hwaccel APIs to support DXVA2 video decoding acceleration.
mpv.net is under active development. Want a feature? Post a patch or request it!
- Features
- Screenshots
- Manual
- Context Menu
- Settings
- Scripting
- Extensions
- Architecture
- Support
- Links
- Changelog
- Download
- Very high degree of mpv compatibility, almost all mpv features are available
- Great usability due to everything in the application being searchable
- Open source built with modern tools
- Customizable context menu defined in the same file as the key bindings (Screenshot, Defaults)
- Searchable config dialog (Screenshot, Defaults)
- Searchable input (key/mouse) binding editor (Screenshot, Defaults)
- Configuration files that are easy to read and edit
- Searchable command palette to quickly launch commands and look for keys (Screenshot)
- Modern WPF based graphical user interface with dark mode (Screenshot)
- Extension API for .NET languages
- Scripting API for Python, C#, Lua, JavaScript and PowerShell (Wiki)
- Language agnostic JSON IPC to control the player with a external programs
- On Screen Controler (OSC, play control buttons)
- Command Line Interface
- If started from a PowerShell terminal mpv.net will attach to the terminal and print status and debug output
- OSD REPL
- DXVA2 video decoding acceleration
- OpenGL based video output capable of features loved by videophiles, such as video scaling with popular high quality algorithms, color management, frame timing, interpolation, HDR, and more
- Search feature powered by Everything to find and play media (Screenshot)
- Extension to start mpv.net from Google Chrome (Manual)
- Extremely fast seek performance
- Very fast startup performance, video is usally ready to play in less then a second
- Usable as video player, audio player and image viewer with a wide range of supported formats
- All decoders are built-in, no external codecs have to be installed
- Setup and portable download options, setup is recommended but not required
- Build-in media streaming via youtube-dl
- x64 and x86 Support (64-bit and 32-bit)
- File associations can be created by the setup and from the player
- External audio and subtitle files can either be loaded manually or automatically
- Screenshot feature with many options
- File history feature to log time and filename
- A-B loop feature
- watch later feature to save the position
- Manual
Context menu defined in the input.conf file with dark mode support.
A searchable config editor as alternative to edit the mpv.conf file manually.
mpv.net attached to a PowerShell terminal showing the OSD REPL.
A searchable key and mouse binding editor.
Forgot where a command in the menu is located or what shortcut key it has? Just press F1 and find it easily in the searchable command palette.
Media search feature powered by Everything to find and play media.
The context menu can be customized via input.conf file located in the config directory:
C:\Users\%username%\AppData\Roaming\mpv\input.conf
if it's missing mpv.net generates it with the following defaults:
https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/inputConf.txt
input.conf defines mpv's key and mouse bindings and mpv.net uses comments to define the context menu.
When mpv.net finds no config folder on startup it will ask for a location.
If a folder named portable_config next to the mpvnet.exe exists, all config will be loaded from this folder only.
<startup>\portable_config\
mpv specific settings are stored in the file mpv.conf, if no mpv.conf file exists mpv.net generates it with the following defaults:
https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/mpvConf.txt
mpv.net specific settings are stored in the file mpvnet.conf
The input (key/mouse) bindings and the context menu definitions are stored in the input.conf file, if it's missing mpv.net generates it with the following defaults:
https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/inputConf.txt
mpv.net supports almost all mpv settings and features, limitations are listed in the wiki.
The config folder can be opened from the context menu.
Coding mpv.net was great fun because libmpv is such a awesome library with a very clever design, I'm having a great experience with libmpv.
The player does not contain any feature that was more work than 1-2 days or was difficult to build, the hard parts are totally covered by libmpv.
mpv.net is written in C# 7 and runs on .NET 4.7, I've not yet decided if I will port it to C# 8 and .NET 5 once available.
The Extension implementation is based on the Managed Extensibility Framework.
There are no specific extension or scripting interfaces but instead everyting is accessible for .NET compatible languages (C#, VB.NET, F#, Python, PowerShell), this decision was made to keep the code simple and lightweight.
Python scripting is implemented with IronPython which uses Python 2.7.
The main window is WinForms based and uses less than 600 lines of code, all other windows are WPF based and use even less code.
The config editor adds it's controls dynamically and uses TOML to define it's content, there are only two simple types, StringSetting and OptionSetting.
mpv.net was started 2017 and consists of about 6000 lines of code and markup.
IDE, Editor: Visual Studio, Visual Studio Code.
Due to mpv.net being my first WPF app and mpv.net never meant to be a large application best practices and design pattern are not always applied.
Third party components:
- libmpv, the heard and soul of mpv.net
- MediaInfo, no media related project could do without
- Tommy, a single file TOML parser
- IronPython, bringing Python to dotnet
- CS-Script, scripting with C#
- Everything, a blazing fast file search service
Support thread in VideoHelp forum
Issue tracker, feel free to use for anything mpv.net related
Please click on the star at the top of the page and like mpv.net at alternativeto.net.
If you want to support the development of mpv.net or express your appreciation you can do so with a donation:
- mpv.net wiki: https://github.com/stax76/mpv.net/wiki
- mpv.net default key bindings: https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/inputConf.txt
- mpv.net download: https://github.com/stax76/mpv.net/releases
- mpv.net bugs and requests: https://github.com/stax76/mpv.net/issues
- mpv website: https://mpv.io/
- mpv manual: https://mpv.io/manual/master/
- mpv wiki: https://github.com/mpv-player/mpv/wiki
- mpv apps: https://github.com/mpv-player/mpv/wiki/Applications-using-mpv
- mpv user scripts: https://github.com/mpv-player/mpv/wiki/User-Scripts
- mpv default key bindings: https://github.com/mpv-player/mpv/blob/master/etc/input.conf
- mpv download: https://mpv.io/installation/
- mpv bugs and requests: https://mpv.io/bug-reports/