/mpv/ - opt rework is in progress

Is it real?

Other urls found in this thread:

gist.github.com/igv
twitter.com/AnonBabble

What's opt?

Options like --vo, --hwdec or --video-sync.
Mpv inherites from the mplayer messy opt system and mpv devs are making it better. But it's a fucking painful process.

mpv's command line is unintuitive and the manual is structured pretty poorly, lacks easy feature discoverability.

The command line isn't really up for a rework, but how would you better structure the man page?

Just give it a GUI. Then nobody cares what the options are named.

Autists developing mpv won't feel like l33t h4X0rs anymore.

There should be a section listing most commonly used commands. mpv doesn't have a huge userbase so an internet search gives nothing related most of the time.

The sections should have all related commands available in the most instinctive manner. Now if I want to look up how to change audio from cli I would probably look in the "Audio" section. But it's not there, rather it's listed in the "Track selection" section which in my experience was really unintuitive. Generalizing away from the most thought of thing isn't good for discoverability.

Manual should be documentation!
Manual is not the good term.

not a big fan of the default input.conf, anyone up to share theirs?

all I've really done is disabled a bunch of shit I never use.

#MOUSE_BTN0 ignore # don't do anything
#MOUSE_BTN0_DBL cycle fullscreen # toggle fullscreen on/off
#MOUSE_BTN2 cycle pause # toggle pause on/off
MOUSE_BTN3 ignore
MOUSE_BTN4 ignore
MOUSE_BTN5 add chapter -1
MOUSE_BTN6 add chapter 1

AXIS_UP add volume 2
AXIS_DOWN add volume -2
AXIS_LEFT ignore
AXIS_RIGHT ignore

1 ignore
2 ignore
3 ignore
4 ignore
5 ignore
6 ignore
7 ignore
8 ignore
9 ignore
0 ignore
* ignore
/ ignore

w ignore
e ignore
A ignore

h ignore
k ignore

we global-opts now!!!

Please share configs for high quality video.

This is what I use

# Muh placebo
profile=opengl-hq
opengl-pbo=yes # helps with performance

# Scaling settings
scale=haasnsoft
scale-radius=3
cscale=ewa_lanczos

# Color management
icc-profile-auto=yes
icc-cache-dir=/tmp/mpv-icc
target-brightness=100

# Interpolation
video-sync=display-resample
interpolation=yes
interpolation-threshold=0.01
tscale=bicubic
blend-subtitles=yes

# Misc video settings
deband-iterations=2
deband-range=12
temporal-dither=yes
hwdec=no # better quality and stability

Awesome! I am in love with cli tools now!
Seriously I was a fucking pro gui fool but mpv learned me it's mostly useless and bloated.

>hwdec=no # better quality and stability
Is there a way to use hwdec only for hevc videos? My fans become ultra noisy reactors when I play this kind of videos.

You could probably try blacklisting the specific codecs you don't want to use for hwdec

How?

wow it's even easier than I thought, search for hwdec-codecs in the manual

My gpu supports hevc hardware decoding.

Did you do what I said?

>finally learn the config options and set it up
>it's being changed now

Is this correct?
hwdec-codecs=hevc

hwdec=auto
hwdec-codecs=hevc,vp9

hwdec=auto-copy
hwdec-codecs=hevc,vp9

Yes

I will try this this evening.

I've only changed
MOUSE_BTN3 add volume 2
MOUSE_BTN4 add volume -2
ESC set fullscreen no ; set pause yes

The change is simple and for the better. Instead of a long string of VO suboptions they're now just global options (and opengl-hq is now a built-in profile)

vo=opengl-hq:scale=ewa_lanczossharp:deband

becomes
profile=opengl-hq
scale=ewa_lanczossharp
deband=yes

Depends on the hwdec API in question

Some give you the raw planes (same as software decoding) which means that all filters work

Others do RGB conversion or chroma scaling internally, which breaks stuff like debanding or cscale

how do i into user-shaders= now

vo=opengl:user-shaders=[a,b,c]

becomes
vo=opengl
opengl-shaders=a,b,c

thanks man

How would a rework look like? The way it's now makes it easy to understand.

There are no new shaders in the igv's gist. :(
gist.github.com/igv

While I appreciate this, it's going to break SMPlayer GUI, which I 99% of the time use instead of solo mpv. I hope the SMPlayer guys get it fixed fast

>interpolation=yes
>interpolation-threshold=0.01
>tscale=bicubic
Why did you change the default interpolation settings?
What's wrong with defaults provided by the developers?

Isn't the new syntax mostly backwards compatible? (Apart from like 2 options that got renamed)

tscale is a subjective/aesthetic choice. The defaults are conservative

interpolation-threshold is working around a bug that happens sometimes, IMO it should be the default

>interpolation-threshold
What does it do, though? I don't quite understand what the manual says. I've seen someone post on one of the mpv generals that the default settings should be 0.01 and not 0.001 which is the one right now. What does setting it to 0.1 do? I don't see any difference (using linear tscale)