[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/ - the future is soon
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: 255
Thread images: 28
File: haasn_mpv_logo.png (236 KB, 512x512) Image search: [Google]
haasn_mpv_logo.png
236 KB, 512x512
https://github.com/mpv-player/mpv/compare/master...haasn:user_hooks
>>
meme player /v/
>>
You have 999.0212984958 picoseconds to convince me to switch to mpv from mpc hc
>>
>>54130649
Damn you are still using mpc-hc? Why?
>>
>>54130621
Top waifu
>>
>>54130669
It just works
>>
>>54130621
>all that glorious C code
>>
>>54130649
Today mpc-hc development:
- Fixing translation.
- Copy/paste lavfilters.

Today mpv development:
- Implement ffmpeg features in sane way.
- Make the perfect video/picture renderer.
- Implement a flexible system for custom shaders.
>>
>>54130699
Where are mpv's developers from?
>>
>>54130716
North Korea
>>
>>54130699
So mpc-hc is more mature and stable? Is that what you're getting at?
>>
>>54130731
No mpc-hc development is dead.
They just simulate dumb activity but they are overwhelmed.
>>
>>54130621
does it have a "just werks" gui yet?

otherwise why should anyone care? a computer's job is to automate things, not giving me work to do
>>
>>54130753
Okay archfag.
>>
Can we expect to use libmpv on mobile device one day?
Is it in the roadmap?
>>
>>54130769
Yes maybe the best available at the moment.
Now there are no tactile (pinch, zoom, ...) functions but who cares?
>>
>>54130776
???
>>
>>54130672
Yeah so cute.
>>
>>54130818
>zoom
https://mpv.io/manual/master/#options-video-zoom
>>
>>54130769
>does it have a "just werks" gui yet?
There are a few, but they all have tradeoffs. Baka MPlayer just werks, but it doesn't expose many of the features that make mpv worthwhile. Bomi exposes more features, but it's dead (for now.) mpc-qt is a promising new contender, but it's early in development.

For now, you're probably better off conquering your fear of the CLI and using the regular mpv.

>otherwise why should anyone care? a computer's job is to automate things, not giving me work to do
I wouldn't really describe mpv as "work." You don't have to change the configuration if you don't want to. Even its default settings are better than most other video players.

>>54130790
Maybe.
https://github.com/xyzz/mpv-android
>>
File: ZS4PxjN.jpg (65 KB, 500x500) Image search: [Google]
ZS4PxjN.jpg
65 KB, 500x500
Does mpv consider all subs are the same ?
I mean if a show have OP and ED applying changes will effect both of it?
>>
>>54131429
What?
>>
>>54130621
>mpv made by filthy saberfags
Dropped hard. Back to MPC I guess.
>>
>>54131938
How does mpv handle subs?
Some files have subs particularly anime shows, in a way such is that in single subs track, the (OP/ED/main sub/signs) are separated.
In MPC you can alter on without effecting the others, Is there such a thing for mpv?
>>
Is there nightly windows builds for mpc-qt?
It's already nicer than mpc-hc or mpc-be.
>>
>>54131092
He's talking about tactile crap, aka touchscreen shit.
>>
so why would i ever want to use this over any other media player ?
>>
Must weebs run their greasy fingers through everything that's nice?
>>
Error parsing option scale (option not found)
/home/ananymouse/.config/mpv/mpv.conf:2: setting option scale='ewa_lanczossharp' failed.
Error parsing option cscale (option not found)
/home/ananymouse/.config/mpv/mpv.conf:3: setting option cscale='ewa_lanczossoft' failed.
Error parsing option prescale-luma (option not found)
/home/ananymouse/.config/mpv/mpv.conf:4: setting option prescale-luma='nnedi3' failed.
Error parsing option prescale-downscaling-threshold (option not found)
/home/ananymouse/.config/mpv/mpv.conf:5: setting option prescale-downscaling-threshold='1.5' failed.


How fucked am I?

I can take this /stq/ if that's a better idea.
>>
>>54131956
what
>>
>>54132364
You're using an outdated version of mpv.

Run
mpv --version
>>
>>54132373
Thanks.

mpv 0.17.0 (C) 2000-2016 mpv/MPlayer/mplayer2 projects
built on UNKNOWN
ffmpeg library versions:
libavutil 54.31.100
libavcodec 56.60.100
libavformat 56.40.101
libswscale 3.1.101
libavfilter 5.40.101
libswresample 1.2.101
ffmpeg version: 2.8.6


I just installed it from whatever comes in the Fedora repos. It seems like mpv is up to date though? Good idea though, maybe it's one of the other libs.
>>
>>54132428
Yup, it is up-to-date. Post your mpv.conf.
>>
how to adjust gamma with the mpv.conf on wangblows. i want to set it to 2.4.
>>
>>54132435
vo=opengl-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossoft
prescale-luma=nnedi3
prescale-downscaling-threshold=1.5


Legit copy/paste from one of the other memer threads. I was gonna try from the top down to see any differences for myself.
>>
>>54132452
Fix the formatting?
Anyway, mine uses finesharp and is:

vo=opengl:scale=ewa_lanczossharp:cscale=ewa_lanczos:dscale=mitchell:tscale=triangle:scale-radius=3:scaler-resizes-only:tscale-clamp:dither-depth=8:deband:swapinterval=1:correct-downscaling:interpolation:prescale-passes=2:prescale-downscaling-threshold=1.6:post-shaders="~~/shaders/ToYUV.glsl,~~/shaders/RemoveGrain11.glsl,~~/shaders/RemoveGrain4.glsl,~~/shaders/FineSharpA.glsl,~~/shaders/FineSharpB.glsl,~~/shaders/FineSharpC.glsl":no-sigmoid-upscaling 

video-sync=display-resample
hwdec=no
framedrop=vo
cache=262144

vd-lavc-threads=4
>>
>>54132469
Thanks, I thought that those were cli arguments. Sorry for being fucking retarded.
>>
How do I get the subtitles to show within the video itself like pic related instead of in the letterbox?

It's honestly very annoying.
>>
>>54131956
mpv uses libass, you can override and change individual styles selectively with
ass-force-style and ass-style-override
https://github.com/mpv-player/mpv/blob/master/DOCS/man/options.rst

I don't know if MPC lists all style names (how do you change it in MPC?) but can dig up individual style name with aegisubs to change it in mpv so you can do something like

ass-force-style="style_main.FontName=Arial,style_main.Bold=1"
ass-style-override=yes
>>
>>54132845
Why would there be a letterbox? Your monitor is 16:9.
>>
>>54132848
>how do you change it in MPC
From the subtitles menu, it lists all the styles,position, size colors etc.
>can dig up individual style name with aegisubs
That's one way to do it I guess.
It's annoying though, i watch stuff from distance so I need to enlarge the subs but end up enlarging everything.
>>
>>54132878
It's not; it's actually 5:4.
>>
>>54132845
mpv doesn't draw ASS subs in letterbox by default?
Anyway try

ass-force-margins=no
sub-use-margins=no



>>54132887
If you only want to scaling, mpv can differ between glyphs and normal fonts

sub-scale=2
ass-style-override=signfs


This won't scale signs and karaoke
>>
>>54132845
Using blend-subtitles=yes.

Example:

vo=opengl-hq:blend-subtitles=yes


Personally I fucking hate that, but it'll then render the subtitles inside the video instead of the letterbox.
>>
>>54132953
Thanks, that worked.

C-could you tell me how to make the font size smaller, too?

I'm new to mpv, sorry for asking too much.

>>54133001
Thanks, I'll check both and see which one works better.
>>
>>54133008
>>54133001
Nope, I use direct3d and it doesn't seem to work with blend-subtitles
>>
>>54133001
>blend-subtitles=yes
What does that do?
>>
>>54133008
You can change sub-scale between 0 and 1.

sub-scale=0.5 halves the relative font size
>>
>>54133118
Really, fucking thanks.

All my gripes with this player are solved.

(Yeah, it does look a bit tiny on this screenshot, but in reality it's bigger; no idea why it looks like that)
>>
Is there a GUI for mpv yet?
Or at least a GUI for settings?
>>
>>54133167
bomi
baka-mplayer
gnome-mpv
>>
>>54133167
You could use it with SMplayer, it has support for mpv.
>>
>>54133163
because your screen resolution is bigger than 1280x720
>>
>>54133163
Don't take screenshots directly from mpv. For some reason it doesn't take a screenshot of the upscaled version.
>>
File: 35511285_p0.png (830 KB, 1200x900) Image search: [Google]
35511285_p0.png
830 KB, 1200x900
Anyone get the arguments for "high-end" or whatever? Just wanna compare real quick.

Thanks!
>>
>>54133103
The post said exactly what it does.
>It will render the subtitles in the video instead of the letterbox.
>>
>>54133232
>For some reason
Read the manual?
https://github.com/mpv-player/mpv/blob/master/DOCS/man/mpv.rst
ctrl+s for upscaled shots
>>
>>54130621
Stop using my Saber to shill your garbage software.
>>
>>54133167
Tbh don't know why a GUI matters, just use bottom bar mode.
>>
>>54133177
>baka-mplayer
Segmentation fault (core dumped)
>gnome-mpv
Not what i'm looking for.
>bomi
Seems interesting but bloated.
I think I'll stick to stock mpv.
>>
>>54133342
For what reason?
>>
>>54133366
What about SMPlayer with the mpv backend? I at least like it. Also someone linked the MPC-Qt which I'm looking forward to.
>>
File: 1449801856390.gif (1 MB, 480x360) Image search: [Google]
1449801856390.gif
1 MB, 480x360
>>54133347
>my Saber
Get a load of this weeaboo trash.
>>
>>54133371
Design decision
>>
What is the cheapest htpc to use mpv awesome features?
>>
When could we use SSIMDowscale with Anti-Bloating on mpv?
This algorithm is just awesome, much more better than dscale with ewa_lanczos.
>>
>>54134008
when they merge
>https://github.com/mpv-player/mpv/compare/master...haasn:user_hooks
>>
File: aaaa.jpg (238 KB, 1293x792) Image search: [Google]
aaaa.jpg
238 KB, 1293x792
Does MPV have a feature similar to this?

Because it is so fucking comfortable it's ridiculous. and I don't want to ever use a media player without one again.
>>
>>54134140
Make one yourself or look in https://github.com/mpv-player/mpv/wiki/User-Scripts
>>
>>54134140
Yes, I personally use autosub which automatically downloads subtitles: https://gist.github.com/selsta/ce3fb37e775dbd15c698

Requires "subliminal" which you can download through Python's "pip install". It's a little pain to get working on Windows however, though it is possible. Basically you need to change the path to correspond with the Windows path system which uses \ instead of /, requiring the use of "C:\\Python\\bin\\subliminal" for example.

Should work about the same. There are other solutions to it as well, "find_subtitle" is another one, but I haven't tried it. Check the user script repo that mpv has.
>>
>>54134246
>>54134558
>No anime subs
>>
>>54134558
How do i make it so that mpv prefer the external subs rather than the one in the mkv?
>>
Oh shit! Why should I use it instead of mpc-hc/madvr?
Nnedi3 on mpv needs much more gpu than madvr for doubling!
>>
>>54134140
SMPlayer uses mpv and has that.
It's amazing for old people like my dad.
>>
File: mpv-screenshot-65c26def-picsay.jpg (196 KB, 999x445) Image search: [Google]
mpv-screenshot-65c26def-picsay.jpg
196 KB, 999x445
Why not adding SSIM, Bilateral, SuperRes, FineSharp and Adaptive Sharpen in mpv?
Madshi does it so why not?
>>
>>54135091
if you need it, integrate them then, this is open source, anyone can contribute.
>>
Could anyone create windows builds for mpc-qt?
https://github.com/cmdrkotori/mpc-qt
>>
>>54135223
>backlog

It's implied that the creator browses /a/, right?

I can trust him, /a/ can sometimes go to extreme lengths to improve their anime.
>>
>>54135218
I think it's not a good idea... ^^'
>>
>>54130790
Not long ago some anons compiled it and ran it in Android, but I believe that was broken upstream recently, and devs aren't planning to support Android anytime soon
>>
>>54133371
It's how it should be done, MPC-HC also does it like this
>>
>>54132449
What's the gamma in your monitor? If you have a ICC profile then you can add icc-profile-auto, it will target a BT.1886 gamma, which is 2.4 if your monitor has a black level of 0
If you don't you can subjectively change the gamma using the gamma parameter, there's a shortcut to change it on the fly
>>
>>54133822
A better CPU than a C2D and a better GPU than Intel HD3000, I would consider that the bare minimum for opengl-hq and for FHD hi10p h264
Though you probably can run with older CPU's and older GPU's, but on the GPU side you need at least OpenGL 3.1 support for opengl-hq, and at least OpenGL 2.1 for plain opengl
AMD APU's are pretty nice for mpv if you're on Windows, if you're on *nix a low end Nvidia GPU should be great
Pretty much any NUC should be able to run mpv though, recent Intel graphics are powerful enough for most mpv features
>>
>>54135494
>at least OpenGL 3.1 support for opengl-hq, and at least OpenGL 2.1 for plain opengl
OpenGL 2.1 for both
>>
>>54132887
Press 'j' until subs are the way you want them
>>
>>54135494
>Intel HD3000
Why everyone is saying it's bad GPU?
I've never run into issues with it.
>>
>>54135645
it's not
>>
So apparently MPV can play files over FTP.
What i want to do is make it load a specific .ass file to display as sub.
How do I go about that?
>>
>>54135645
It's just not fast in comparison to Nvidia/AMD, and the Windows drivers are trash
>>
>>54135744
>and the Windows drivers are trash
:backend=angle

and no problem
>>
>>54130621
>failing this hard
>>
How can you tell if shaders are working?
>>
>>54135810
set high sharpening strength
>>
>>54135744
>Windows drivers are trash
What about the open drivers?
>>54135787
What does that do?
>>
>>54135827
>What does that do?
will use directx instead of opengl, but you need unofficial build for that
>>
>>54135744
backend=dxinterop works fine with 4th+ gen intel drivers for some months now.
>>
>>54135855
4th+ gen doesn't include the 2nd gen HD3000
>>54135787
ANGLE lacks support for quite some opengl features, and Google won't fix ANGLE to the point that mpv devs aren't even shipping it anymore, and have replaced it with dxinterop
>>54135827
>What about the open drivers?
That means you're on *nix, in which case they're miles ahead from Windows
>>
>>54135940
>4th+ gen doesn't include the 2nd gen HD3000
I know, that's why I specified 4th gen. I'm just saying not all intel drivers are trash/shit.
>>
>>54135940
>ANGLE lacks support for quite some opengl features
ICC profiles only
>>54135960
>not all intel drivers are trash/shit
OpenGL is still shit on Intel
>>
>>54135940
>That means you're on *nix, in which case they're miles ahead from Windows
kek

https://github.com/mpv-player/mpv/wiki/FAQ
>OSX: Never seen it tearing.
>Windows: Fine other than old intel drivers
>Linux: Nvidia sometimes works, "Intel users on Linux are going to have a pretty bad time.", "AMD users on Linux are going to have a pretty bad time."
>>
>>54136023
never had tearing in mpv using the free radeonsi driver, they might only be referring to fglrx
>>
File: saber lion.webm (3 MB, 1280x720) Image search: [Google]
saber lion.webm
3 MB, 1280x720
>>54133407
She's my King.
>>
>>54136062
the load she received from Lancer sure filled her belly
>>
>>54131098
>Baka MPlayer just werks, but it doesn't expose many of the features that make mpv worthwhile
What do you mean by this? I was under the impression that Baka MPlayer could do everything that mpv can.
>>
>>54136080
There's two things goin with mpv.

mpv and libmpv.

All the fancy shit mpv can do for rendering is in libmpv, a library that can be integrated into other programs. mpv itself is basically a minimalist frontend for libmpv, just with a little lua interface.

bomi just straight up forked mpv into its own thing instead of wrapping libmpv. I think Baka does it right, but isn't that well made.

I just want something like that mpc-qt as a wrapper that edits my mpv.conf, has its own config file with its unique settings, but I want as few .conf files as possible.
>>
>>54136180
If I remember correctly, the Baka devs weren't pleased with how it currently was so they have spent the past several months starting over from scratch. Their new name is equally weeaboo, but I can't remember what it is.
Also, they are very responsive on their GitHub, have you tried pointing out the issues to them?
>>
>>54136180
>editing ONE config file is so hard
>>
>>54136180
>just with a little lua interface
Don't be little lua.
You can do a lot of neat stuff with it.
>>
File: MpcSuperior.gif (403 KB, 300x205) Image search: [Google]
MpcSuperior.gif
403 KB, 300x205
No reason to switch from mpc to mpv.
>>
>>54130716
Germany, Germany, Germany, Italy, German
>>
>>54133021
blend-subtitles is an opengl-only option.

Anyway, you want sub-use-margins. If that's off it should always draw the subtitles inside the video frame. At least it does for vo=opengl.
>>
>>54133274
Actually it will blend the subtitles directly onto the video stream, before postprocessing. That is a different operation than simply rendering the subtitles in the video instead of the letterbox. Again, that is controlled by sub-use-margins.
>>
>>54135091
>Why not adding SSIM, Bilateral, SuperRes, FineSharp and Adaptive Sharpen in mpv?
The changes linked in the OP is literally for exactly this purpose
>>
>>54135415
There's also the :gamma suboption to vo_opengl which lets you fine-tune a specific gamma adjustment value (e.g. for sake of testing).

In general though you should just use an ICC profile as mentioned
>>
>>54136043
radeonsi has garbage performance though
>>
Is it possible to ctrl+v a link in the pseudo-gui and start playing the file directly ?
It's kinda annoying having to drag-n-drop across multiple windows
>>
>>54138326
Baka MPlayer does that, but I think you'd have to script it yourself to make mpv do it.
>>
>>54135273
That's a general term, dork.
>>
File: 1458836540148.jpg (192 KB, 800x1135) Image search: [Google]
1458836540148.jpg
192 KB, 800x1135
>>54130621
I'll give it a shot, I usually download new programs if they use cute anime girl pictures.
>>
>>54135273
Amusingly enough, /a/ (and to a lesser extent, the anime community as a whole) has pioneered many of the great advancements of video playing. One such example is the Matroska Multimedia Container. The biggest reason that Matroska took off as much as it did is because fansubbers switched to almost exclusively using .mkv, which brought way more exposure to it than it would've otherwise gotten.
>>
>>54138326
It can definitely be done with a small lua script to run “xsel” and tell mpv to play the result of that.

Not sure if it can be done without lua, maybe?
>>
>>54138374
>>54135273
Also I don't mean dork in a harsh way so please don't get upset. Your feelings are important to me Anon.
>>
>>54138275
It's not _that_ bad anymore.

AMD is dropping fglrx and switching to AMDGPU-PRO based on FOSS drivers
>>
>>54138484
I thought they're just changing to the FOSS kernel module? That bit hardly matters. The OpenGL compilers, optimizers etc. will still be closed source as I understand it
>>
>>54138275
does the job for me

pic: using an HD7850, excuse the cpu usage, i'm encoding a video with ffmpeg as well
>>
>>54138326
There's an addon for Firefox to play links with mpv (right click link > play) and you can definitely make a generic bash script to run mpv on the clipboard contents, then bind that to a hotkey.
>>
>>54138520
Try upscaling to 4096x2160 with scale=ewa_lanczossharp
>>
So i've added all sorts of configs,shaders,scripts.
And not a damn thing has changed playing any sort of media
>>
>>54135855
broken with today's graphics driver update on t440
>>
I was gonna bitch about no auto subtitle downloader, but my torrents seem to have them already in my videos now and has been this entire past season or so, no complaints now

Oh but make it work on Android already
>>
>>54139802
>subs
filebot,has other tools as managing the names of your files without group names,encoding,etc
>make it work on android
>not using mxplayer
>>
>>54139880
>mxplayer
does not stream, I dont think
>>
>>54139898
It streams
>>
Useing vo=vdpau and hwdec=vdpau everything runs perfectly fine.Using any config opengl,opengl-hq,or any settings in the scripts,run like dogshit.
Why?
>>
File: haasn_god.jpg (485 KB, 1131x1600) Image search: [Google]
haasn_god.jpg
485 KB, 1131x1600
I can't wait to see all these non-placebo filters coming.
>>
>>54140095
You use an extremely old computer...
>>
>>54136580
Nigga I allready do that just fine.

What I'm saying is that any GUI program should make sure all mpv settings stay in mpv.conf

I want plain mpv, a gui version, and a libmpv based Kodi fork to all use the same rendering settings.
>>
>>54140111
5 years old
six core 5.1ghz
16gb ram
750ti 2gb gfx
>>
>>54136062
Lancer died!
>>
>>54130621
>>54140098
Someone has a good taste in waifus
>>
>>54140162
vo=opengl-hq should work without any issue.
Maybe a bugged driver.
Do you have dropped frames?
What's your gpu usage when playing a video?
>>
>Windows XP support has been dropped.

Blacklisted.
>>
>>54140404
No dropped frames,no tearing
Using nvida 364.16
Using big buck bunny 1080p60 it peaks at 44C
>>
>>54140430
44%
>>
>>54140430
>>54140440
Are you using a recent mpv build?
>>
>>54140460
Latest git:
mpv git-78346e9
>>
>>54140484
So even vo=opengl runs like dogshit?
Could you explain "dogshit"?
>>
>>54140551
Yes,even plain opengl
Stuttering every 1-2 seconds,seeking causes it to lock up and return to stuttering play around 3-5 seconds
>>
I fell for the mpv meme for a couple months. Back to using vlc like a normal person now.
>>
>>54140571
Do you get same behavior with other files too? It's really strange...
Did you try older builds too?
>>
>>54140624
Using latest stable(1:0.17.0)
Results in the same issue.
>>
>>54139953
I dont think so pal
>>
>>54140933
Open MX Player, press the three vertical dots in the top right corner and then press "Network stream".

MX Player does do streams you dong.
>>
>>54140975
I see "Please Donate"
nice try, friend
>>
>>54132312
Just try it
>>
https://github.com/mpv-player/mpv/commit/37a9bf9

There's now an external API for integrating with the hooks system.

You can use it like this (some demos):

Invert brightness and swap the color channels:
//!HOOK LUMA
//!BIND HOOKED

vec4 sample_pixel()
{
float luma = texture(LUMA, LUMA_pos).x;
return vec4(1.0 - luma);
}

//!HOOK CHROMA
//!BIND HOOKED

vec4 sample_pixel()
{
// you could also refer to the texture like this (instead of CHROMA)
return texture(HOOKED, HOOKED_pos).grba;
}


here's an example that saves LUMA to a 1/4th scale version of itself and then uses it to overwrite MAIN later:

//!HOOK LUMA
//!BIND HOOKED
//!SAVE LUMA_SMALL
//!TRANSFORM 0.25 0.25 0 0

vec4 sample_pixel()
{
return texture(HOOKED, HOOKED_pos);
}

//!HOOK MAIN
//!BIND LUMA_SMALL

vec4 sample_pixel()
{
return texture(LUMA_SMALL, LUMA_SMALL_pos);
}


Testing appreciated
>>
>>54141397
>
return texture(LUMA_SMALL, LUMA_SMALL_pos);

This should have been
>
return texture(LUMA_SMALL, LUMA_SMALL_pos).rrra;
>>
File: 1451505836174.jpg (88 KB, 320x740) Image search: [Google]
1451505836174.jpg
88 KB, 320x740
amd fluid motion when???
>>
>>54141397
Now say you want to write a chroma doubler that uses the luma texture to guide the upscaling operation, and which also introduces a shift of (-0.5,-0.5). You would do it like this:

//!HOOK CHROMA
//!BIND HOOKED
//!BIND LUMA
//!TRANSFORM 2 2 -0.5 -0.5

vec4 sample_pixel()
{
// you have access to CHROMA and LUMA textures, go nuts

}
>>
>>54141470
can I use variables? e.g
//!TRANSFORM 1/tex_size.x 1/tex_size.y -0.5 -0.5
>>
>>54141470
also how LUMA should be called?
texture(LUMA, LUMA_pos);
?
>>
>>54142244
No. Floats only. The TRANSFORM defines an orthogonal affine map; so you can only scale the texture by some multiple of the original.

>>54142301
Any texture that you bind (with
BIND name
) will be available as name.

So for example
//!BIND LUMA
lets you access LUMA (plus metavariables LUMA_pos, LUMA_size and LUMA_pt).

HOOKED is a special case, which magically refers to whatever texture you hooked.

Note that a shader can hook multiple textures, for example if you want to hook both CHROMA and LUMA.

There are more textures you can hook into, a complete listing:

LUMA, CHROMA, RGB, ALPHA, XYZ: for source planes of the respective colorspaces

NATIVE: source image before conversion to RGB (native colorspace)

MAINPRESUB: after conversion to RGB, before blending subtitles (with blend-subtitles=video)

MAIN: texture after conversion to RGB (but before linearization)

LINEAR: after conversion to linear light (this only exists if linear-scaling is enabled)

SIGMOID: after conversion to sigmoid light (this only exists if sigmoid-upscaling is enabled)
^- these two have some mild a cyclic logic issues; since sigmoidization/linearization is decided *before* these textures run, the decision is not changed afterwards. So if you use a shader that changes the texture size here, you could end up upscaling without sigmoid (or downscaling with sigmoid). Same for scaler-resizes-only

SCALED: upscaled. Don't change the texture size here or you will get a bad result
>>
Is it possible to record what's playing on mpv through obs? I'd like to make clips for /d2g/
>>
>>54142476
Oh, also changing the video size during NATIVE or MAINPRESUB will probably throw off blend-subtitles=video. Needs testing
>>
>>54142501
Why not just use WebM for Retards or FFMPEG?
>>
File: omdwzyhkoa.webm (3 MB, 1284x744) Image search: [Google]
omdwzyhkoa.webm
3 MB, 1284x744
>>54142501
If you want to make clips just use this

https://gist.github.com/Zehkul/25ea7ae77b30af959be0
>>
>>54142544
well I'm watching a livestream usually
>>
>>54142588
use livestreamer to save the stream to a file
livestreamer url -o filename

then make a webm from the video
>>
>>54142587
>>54142648
thanks my niggas
>>
>>54130649
Your OS spies on you.
>>
>>54130621
show me guides on how to setup mpv on ubuntu distros for anime experience
>>
>>54142476
>No. Floats only. The TRANSFORM defines an orthogonal affine map; so you can only scale the texture by some multiple of the original.
but what if it's unknown, what if I need to calculate it first?
>>
Can somebody help me out with a 'ytdl-format' line? I hadn't planned for 4k youtube videos when I set mine as:

ytdl-format=bestvideo+bestaudio/best


I've looked at a few configs that get posted on here and I just can't grok how exactly the line has to be set up. If somebody could help me out with two lines, one for 720p and one for 1080p (I'll comment out whichever I'm not using at the moment) that still just uses the best possible audio, I'd highly appreciate it!
>>
>>54141397
>mpv.exe has stopped working
and with
icc-profile-auto

player doesn't show up at all
>>
>>54143613
--ytdl-format=bestvideo[vcodec=vp9][tbr<1500]+(bestaudio[acodec=opus]/bestaudio)/best

Replace 1500 with whatever is the maximum bitrate you can get through your internet, and replace vp9 with h264 if you prefer h264 over vp9
>>
>>54143613
For what you want
[codec]--ytdl-format=bestvideo[width<=1080]+(bestaudio)/best[/code]
Replace 1080 with 720 for 720p
>>
>>54143016
Add the PPA so you get the latest updates:
sudo add-apt-repository ppa:mc3man/mpv-tests


Install mpv:
sudo apt update && sudo apt install mpv


Create a config file:
mkdir ~/.config/mpv/
touch ~/.config/mpv/mpv.conf


Open the config file (either
nano ~/.config/mpv/mpv/mpv.conf
or just navigate there and open it in gedit) and paste this in:
# Video settings
vo=opengl-hq:scale=ewa_lanczossharp:cscale=ewa_lanczossoft:prescale-luma=nnedi3:prescale-downscaling-threshold=1.5
hwdec=no
framedrop=vo

# Audio settings
ao=alsa
alang=jpn,jp,eng,en

# Subtitle settings
slang=eng,en
ass-force-style=Kerning=yes

# Output some video stats
term-playing-msg='Resolution: ${width}x${height}, Framerate: ${fps} fps'


Save it and you're good to go. If you want to customize the look of your OSD or subtitles or anything like that, you can do it later by amending the config file. Enjoy.
>>
>>54143695
>>54143750

Alright, awesome, thanks guys!
>>
>>54143867
Oh, sorry, added an extra '/mpv/' in the command to open the config file, should just be:

nano ~/.config/mpv/mpv.conf
>>
what is left to develop in a media player and why should I switch to mpv
>>
>>54143867
>>54144183
Didn't expect a serious reply
Thanks a lot
>>
>>54144433
mpv lets you watch a lot of videos from websites in your local player through YouTube-DL and RTMP, plus it's just higher quality playback with support for high end scalers, highly customization in terms of the interface and controls, and it gets the fuck out of your way when you want to watch something.
>>
>>54144446
No problem. Had some time and I was hanging out in here anyways since I'm >>54143613
>>
>>54130790
should be
you can expose C into objective-c
this is how SDL (and ffmpeg) works on iOS
>>
so what's the best config for anime? What shaders, filter, etc., to do
>>
>tfw trying to update to the lastest mpv on debian
>shouldn't be too hard, if there isn't a deb file there must be a repository
>no repository, I have to compile
>sure no problem
>"warning, very buggy, i-it's probably because of debian and not us"

lol you guys, I guess IT NEEDS to be very difficult with mpv, otherwise it isn't good
>>
File: small_worlds-big_worlds.jpg (27 KB, 599x337) Image search: [Google]
small_worlds-big_worlds.jpg
27 KB, 599x337
>le meme player guy

Literally a player for retards that want to be special because their player has no interface in the current year of 2016, kill yourselves fedora wearing faggots.
>>
File: ye5udHZ.gif (3 MB, 320x180) Image search: [Google]
ye5udHZ.gif
3 MB, 320x180
What you actually look like.
>>
>>54130649
If you use madvr you shouldn't
madvr has a better AR algorithm
>>
>>54144591
yeah, except that it worse
>>
>>54144565
It does have an interface, it doesn't have a menu.

When I watch a movie I don't need a menu.
>>
>>54144696
Can you show me a screenshot of the interface please?
>>
>>54141397
Everything should be in one file now?
>>
File: mpv-screenshot-f4a039a3.jpg (161 KB, 999x445) Image search: [Google]
mpv-screenshot-f4a039a3.jpg
161 KB, 999x445
>>54144743
Maybe this one from their website?
>>
>>54144836
Cool, can we see the settings now?
>>
>>54144852
>It does have an interface, it doesn't have a menu.

>So can we see the menu?

No.
>>
>>54144565
I too like to click through menus while I watch shows.

It's strangely relaxing.
>>
>>54144565
I will never understand why people want an interface for media consumption, when I open an image I want to look at the image, when I open a video I want to watch the video, when I open a pdf I want to see the text, what's this obsession with menus and features? If I wanted to edit the media I'd use something else made for that but I don't want to do that, I just want to consume itt

My image viewer is impression eyes and it only shows the image, you can setup mpc and mpv to display only the video, why would you want something surrounding the media taking up screen real estate and just generally being a distraction in view?

>>54144852
mpv uses a config file, you can use whatever you want to edit it. Why you would need to edit a video player config is beyond me though for the reasons listed above, by default mpv plays videos, what is there to configure? It's not like VLC where the user has to go into the settings just to fix the color problem,l or mpc where you have to turn off the ui. Seriously I don't understand this, I'm not trying to be contrary or anything I just do not get why people focus on secondary or even tertiary things, it's a video player and it plays videos, why does it need a ui, what settings do you even want to change, why do you need a ui dedicated to changing a setting that you'll only ever see and use once to change the config forever?

How much time do you spend in other media players messing with the settings?
>>
How would I edit the Baka MPlayer .ini to optimize my animu experience?
>>
>>54138519
fglrx-userspace wont be a bitch in yo ass anymore though. also kms with closed source drivers will be pretty sweet for the fags who care.
>>
>>54143750
So I set this one and it does work, I'm not getting 4k anymore, but it's always defaulting to the lowest possible resolution. Is there a way to make it 720 minimum as well as 1080 maximum?
>>
>>54145716
Try replacing width with height, so it's [height<=1080]
>>
>>54135415
>>54138253
I'll try these today. Thank you. I've subjectively changed it a bit lower than default using the shortcuts but I'd rather have it set into a specific value by default.
>>
>>54143088
Example of when that would be needed?
>>
>>54143691
Post log, preferably with -v or
--msg-level=vo=debug
, of it crashing.

Also icc-profile-auto works fine for me.
>>
>>54144537
>lol you guys, I guess IT NEEDS to be very difficult with mpv, otherwise it isn't good
Correct: It needs to be very difficult with debian. Other distros have no such problems.

emerge mpv
works just fine over here.
>>
>>54144829
Yes
>>
>>54145716
I would personally doing it like this instead: >>54143695

As long as your internet can handle it, there's nothing wrong with downloading 1440p or even 2160p video. The quality will always be higher even on 1080p displays.
>>
>>54145833
Ahh, that makes sense, it worked. Thanks dude!
>>
>>54146870
Yeah, I added both, figured I'd swap commenting them out and see what I end up liking better. I've got a bit in my config that prints the active resolution and framerate being played back, so I can see what it's doing.
>>
File: stallman_mpv.jpg (132 KB, 800x484) Image search: [Google]
stallman_mpv.jpg
132 KB, 800x484
The mpv repository is my bible...
>>
>>54130645
oh hai grandpa. vlc still supports mpc-hc & vlc is see...
>>
>>54146823
http://pastebin.com/NVdvtLGq
>>54146811
SuperRes. To downscale upscaled image to source image size.
>>
File: mpv_matrix_wall_1920x1200.jpg (709 KB, 1920x1200) Image search: [Google]
mpv_matrix_wall_1920x1200.jpg
709 KB, 1920x1200
So will madvr become obsolete?
Is this why madshi doesn't update it anymore?
>>
>>54147509
>http://pastebin.com/NVdvtLGq
Hmm, I can't tell what's wrong from this alone. But I also don't have Windows so I can't test it.

Any chance you could get a backtrace and ideally a bisect of which commit causes the crash? Is it only icc-profile-auto that triggers the crash, i.e.
vo=opengl:icc-profile-auto
?

>SuperRes. To downscale upscaled image to source image size.
I don't understand. Why would this shader need to do that? What exactly does it do?

You can't modify anything post-upscaling either way, since after that point the image wouldn no longer match the display size.
>>
Everytime I use mpv, my video card overheats and starts throttling.
>>
>>54147550
this is after the latest commit 37a9bf9, it crashes even without config.

>Why would this shader need to do that? What exactly does it do?
it subtracts original image from downscaled and uses that info for repairing.
>>
>>54147636
>it subtracts original image from downscaled and uses that info for repairing.
Still not sure if I understand entirely, but you can access the original (non-upscaled) image in the post-upscaling pass.

So for example:

//!HOOK UPSCALED
//!BIND HOOKED
//!BIND MAIN

vec4 sample_pixel()
{
// you can sample from the MAIN texture (using MAIN_pos, MAIN_size and MAIN_pt for reference)
// and use this information to change HOOKED (without requiring re-sizing)
}


If you need to do your processing at a lower resolution for efficiency, you could hook on MAIN, do the processing there, save the result as a temporary image, and access it in the final UPSCALED hook later.
>>
>>54130753
>they are overwhelmed
The last time I checked, mpc-hc does everything I want it to. What is mpc-hc overwhelmed with? Users' gratitude?
>>
>>54140135
use symlinks?
>>
>>54147667
yes, but upscaled image should be downscaled (it won't overwrite upscaled image), substracted and than that diff of original image size will be used in a main shader to repair upscaled image.
>>
mpv = botnet
>>
File: MPC-HC1.png (100 KB, 447x509) Image search: [Google]
MPC-HC1.png
100 KB, 447x509
Is it as Kawaii as the Kawaii Codec Pack though?
>>
>>54147733
So let me get this straight:

1. You upscale MAIN using the main scaler (call it UPSCALED)
2. You then *downscale* this upscaled texture back to the size of MAIN
3. You then subtract MAIN from this (downscaled version of it)
4. You then upscale that difference back to the size of UPSCALED and use it to modify the final result?

What the fuck? I can't be reading this correctly.
>>
>>54147764
>1. You upscale MAIN using the main scaler (call it UPSCALED)
no, this shader doesn't upscale anything, it works as post-shader, only requires diff of its downscaled image and original
>You then upscale that difference back to the size of UPSCALED and use it to modify the final result?
no, it doesn't upscale that diff
>>
>>54147793
>no, this shader doesn't upscale anything,
Yes but mpv does

>no, it doesn't upscale that diff
But then how do you use it to modify the final result?

Let's use a numerical example. Suppose my video is 1920x1080 and my screen is 3840x2160

MAIN (this comes from mpv) is 1920x1080
UPSCALED (this also comes from mpv) is 3840x2160

You want to turn UPSCALED back into a 1920x1080 texture so you can compare it against MAIN, but I don't understand this. If you downscaled UPSCALED back to 1920x1080 you will just get a virtually identical copy of MAIN again. Might as well use MAIN to begin with?

Also, once you have this difference, you have a 1920x1080 texture containing differences - and this 1920x1080 texture now needs to be used to process a 3840x2160 texture, which requires upscaling it again - otherwise you'll only have enough information for a quarter of the pixels you're processing.

Plus, if you go with an approach like I suggested in >>54147667 that would already allow you to effectively directly compare the “original” image against the upscaled version. The only difference I can see is that it might be more efficient to run the computations at a lower resolution for performance.

Anyway, what I could implement is being able to specify a different “reference” for your hook, i.e. even though you hook UPSCALED you could use MAIN as a reference for sizing. (Plus an identity transform)
>>
>>54147843
here is a bit of description about this shader
>It does not "create" any details like traditional SuperRes or Sharpening algorithms do. It doesn't have any temporal effect either, it works with frames one by one. Here's the way it works. It wraps around other resizers. After doubling the image size (with NNEDI3 for example), it resizes it back down with Bicubic and compares it with the original, producing a diff map representing details that were lost while upscaling. Then, it does its magic from that diff map.
only instead of Bicubic SSIMDownscaler is used now.
I think it's not possible to adopt this shader without this possibility
//!TRANSFORM MAIN_size.x/SCALED_size.x 1.0 0.0 0.0
>>
The super resolution post upscale shader.
It was already very verbose on doom9 when MPDN and madVR added it YEARS AGO.
>>
>>54147930
>After doubling the image size
also, not necessary after doubling
>>
4chan > doom9
>>
>>54147527
>Is this why madshi doesn't update it anymore?
Did he say something like that? Last build is less than a month old.
>>
>>54148472
Nothing like that was said.
Madshi asked people to try his new anti-bloating algorithm.
But nobody seems to be interested...
Personally In don't like to subscribe to old looking forums.
>>
Where do I learn how to understand all these C and OpenGL gibberish?
Are there good youtube channels to learn it?
>>
>>54147843
Just tried to make a port of CrossBilateral.
Is this how it should be done (didn't test it obviously)
>http://pastebin.com/VJtmGqvv
>>
>>54148706
There are a few things wrong with this:

1. Textures can only be bound if they're present by the time of the hook. Since LUMA runs before CHROMA, you can't access CHROMA when hooking into LUMA.

(To work around this, you would need to hook CHROMA instead. But does the luma downscale pass really need to access chroma information? I don't see why it would)

2. Similarly, you can't HOOK anything that isn't exported by mpv - i.e. you can't HOOK into a texture that you create yourself. (I could possibly change this, but I don't see much of a reason to)

3. The signature is different. It's just
vec4 sample_pixel()
, since all textures you use will now be directly bound to the names you choose.

4. I don't understand why this algorithm would hook on SCALED. Isn't the point of bilateral to upscale chroma as guided by luma? If so, you would hook CHROMA and access the luma texture to guide your interpolation.
>>
checkem
>>
>>54148886
Also, this whole algorithm breaks down when playing 4:4:4 content or RGB content.
>>
>>54148886
>If so, you would hook CHROMA and access the luma texture to guide your interpolation.
Hmm also I just realized this isn't entirely easy to do since you also have to account for chroma offsets, which is hard information to expose to and account for in a shader.

In general I guess I don't recommend trying to process CHROMA directly (except as self-referred)

Instead what you could do is hook into NATIVE and use the LUMA texture to guide updates to the chroma information.

(At the point of NATIVE, luma and chroma will already be aligned)
>>
>>54130669
Kawaii codec pack. Does mpv render stuff better or something? Serious question, I'm intrigued.
>>
120hz or 144hz for best panning experience? Shit stutters like mad in panning shots in 144hz for me
>>
>>54148886
> I don't understand why this algorithm would hook on SCALED.
yes, there are upscaled luma and lowres yuv, both of them will be used to upscale chroma and merge it with upscaled luma.
>Instead what you could do is hook into NATIVE and use the LUMA texture to guide updates to the chroma information.
Don't know about this, this shader requires original chroma and downscaled to chroma size luma in a main shader.
>>
>>54149014
To eliminate judder you need to use a multiple of the video resolution (so for 24 Hz video, use 24 Hz, 48 Hz, 72 Hz, 96 Hz, 120 Hz or 144 Hz).

To eliminate stutter, there's nothing you can do aside from maybe enabling
:interpolation:tscale=mitchell
or using something like MVTools.
>>
>>54149037
>yes, there are upscaled luma and lowres yuv, both of them will be used to upscale chroma and merge it with upscaled luma.
Luma will never be upscaled. Upscaling only happens well after conversion to RGB
>>
>>54149040
aite
>>
>>54149051
I know, upscaled rgb will be converted to yuv and uv will be replaced at the end.
>>
>>54149076
But that sounds stupid, just replace UV *before* conversion to RGB/upscaling
>>
>>54149122
I don't know if it will work the same
>>54148928
>you also have to account for chroma offsets, which is hard information to expose to and account for in a shader.
this shader requires chroma offsets anyway.
>>
>>54133274
what is that movie called
>>
>>54148886
>But does the luma downscale pass really need to access chroma information? I don't see why it would)
last line of the 2nd shader
return float4(avg[0], GetFrom(CHROMA, pos).yz, avg[1] - avg[0]*avg[0])
>>
How do I make autosub work on Windows?
Already installed subliminal, tried to edit the path to it in the script, but it still doesn't work.
>>
>>54149257
Yeah but why? Just get the chroma pixels later, when actually processing CHROMA. Why do you need them this early?
>>
>>54148681
>youtube
kys
>>
is deband.glsl used anymore? what is the config command for it
>>
>>54150710
it's built into mpv and enabled if you use vo=opengl-hq
>>
prescale-luma=nnedi3

lags the video with stutters when fullscreen with 720p videos (upscaling to 1080p), using gtx760 and i53570/win764bit

is this expected?
>>
>>54151422
yes but try this
prescale-luma=nnedi3:nnedi3-neurons=16:nnedi3-upload=shader:prescale-downscaling-threshold=1.5


mpv uses glsl version of nnedi3 which is currently slower than opencl version.
Thread replies: 255
Thread images: 28

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.