[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Search] [Home]
Board
Settings Home
/g/ - Technology


Thread archived.
You cannot reply anymore.



File: mpv-or8.png (8 KB, 250x250)
8 KB
8 KB PNG
meme player very good thread
>>
what filters do you use?
>limit loud audio?
>5.1 surround with stereo headphones?
http://ffmpeg.org/ffmpeg-filters.html#Audio-Filters
>>
How to decode unicode chatacters in lua script? It keeps displaying things as \u1234 for me.
>>
>>68810596
for what purpose?
>>
File: 1513410594370.png (1.11 MB, 1280x720)
1.11 MB
1.11 MB PNG
>>68810688
Working on an web application that fetches informations from various live stream providers and serves them in unified format; I thought it'd be nice to make mpv a plugin for it too. Pic related has heart emoji working, but I get to see \u1234 pretty often.
My main target are windows and linux desktop though.
>>
>>68810596
open the lua script with a gtk editor and press [ctrl shift u] and replace \u1234 with the character itself?

>>68810343
are these the best filters to have to limit abrupt loud audio?

af=compand=points=-80/-105|-62/-80|-15.4/-15.4|0/-12|20/-7.6
af=lavfi=[dynaudnorm=f=200:g=5:r=0.1]
af=lavfi=[loudnorm=I=-18:TP=-1.5:LRA=1]
>>
>>68811053
I mean, unicode characters are encoded in json received from server. How to print them using osd_message?
>>
>>68810688
>>68811053
the actual kode:
    local response_body = {}
local res, code, response_headers, status = http.request{
url = API_URL,
method = 'POST',
headers = {
['Content-Type'] = 'application/json',
['Content-Length'] = request_body:len()
},
source = ltn12.source.string(request_body),
sink = ltn12.sink.table(response_body)
}

response = utils.parse_json(response_body[1])
>>
>>
>>68814441
radeon weth retina mesa doesn't have this problem :^)
>>
how do I autostart the chrome play-with-mpv server on mac?

I've been following
https://github.com/Thann/play-with-mpv#autostart
https://stackoverflow.com/questions/29338066/mac-osx-execute-a-python-script-at-startup

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>play-with-mpv</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/python</string>
<string>/usr/local/bin/play-with-mpv</string>
</array>
<key>StandardErrorPath</key>
<string>/var/log/play-with-mpv.error</string>
<key>KeepAlive</key>
<true/>
</dict>
</plist>


I tried saving this as
play-with-mpv.plist
in my
~/Library/LaunchAgents
but it doesn't work.

These messages repeat in /var/log/system.log

Dec  6 19:16:29 rMBP com.apple.xpc.launchd[1] (play-with-mpv[91195]): Service could not initialize: 18B75: xpcproxy + 11291 [1534][12FD3425-7E9A-3682-AA90-CD352F64B968]: 0xd
Dec 6 19:16:29 rMBP com.apple.xpc.launchd[1] (play-with-mpv[91195]): Service exited with abnormal code: 78
Dec 6 19:16:29 rMBP com.apple.xpc.launchd[1] (play-with-mpv): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
>>
>>68815504
install gentoo
>>
>>68815504
>
Service exited with abnormal code: 78

Ok, I figured it out from this
https://stackoverflow.com/questions/34215527/what-does-launchd-status-78-mean-why-my-user-agent-not-running#comment67736565_34217516

It seemed to have a problem with the
/var/log/
path. I set it to
/Users/myusername/Library/Logs/play-with-mpv.log
and it's working fine now

Thanks for reading my blog
>>
wm4 commits finally happening??

https://github.com/mpv-player/mpv/pull/6360
>>
>>68815504
>>68815572
thanks for this
>>
So, the plex app for the apple tv uses mpv now if you have a plex pass.
https://forums.plex.tv/t/early-access-for-plex-pass-users-to-new-apple-tv-ios-video-player/335439
>>
So will mpv eventually use libplacebo?
https://github.com/mpv-player/mpv/commit/5bcac8580df6fc62323136f756a3a6d1e754fe9c
>>
>>68818311
Yes.
>>
>>68817184
np la
>>
>not a single exciting feature since D3D11 RA
so is this project dead?
>>
File: sniffanimal.jpg (310 KB, 1024x683)
310 KB
310 KB JPG
>>68810845
>lotion on my butt
>>
>>68818311
https://github.com/haasn/mpv/commits/libplacebo
>>
>>68822058
haasn when wlll nvidia fix this. i can't use vulkan :(
https://github.com/mpv-player/mpv/issues/6172

