Log in

View Full Version : mpv.net media player


Pages : 1 2 3 [4] 5 6 7 8 9 10 11 12 13 14 15

stax76
9th May 2019, 14:32
Changelog

3.5 (2019-05-09)

when the main windows gets activated and the clipboard content starts with http
mpv.net will ask to play the URL, previously this was restricted to YouTube URLs
Python script errors show line and column whenever it is supported by IronPython
if conf files exist in the startup directory mpv.net will use the startup
directory as config directory instead of creating default conf files in appdata
renamed commands are handled now by migration code instead of being broken

hubblec4
9th May 2019, 17:15
Downloaded and tested. Here is a small menu.mkv (https://forum.videohelp.com/attachments/49027-1557418329/S01E00%20-%20Hauptmen%C3%BC.7z) with more than 10 editions. Only 3 editions are shown, in the original menu entry Track and with the Editions.py script.

stax76
9th May 2019, 17:49
Try with mpv, I populate tracks like so:

count = get_property_int("edition-list/count");

for (int i = 0; i < count; i++)
{
MediaTrack track = new MediaTrack();
track.Text = "E: " + get_property_string($"edition-list/{i}/title");
track.Type = "e";
track.ID = i;
MediaTracks.Add(track);
}

In mpv.net you can do:

Tools > Execute mpv command

show-text ${edition-list/count}

hubblec4
9th May 2019, 18:59
The command show me a "3" on left top corner. I load the file in mpv but I don't know how can I change, see, select editions.

stax76
9th May 2019, 19:21
I've learned a couple of things about libmpv over the years but I'm not really an expert about mpv, Windows probably isn't the best platform for mpv. Two options I know is either the command line or IPC (shouldn't this rather be called RPC?).

Command line is documented like so:

mpv [options] [file|URL|PLAYLIST|-]

Following command line will probably work:

mpv --edition=<editionID> <file|URL|PLAYLIST|->

stax76
13th May 2019, 02:09
Changelog

3.6

