[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/mpv/ - user shaders
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 213
Thread images: 27
File: 1460134782003.jpg (276 KB, 1024x1024) Image search: [Google]
1460134782003.jpg
276 KB, 1024x1024
> Windows builds:
https://mpv.srsfckn.biz/
https://kawaii.imo.uto.moe/
https://sourceforge.net/projects/mpv-player-windows/files/


> User shaders:
https://gist.github.com/igv


> Low preset without interpolation:
vo=opengl:deband:blend-subtitles
hwdec=auto


> High preset without interpolation:
vo=opengl-hq:blend-subtitles
hwdec=no


> Low preset with interpolation:
vo=opengl:interpolation:blend-subtitles
video-sync=display-resample
hwdec=auto


> High preset with interpolation:
vo=opengl-hq:interpolation:blend-subtitles
video-sync=display-resample
hwdec=no
>>
> You can actually make it work with any scaling factor.
> You will need to configure it for every video though.
Why can't we compute this in the shader itself?
>>
>>54482154
>https://kawaii.imo.uto.moe/
>https://sourceforge.net/projects/mpv-player-windows/files/

What the fuck are these? What's wrong with the bitbucket builds from the last thread and all the others.
Sourceforge is sketchy as fuck and what the fuck is that other place? Virus?
>>
>>54482368
yeah because mpv.srsfckn.biz sounds very legit innit?
>>
>>54482368
kawai one has a nice installer
sourceforge one has ANGLE support
>>
>>54482424
Yeah but it's linked from actual mpv site/github though.

Just curious why suddenly these random links to sourceforge came from and this imo.uto.moe that looked like a jap virus page until I realised the css scripts were blocked.
>>
>>54482171
API limitations, maybe in the future
>>
>>54482433
>kawai one has a nice installer
I can't find links to the source of installer or how it's built. Seems kinda sketchy tbqh.
>>
>>54482475
Cool it's not an OpenGL limitation.
>>
>>54482458
Those are 3rd party builds made by those guys, neither of them looks sketchy to me.
https://github.com/Flat
https://github.com/shinchiro
>>
>>54482555
OK ty
>>
>>54482555
What is the fuck:
https://github.com/Flat/OnePunch

CIA and FBI in the same phrase...
>>
>>54482596
install mpv, goy.
>>
File: OnePunch.png (8 KB, 450x500) Image search: [Google]
OnePunch.png
8 KB, 450x500
>>54482596
>OnePunch is a network .cia sender for Nintendo 3DS consoles that works with the FBI installer. OnePunch is written in C++ and runs on Linux, OSX, and Windows. Please see the GitHub Repository for more information.

console shit wordplay
https://github.com/Steveice10/FBI
>>
> directx12 when?
http://scanlibs.com/introduction-programming-directx-12/
>>
I'm fixing up mpvmenu at the moment
I'm noticing some mistakes
>File Dialog relies on mpv to give an existing file path (Open File on the pseudo-gui won't work, for example)
>load_file titles the File Dialog with the same text as load_sub_file
>A lot of things break if the info for it cannot be retrieved from mpv
>Hardcoded IPC socket path

There are other things I'm missing, but basically I have to rewrite every function that tries to talk to mpv to check if the value it parses exists, and react properly. I'm also adding in more options to feel more feature complete with other standalone players.
>>
>>54482171
I plan on adding an RPN parser or something to let you calculate dimensions in the shader API, but it's slightly nontrivial (how to handle offsets?)
>>
>>54483019
>DirectX 12
anon..
>>
>>54483453
So not for tomorrow. :(
I will be patient and hope you'll find a solution. ;)
>>
Why some people from /g/ are against SuperRes, CrossBilateral and sharpeners like Adaptive Sharpen or FineSharp?
>>
>>54483896
Because they add distortions, sometimes severe
>>
>>54483977
These distortions are mostly invisible.
>>
>>54484030
>These distortions are mostly invisible.
http://screenshotcomparison.com/comparison/166725
>>
>>54484046
What are you using? Oldish avisynth script?
>>
>>54484089
That is the worst feature from madVR "thin edges"
>>
>>54484103
Ah ok, I think it's for a very specific purpose.
>>
>>54484046
I can't see differences but I am on my android phone.
Damned how to get source pictures from this image hosting.
>>
>>54484046
I like distortions, should I kill myself?
>>
>>54484089
state of the art madVR “technology”
>>
File: clownSuperXBRnoAR.png (2 MB, 770x1026) Image search: [Google]
clownSuperXBRnoAR.png
2 MB, 770x1026
>>54484278
Do you also set bass and treble to +10 dB in your equalizer because it sounds better?
>>
>>54483896
What's better than adaptive sharpen?
I tried majority of the shaders for sharpening and they all seemed worst.
>>54482368
I use the bitbucket one, any reason I should switch to the imo.uto.moe one?
>>54483266
>mpvmenu
Requirements

GNU/Linux

well dam
>>
>>54484442
Adaptive Sharpen is awesome but strength value from igv's shaders is a bit too high for daily use.
>>
File: win_mpv.png (203 KB, 512x512) Image search: [Google]
win_mpv.png
203 KB, 512x512
So much love for winfags in the git repository recently.
Devs are too kind. :D
>>
>>54484508
wm4 literally gets paid to support windows.
>>
Why doesn't anyone talk about lumasharpen.glsl shader?
Even my 9 year-old laptop can use it without drop.
https://gist.github.com/voltmtr/023ec76d1c22d3854863
>>
How do I know if I have frame drops?
>>
>>54482154
Do we seriously need a general for a media player to get the correct color and quality?

This shit could all be easily included with your install.
>>
>>54484658
Run mpv from command line.
>>
>>54484557
Oh so no cash, no love.
That's sad.
>>
>>54484731
>le we meme
>>
>>54484776
Should I say You Guys?
>>
>>54484731
As opposed to an entire circlejerk like doom9? I'll take this thread.
>>
> https://files.nyaa.se/HOW_DID_I_PLAYED_BACK.txt
:-(
>>
>>54484822
I am speaking of never having to extensively discuss this shit, 4chan or not.

How do you not just get a media player correct after all this time?
>>
>>54484844
>stop doing things I don't do!
>>
>>54484858
I can only wonder why you do it really, at least if such an effort is needed for this task I can only thank you for your pains to let me reap the benefits by reading sticky guides.
>>
File: bigshitsfromhumanass.jpg (202 KB, 1024x654) Image search: [Google]
bigshitsfromhumanass.jpg
202 KB, 1024x654
>>54484844
Because they are all shits.
>>
>>54484557
>>54484754
mpv had windows support long before wm4 got hired by plex
>>
>>54484844
90 percent of /g/ is about graphics cards and a single thread about video playback rustles you?
>>
>>54484876
You don't need to wonder, just do what you would do if this thread weren't here. This is also good advice for similar situations in real life.
>>
>>54484844
>How do you not just get a media player correct after all this time?
Multimedia is hard. Like, real hard.
>>
>>54484889
I'm not triggered just curious about why this would take such effort.

Cards and shit are a big topic and vastly complicated. This shit only has to do playback.

>>54484895
Ignorance is bliss then.
>>
>>54484617
it's not bad, I've tried.

Just not better than Adaptive Sharpen.
>>
>>54484617
It will be even better with the new user hooks system
>>
>>54484949
Yes but adaptive sharpen needs a much bigger GPU. It would be great to have something between lumasharpen and adaptive in terms of gpu usage.
>>
>>54484903
Real hard you say?
>>
>>54484910
>Cards and shit are a big topic and vastly complicated. This shit only has to do playback.
And yet mpv's man page alone is almost as long as GCC's. (~10,000 lines)
>>
>>54484046
My god.
>>
>>54485069
NNEDI3 users will defend this
>>
Post configs
###Video###
vo=opengl-hq:scale=ewa_lanczossharp:cscale=ewa_lanczossoft:prescale=nnedi3:prescale-downscaling-threshold=1.5
framedrop=no
hwdec=no

###Audio###
ao=alsa
audio-channels=5.1
volume=40

###Track Selection###
# Audio settings
alang=jp,jpn,Japanese,en,eng,English

###Subtitles###
slang=jpn,jp,Japanese,eng,en,English
demuxer-mkv-subtitle-preroll
sub-gauss=.8
sub-gray

###Screenshot###
screenshot-format=jpg
screenshot-template="/home/anon/screenshots/%F_%#04n_%p_[%tY_%tm_%td_%tH]"

###Playback Control###
[extension.gif]
loop-file=inf

[extension.webm]
loop-file=inf

###Program Behavior###
save-position-on-quit
ytdl

>>
>>54484975
care to explain?
>>54484989
I wish I could tell the GPU usage within MPV to check, however I think you are exaggerating the GPU usage.
>>54484046
To be honest, this does not happen with adaptive sharpen at all, it literally only sharpens the video.
>>54484837
Wonder why they removed it
>>
how do you add debanding on mpv
>>
>>54485112
>care to explain?
It can operate on the actual luma plane now instead of needing to half-ass the conversion from RGB
>>
>>54485112
>To be honest, this does not happen with adaptive sharpen at all, it literally only sharpens the video.
All nonlinear sharpen filters distort the features by definition. Yours just does it less. It still does it.

Some people prefer to watch the source as intended.

>>54485112
>I wish I could tell the GPU usage within MPV to check, however I think you are exaggerating the GPU usage.
On nvidia cards you can use
watch nvidia-smi
to monitor GPU usage.
>>
>>54485145
Guess I'll try it whenever is released.
>>54485163
>Some people prefer to watch the source as intended.
I mean, I don't mess with it much apart from adding sharpening and maybe contrast/gamma.
>>54485109
no shaders?
>>
>>54485277
Shaders are gay
>>
>>54485109
# Video settings
#vo=opengl-hq:post-shaders="~~/shaders/lumasharpen.glsl"

vo=opengl:interpolation:blend-subtitles:post-shaders="~~/shaders/ToGamma.glsl,~~/shaders/AdaptiveSharpen.glsl"
video-sync=display-resample

#vo=opengl-hq:blend-subtitles:post-shaders="~~/shaders/ToGamma.glsl,~~/shaders/AdaptiveSharpen.glsl"

#vo=opengl-hq:post-shaders="~~/shaders/AdaptiveSharpenoriginal.glsl"

#vo=opengl-hq:interpolation:tscale=catmull_rom:tscale-clamp:post-shaders="~~/shaders/AdaptiveSharpen.glsl"
#video-sync=display-resample

#vo=opengl-hq:post-shaders="~~/shaders/ToYUV.glsl,~~/shaders/RemoveGrain11.glsl,~~/shaders/RemoveGrain4.glsl,~~/shaders/FineSharpA.glsl,~~/shaders/FineSharpB.glsl,~~/shaders/FineSharpC.glsl"

hwdec=no

# Audio settings
softvol=no
softvol-max=180
volume=-1

# OSC settings
script-opts=osc-layout=box,osc-seekbarstyle=bar

# OSD settings
osd-font="Segoe UI"
osd-scale-by-window=no
osd-scale=0.6

# Subtitles
sub-text-font="Tahoma"
sub-text-font-size=40
sub-text-margin-y=50
sub-text-color="#FFFFFFFF"
sub-text-border-color="#0A0A0A"
sub-text-border-size=3.2
sub-text-shadow-offset=1
sub-text-shadow-color="#33000000"
sub-text-spacing=0.5

sub-auto=fuzzy
demuxer-mkv-subtitle-preroll
no-sub-ass
slang=English,eng,en

# Screenshot settings
screenshot-template=C:/Users/MotionzMedia/Pictures\mpv-screenshot-%n
screenshot-format=jpg
screenshot-jpeg-quality=100

# Window settings
keep-open=yes
autofit=60%

# Miscellaneous settings
save-position-on-quit

# Unknown and custom settings

# Extensions - Do not add custom settings that are not extension related below this line.
--ontop

#Playback
[extension.gif]
loop-file=inf

[extension.webm]
loop-file=inf

# Streams
ytdl=yes
ytdl-format=bestvideo+bestaudio/best


myshitty.conf
>>
>>54484731
>Do we seriously need a general for a media player to get the correct color and quality?
Since not even ITU or SMPTE have an idea of what they're doing, yes we do
>>
>>54484731
>>54485776
https://github.com/mpv-player/mpv/issues/534
https://github.com/mpv-player/mpv/issues/594
https://github.com/mpv-player/mpv/issues/2815
https://github.com/mpv-player/mpv/pull/3002

I'm pretty sure we might have set some sort of record for the longest single discussion involving technology (not SJW shit) on github.
>>
>>54486175
Seems like the only longer thread I found on GitHub is that bumblbee commit with 941 replies of image macros and memes.
>>
How can I make mpv select another output source for audio?
>>
>>54485426
Why do you use openg-hq and prescaler then, gay?
>>
>>54488540
see --audio-device
>>
>>54488653
would this make it default or just one time thing?
>>
>>54488720
Put it in your config file
>>
>>54488807
This is not working

--audio-device 'wasapi/{ed7f17e5-b139-4b58-bcb1-5411e36f3628}' (CABLE Input (VB-Audio Virtual Cable))


on mpv.conf
>>
>>54488852
Perhaps you should read more than just the bare minimum of documentation
>>
>>54488960
Let me guess it's only for linux.
>>
>>54488969
It's only for people with a base level of computer literacy. If you choose to interpret that as “only for linux”, so be it.
>>
>>54489014
k
>>
>>54489019
>>54488969
The syntax is wrong senpai, also wasapi is a Windows only thing
Anyways, why would you use Virtual Audio Cable? You can get a lot of DSP's from ffmpeg through lavfi, even more niche stuff like decent hrtf through openal, unless you really want to use some sugarflake VST they should have anything you need
>>
>>54489963
I want to try something by using multiple VAC's, and nah I tried at least 10 different ways to input the code but the manual is just shit at explaining how to do it.

Anyways, it's fine I just used MPC for it, thanks though.
>>
File: noscalers.jpg (114 KB, 1920x800) Image search: [Google]
noscalers.jpg
114 KB, 1920x800
vo=opengl-hq:interpolation:blend-subtitles
>>
File: scalers2.jpg (398 KB, 1920x800) Image search: [Google]
scalers2.jpg
398 KB, 1920x800
>>54490425
vo=opengl-hq:scale=ewa_lanczossharp:cscale=ewa_lanczossoft:prescale-luma=superxbr:prescale-downscaling-threshold=1.5:interpolation
>>
>>54490425
>>54490503
>jpg
>>
>>54490556
Oh, right, of course, that must be the problem. Please hold.
>>
>>54490600
also, is your source lower resolution than 1920x800? the thing about scalers is that they don't do much if you're not scaling
>>
>>54490556
>>54490600
Oh, actually don't hold, the .png files are too large, 4chan only supports 4MB and they come out to 4.6MB, I'd downsize them but then of course that would be the problem. Just know that they look identical as well.
>>
>>54490503
Do you even upscale bro?
>>
File: diff.jpg (791 KB, 1920x800) Image search: [Google]
diff.jpg
791 KB, 1920x800
>>54490425
>>54490503
  Channel distortion: MAE
red: 40.8831 (0.000623836)
green: 29.8776 (0.000455903)
blue: 49.9326 (0.000761923)
all: 40.2311 (0.000613887)

These are basically the same image.
>>
>>54490636
you could crop them
>>
Hey lumasharpen is very great on my laptop.
>>
>>54490688
because that is for UPSCALING
>>
Hey guys, this is my config, it's quite old and outdated but I never bothered fixing it, I mostly watch x264 720p/1080p videos on a 1080p screen, I'm using a mid-range GPU, what would be the optimal vo setting?

http://pastebin.com/raw/ab48YAQB
>>
There were a lot of updates for igv's adaptive-sharpen shaders.
>>
I'm thinking about creating a lua script for porn. What would be the best way to implement some string input? Say you have code like JUFD-170 or 0DC7147 and want to watch it. How could I pass that string as parameter to my script when I'm opening mpv?
>>
>>54492192
Depending on what you want to do, it might be an idea to use an add_load hook to add a fake url scheme. See ytdl_hook.lua (in-tree) for an example. Then you could do something like
mpv porn-script://JUFD-170
.
>>
>>54490503
>>54490425
no difference?
>jpg
>>54491835
>pastebin has been removed
>>
>>54484392
depends on the genre

>>54484046
both look great?
>>
File: screenshot 20160510.png (58 KB, 829x457) Image search: [Google]
screenshot 20160510.png
58 KB, 829x457
A freetard created a mpc-hc clone powered by mpv.
He is a little bit rude about current mpc-hc.
Would be great to have windows builds for retarded winfags.
>>
>>54494309
*forgot the link, sorry...
https://github.com/cmdrkotori/mpc-qt
>>
File: dummy_mpc_qt_icon.png (215 KB, 512x512) Image search: [Google]
dummy_mpc_qt_icon.png
215 KB, 512x512
>>54494309
What the fuck the logo is horrible!
Just made this dummy logo in 15s on my androphone...
And it's already better than the current one. :D
>>
File: rip_mpc_hc.png (30 KB, 512x512) Image search: [Google]
rip_mpc_hc.png
30 KB, 512x512
>>54494309
RIP
>>
>>54494309
i could try to compile it
>>
File: wtf_is_this_ugly_icon.png (71 KB, 829x457) Image search: [Google]
wtf_is_this_ugly_icon.png
71 KB, 829x457
>>54494309
Seriously!?
>>
Should I use d3d11va with angle over dxva2 now?
https://github.com/wm4/mpv/commit/2ec26b8396c8d44def148351ee370fde4b950cbf
>>
>>54494612
>Direct3D 11 video simplifies interoperability between Microsoft Media Foundation and Microsoft DirectX technologies.
>Using multiple APIs is harder to program, so using video on Direct3D 11 simplifies the programming experience and makes the app more efficient. The API provides more flexibility in using decoded and processed video.
>The Direct3D 11 API for stereoscopic 3-D video unpacks stereo frames into left- and right-eye images.
>It has parity with DirectX Video Acceleration (DXVA) 2.0 and DXVA-HD in decoding and video processing capabilities.
>It works in Session 0 for transcoding scenarios.
>>
>>54494753
So yes or no? ;)
>>
>>54494753
So what's the new hwdec=auto on dx11 compatible operating systems?
>>
File: 1.png (393 KB, 1920x1080) Image search: [Google]
1.png
393 KB, 1920x1080
Sometimes my stats.lua will say my monitors refresh rate is ~95 and I'll get a lot of mistimed frames. Anyone know what the problem is?
>>
>>54494823
>>54494992
d3d11va is used automatically with backend=angle
>>
Please stop it now!
>>
>>54484392
This old super-xbr result... Haha!
It is much better now...
>>
Can someone please tell me how to reduce the subtitle size in Mac?
>>
>>54484617
>>54484975
>>54485145
https://gist.github.com/voltmtr/8b4404b4e23129b226b9e64863d3e28b

Not sure if it's right, but here's a try to make lumasharpen work with user hooks
>>
>>54495500
Great!
>>
mpv is becoming a puzzle... and I hate it so much
>>
>>54495500
pyramid pattern seems more correct to me
>>
>>54494452
Could you create nightly builds somewhere?
>>
Any builds for OS X?
This one died.
http://sva.wakku.to/~chris/mpv_builds/
>>
>>54495338
sub-text-font-size=18
>>
>>54495740
Compile it yourself faggot
>>
>>54496045
I need an all-in-one installer to install compilation tools on windows.
Chocolatey is a bloated shit.
>>
>>54496424
Just install VLC.
>>
>>54496458
Nah it's a dumb shit with messy GUI.
>>
is there a way to save the volume between sessions?
>>
>>54495500
vec3 sharp = ori - blur_ori;

vec4 sharp_strength_luma_clamp = vec4(sharp_strength_luma * (0.5 / sharp_clamp),0.5);

float sharp_luma = clamp((dot(vec4(sharp,1.0), sharp_strength_luma_clamp)), 0.0,1.0 );

->
float sharp = ori.x - blur_ori.x;

float sharp_strength_luma_clamp = sharp_strength * (0.5 / sharp_clamp);

float sharp_luma = clamp((sharp * sharp_strength_luma_clamp + 0.5), 0.0,1.0 );
>>
>>54495619
>pyramid pattern
From the original hlsl lumasharpen?
>>
>>54496807
yes
>>
why using blend-subtitles?
>>
>>54490425
>>54490503
1. If you don't upscale the video, the result will be (virtually) the same. The only difference I can see in your settings is changing cscale from spline36 to ewa_lanczossoft which is a very minor difference.

2. You (ideally) need to be taking screenshots with an external screenshot tool, to get the exact output of mpv. The internal screenshot tool captures a screenshot of the source, not the rendered result.
>>
Will you integrate sharpeners like scalers?
vo=opengl-hq:sharpener=lumasharpen:sharpener-strength=0.65
>>
>>54496936
>The internal screenshot tool captures a screenshot of the source, not the rendered result.

>Ctrl s
>Take a screenshot, as the window shows it (with subtitles, OSD, and scaled video).
>>
>>54496950
Already integrated
 vo=opengl-hq:sharpen=1
>>
>>54496983
If you use that then okay. I was referring to the normal ‘s’ keybinding that most people end up using to make comparison images.
>>
>>54496950
>>54497002
They'll be removed from mpv and replaced by the user hook system.

The existing sharpeners in mpv are trivial hooks internally, already. Moving them to a file is easy.
>>
>>54497058
So will we need to update shaders files by ourselves?
Or will they be available in the main git repo?
Maybe a compilation flag to enable them?
>>
>>54496749
Why reduce calculating sharp from one dimension only? Is there a significance for this?
>>
>>54497190
It's a Luma, x==y==z, those are not dimensions, but rgb components.
>>
>>54497279
actually x = luma, y and z are both 0 (always)
>>
>>54497279
>>54497328
thanks, i don't know shit about colorspaces
>>
>>54496749
>>54496823
Updated with suggestions and added all patterns from original lumasharpen.
>>
>>54494999
Anyone?
>>
>>54499010
Maybe a driver issue?
What's your OS, GPU and VO line?
>>
File: BwLqQ1CCIAECOuu.jpg (23 KB, 500x375) Image search: [Google]
BwLqQ1CCIAECOuu.jpg
23 KB, 500x375
WTF! Haasn and sharpen shader!
I thought he was completely against all these sharpen shits.

Hope he will create the ultimate sharpen/enhancer shader.
>>
>>54499436
https://gist.github.com/voltmtr/8b4404b4e23129b226b9e64863d3e28b
>>
>>54494309
There's mpc-qt-git in the AUR now. Thanks to the maintainer.
>>
File: konqi.png (307 KB, 800x520) Image search: [Google]
konqi.png
307 KB, 800x520
>>54499747
Nice qt application.
>>
Angle vs Dxinterop?

Lanczossharp vs Lanczossoft?

interpolation:tscale=oversample vs no interpolation?
>>
>>54501145
Placebo
>>
>>54501377
Your mother is placebo
>>
>>54501145
>Angle vs Dxinterop?
dxinterop is faster and supports everything the opengl vo offers
>Lanczossharp vs Lanczossoft?
One is sharp and the other one is soft
>interpolation:tscale=oversample vs no interpolation?
interpolation if your display can't display 24 hz content
>>
>>54501727
Wow, rude!
>>
https://github.com/haasn/mpv/commit/77db5ba89

You can now make your user_hooks output textures at pretty much arbitrary sizes. This replaces the previous TRANSFORM field. (OFFSET is still used to compound offsets where appropriate)

With this change, all of my immediate plans for user_hooks are done. Now it could theoretically get merged (after maybe writing some documentation)
>>
>>54502986
>With this change, all of my immediate plans for user_hooks are done. Now it could theoretically get merged (after maybe writing some documentation)
Actually that's not entirely true, I still wanted to make them user-customizable (so you could add a user-facing configuration variable that the user can set in their config files).

That way it will be possible to e.g. have the equivalent of the current ‘unsharp’ shader or ‘deband’ shader move entirely out to a separate file.
>>
>>54502986
>>54503024
Amazing!
>>
>>54495500
basically this is kinda of a beta still? gonna try it in a few
>>
>>54494309
why
>>
>>54502986
thank you based haasn
>>
>>54503310
Freetards can't help but steal, envy and hold grudges against others.
>>
>>54495500
How do you add this to mpv?
>>
>>54503472
:user-shaders=path
>>
>>54491717
Not saying it is or isn't, just commenting on the images. If you want other images compared feel free to upload them.
>>
File: crop_openglhq.png (442 KB, 1000x500) Image search: [Google]
crop_openglhq.png
442 KB, 1000x500
>>54504522
How about these?

stock opengl-hq (with debanding and dithering turned off for sake of fair comparison and size)
>>
File: crop_sharp4.png (430 KB, 1000x500) Image search: [Google]
crop_sharp4.png
430 KB, 1000x500
>>54504616
ewa_lanczossharp at 4 taps
>>
File: diff2.png (362 KB, 1000x500) Image search: [Google]
diff2.png
362 KB, 1000x500
>>54504616
  Channel distortion: MAE
red: 227.562 (0.00347237)
green: 210.659 (0.00321446)
blue: 277.519 (0.00423467)
all: 238.58 (0.0036405)

These images are actually quite different in very select places, though they might not look it. You'd need about 13% fuzz in color representation to get them right. ~99.5% of the pixels are exactly the same.
>>
>>54504837
>though they might not look it
confirmed blind
>>
File: diff3.png (296 KB, 1000x500) Image search: [Google]
diff3.png
296 KB, 1000x500
>>54504837
Same images with 1% fuzz. Did you get it right?
>>
File: diff1.png (252 KB, 1000x500) Image search: [Google]
diff1.png
252 KB, 1000x500
>>54504880
Same images with 5% fuzz. These are our worst offenders. There are 734 of them.
>>
>>54504837
>~99.5% of the pixels are exactly the same.
Sorry, 99.5 of them actually aren't exactly the same. They're 99.5% similar to one another on average. Only about 24.2% of the pixels are actually identical.
>>
File: difference.png (326 KB, 1000x500) Image search: [Google]
difference.png
326 KB, 1000x500
>>54504837
Absolute error (normalized)
>>
>>54503024
Please let there be a special url for existing internal shaders, or placed in an official git tree somewhere so I can add it to build scripts. May I suggest using a git submodule in mpv's /etc directory? Please? Also if third-party programs are going to include a batch of semi-official shader, can they be passed through in base64 format? Thanks.
>>
>>54504967
Neat, I'm using Imagemagick for mine. What are you using?
>>
>>54505092
Imagemagick

convert crop_openglhq.png crop_sharp4.png -compose difference -composite -auto-level difference.png
>>
>>54505049
I was actually thinking of dumping them into /etc/mpv or something so you can use
~~/shaders/name.glsl
to refer to them.

But I've reconsidered. This is too ugly for stock things like debanding.

Instead I want to try integrating it with the --vf mechanism, so you can use commands like --vf-add or -vf-del as well. (It would work using a special vf_shader that parses+loads the shader and communicates it to the VO in a manner similar to vf_vdpaupp)

But I'm still undecided about that. Debanding might as well just stay in opengl-hq for now. (And unsharp masking isn't really that heavy to begin with)

super-xbr might go, though. I'm undecided, since the code in mpv right now is a bit more readable and easily tunable than the “compiled” GLSL versions IMO.
>>
>>54495500
makes the video really dark for me
>>
>>54506796
just checked, works fine.
>>
anybody managed to get mpc-qt to compile on windows

shit is giving me
mpc-qt-master\mpvwidget.cpp:-1: error: undefined reference to `mpv_opengl_cb_report_flip'
...
>>
Can this shader be used in sharpening shaders that use Gaussian blur? How much it will be better than approximated Gaussian blur?
http://www.geeks3d.com/20100909/shader-library-gaussian-blur-post-processing-filter-in-glsl/
or
http://callumhay.blogspot.com/2010/09/gaussian-blur-shader-glsl.html
>>
>>54507143
>>54507167
I don't see how this differs from the current shaders in any meaningful way except for doing separated processing (which I already suggested).
>>
Red Screen Of Death ;)
https://github.com/haasn/mpv/commit/2b4af6cc4fe8f65fc60a0b510fe685811ae33e56
>>
>>54507853
>Red Screen Of Death ;)
You know, great idea.

https://github.com/haasn/mpv/commit/93cb5b7885
>>
>>54506917
>for me
>>
>>54504488
>
:user-shaders=path

isn't supposed to be
:post-shaders=
?
>>
>>54502986
Maybe also add conditions when shader should be used, e.g
SCALED.w MAIN.w >
>>
>>54508324
nope
>>
>>54483266
Could you please post this as issues so there's less chance of me forgetting it?

I have to rewrite this script really. Ideally, gtk should run all the time in a separate thread. Unfortunately, I'm currently quite ill and can't give much time to this.

If you have any additions, pull requests are welcome, or I can give you write access.
>>
>>54507043
I've cross compiled it using mxe. I like baka-mplayer more.
>>
>>54508379
vo=opengl-hq:user-shaders=path="~~/shaders/LumaSharpenHook.glsl"

?
>>54482154
>
https://kawaii.imo.uto.moe/

are these updated more than the ones on bitbucket?
>>54508395
>baka-mplayer
Yeah it's a pretty good.
>>
>>54484442
>mpvmenu
>Requirements

>GNU/Linux

>well dam
Since IPC now works on Windows, you (or someone else) can modify it to work on Windows. I'm not using Windows so I didn't do it. Maybe it's just a matter of changing the ipc address.
Also, it should work on other *NIX OSes.
>>
>>54508422
without the ‘path’
>>
>>54508430
holy fuck I feel stupid
>>54508426
I wish I could get into coding desu, but I couldn't even get into CSS back in the day.
>>54508430
vo=opengl-hq:user-shaders="~~/shaders/LumaSharpenHook.glsl"

no dice
>>
>>54508463
Someone tell him already
>>
>>54508492
nah I'll figure it out this time
>>
File: 1463052262.png (2 MB, 1150x874) Image search: [Google]
1463052262.png
2 MB, 1150x874
>>54508492
You see I can make the shader work, but it still gives me a darker image, using
user-shaders
does not "activate" the shader, at all, compare to
post-shaders
.

This is what I get though.
>>
Blue Screen Of Death !?
https://github.com/haasn/mpv/commit/42f14c8dc19b60e087d156bc281dc63f5538d3e4
>>
>>54508563
user-shaders is not in the regular builds yet.
>>
>>54507043
It builds in MSYS2. That error could be because of an outdated libmpv.
>>
File: 1380683298454.jpg (110 KB, 998x974) Image search: [Google]
1380683298454.jpg
110 KB, 998x974
>>54508628
>>
>>54508628
>>54508656
>not just building the user_hooks branch yourself
>>
>>54508812
I mean I knew it was that.. I just didn't wanted to believe it
>>
Did you try luma-sharpen with adaptive-sharpen?
It's very noticeable and I like it very much!
You surely need to reduce default strength values.
>>
>>54509367
You don't need several sharpening shaders
>>
>>54509403
Not several but these two shaders work well together.
>>
Did anyone try all new LumaSharpenHook patterns?
https://gist.github.com/voltmtr/8b4404b4e23129b226b9e64863d3e28b

Which one is the best?
Is the slower one slower than adaptive-sharpen?
>>
>>54483019
Never. Vulkan soon. Just need proper documentation and drivers.
>>
File: BT (42).jpg (621 KB, 2400x3600) Image search: [Google]
BT (42).jpg
621 KB, 2400x3600
>>54510465
Soon like in 3 weeks or like in 9 months?
>>
adaptive-sharpen > * > * > lumasharpen
>>
>>54508638
Rhaaa it seems overcomplicated for just installing a video player.
https://wiki.qt.io/MSYS2
>>
Forgot to mention that both CrossBilateralSR and SuperRes require
fbo-format=rgba16f
>>
>>54511884
isn't this default value
>>
File: 7mFIHxR.jpg (573 KB, 1023x1371) Image search: [Google]
7mFIHxR.jpg
573 KB, 1023x1371
>>54511884
Why!?
>>
When cscale=bilinear without downloading shader files?
Thread replies: 213
Thread images: 27

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.