is there any kind of nvidia tracker for this bug?
>>
File: 1525337870337.png (303 KB, 1445x862)
303 KB
303 KB PNG
can mpv do this? I use Linux...
>>
>>68822795
I believe there's a theme for KDE that copies Apple's OS. Not sure if it'll make it look exactly like that, but blur can be done in KDE for sure.
>>
>>68822840
no no... what I mean is... can mpv have an overlay to close/min/max the app if I have the top title bar disabled. This IINA player doesn't have any window chrome and uses overlays
>>
>>68822859
Why are you disabling your window decorations if you want window decorations?
>>
File: mpv-easy.png (18 KB, 880x515)
18 KB
18 KB PNG
>>68822859
it's possible with a lua script. mpv-easy has it.
>>
>>68822859
You mean having those buttons with
border=no
? I doubt that, but the best I can offer you are custom keybindings and the functions of your task bar (right click and close/maximize, click when focused to minimize and doubleclick to fullscreen). You might be able to somehow make a script for it, or a custom overlay/GUI for it, but I dunno much about those.
>>
>>68822868
Window chrome is on all the time and I'm on a laptop. I want chrome to appear when I move the mouse... just like the lower OSD.

And your argument is retarded.... since then why does mpv have overlays in the first place when it could have chrome to seek/play/stop etc like VLC?

>>68822886
Thanks! Will take a look at it. That's exactly what I'm looking for.

>>68822887
Yes, I use q to close but sometimes all I have is the access to a mouse since I'm streaming the video to my TV so I'd prefer something I can just click on. There's just no fucking way to quit mpv with a mouse unless I have the top border enabled...
>>
>>68822912
MBTN_MID quit
in input.conf
>>
>>68822912
>There's just no fucking way to quit mpv with a mouse unless I have the top border enabled
You could bind something like middle mouse/MB4/MB5 button to quit it or whatever. I usually quit it via my taskbar if I cba to reach for the q key.
>>
>>68822920
>>68822929
thanks. that's a possible solution. I'll still try that script anon suggested above 1st.
>>
>>68822886
>it's possible with a lua script. mpv-easy has it.
fuck.. it's all chinese to me.... literally.
>>
>>68810845
source?
>>
>>68810323
>>68812680
>>68811053
>>68815504
What's up with all these people that tamper with mpv? It works just fine on its own for me, and it can even play flac and mkv without having to hunt for codecs all day
>>
>>68823080
enjoy your ear rape in ylyl threads
plus there's some defaults i don't agree with
like the seek with the mouse wheel

WHEEL_UP        add volume 5
WHEEL_DOWN add volume -5
WHEEL_LEFT ignore
WHEEL_RIGHT ignore
F5 script-message-to encode set-timestamp encode_slice
F4 af toggle compand=points=-80/-105|-62/-80|-15.4/-15.4|0/-12|20/-7.6
F3 script-message Cycle_Video_Rotate -90
F1 script-message-to blur_edges toggle-blur


also nice things for webms

[extension.webm]
volume=80
af=compand=points=-80/-105|-62/-80|-15.4/-15.4|0/-12|20/-7.6
panscan=1.0
fs=yes
loop-file=inf


it works because it uses ffmpeg
>>
>>68823080
>tamper
mpv is great even with defaults, yeah. But one of its greatest features is the customizability and that includes scripts.
>>
I just downloaded this media player for the first time. How do you play DVD-Rs (VIDEO_TS) on it?
>>
>>68823534
You can just drag the whole folder/dvd iso/dvd drive into mpv.
>>
Feels nice that igv still works on his shaders.
>>
>>68823542
That's what I initially tried doing, but when I drag the folder into MPV—
Firstly, all it does is create a playlist that plays all the files in the folder starting from top to bottom.
Secondly and lastly, the screen is unable to be interactive, which is not a surprise considering my first point.
It doesn't properly run as a DVD based media should. That's what I'm trying to figure out right now.
>>
>>68823965
You mean interactive menus and shit? I don't believe mpv can do that. I've never seen any player do this, actually.
>>
>>68823198
>WHEEL_UP add volume 5
WHEEL_DOWN add volume -5
that is so wrong. I have to have those reversed because the opposite makes way more sense.
>>
>>68810845
I'd be highly interested in this
Are you on github or something? What's it called? Where can I find it? Can I contribute?
>>
>>68823996
Ya, played similarly as if you're playing a real DVD in a physical DVD player, with the interactive menus working.
And yes, as far as I know, VLC and Media Player Classic is able to do it, when done correctly.
My .webm attached is how it looks like in VLC when a DVD-R (VIDEO_TS folder) is played properly.
>>
>>68823996
mpv removed dvd menu support
>>
>>68810343
>limit loud audio
why do it in mpv? i do this in pulse with a dyson compressor so it works with any application
>>
>>68824265
because only 4chan webms have JOHN CENA
>>
>>68824128
>I have to have those reversed
that must be a lot of effort for you fat ass
>>
>>68824275
i take it you've never watched a hollywood blockbuster?
i'd gas all the shitters that mix audio there
>>
>>68824295
if u mean like marvel movies and shit, no
i dont indulge in the jewish crap
but again you watch it with mpv not with audacious right
>>
>>68824314
i watch youtube and porn with browser, can't be bothered to paste links
>>
>>68824403
>paste links
$(xsel -b)
you don't have to
>>
>>68824440
that's still too much work, only to switch back to browser to pick the next video
>>
https://bpaste.net/show/f0bbb8f735e7
>>
>>68824476
u can also drag and drop
>>
>>68824476
I've an addon for the context menu. Way better cache, playback and controls in mpv, for skipping those boring parts.
>>
>>68824484
>>68824440
What does that do exactly?
I'm new to GNU/Linux.
>>
>>68825149
asks you what you want to do with that video you threw at it, either
play audio only
play the video
download it - audio or the video
see it's available formats

