Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Hardware & Software > Software players
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 17th July 2019, 21:42   #181  |  Link
Naomi010Sentzke
Registered User
 
Join Date: Jul 2019
Posts: 18
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).
Naomi010Sentzke is offline   Reply With Quote
Old 18th July 2019, 03:08   #182  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
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:

Quote:
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

Code:
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");
    }
}
Quote:
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.

Quote:
3. Playlist should be navigable like this script.
https://github.com/jonniek/mpv-playlistmanager
If you like the script why not just use it?

Quote:
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.

Quote:
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.

Quote:
Media controls in taskbar.
Create an issue on the tracker and if few people bump it I might investigate it.

Quote:
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.

Quote:
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.

Last edited by stax76; 18th July 2019 at 04:23.
stax76 is offline   Reply With Quote
Old 21st July 2019, 20:05   #183  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
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%
stax76 is offline   Reply With Quote
Old 26th July 2019, 08:18   #184  |  Link
Naomi010Sentzke
Registered User
 
Join Date: Jul 2019
Posts: 18
Quote:
Originally Posted by stax76 View Post
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

Code:
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/bl...n-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.

Last edited by Naomi010Sentzke; 26th July 2019 at 11:38.
Naomi010Sentzke is offline   Reply With Quote
Old 26th July 2019, 15:30   #185  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
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 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.
stax76 is offline   Reply With Quote
Old 26th July 2019, 18:25   #186  |  Link
Naomi010Sentzke
Registered User
 
Join Date: Jul 2019
Posts: 18
Quote:
Originally Posted by stax76 View Post
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 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.
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.
Naomi010Sentzke is offline   Reply With Quote
Old 26th July 2019, 20:55   #187  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Please try if following is working:

https://github.com/stax76/mpv.net/wi...-when-minimize
stax76 is offline   Reply With Quote
Old 26th July 2019, 22:38   #188  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
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
stax76 is offline   Reply With Quote
Old 26th July 2019, 22:52   #189  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
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.

Last edited by sneaker_ger; 26th July 2019 at 22:55.
sneaker_ger is offline   Reply With Quote
Old 26th July 2019, 23:22   #190  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
That was helpful, I used wrong compression parameters.

You are using mpv, right?

In the next release I have terminal support implemented in mpv.net.
stax76 is offline   Reply With Quote
Old 27th July 2019, 00:52   #191  |  Link
Naomi010Sentzke
Registered User
 
Join Date: Jul 2019
Posts: 18
Quote:
Originally Posted by stax76 View Post
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).
Code:
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
Naomi010Sentzke is offline   Reply With Quote
Old 27th July 2019, 01:01   #192  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
@Naomi010Sentzke

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

5.0
  • changed icon design
  • 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 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
stax76 is offline   Reply With Quote
Old 27th July 2019, 01:31   #193  |  Link
Naomi010Sentzke
Registered User
 
Join Date: Jul 2019
Posts: 18
After updating it works. Finally, switching to mpv.net as default. Thanks for everything.

Last edited by Naomi010Sentzke; 27th July 2019 at 01:50.
Naomi010Sentzke is offline   Reply With Quote
Old 27th July 2019, 01:43   #194  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
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-sc...ommand(string)
stax76 is offline   Reply With Quote
Old 27th July 2019, 01:52   #195  |  Link
Naomi010Sentzke
Registered User
 
Join Date: Jul 2019
Posts: 18
Quote:
Originally Posted by stax76 View Post
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-sc...ommand(string)
Yeah, I have now updated to 5.0. Thanks.
Naomi010Sentzke is offline   Reply With Quote
Old 30th July 2019, 10:30   #196  |  Link
Naomi010Sentzke
Registered User
 
Join Date: Jul 2019
Posts: 18
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.
Naomi010Sentzke is offline   Reply With Quote
Old 30th July 2019, 14:36   #197  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by Naomi010Sentzke View Post
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.

Last edited by stax76; 30th July 2019 at 14:40.
stax76 is offline   Reply With Quote
Old 30th July 2019, 17:58   #198  |  Link
Naomi010Sentzke
Registered User
 
Join Date: Jul 2019
Posts: 18
Quote:
Originally Posted by stax76 View Post
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).
Naomi010Sentzke is offline   Reply With Quote
Old 30th July 2019, 18:37   #199  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
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...

Last edited by stax76; 30th July 2019 at 18:40.
stax76 is offline   Reply With Quote
Old 31st July 2019, 12:44   #200  |  Link
Naomi010Sentzke
Registered User
 
Join Date: Jul 2019
Posts: 18
Quote:
Originally Posted by stax76 View Post
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...aster/maximize

Last edited by Naomi010Sentzke; 31st July 2019 at 13:40.
Naomi010Sentzke is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.