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

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st October 2017, 21:20   #41  |  Link
xabregas
Registered User
 
Join Date: Jun 2011
Posts: 121
Here is my config file:

Quote:
vd-lavc-threads=16
hwdec=auto
profile=gpu-hq
sub-font=Arial Black
sub-border-color=#ff000000
sub-border-size=1.25
sub-font-size=42
volume=40
audio-pitch-correction=yes
volume-max=100
vf-add=lavfi=[pad=aspect=1.77778:x=(ow-iw)/2:y=(oh-ih)/2]
Can i improve something?

Although subtitles are much better now i feel they can go below video a bit more. Need to figure it out

Another thing i dont know is if opengl-hq is affecting videos that dont need image up or down scaling.
xabregas is offline   Reply With Quote
Old 22nd October 2017, 10:21   #42  |  Link
aufkrawall
Registered User
 
Join Date: Dec 2011
Posts: 1,812
Code:
mpv --show-profile=opengl-hq
Profile opengl-hq: 
 profile=gpu-hq
  scale=spline36
  cscale=spline36
  dscale=mitchell
  dither-depth=auto
  correct-downscaling=yes
  sigmoid-upscaling=yes
  deband=yes
Deband is always on with that profile, and ofc the spline chroma scaler might also be noticed over bilinear when there is no luma scaling.
Really dunno about subtitles.
aufkrawall is offline   Reply With Quote
Old 22nd October 2017, 13:21   #43  |  Link
xabregas
Registered User
 
Join Date: Jun 2011
Posts: 121
Quote:
Originally Posted by aufkrawall View Post
Code:
mpv --show-profile=opengl-hq
Profile opengl-hq: 
 profile=gpu-hq
  scale=spline36
  cscale=spline36
  dscale=mitchell
  dither-depth=auto
  correct-downscaling=yes
  sigmoid-upscaling=yes
  deband=yes
Deband is always on with that profile, and ofc the spline chroma scaler might also be noticed over bilinear when there is no luma scaling.
Really dunno about subtitles.
Yes. For 4k i need to disable opengl-hq and use opengl instead because opengl-hq gives me bad color with hevc 10 bit content and higher cpu usage. Opengl gives me correct colors plus lower cpu usage for HEVC 10 bit videos 4k or not.
xabregas is offline   Reply With Quote
Old 22nd October 2017, 14:39   #44  |  Link
aufkrawall
Registered User
 
Join Date: Dec 2011
Posts: 1,812
Mind to provide a screenshot?
opengl-hq should in no way influence colors (except of removing banding). It shouldn't have any influence on the CPU either.

Again: mpv by default always uses a OpenGL renderer (at least currently, D3D11 and Vulkan are in the making or already mostly completed), "opengl-hq" is only the above preset of certain quality settings. There is no "opengl" vs. "opengl-hq".

I btw. don't think it's necessary to provide a --vd-lavc-threads setting.
If your system isn't entirely crappy, you can use --video-sync=display-resample for better frame timing and it should also be save to use --hwdec=dxva2-copy.

We also already had a discussion about --opengl-backend=... in this thread. Default is angle, which I wouldn't advise for best performance (or not at all, if possible).
aufkrawall is offline   Reply With Quote
Old 22nd October 2017, 16:51   #45  |  Link
xabregas
Registered User
 
Join Date: Jun 2011
Posts: 121
Do i need to use any order in giving options to the config file?

Meaning, should --profile= come first than --hwdec= or after?

Sometimes is hard for me to tell if hwdec was used or not. I needed to search for the log command so i realized the decoding always fall back to software decoding. probably no need for 16 threads neither hwdec= setting.

As for the smooth --video-sync=display-resample i feel its similar to madvr smooth motion without losing so much sharpening. Anyway not to my taste.

Quote:
Originally Posted by aufkrawall View Post
Mind to provide a screenshot?«
PS: Well i need the screenshot command please

Last edited by xabregas; 22nd October 2017 at 16:53.
xabregas is offline   Reply With Quote
Old 22nd October 2017, 16:58   #46  |  Link
aufkrawall
Registered User
 
Join Date: Dec 2011
Posts: 1,812
Without --interpolation, --video-sync=display-resample doesn't introduce any visible blur or whatever.
The order is not relevant for config entries, maybe except of some special video filters.

Screenshots:
https://mpv.io/manual/stable/#taking-screenshots
You can ofc also just press the print screen and insert it into Paint.

You can drag&drop video files onto mpv.com to see the console with information about playback (or start it via shell). Current git version also got overlay script integrated (shift + i), which is also available as a userscript.
aufkrawall is offline   Reply With Quote
Old 22nd October 2017, 17:03   #47  |  Link
pirlouy
_
 
Join Date: May 2008
Location: France
Posts: 692
I'm fine with opengl-backend=Angle, better performance than dxinterop.
For config file, you don't need --. Just profile=opengl-hq in config file. Order is not important.

Curious about the next version with new gpu-api settings.

Last edited by pirlouy; 22nd October 2017 at 17:16.
pirlouy is offline   Reply With Quote
Old 2nd November 2017, 20:54   #48  |  Link
pirlouy
_
 
Join Date: May 2008
Location: France
Posts: 692
I was wondering if there is some equivalent for madVR option "automatically detect hard coded black bars".
There's a script (autocrop), but it is not automatic like madVR option.

With madVR, 1 option, and it does the job without taking too much ressources (well... I think).
pirlouy is offline   Reply With Quote
Old 11th March 2019, 22:01   #49  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Version 1.0 is out with a much more feature packed context menu.