you bind that
>for i3
>bindsym $mod+F1 exec st -t MPV\ YOUTUBE\ DL .local/bin/mpv.sh
to a key like a shortcut of you put it in a .desktop for an icon launcher and
you Copy URL or just highlight it from the address bar and press your shortcut or click your icon to execute it
chmod +x mpv.sh if you put it in a .desktop's Exec=

xsel manipulates the clipboard
in this case it prints what you have copied
>>
File: 1540635256449.webm (2.07 MB, 1280x720)
2.07 MB
2.07 MB WEBM
>>68824157
search for streamchecker-server on github
>Can I contribute?
sure, hit me up on my_github_name@gmail and we can discuss project goals and find a better way to communicate than goolag mail. You can see my github / gmail username on the video too, I'm just dodging web crawlers.

>>68823002
just a random camgirl on chaturbate, sorry, no idea

>>68823080
So that I can see 2b ass rather than mpv logo, check for livestream's statuses without opening them in browser and watch torrents with seek function working. Because I fucking can. Vid related.
Note: I pre-downloaded a solid part of the torrent before recording the same thing "live" with my internet connection speed would take at least a minute, because of the torrent download times.

BTW, why does obs work like shit for screen capture? For window captures it works just fine.
>>
>>68825624
you can use just ffmpeg for that
https://trac.ffmpeg.org/wiki/Capture/Desktop
>>
File: 1537143640358.webm (2.68 MB, 1280x720)
2.68 MB
2.68 MB WEBM
>>68825671
Better, but still far from good. Maybe I need to disable compositor or gpu acceleration in general.
Real-time recoring this time (no pre-downloading)

Also
>Video too large (video: 1440x2560px, max: 2048x2048px)
REEEEEEEEEEEEEEEEEEEEEEEEEE
>>
>>68825890
>Maybe I need to disable compositor
probly
werks 4me
>>
>>68826598
Yeah, it seems that was the problem. Thanks for the ffmpeg tip, I had no idea it could do things like that.
>>
I know very little about mpv.
I mostly watch anime. I'm on Windows.
This is the mpv.conf I was using about a year ago when I gave it a shot.

profile=gpu-hq
gpu-api=vulkan
vd-lavc-dr=yes

scale=ewa_lanczossharp
cscale=ewa_lanczossharp

tscale=oversample
video-sync=display-resample
interpolation=yes
temporal-dither=yes

#Subtitles
sub-ass-scale-with-window=yes
sub-scale-with-window=no
sub-use-margins=no
sub-blur=0
sub-auto=fuzzy
slang=eng,en
alang=jpn,jp,eng,en

#screenshot options
screenshot-format=jpg
screenshot-directory=C:\Users\Butthole\Pictures\Screenshots
screenshot-template="%F%p%wT"

[extension.webm]
loop-file=yes
[extension.gifv]
loop-file=yes
[extension.gif]
loop-file=inf


How much of this is still relevant? Is there anything I should remove or anything I should add? I have CPU and GPU to spare.
>>
File: 1530794438044.jpg (154 KB, 1312x555)
154 KB
154 KB JPG
>>68810845
>>
>>68828359
Seems alight, although I'd get custom shaders rather than lanczos filters. https://gist.github.com/igv
>I have CPU and GPU to spare.
Download shaders from the link above, create "shaders" dir in your mpv folder, delete this:
scale=ewa_lanczossharp
cscale=ewa_lanczossharp

and add this instead:
dscale=gaussian
sigmoid-upscaling=no
gpu-shader-cache-dir=~~/shader-cache
glsl-shader=~~/shaders/SSimDownscaler.glsl
glsl-shader=~~/shaders/SSimSuperRes.glsl

done.
You may also want to check other user's shaders listed somewhere on mpv's wiki, FRXCNN or how it's called is definitely worth mentioning but really resource heavy.