playing files from rar archives caused an exception
there was a bug that caused underscores beeing removed from input like MBTN_LEFT_DBL
the search clear button in the input editor had a render issue in dark mode
new search feature added to search and play media files, requires
Everything (https://www.voidtools.com) to be installed. Default Binding (https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/inputConf.txt#L29), Screenshot (https://github.com/stax76/mpv.net#media-search-screenshot)

ashlar42
13th May 2019, 16:36
Nice choice on Everything for search functionality. I've been using it for years and it's, for me at least, a game changer in how I use my PC.

stax76
13th May 2019, 17:13
Everything is pretty good, agreed. When I've used Wox launcher, I noticed that it uses Everything for file searches so there must be a way for third party apps to query Everything, turned out that is super easy to do.

stax76
23rd May 2019, 00:05
there was a bug causing an exception if both the input editor and config editor
is opened, as soon as one is opened, the other can't be opened

https://github.com/stax76/mpv.net/releases

stax76
25th May 2019, 01:15
3.7

new icon design
the radio buttons in the config editor have now a Windows 10 like design,
they are larger and use the Windows theme color


https://github.com/stax76/mpv.net/releases

https://postimg.cc/XZhVsVqc

stax76
27th May 2019, 18:01
4.0

on the start screen the mpv.NET icon is shown instead of the mpv icon,
feedback and contributions regarding the icon are welcome! The paint.net
pdn and png source is located here (https://github.com/stax76/mpv.net/tree/master/img)
everytime only one file is opened the complete folder is loaded in the playlist
the info command (i key) shows the audio format
new options osd-font-size, sub-font, sub-font-size
new color options with dedicated GUI support: sub-color, sub-border-color, sub-back-color
the config editor no longer shows the command line switches
the github start page was greatly improved
the setup.ps1 PowerShell script was greatly improved in regard of error handling and readability
a manual to mpv.net (Manual.md) was created

ChaosKing
27th May 2019, 19:54
Is http://manual.md/ the correct link? Doesn't work for me.

stax76
27th May 2019, 20:16
this works:

https://github.com/stax76/mpv.net/blob/master/Manual.md

if something is unclear, feel free to ask.

stax76
1st June 2019, 14:24
4.1

drag & drop support for subtitles was added
libmpv was updated
command line support for stdin and URLs was added
there was a crash happening when the player is
minimized in the taskbar

stax76
16th June 2019, 11:43
Hi everyone, I've uploaded a new release. Thanks to everybody who provided feedback since the last release and helped me with the code!

4.2 Letting Go

the help and layout in the config editor was improved
clipboard monitoring for URLs can be disabled in the settings
the context menu has a new feature: Open > Add files to playlist,
it appends files to the playlist (Default binding) (https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/inputConf.txt#L33)
a setting was added to force using a single mpv.net process instance

stax76
24th June 2019, 01:21
There is a chrome extension that can start mpv, has anybody tried this on Windows 10?

https://github.com/Thann/play-with-mpv

What are the most popular video sites besides YouTube? I would like to rewrite the clipboard-monitoring feature to use a domain whitelist.

BetA13
24th June 2019, 02:08
What are the most popular video sites besides YouTube? I would like to rewrite the clipboard-monitoring feature to use a domain whitelist.

Quickly thinks about it and inserts comment: :)

Vimeo (https://vimeo.com/), archive.org (https://archive.org/details/movies), Dtube (https://d.tube/).

Besides Youtube, these are the ones i also mostly use..


i would love that option for firefox... aaargh...

greetz

stax76
24th June 2019, 07:36
Thanks for the suggestions, I made the whitelist feature keyword based, the tube keyword will work for all tubes.

Searching for mpv, Firefox shows some extensions too.

stax76
26th June 2019, 15:25
Since the last release there was more feedback than ever before (much on the issue tracker and people who starred the project). I would like to thank everybody for it. :thanks:

4.4


clipboard-monitoring was replaced by url-whitelist:
Keyword whitelist to monitor the clipboard for URLs to play.
Default: tube vimeo ard zdf
some settings like colors didn't work because enclosing quotes were missing
when single process queue is used the folder is no longer loaded
the playlist is never cleared whenever the control key is down but
files and URLs are appended instead
powershell script hosting bugs were fixed and a new powershell example script
was added to the scripting wiki page (https://github.com/stax76/mpv.net/wiki/Scripting#powershell)
the menu entry for the command palette was renamed to 'Show All Commands' and
the default key binding was changed to F1 which is also the default in VS Code
the default key binding of the Everything media search was changed to F3
support for the mpv property 'border' was added to the config editor
to show/hide the window decoration (titlebar, border). A toggle menu item and
key binding (b) was added as well (Default Binding (https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/inputConf.txt#L135))

stax76
1st July 2019, 02:04
4.5


opening a URL manually no longer uses a input box but uses the clipboard directly
the manifest was missing the company attribute which caused
mpv.net not appearing in the 'Open with' menu of the Windows File Explorer,
thanks to 44vince44 for pointing this out!!!
new Python and C# script examples were added to the wiki and the scripting and
add-on documentation was improved
invalid command line arguments were ignored, now an error message is shown
a description on how to start mpv.net from Google Chrome was added to the
manual, it's useful to play videos from sites like YouTube, find the
description here (https://github.com/stax76/mpv.net/blob/master/Manual.md#chrome-extension)
new config setting remember-height added to remember the window height,
otherwise the video's native resolution is used
support for protocols other then http added

amayra
5th July 2019, 00:27
How i can output 10bit in mpv.net ?

stax76
5th July 2019, 03:58
How i can output 10bit in mpv.net ?

Under normal circumstances 10 bit will be used.

You can toggle stats with shift+t key or write more info to the log with --log-file="path" or in mpv.conf log-file = 'path'.

amayra
5th July 2019, 14:39
doesn't need directx 11 like madvr and Exclusive Fullscreen for that ?

stax76
5th July 2019, 15:08
I don't think mpv has a Exclusive Fullscreen feature. Please note that mpv has many high quality rendering options but I'm not an expert with that, I'm not able to see great differences... :)

Two settings I use with my GT 1030 are:

profile = gpu-hq
hwdec = yes

huhn
5th July 2019, 17:38
to render in 10 bit you need to use a 10 bit presentation surface in a situation the OS/GPU driver except it.

like d3d11 FSE and under windows 10 d3d11 WFS.
the openGL 10 bit hack is only usable with professional driver and works in window mode. it uses 6 of the 8 bit from the alpha channel to render 10 bit on an RGBA 8 bit presentation surface.

dbcooper
6th July 2019, 06:02
Does mpv.net buffer queues of frames like madvr? I've found that, despite 15ms average frame times, it will often stutter due to slow frames.

amayra
6th July 2019, 21:11
I don't think mpv has a Exclusive Fullscreen feature. Please note that mpv has many high quality rendering options but I'm not an expert with that, I'm not able to see great differences... :)

Two settings I use with my GT 1030 are:

profile = gpu-hq
hwdec = yes

I appreciate your taking the time to answer my question

to render in 10 bit you need to use a 10 bit presentation surface in a situation the OS/GPU driver except it.

like d3d11 FSE and under windows 10 d3d11 WFS.
the openGL 10 bit hack is only usable with professional driver and works in window mode. it uses 6 of the 8 bit from the alpha channel to render 10 bit on an RGBA 8 bit presentation surface.
so there any way to output 10bit with mpv in windows 10 ?

huhn
6th July 2019, 21:40
sorry not going to read the source code to figure that out.

if they want to they could.

stax76
6th July 2019, 23:00
4.6

fix for middle mouse button not working
fix of logo overlay using a huge amount of memory (thx for the ghacks article (https://www.ghacks.net/2019/07/05/a-look-at-mpv-net-a-mpv-frontend-with-everything-integration/))
fix config dialog showing a message about app restart without reason
when multiple files are selected in Windows File Explorer and enter is
pressed, the files are opened as selected, the order is random though
because Explorer starts multiple mpv.net processes concurrently
libmpv was updated to shinchiro 2019-06-30
the mpv.conf defaults (https://github.com/stax76/mpv.net/blob/master/mpv.net/Resources/mpvConf.txt) were changed to show a larger OSC
in case a file is opened that has a aspect ratio smaller then 1.2 then
the window size will use a aspect ratio of 1.8
new JavaScript script osc-visibility.js included in the distribution
under startup\scripts. It sets the OSC to be always on for audio files
and auto for non audio files

stax76
13th July 2019, 03:01
4.7

remember-height was replaced with start-size, when start-size is set
to video the main video starts directly with the native video size,
before it was starting with the autofit size first and was only
afterwards resized to the native video size
on exit the window location can be saved with remember-position
in the learn window of the input editor underscores were stripped
because they have a special meaning in WPF labels
fix for keys/input not working for MBTN_LEFT_DBL, MBTN_BACK, MBTN_FORWARD
in the learn window of the input editor support was added for
mouse left, mouse left double, mouse mid, mouse forward, mouse back
libmpv was updated to shinchiro 2019-07-07
when border is none it wasn't possible to minimize the window from
the task bar because this is the WinForms default behavier. This
was fixed by calling Spy++ to the rescue and adding WS_MINIMIZEBOX
in CreateParams

Naomi010Sentzke
17th July 2019, 21:42
This can be my main media player except for a few issues
1. Ability to start the player and any video maximized. Also, fonts should not get oversized when maximized(it gets fixed with double click, but that should be default).
2. Pause when minimised. If possible an ability to assign a minimise key.
3. Playlist should be navigable like this script.
https://github.com/jonniek/mpv-playlistmanager
4. bat files to install and update in portable mode like mpv.
The above are actually implementable in mpv through scripts(although the playlist one has oversized fonts on Windows).
Optional features I would like
5. Preview Thumbnails when hovering on seekbar.
6. Media controls in taskbar.
7. Xbox controller input support.
8. Touch controls and gestures support(would be helpful in Surface Pro).

stax76
18th July 2019, 03:08
That is more than few. :)

Maybe create 1-2 new issues per month on the tracker on github.

One thing that was relatively easy to do is this:

2. Pause when minimised. If possible an ability to assign a minimise key.

You can minimize windows with the key Win+Down, for the rest you can save following with cs file extension in <config folder>\scripts


using System;
using System.Windows.Forms;

using mpvnet;

class Script
{
MainForm Form;

public Script()
{
Form = MainForm.Instance;
Form.Resize += Form_Resize;
}

private void Form_Resize(object sender, EventArgs e)
{
if (Form.WindowState == FormWindowState.Minimized)
mp.command_string("set pause yes");
}
}


Ability to start the player and any video maximized. Also, fonts should not get oversized when maximized(it gets fixed with double click, but that should be default).

there are two properties, 'fullscreen' and fs as alias, in mpv.conf you would do:

fullscreen = yes

fullscreen can also be found in the config editor in the screen section. For the font size there is osd-font-size, this can be found in the screen section of the conf editor as well.

3. Playlist should be navigable like this script.
https://github.com/jonniek/mpv-playlistmanager

If you like the script why not just use it?

4. bat files to install and update in portable mode like mpv.

You can do file associations from the menu. A update feature will be difficult, maybe there will be chocolatey support, all that will be difficult to do.

Preview Thumbnails when hovering on seekbar

The osc is implemented in Lua in the file OSC.lua, libmpv probably does not support what would be needed to implement this.

Media controls in taskbar.

Create an issue on the tracker and if few people bump it I might investigate it.

Xbox controller input support.

Unlikely to happen unless somebody writes and extension/script. I don't own such a device, still use a very old MS remote, few buttons are already broken.

Touch controls and gestures support(would be helpful in Surface Pro).

I don't own and use a touch device. Maybe it can be done with an extension if somebody wants to do it.

stax76
21st July 2019, 20:05
4.7.7

on Win 7 the theme color was hardcoded to DarkSlateGrey because
WPF was returning a bad color on Win 7, this was fixed by reading
the theme color from the Registry on Win 7. If the theme color
is identical to the background color it's corrected
dark-color setting was added to overwrite the OS theme color used in dark mode,
find the setting on the General tab
light-color setting was added to overwrite the OS theme color used in non dark mode,
find the setting on the General tab
various changes regarding input handling, multi media keys and
mouse forward/backward were successfully tested
it's now possible to use a custom folder as config folder, a TaskDialog shows five options:
1. appdata mpv.net, 2. appdata mpv (shared with mpv), 3. portable_config, 4. startup, 5. custom
slightly increased startup performance, start-threshold setting added.
Threshold in milliseconds to wait for libmpv returning the video resolution
before the window is shown, otherwise default dimensions are used as defined
by autofit and start-size. Default: 1500
autofit-smaller setting added. Minimum window height in percent. Default: 40%
autofit-larger setting added. Maximum window height in percent. Default: 75%

Naomi010Sentzke
26th July 2019, 08:18
That is more than few. :)

Maybe create 1-2 new issues per month on the tracker on github.

One thing that was relatively easy to do is this:



You can minimize windows with the key Win+Down, for the rest you can save following with cs file extension in <config folder>\scripts


using System;
using System.Windows.Forms;

using mpvnet;

class Script
{
MainForm Form;

public Script()
{
Form = MainForm.Instance;
Form.Resize += Form_Resize;
}

private void Form_Resize(object sender, EventArgs e)
{
if (Form.WindowState == FormWindowState.Minimized)
mp.command_string("set pause yes");
}
}




there are two properties, 'fullscreen' and fs as alias, in mpv.conf you would do:

fullscreen = yes

fullscreen can also be found in the config editor in the screen section. For the font size there is osd-font-size, this can be found in the screen section of the conf editor as well.



If you like the script why not just use it?



You can do file associations from the menu. A update feature will be difficult, maybe there will be chocolatey support, all that will be difficult to do.



The osc is implemented in Lua in the file OSC.lua, libmpv probably does not support what would be needed to implement this.



Create an issue on the tracker and if few people bump it I might investigate it.



Unlikely to happen unless somebody writes and extension/script. I don't own such a device, still use a very old MS remote, few buttons are already broken.



I don't own and use a touch device. Maybe it can be done with an extension if somebody wants to do it.
Hi, thanks for the reply. Actually, some scripts dont work with mpv.net(but I have used another playlist script and it worked for me). The later part of my list was mostly wishlist(should be ignored). So, in the last few days I tried to replicate everything I did on my own mpv on mpv.net and there are just really few this time(and I will keep it simple).
1. I use this script for pause when minimize
https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/pause-when-minimize.lua
It pauses when minimized and then resumes when restored again, but it does not work with mpv.net. Your, script only pauses when minimized.
2. A PowerShell based updater like mpv.

stax76
26th July 2019, 15:30
Thanks for the feedback.

1. Most of mpv's window related features don't work in mpv.net because mpv.net has an own window implementation. I've replicated some window functionality, there is a wiki page called Limitations (https://github.com/stax76/mpv.net/wiki/Limitations)giving some info on this topic. I think I can improve the CS script to make it work like the lua script.

2. An updater is something I want to investigate, it's not trivial for me so it probably will take time and in the worst case it will never happen. I agree that it is a very useful feature. I also like PowerShell much. Next version will give status and debug output in the terminal. Yesterday I discovered a script called repl.lua (https://github.com/rossy/mpv-repl).

Naomi010Sentzke
26th July 2019, 18:25
Thanks for the feedback.

1. Most of mpv's window related features don't work in mpv.net because mpv.net has an own window implementation. I've replicated some window functionality, there is a wiki page called Limitations (https://github.com/stax76/mpv.net/wiki/Limitations)giving some info on this topic. I think I can improve the CS script to make it work like the lua script.

2. An updater is something I want to investigate, it's not trivial for me so it probably will take time and in the worst case it will never happen. I agree that it is a very useful feature. I also like PowerShell much. Next version will give status and debug output in the terminal. Yesterday I discovered a script called repl.lua (https://github.com/rossy/mpv-repl).
Thanks, the CS script just needs to resume the video when restored again(if it has paused through minimize) and it would be like the lua script.

stax76
26th July 2019, 20:55
Please try if following is working:

https://github.com/stax76/mpv.net/wiki/Scripting#pause-when-minimize

stax76
26th July 2019, 22:38
Does anybody know if mkv is suitable for streaming?

Is there a player that can play a rar file which contains a mkv file?

https://github.com/stax76/mpv.net/issues/57

sneaker_ger
26th July 2019, 22:52
MPC-HC, VLC and mpv can play certain mkv files from rar.
Depending on: RAR4 or RAR5 format. Compression enabled or disabled. With or without password.

stax76
26th July 2019, 23:22
That was helpful, I used wrong compression parameters. :thanks:

You are using mpv, right?

In the next release I have terminal support implemented in mpv.net.

Naomi010Sentzke
27th July 2019, 00:52
Does anybody know if mkv is suitable for streaming?

Is there a player that can play a rar file which contains a mkv file?

https://github.com/stax76/mpv.net/issues/57
Do I need to install or enable something to get this script to work ? All I get is this error(the previous script worked fine).

CompilerException

c:\Users\Ashi\AppData\Local\Temp\CSSCRIPT\dynamic\4984.1a9bc9c4-aaf2-4b7d-9760-6efb7dbacd09.tmp(29,20): error CS0117: 'mpvnet.mp' does not contain a definition for 'command'
c:\Users\Ashi\AppData\Local\Temp\CSSCRIPT\dynamic\4984.1a9bc9c4-aaf2-4b7d-9760-6efb7dbacd09.tmp(37,20): error CS0117: 'mpvnet.mp' does not contain a definition for 'command'


csscript.CompilerException: c:\Users\Ashi\AppData\Local\Temp\CSSCRIPT\dynamic\4984.1a9bc9c4-aaf2-4b7d-9760-6efb7dbacd09.tmp(29,20): error CS0117: 'mpvnet.mp' does not contain a definition for 'command'
c:\Users\Ashi\AppData\Local\Temp\CSSCRIPT\dynamic\4984.1a9bc9c4-aaf2-4b7d-9760-6efb7dbacd09.tmp(37,20): error CS0117: 'mpvnet.mp' does not contain a definition for 'command'

at csscript.CSExecutor.ProcessCompilingResult(CompilerResults results, CompilerParameters compilerParams, ScriptParser parser, String scriptFileName, String assemblyFileName, String[] additionalDependencies)
at csscript.CSExecutor.Compile(String scriptFileName)
at CSScriptLibrary.CSScript.LoadWithConfig(String scriptFile, String assemblyFile, Boolean debugBuild, Settings scriptSettings, String compilerOptions, String[] refAssemblies)
at CSScriptLibrary.CSScript.LoadCode(String scriptText, String tempFileExtension, String assemblyFile, Boolean debugBuild, String[] refAssemblies)
at CSScriptLibrary.CodeDomEvaluator.CompileCode(String scriptText)
at CSScriptLibrary.CodeDomEvaluator.LoadCode(String scriptText, Object[] args)
at CSScriptAddon.CSScriptAddon..ctor() in D:\Projekte\CS\mpv.net\addons\CSScriptAddon\CSScriptAddon.vb:line 32

stax76
27th July 2019, 01:01
@Naomi010Sentzke

There was a breaking change, it should work in the new release:

5.0


changed icon design (https://github.com/stax76/mpv.net/blob/master/img/mpvnet.png)
libmpv was updated to shinchiro 2019-07-14
new or improved config editor settings: screenshot-directory,
screenshot-format, screenshot-tag-colorspace, screenshot-high-bit-depth,
screenshot-jpeg-source-chroma, screenshot-template, screenshot-jpeg-quality,
screenshot-png-compression, screenshot-png-filter
mpv.conf preview feature added to config editor, it previews the mpv.conf content
in the entire project the term addon was replaced with the term extension,
unfortunately this will break user extensions. The reason for this drastic
change is that there exist too many different terms, addons, addins,
extensions, modules, packages etc.. mpv.net follows Google Chrome as the worlds
most popular extendable app, Chrome uses the term Extension.
a thread synchronization bug was fixed, the shutdown thread was aborted
if it was running more than 3 seconds, this caused the rating extension
to fail if it was waiting for a drive to wake up
a new JavaScript was included to show the playlist with a smaller font size,
the script is located at startup/scripts
terminal support added using mpvnet.com !
script engine performance and error handling was improved
the scripting wiki page (https://github.com/stax76/mpv.net/wiki/Scripting) was improved
the C# scripting host extension was converted from VB to C# because it's not
only used for hosting but I also use it now to code and debug script code
there was a copy paste bug in the file association feature resulting in keys
from mpv being overwritten instead of using mpv.net keys. Thanks to floppyD!
there was a exception fixed that happened opening rar files
instead of using the OS theme color there are now default colors
for dark-color and light-color

Naomi010Sentzke
27th July 2019, 01:31
After updating it works. Finally, switching to mpv.net as default. Thanks for everything.

stax76
27th July 2019, 01:43
In the new release I have renamed mp.command_string to mp.command because in the mpv JS/Lua scripting API it's called mp.command as well.

https://mpv.io/manual/master/#lua-scripting-mp-command(string)

Naomi010Sentzke
27th July 2019, 01:52
In the new release I have renamed mp.command_string to mp.command because in the mpv JS/Lua scripting API it's called mp.command as well.

https://mpv.io/manual/master/#lua-scripting-mp-command(string)
Yeah, I have now updated to 5.0. Thanks.

Naomi010Sentzke
30th July 2019, 10:30
This player wont go to full screen from a maximized window. You have to restore it to a normal window and only then will toggle full screen work. Hope, this gets fixed.

stax76
30th July 2019, 14:36
This player wont go to full screen from a maximized window. You have to restore it to a normal window and only then will toggle full screen work. Hope, this gets fixed.

This was easy to fix but it won't go back from fullscreen to maximized, it goes to normal. Changing this would very likely be very hard to do, you would have to request it on the tracker and hope few people up vote it.

Naomi010Sentzke
30th July 2019, 17:58
This was easy to fix but it won't go back from fullscreen to maximized, it goes to normal. Changing this would very likely be very hard to do, you would have to request it on the tracker and hope few people up vote it.
Its ok if going to maximized from full screen is impossible. But in mpv, when the screen is maximized I can go to full screen normally with the full screen command, while in mpv.net full screen command(Enter in my case) in maximized windows does not do anything, clicking it twice goes to restore(so I can use the command again to go to fullscreen).

stax76
30th July 2019, 18:37
Its ok if going to maximized from full screen is impossible

From maximized to fullscreen is going to work in the next release, this was easy to do. Problem is it will not go back from fullscreen to maximzed but rather go to normal. Fixing that will be hard, at least for me, impossible is nothing with code.

I just figured out today (by user bug report) that gpu-api=vulkan does not work in mpv.net, I'm having a bad day...

Naomi010Sentzke
31st July 2019, 12:44
From maximized to fullscreen is going to work in the next release, this was easy to do. Problem is it will not go back from fullscreen to maximzed but rather go to normal. Fixing that will be hard, at least for me, impossible is nothing with code.

I just figured out today (by user bug report) that gpu-api=vulkan does not work in mpv.net, I'm having a bad day...
If you use this script(change mpv.exe to mpvnet.exe), not only will mpv.net start maximized, but when ever you go out of fullscreen(also in mpv.net I can only go to full screen from restored window) it will go to maximized state. You have to then manually go to restored state to restore to normal window.
https://github.com/kevinlekiller/mpv_scripts/tree/master/maximize