Keybinding and context menu conf file:

https://github.com/stax76/mpv.net/bl...input_conf.txt


Download:

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


Screenshot:

stax76 is offline   Reply With Quote
Old 13th March 2019, 16:55   #50  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Working on IronPython integration now maybe a german dev kan help me with my curent issue described here:

https://social.msdn.microsoft.com/Fo...rum=offtopicde
stax76 is offline   Reply With Quote
Old 14th March 2019, 05:44   #51  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Version 1.1 has support for Python scripting using IronPython, for testing I migrated the seek-show-position.js script to Python, the API is identical to the Lua/JavaScript API, certainly not fully implemented but assigning to events, executing commands and accessing properties are all shown in the seek-show-position.py script. Since IronPython is .NET based it can also use the APIs which the two included .NET addons use. Personally I think Python is much nicer than Lua and JavaScript, Python scripts can be located in the startup dir in the script folder or in mpv's script folder in the appdata folder. The script is shown below, feel free to ask anything about mpv/mpv.net, .NET addons or Lua/JavaScript/Python scripting. I'm not having any further plans for the player right now since it does everything what I use.

Code:
# when seeking displays position and
# duration like so: 70:00 / 80:00
# which is different from mpv which
# uses 01:10:00 / 01:20:00

import math

def seek():
    mp.commandv('show-text',
        format(mp.get_property_number("time-pos")) + " / " + format(mp.get_property_number("duration")))

def format(f):
    sec = round(f)
    
    if sec < 0:
        sec = 0
    
    pos_min_floor = math.floor(sec / 60)
    sec_rest = sec - pos_min_floor * 60
    return add_zero(pos_min_floor) + ":" + add_zero(sec_rest)

def add_zero(val):
    val = round(val)
    return "" + str(int(val)) if (val > 9) else "0" + str(int(val))

#mp.Seek += seek
mp.register_event("seek", seek)

Last edited by stax76; 14th March 2019 at 05:47.
stax76 is offline   Reply With Quote
Old 18th March 2019, 14:42   #52  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
1.2
  • a thread synchonisation bug which caused the shutdown to be delayed or frozen was fixed, it also caused the Shutdown event not to fire which caused the rating plugin not to work

https://github.com/stax76/mpv.net/releases
stax76 is offline   Reply With Quote
Old 19th March 2019, 10:39   #53  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
1.3
  • besides Lua/JavaScript/C#/Python there is now PowerShell supported as fifth scripting language
  • in case there isn't yet a mpv.conf file mpv.net creates the file with certain default settings that were previously set on every mpv.net start. This was changed to provide transparency on which settings mpv.net uses. These default settings can be seen here: https://github.com/stax76/mpv.net/bl...s/mpv.conf.txt

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

https://github.com/stax76/mpv.net#powershell-scripting
stax76 is offline   Reply With Quote
Old 20th March 2019, 18:43   #54  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
1.4
  • the last thread sync fix wasn't working well, the delayed shutdown should be gone for good now
  • libmpv updated

https://github.com/stax76/mpv.net/releases
stax76 is offline   Reply With Quote
Old 21st March 2019, 15:41   #55  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
In the mpv SDK docs of Lua/JS I'm not sure I understand the following:

Code:
mp.get_property_bool(name [,def])

    Similar to mp.get_property, but return the property value as Boolean.

    Returns a Boolean on success, or def, error on error.
Does def here stand for a default value? I understand it as follows:

If the property is not available it returns the default value and if the property is not available and no default value was provided it returns an error.
stax76 is offline   Reply With Quote
Old 21st March 2019, 18:38   #56  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
1.5
  • the info command supports now info for music files instead of showing an exception on music files
  • added support for WM_APPCOMMAND API to support media keyboards
  • fixed Alt key input not working
  • mpv.net API methods renamed to match the names used in the Lua/JS API

https://github.com/stax76/mpv.net/releases
stax76 is offline   Reply With Quote
Old 21st March 2019, 18:53   #57  |  Link
ashlar42
Registered User
 
Join Date: Jun 2007
Posts: 656
It would be nice if configuration was doable through a GUI. MPV documentation is... complex. You state so in the OP, I know, but I'm used to madVR, where the GUI allows pretty in-depth configuration.
ashlar42 is offline   Reply With Quote
Old 21st March 2019, 19:44   #58  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
it's difficult because:
  • it should modify mpv.conf to be mpv compatible
  • it should be searchable/filterable

most difficult is I never make a easy decision on which programming language and UI toolkit to use, I don't like always using the same languages and toolkits.
stax76 is offline   Reply With Quote
Old 21st March 2019, 22:57   #59  |  Link
BetA13
cosmic entity
 
BetA13's Avatar
 
Join Date: May 2011
Location: outside the Box
Posts: 258
is there a list somewhere on wich settings i can use or are avaiable?
i find it hard to configure it, but i want to learn more of course..

also, is it possible to select the monitor that should be used? i have som eproblems with multimonitor config..

Thanks for this project, really liking the minimalism of it.. even doh its kinda hard to configure..


cheers
BetA13 is offline   Reply With Quote
Old 22nd March 2019, 02:29   #60  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
mpv.net has hardly documentation, only a few words at the start page:

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


mpv.net supports many mpv features without difference, mpv is mostly documented here:

https://mpv.io/manual/master


Quote:
also, is it possible to select the monitor that should be used? i have som eproblems with multimonitor config..
maybe this:

https://mpv.io/manual/master/#options-screen

window related features however must be implemented in mpv.net, I should be able to add support for it.
stax76 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 00:34.


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