No bloody idea about gpu apis, have someone else look at it.
>>
>>68828755
>sigmoid-upscaling=no
Why?
>>
>>68828955
>https://gist.github.com/igv
>Locality is the main parameter to control sharpening strength, lower - sharper. Works a little bit better when sigmoid-upscaling is disabled. Comparison: https://diff.pics/cHCnuHd-tfFX/1
>>
>>68829236
Same for adaptive-sharpen now. Interesting.
>>
File: 1542900372264.jpg (92 KB, 274x294)
92 KB
92 KB JPG
>>
You guys better use error diffusion dithering.
>>
>>68828755
Thanks a ton for this! Things are looking great. I really appreciate your help, anon.
>>
I'm a pleb who needa a gui. What do you guys think of https://github.com/cmdrkotori/mpc-qt ?
>>
Why is xantoz so based
>>
>>68831793
I don't mean this in an antagonistic way, I'm asking honestly. What, specifically, do you need a gui for? Have you tried mpv yet? It has an on-screen display that pops up and offers most necessary options.
>>
>>68825890
i like your pape
>>
>>68828755
on linux/nvidia 1050ti, using these settings and >>68828359
works fine on window, but going to fullscreen causes all kinds of skips and framedrops
>>
>>68833431
nvidia drivers on linux are shit, my 1070 with free drivers is barely better than intel HD
>>
How can I make every video loop except when I have a playlist loaded?
>>
>>68833431
on linux, i always had to disable
video-sync=display-resample
or things would get weird
>>
Can I static link dav1d in loonix mpv yet?
>>
>>68833622
works just fine without shaders, though i still get some framedrops with vulkan, but none with gpu-api=opengl

what works best for me is this, see comments
profile=gpu-hq
hwdec=nvdec-copy #or nvdec
hwdec-codecs=all

vo=gpu
gpu-api=opengl
gpu-hwdec-interop=auto
gpu-context=x11probe
spirv-compiler=auto

#i use these for my monitor
icc-profile=/etc/32ud59-b-rtings-icc-profil.icm
hdr-compute-peak=no

#with these commented out or not
dscale=gaussian
tscale=oversample
video-sync=display-resample
interpolation=yes
temporal-dither=yes
correct-downscaling=yes
sigmoid-upscaling=yes

#are these needed?
vd-lavc-dr=yes
vd-lavc-threads=16
deband=no

with the 1050ti i can play 4k/60fps no problem, no drops (unless it's hdr but even then it's minimal, 1-5 frames drop per 30seconds and only on streams). 1080p, 4k30fps or anything else is fine, no drops

using the vulkan settings from before i'm getting 300-500 framedrops/30seconds on a 1080p video

but again, windowed works fine even with shaders on vulkan, it's just the fullscreen that goes crazy

>>68833728
i usually dont enable it, but i tested it and it was fine as explained above
>>
>>68834012
Try each
x11-bypass-compositor=fs-only
opengl-waitvsync
vd-lavc-dr=no
gpu-context=x11

Also check out
fbo-format=
. Can I get a screenshot of your timings? I'm assuming you're on X11.
>>
>>68834123
>
fbo-format=

i have it set to rgba32f

with
x11-bypass-compositor=fs-only
vd-lavc-dr=no

no difference
next post shows the dropped frames
>>
>>68834229
>>
>>68834237
the video itself is this format:

Source : HDTV
Container: MP4
Video: x264, 8721Kbps, 29,970fps, 1920x1080, 16:9
Audio: AAC, 192bps, 48KHz, 2ch
Size: 8.01 GB
Runtime: 2h 11mn
>>
>>68834229
Well, your average is 35ms, but to render 60 frames per second, you can afford to render a frame at ~16.6ms max. Are you using the proprietary Nvidia drivers? Can you confirm that your GPU is clocking correctly for the performance it needs? If you are on the proprietary drivers already, I suggest turning v-sync on in the drivers and disabling v-sync in the compositor. That might give you some performance as well.
>>
>>68834229
Oh yeah, I also recommend trying vdpau or vaapi (read the manual, it's not always "safe") for your hwdec.
>>
>>68834293
yes and yes, proprietary and gpu works fine (like i said, it does 4k 60fps no problem on opengl)
it's a vulkan issue for sure, perhaps related to that bug with display-sync or something similar
see screen for timings without vulkan/shaders (opengl w/interpolation)
>>68834336
i've tried those previously, nvdec[-copy] is the best option i've found for 4k
>>
>>68834352
where in the world do you get WWE streams in such high quality?
>>
>>68834385
tpb ;^)
>>
>>68834385
>>68834387
i used to be in that one wrestling group that shared all the hq torrents but i never shared so got kicked out, but found the tjet 1080p magnets on tbp
>>
>>68834352
vulkan-async-compute
vulkan-queue-count=2
improves vulkan performance a lot for me, but I'm running a vega. Anyway, what I said about the timings still stands: you either need to find flaws in your setup and squeeze more performance out of it, clock your GPU higher or lower your settings. You're doing ~14ms here already, so you will surely have performance problems with shaders at this resolution. You can use https://github.com/wiiaboo/mpv-scripts/blob/master/auto-profiles.lua to automatically change your settings depending on video resolution, frame rate, etc.
>>
>>68834446
ah well, i'll keep playing with it, but truth be told, shaders dont seem to improve quality all that much over gpu-hq for me and the other settings here for me >>68834012
>>
>>68834506
They're situational - you don't seem to downscale that much, for example. The superres with 100 locality is great for anime, and the 1000 locality one for live action. You again won't notice much if the scaling is minimal, but I myself like the sharpening. Are you sure nvdec-copy is the fastest? The copy variants are usually really slow, and both vdpau and vaapi should have less (no) visual errors.
>>
>>68834579
screenshot w/vdpau
a lot more drops, and a lot more cpu being used (only in fullscreen)
and yes, nvdec-copy is slower than nvdec, but both are better than vdpau with opengl for me
>>
>>68834653
previous was without interpolation too, as is this (with nvdec[not copy]/opengl)
this one's teh best quality/least cpu usage, no drops
>>
>>68834653
>>68834689
only thing vdpau really gives me is drawing the osd without issues, which i do sometimes get on nvdec (with 4k content)
>>
>>68834653
Timings are a bit better in this screenshot.
Anyway, you can forget shaders at this res, I think. You'd need to reduce your timings by more than half. Make sure to consult the manual and read about the visual errors the various hardware decoders cause and make your choice. You can use software decoding for lower res video usually.
>>
>>68834721
well, on a whim i turned off 10bit in xorg.conf, timings still same
also on a whim, used hwdec=none, and you see the results, no changes with or without interpolation
maybe it's my cpu?
>>
>>68834865
You can tell if hwdec is working if it's stated in the 'video' line, like here: >>68834237 . What cpu are you using? How is your vsync set up?
>>
>>68834899
xeon x5470 @3.95ghz
vsync is on in the server and nvidia-settings
>>
>>68834911
i've also tried
 vulkan-swap-mode=immediate
opengl-swapinterval=0
opengl-pbo
[/code[
>>
>>68834911
Use only one vsync. I recommend ForceCompositionPipeline. If it tears, go with ForceFullCompositionPipeline, this is more performance intensive. Your CPU might actually be the bottleneck, but I am unsure how one would test this here. I suppose overclocking it or locking to to much lower clocks will be a decent test.
>>68834925
opengl-pbo
and
 vd-lavc-dr
might reduce performance. Leave swap-mode default.
>>
>64 open pull requests
Why is mpv so slow at merging shit
>>
>>68834983
ok so no matter what i change, it's still crappy on fullscreen with the SS Shaders
if i turn those off, timings are at 5-9ms

i even tried enabling these without SS:
 glsl-shaders="~~/shaders/compute/ravu-3x-r4-yuv.hook"
glsl-shaders="~~/shaders/gather/ravu-r4-yuv.hook"
glsl-shaders="~~/shaders/compute/ravu-3x-r4-yuv.hook"
glsl-shaders-append="~~/shaders/gather/ravu-r4-yuv.hook"

but they didnt seem to have any effect, at least they dont show up on the timings info screen

check this out tho, with SS and just the last one gl-shaders-append ravu-r4

there's something goofy with SS
>>
>>68835059
also gpu use (per nvidia-settings) is @100 with just SS, and <60% with that addition of ravu
>>
>>68835059
Ravu only works if you UPSCALE at a factor of 1.25 (I think) or more. You should also pay attention to the last part of their file name, the rgb ones are intended for everything, yours are for YUV video only. What is your screen resolution? Did you disable your compositor?
>>68835107
At what clock tier? It does increase both the core and memory clock, right? Considering GPU usage dropped, you might be looking at a cpu bottleneck. I just noticed you're using
gpu-context=x11probe
. Don't use probe. Use x11 or x11egl for opengl (whichever is faster) and x11vk for vulkan. I'd remove most of your config and start with
vo=gpu
profile=gpu-hq
hwdec=nvdec
gpu-context=x11

Remember that SuperRes works better with
sigmoid-upscaling=no
. gpu-hq sets it to yes.
>>
>>68835273
gpu-context=x11vk
that's the only one that lets me use vulkan for nvidia on x11
x11probe is only used on opengl
sigmoid-upscaling is off for vulkan

i changed ravu to rgb, and i still get the same as screenshot here >>68835059

so right now, vulkan is enabled, nvdec is on, gpu-hq is on with the changes you mentioned, SSimDownscaler and SSimSuperRes are both on along with ravu-r4-rgb.hook as -append

resolution i'm at is 3840x2160 so there should be no downscaling, right? we're going from 1080p->2160p so either ravu or SuperRes should turn on?
>>
>>68835408
for reference, this is what it show on these last settings
interpolation is still turned off for now
>>
>>68835440
and with interpolation on it jumps a bit to 20ms, and i start to see some drops
cpu usage goes way up of course
>>
>>68835408
Aye, which is why I recommended x11vk for vulkan, the vk there stands for vulkan. Use normal x11 for opengl or just remove the gpu-context line.I dunno if you can use both shaders together, but why would you want to? Ravu is mostly favored for anime anyway. Keep only the lines I've mentioned and the SuperRes one, remove the others for now.. What happens if you resize mpv when it's windowed?
>>
>>68835526
this is the config i'm ending up with
profile=gpu-hq
hwdec=nvdec
hwdec-codecs=all

vo=gpu #gpu vdpau
gpu-api=vulkan #vulkan opengl
gpu-hwdec-interop=cuda-nvdec #cuda-nvdec vdpau-glx auto
gpu-context=x11vk #x11vk vdpauglx x11probe
spirv-compiler=auto #needed for vulkan

icc-profile=/etc/32ud59-b-rtings-icc-profil.icm
hdr-compute-peak=no
fbo-format=auto

gpu-shader-cache-dir=~~/shader-cache
glsl-shader=~~/shaders/SSimDownscaler.glsl
glsl-shader=~~/shaders/SSimSuperRes.glsl
glsl-shaders-append="~~/shaders/gather/ravu-r4-rgb.hook"

scale=haasnsoft
cscale=haasnsoft
dscale=ewa_robidouxsharp

tscale=oversample
video-sync=display-resample
interpolation=yes
temporal-dither=yes

correct-downscaling=no
sigmoid-upscaling=no
vd-lavc-dr=no
vd-lavc-threads=16
deband=no


at window mode it stays under 10ms
fullscreen it goes to 20, and does not appear to drop more than a frame or two (and mainly when switching between stats 1/2)
resizing window keeps it under 15ms until i reach max screen size, then it goes up to 20 again as in fullscreen

this is with both SS and ravu on, and with interpolation, and it's so far not jittery like it was

other than the slight changes i made to the config, i redownloaded SSimSuperRes.glsl, looks like i had a version a few months old and that may have been the main issue
>>
>>68835670
i also commented out
#force-rgba-osd-rendering
which i think was messing up the osd stats
>>
File: bliss has had enough.gif (1.75 MB, 480x268)
1.75 MB
1.75 MB GIF
>>68835700
and of course now i run into the interpolation/nvidia bug with 1 core going to 100%
>>
>>68835670
just turn off all the fucking meme shaders that's why you're dropping frames.
delete all that shit out your config and leave profile=gpu-hq.
do a screenshot comparison between gpu-hq and your meme settings and i bet you can't even see the difference.
>>
>>68835741
well yeah, see >>68834012
my original config was using opengl/no shaders/nvdec

the point is trying to get vullkan to work with shaders and figure out what the issue was since it should in theory work fine on a 1050ti

i honestly see no difference in quality but i'm using some hq sources at 1080p -> 4k
>>
>>68835670
>
vd-lavc-threads=16

You've a 4 core 4 thread CPU, why 16 threads? Just remove that line. Make profiles with the auto-profiles script and leave out shaders from media that you're unable to handle. Do note that the stats screen takes a bit of performance as well, so you usually have a bit more headroom than it says.
>>
File: 1541965275293.png (38 KB, 652x357)
38 KB
38 KB PNG
>>68835000
There's no one to review the code apart from jeeb and he's Finnish so he's probably always depressed and drunk.
>>
>>68835774
Can't they give push rights to Haasn or some shit?
>>
>>68835765
yeah dont know why i still have that line

and for auto-profiles, it'll be
[nonHD]
profile-desc=cond:get('width', -math.huge) <= 1920
...

with the shader stuff stuck in there right? do i need to put any of the scale stuff there too? and does it go at the end of mpv.conf?
>>
is there a way to stop mpv -v from spamming
osd/libass: fontselect: Using default font family: (Source Sans Pro, 716, 0) -> /usr/share/fonts/noto/NotoSans-Black.ttf, 0, NotoSans-Black

when osd/stats is on screen?
>>
>>68836044
over 9000 hours in mpvs manual
--msg-level=osd/libass=no
>>
>>68836085
that's not in the manpage
where to find available modules?
>>
>>68836159
https://mpv.io/manual/master/#terminal
>>
>>68836170
i get it
statusline: 
streamcache:
osd/libass:
vo/gpu/vulkan:

are all module names yes?
>>
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Channel(s) : 2 channels
Channel(s)_Original : 6 channels
Channel positions : Front: L C R, Side: L R, LFE


what does this mean? is the audio 5.1 or stereo? can i has surround in my headphones?
>>
>>68810323
why doesn't vlc just copy mpv code. Is fucking trash lmao, the only "good thing" is the GUI.
What's the magic of mpv? Why does it work so good?
>>
>>68836433
It kinda does though. VLC uses libplacebo now.
>>
>>68835799
Not sure if that line is correct, but yes to all three questions.
>>
>>68836495
profile-desc=cond:get('width', -math.huge) < 1920

works
>>
>>68833684
get
auto-profiles.lua
from https://github.com/wiiaboo/mpv-scripts/blob/master/auto-profiles.lua
add
loop-file=inf
to your mpv.conf and then the following block to the same mpv.conf:
[noloop]
profile-desc=cond:get("playlist-count", 1) >= 2
loop-file=no
>>
>>68834579
>The superres with 100 locality is great for anime, and the 1000 locality one for live action.
I'd even say 10
>>
>>68835755
>the point is trying to get vullkan to work with shaders and figure out what the issue was since it should in theory work fine on a 1050ti
vulkan is twice slower than opengl with nvidia on linux
>>
>>68837041
I tried 10 first, like someone recommended here. It looked great in some places, but it had noticeable artifacting, so I left it at 100 which seems like the best compromise.
>>
so i'm trying to set up autoprofiles
 [UHD]
profile-desc=cond:get('width', -math.huge) > 1920
interpolation=no
tscale=oversample
correct-pts


[nonHD]
profile-desc=cond:get('width', -math.huge) < 1920
gpu-shader-cache-dir=~~/shader-cache
glsl-shader=~~/shaders/SSimDownscaler.glsl
glsl-shader=~~/shaders/SSimSuperRes.glsl
glsl-shaders-append="~~/shaders/gather/ravu-r4-rgb.hook"
fps=60
video-sync=display-resample
interpolation=yes
temporal-dither=yes

[full-hd]
profile-desc=cond:get('width', -math.huge) == 1920
glsl-shaders="~~/shaders/gather/ravu-r4-rgb.hook"
fps=60
video-sync=display-resample
interpolation=yes
temporal-dither=yes


it all seems to work, at least the video-sync and interpolation are correctly set for each profile (or non for UHD), but fps is set to 60 for all of them, and the shaders are applied to UHD in window mode (but not in fullscreen)

how do i let UHD stick to whatever the file wants, and ignore fps/etc and not load the shaders at all?
>>
>>68837202
nonhd profile is always active becuase -math.huge < 1920 evaluates to true before the file is loaded
change -math.huge to math.huge in that profile
>>
>>68836769
Thanks
>>
>>68837202
FPS is only used to define the correct exact refresh rate of your monitor in case it is improperly detected. Remove those lines, or at least add like 5 decimals.
>>
>>68837292
perfect
>change -math.huge to math.huge in that profile
explain that to me like i'm 5
>>
>>68837299
it may be placebo but fps=60 with the tscale/interpolation settings seems to make it go smoother to me for non-4k
>>
>>68837331
But does mpv properly detect your displays refresh rate? If not, then it's not placebo.
>>
>>68828359
>interpolation
>>
>>68837322
>>68837292
well now it doesnt set fps at all for the other two


>>68837340
it seems to detect it right?
>>
HDR when?
>>
>>68828372
faggot tabs
>>
Built mpv from source, whenever I use scaler haasnsoft or lanz..sharp I get:
shaderc: internal error: compilation succeeded but failed to optimize: MemoryBarrier: Memory Semantics AtomicCounterMemory requires capability AtomicStorage


and a blue video

Anyone a clue?
>>
>>68839247
nvm, I just saw
https://github.com/KhronosGroup/SPIRV-Tools/commit/7c38fee64ace499a4a3e57f12701acdb32621b55

Spirv-tools pushed this commit. this breaks some mpv scalers for me someone who isn't shy should test and post an issue about this on mpv issuelist..
>>
>>68831584
How?
>>
>>68834012
Did you try using "fullscreen windowed"? I have a kwin macro to maximize a window and use it rather than mpv's built-in fullscreen. Just a guess, but might be worth checking.
>>
>>68840005
Disable fullscreen in mpv.conf too, I believe that mpv tends to auto-fullscreen when window size == display size. I had to explicitly tell it not to go fullscreen.
>>
>>68840005
>>68840017
i dont see that macro anywhere, are you talking about in kwin rules or in kwin keyboard shortcuts?
i set mpv.conf to have fullscreen=no then set a shortcut in kwin to set fullscreen (mpv log shows window resizing but not going fullscreen)

anyway, i changed fbo-format to rgba16hf as suggested by haasn in his FSRCNN shaders page (he suggests it for most shaders there) and it seems to have improved performance quite a bit.
since i was using rgba32f before, this seems to point to the cpu being the main roadblock here

between the SS and FSRCNN what would be the recommended shader for non-animu content? (besides them all being memes of course)
>>
>>68840692
forgot screen, also prior to changing fbo-format, playing any content less than 1080p was actually worse (cpu-wise), now all 1080p and under seems to have similar performance to pic related
>>
>>68810845
just noticed play with mpd works with chaturbate yesterday
it was a good day
>>
File: 1534222023041.png (59 KB, 1280x720)
59 KB
59 KB PNG
>>68840692
pic related

>between the SS and FSRCNN what would be the recommended shader for non-animu content?
https://github.com/mpv-player/mpv/wiki/User-Scripts#user-shaders
nnedi maybe? Not sure, check the readmes and comparisons.
>>
>>68840934
youtube-dl works with like 500 different sites, it also has a generic extractor that works for basic stuff
>>
SSSR is mostly for small scaling factors (720p -> 1080p). Image doublers like FSRCNNX and RAVU are for bigger scaling factors (540p -> 1080p).
>>
>>68840692
https://artoriuz.github.io/mpv_upscaling.html
>>
>>68841058
>>68841062
>>68840960
cheers m8s
>>
>>68841062
Spline36 confirmed for the best native scaler. wm4 was right all along.
>>
>>68841445
>>68841058
Meanwhile I can't see a difference in any of the scalers when watching this old 4:3 dvdrip with low bitrate which is exactly where i would actually need it to.

Like, I made a shortcut to toggle the shader on off, (ravu and FSRCNNX), but I see 0 difference when going very close to the monitor?
>>
>>68841180
welp i'm going back to opengl and no shaders
sssr and fsrcnn are definitely best looking, but my cpu is the bottleneck and the video-sync bug is problematic
with opengl i can at least use video-sync without issues and using
  scale=haasnsoft
cscale=haasnsoft
dscale=ewa_robidouxsharp
tscale=box
video-sync=display-resample
interpolation=yes
temporal-dither=yes

seems good enough for 720/1080p->4k upscaling
once i build a new computer i'll go and check them out again
>>
>>68841753
ooops meant these options from that sphinx thing posted a few days ago
https://github.com/mpv-player/mpv/issues/2685#issuecomment-434665993

video-sync=display-resample
interpolation=yes
tscale=box
tscale-window=sphinx
tscale-radius=1.0
tscale-clamp=0.0
>>
>>68841062
>it's all psnr and ssim
>ssim even targets ssim as the name suggests
meh, use modern metrics like vmaf or psnr-hvs if you want anyone to really care about it
>>
When using my Windows tablet in portrait mode, how can I move the image to the top of the screen instead of the middle?
>>
>>68842616
Alt+UP
>>
>>68841793
>being this ass blasted
>>
How do I disable mousewheel input on linux?
>>
>>68843038
same as windows...
input.conf
AXIS_UP ignore
AXIS_DOWN ignore
>>
>>68839622
https://ffmpeg.org/ffmpeg-filters.html#toc-zscale-1

If you don't know how to apply it, just say it.
>>
>>68843118
cool and how do i get rid of the upper bar on the osd? the one woth the filename and cache size. i'd rather have bigger player controls
>>
>>68843387
Learn lua and edit osc.lua because it wasn't made for this kind of fine-grained control
>>
>>68843358
Uhh. I thought default fruit dithering was more than enough? I guess I need to disable mpv dithering completely and enable the ffmpeg's one? Why mpv has no native error diffusion dithering?
>>
>>68843484
Fruit it's more than enough (also mpv's optimized, that's the reason mpv has no native error_diffusion) and yes you should disable fruit if you want Floyd-Steinberg's error diffusion.

Anyway, if you have GPU enough u can give it a shot, fruit would be like and optimized Ordered dithering. Compare Ordered with FS here: https://en.wikipedia.org/wiki/Dither#Examples

Also, the formula is simple:

vf=zscale:d=error_diffusion
>>
File: 1520631944876.png (1.16 MB, 1280x720)
1.16 MB
1.16 MB PNG
Anyone knows how to toggle chapter list so it's always on?
>>
>>68844045
osd-msg3=${chapter-list}
in mpv.conf, toggle with O.
>>
>>68844045
To toggle alway-on:
<keybind> script-message osc-chapterlist 99999

And to turn it off:
<keybind> script-message osc-chapterlist 1


There's probably a better way to achieve it, but that's what I got.
>>
>>68843608
what's the opposite of dithering? i have a 10bit monitor, i dont need to dither away content
>>
>>68844891
just disable dithering
>>
>>68844510
Cool, but worse formatting and insanely large font size.

>>68844556
Good idea, but 99999 will expire if I say, go afk for several days. Not a real issue but still.

I ended up with a script that sets osc visibility for me based on file extension and pause state (I wrote it several months ago and added a "music_mode" to it now. In music mode osc is always visible and chapterlist is being displayed for 1 second every second. Not the most optimal solution, but works wonders.

Any ideas why
mp.observe_property('pause', 'bool', on_pause)

takes so long to trigger? It used to be almost instantaneous, I'm sure of that. And no, it's not because my periodic timer slows everything down. I checked.

Not a work of art, but eh, it works. Reminds me that I should re-do all of my mpv scripts and upload them to github or something. I have several cool ones.
https://pastebin.com/DVkTQfNv
>>
is there a flatpak with mvp git full? compiled with wayland, vulkan and that the gpu apis actually work
>>
oh the glorious mpv days are here again
>>
i converted updater.bat to updater.exe with admin privileges on windows to make updating easier.
>>
>>68843608
You have to compile ffmpeg and mpv for this, right?
>>
Has anyone used mpv and acestream launcher to watch streams on windows? A step by step guide would be nice because I can't figure it out.
>>
>>68847198
If your on a distro you probably should in order to make it work, here is already compiled in shinchiro's Windows builds.
>>
File: bakamp.png (110 KB, 794x502)
110 KB
110 KB PNG
Tried out baka mplayer and I love it. Any other good frontends that I should check out?

Also what makes people think that scaling the ui to the video size in mpv was a good idea?



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.