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

mpv general

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 318
Thread images: 56

File: mpv-logo-128-0baae5aa[1].png (10KB, 128x128px) Image search: [Google]
mpv-logo-128-0baae5aa[1].png
10KB, 128x128px
haasn is a qt edition.

Install mpv:
https://mpv.io/installation/

Wiki:
https://github.com/mpv-player/mpv/wiki

Manual:
https://mpv.io/manual/stable/

User Scripts(including opengl shaders):
https://github.com/mpv-player/mpv/wiki/User-Scripts

input.conf:
https://github.com/mpv-player/mpv/blob/master/etc/input.conf

Vulkan(Linux only for now):
https://github.com/atomnuker/mpv

Test vulkan and post logs if it gives you any kind of problems.

Maximum quality without autism settings:
profile=opengl-hq
scale=ewa_lanczossharp
cscale=ewa_lanczossharp
video-sync=display-resample
interpolation
tscale=oversample
>>
>>61231175
Linked mkv support when?
>>
Is there any way to make my animu episodes automatically go each after another or do i have to do it manually or install some script?
>>
>>61231246
Looks like autoload.lua is what i need.
>>
>>61231175
Still waiting for an NGU implementation.
>>
>>61231676
NGU wont get implemented any time soon. haasn started to work on better alternative called FSRCNN! Also nnedi3 is better than NGU for anime.
>>
File: 21481334.jpg (48KB, 599x449px) Image search: [Google]
21481334.jpg
48KB, 599x449px
My two favorite mpv persons are haasn and igv! I love them!
>>
>>61231747
Poor wm4. :(
>>
Did anybody try the latest haasn's commits on windows with angle? Are there any improvements?
>>
>>61231918
He is just not as flashy. I like him too :3
>>
>>61232163
He is maybe becoming old. ^^'
>>
File: 56806287.png (19KB, 180x197px) Image search: [Google]
56806287.png
19KB, 180x197px
>>61232177
nah, ur fine wm4!
>>
>>61231706
first screenshot comparisons seem to indicate that fsrcnn probably looks somewhat similar to ngu sharp, but with lots of additional ringing artifacts. nnedi3 vs ngu aa is a tough call. in some images nnedi3 looks better, in some ngu aa looks better.
>>
>>61231217
Never
>>
>>61231706
FSRCNN isn't really better than any of the existing techniques
>>
>>61232437
I couldnt find a single anime image where NGU AA looked better than nnedi3. NGU AA has thinner lines (less natural IMO) and this annoying shit (pic related).
>>61232540
We will see.
>>
Yuru challenge.
>>
Is it possible to bind turn ON/OFF lua script on a button?
>>
>>61232999
What?
>>
>>61233074
I have a cool lua script. I want to be able to turn it on and off by press of a button. Sorry, im ESL.
>>
>>61233095
what script
>>
>>61233095
There's no general solution. Depends on the script, what its code does. There no "make it on/off" setting. You have to change the code.
>>
>>61232644
can you post the original unscaled image, please?
>>
Is it me or adaptive-antiringing shader doesnt work at all? I mean its loaded in the log but there is nothing on the advanced stats.lua OSD.
>>
File: Gabriel DropOut.png (2MB, 1280x720px) Image search: [Google]
Gabriel DropOut.png
2MB, 1280x720px
>>61233496
>>
Reposting from previous thread

I'm on windows and I am having trouble with youtube-dl. Any link I run through it fails on the reason of failure to recognize file format.
>>
>>61233656
How ur trying to play the video? You drag and drop it onto mpv?
>>
>>61233689
No, I thought I can play YouTube links by just typeing the address of the video. Is that not how it works?

The command (at least I think it is) is \.mpc.com [YouTube link]
>>
>>61233732
mpv http://url

make sure youtube-dl.exe is in the same folder as mpv.exe
>>
>>61231217
what you mean ordered chaoter? it already has them, or had them, who cares, it's useless stuff
>>
>>61233732
>>61233749
and if you dont have mpv set up as an environment variable make sure you you're in the directory mpv is in when entering commands
>>
please make it possible to use SSA styles in the default subtitles, I want some sweet edgeblur and also x or y scaling
>>
>>61233749
O shit nigger you tell me that I have to download YouTube DL separately? I thought it came with it. I should of known. Well I got it working thank you my man.
>>
File: skip_4_seconds.jpg (141KB, 1000x1125px) Image search: [Google]
skip_4_seconds.jpg
141KB, 1000x1125px
I love mpv, but it has the problem that most video players have: shitty unreliable seeking.

I have it set seek for 4 seconds, why does picrelated shit happen? I pressed "seek 4" key once.

hardmode: can the scrub bar not be so jerky? bomi did it right, you can scrub through each frame. but picrelated bar has as much accuracy as that 4 second seek.
>>
>>61233819
pro-tip: to update youtube-dl enter
youtube-dl -U
>>
>>61233914
RIGHT osd-msg-bar seek +1 relative+keyframes
LEFT osd-msg-bar seek -1 relative+keyframes
ctrl+RIGHT osd-msg-bar seek +1 relative+exact
ctrl+LEFT osd-msg-bar seek -1 relative+exact

If you want frame by frame us , and .
>>
>>61233921
>updating a package through its own methods

what is this, windows?
use a package manager.

>>61233970
>
relative+exact

thanks, that did the trick. hopefully I'll find a fix for the shitty scrub bar one day too.
>>
>>61234013
>what is this windows?
yea the guy literally said he was on windows
>>
>>61233535
thanks. i can't seem to reproduce the ngu aliasing artifacts on my pc, though. it looks nicely smooth here. which ngu aa quality did you use for doubling and quadrupling? and which algo did you use for the final step? because your upscale is more than 400%. and which nnedi3 neuron count did you use?
>>
>>61234042
well shit, i guess i'm the retarded one.
>>
>>61234059
Upscale video and screenshot it. Then zoom into it max with firefox. Post screen here.
>>which ngu aa quality did you use for doubling and quadrupling? and which algo did you use for the final step? because your upscale is more than 400%. and which nnedi3 neuron count did you use?
NGU AA Very High -> SSIM2D100% (AR+LL). nnedi3 64->mitchel.
>>
File: 1482161945781.png (994KB, 1275x717px) Image search: [Google]
1482161945781.png
994KB, 1275x717px
new stats script shows only half the info. where's the rest???
>>
>>61234109
Press 2.
>>
>>61234117
pressing 2 shows an empty screen
pressing 3 shows "filters/shaders" at the top and nothing else.
What's wrong?
>>
File: animeNguAa.png (2MB, 1680x1010px) Image search: [Google]
animeNguAa.png
2MB, 1680x1010px
>>61234106
here's what i get with ngu aa.
>>
File: animeNnedi3.png (3MB, 1680x1010px) Image search: [Google]
animeNnedi3.png
3MB, 1680x1010px
>>61234106
>>61234224
and here's nnedi3.

can't say which one is better. some lines are better in the nnedi3 image, some in the ngu aa image.
>>
>>61234183
are you on version 26 of mpv?
>>
>>61234249
no. 25.0-171. gotta recompile I guess.
>>
damn... mpv is using more and more libs.

Repo Packages (6) leptonica-1.74.4-1  tesseract-3.05.01-1  vapoursynth-R37-2  zimg-2.5.1-1  zita-alsa-pcmi-0.2.0-3  zita-resampler-1.3.0-5  
>>
how do you speed up playback of a video in mpv? I watch lectures on YT and you can speed them up well and they sound OK. how do you do it with mpv? can it lower pitch too?
>>
>>61234404
+ add speed +0.05
- add speed -0.05
>>
>>61234404
[ and ]
>>
>>61234416
thanks anon!
>>
>>61234421
thx to you too
>>
File: 1479833585147.png (962KB, 1271x711px) Image search: [Google]
1479833585147.png
962KB, 1271x711px
>>61234249
OK, after compiling the new mpv, I see this on second screen.

I don't see anything in "redraw" section and screen 3 still only has the filters/profiles/shaders title and nothing more.

I am using a profile with a bunch of shaders...
>>
>>61234468
Hmm... mpv says it's still 0.25 and not 0.26 version

$ mpv --version
Warning: option --sub-paths was replaced with --sub-file-paths and might be removed in the future.
mpv 0.25.0-314-g6f77444f6c (C) 2000-2017 mpv/MPlayer/mplayer2 projects
built on UNKNOWN
ffmpeg library versions:
libavutil 55.67.100
libavcodec 57.100.103
libavformat 57.75.100
libswscale 4.7.101
libavfilter 6.94.100
libswresample 2.8.100
ffmpeg version: N-86713-g9d5e81d3b1


is 0.26 a different branch in the github repo?
>>
>>61234492
Run mpv from command line.
Shaders are used like this now:
opengl-shader="~~/shader1.glsl"
opengl-shader="~~/shader2.glsl"
opengl-shader="~~/shader3.glsl"
>>
>>61234224
>>61234243
I've done a lot of testing of this. NGU AA medium and NNEDI3 are fairly equivalent as far as picture quality with anime is concerned. NGU AA medium is faster, though.
ewa_lanczossharp + SSimSuperRes produces very slightly inferior pictures to NGU AA medium + Adaptive Sharpen, but is faster.
>>
>>61234569
oooooooooh. now I see all the "Failed to open..." errors. Gonna fix the conf.
>>
>>61234492
Hiw does one get this allusive 0.26?

>>61234569
I thought they changed it back
>>
>>61234622
>I thought they changed it back
opengl-shaders still accepts only 1 shader. Bug maybe?
>>
File: 1480191966879.jpg (142KB, 1274x716px) Image search: [Google]
1480191966879.jpg
142KB, 1274x716px
>>61234622
elusive

also, I have no idea. my mpv now reports no errors and everything seems fine but stats.lua still doesn't show any shader info on 3rd screen for me.
>>
File: 1472349128540.jpg (924KB, 3840x2160px) Image search: [Google]
1472349128540.jpg
924KB, 3840x2160px
>>61234680
redraw section comes to life when I'm full-screen. 3rd page is still blank.
>>
>>61234715
also, can someone look at this screen and decode what all those numbers are saying?
>>
>>61234748
What do you want to know? Those numbers are how much frame times each step takes.
>>
>>61235063
>What do you want to know?
Just in general terms... is everything being done right and how would I know if something goes wrong...

>Those numbers are how much frame times each step takes.
thanks.
>>
>>61235102
>how would I know if something goes wrong
If your rendering times go yellow or red then you dont have enough resources to render everything as fast as needed. Also monitor delayed and dropped frames "1". Getting few of them at the start is normal.
>>
>>61235147
Thanks! Wish the author of that script added that sentence to readme file.
>>
>>61234183
It lists multiple times that you need a mpv version from ~last weekend.

>>61234492
>>61234622
There is no 26 yet. Readme lists the commit you need.
25 is not enough. 26 will be the first official release with the necessary commit.

>>61234680
Third page is just a dummy so far, it says so in the commit.
https://github.com/Argon-/mpv-stats/commit/96916139d27c74c542d3372240bee738bada0d2d
The readme will get updated at some point I assume, other things changed as well.
>>
Why page 3 of stats.lua show no info? I have my shader defined like in >>61234569 My mpv is 4 days old.
>>
>>61235147
But it is?
>>
>>61235252
>>61235245
Never mind me, didnt see this reply.
>>
>>61235245
>There is no 26 yet. Readme lists the commit you need.
>25 is not enough. 26 will be the first official release with the necessary commit.
Usually there's one release per month but 26 is severely delayed for some reason.
>>
>>61234715
>user shader
Wtf is that?
>>
I want to join irc to have all news but im shy. Fugg.
>>
>>61235351
just fucking lurk. how autistic are you?!?
>>
>>61235369
Im too nervous to be in one room with haasn. Im a fanboy.
>>
>>61235413
lol.. double your dose of your autism pills and you should be fine. also, I'm pretty sure he lurks in these threads.
>>
File: 75671239.jpg (59KB, 344x326px) Image search: [Google]
75671239.jpg
59KB, 344x326px
Did haasn abandon fsrcnn?
>>
How to fight antiringing in mpv? In madvr i could tick AR everywhere and it will work but here i dont know what to do. I got told that scale-antiring doesnt work on ewa_lanczossharp. adaptive-antiringing shader doesnt work too. FUCK.
>>
How do i set my dscale to bicubic 150 madvr equivalent?
>>
W-why ewa_lanczos + SSIM is sharper than ewa_lanczossharp + SSIM? How can this happen? Im doubling 720p with nnedi3 and downscale back to 1080p.
>>
File: 1490671184789.png (2MB, 1280x720px) Image search: [Google]
1490671184789.png
2MB, 1280x720px
After some more fuckery with the very latest mpv and all the updated shaders, I've arrived at the following. It's a happy middle... nothing's overly sharp and artifacts are at the minimum, I think.

Simple mpv settings with no shaders: https://my.mixtape.moe/qizmoi.png
Shaders on: https://my.mixtape.moe/sueidu.png

Original is attached.

Download all 3 files, look at them, and let me know what you think.
>>
>>61235413
kek
>>
File: anime - Copy.png (4MB, 1920x1080px) Image search: [Google]
anime - Copy.png
4MB, 1920x1080px
>>61235958
This is what i like. nnedi3 64 -> mitchel.
>>
>>61234109
>new
Where?
>>
>>61236144
don't have windows and don't have any 1080p panels so I can't compare easily. but it looks like it's fairly similar to my second pic.

>>61236239
https://github.com/Argon-/mpv-stats
>>
>>61236239
same place as the old ones
>>
>>61236278
Thats the same stats thats been out for years
>>
>>61236295
.. except it's been updated and some shit doesn't even work until the next release of mpv. lurk moar. read moar. post less.
>>
>>61236358
Dont say its a "new" script.It's an "updated" script. Grammar much
>>
>>61236375
>trying to wiggle out of it...
ok kid
>>
>>61236278
>but it looks like it's fairly similar to my second pic.
Not even close.
>>
>>61236416
It isnt a new stats script.Its the same one that we've been using for the past 3 years.
>>
>>61235958
I clearly can see that on second pic you use superres. It sucks with huge scaling factors IMO. Use either ewa_lanczossharp or nnedi3+ewa_lanczossharp. You can even try to add supperres to nnedi3 if you have resources.
>>
>>61236427
show me a comparison.
>>
how tf do i install this? i'm using windows.
>>
>>61236483
Try zooming in. I dont have a 4K monitor sadly but i have superresolution feature but CBA to mess with it and then i need to upload it somewhere since 4chan size limit. Just try nnedi3+ewa_lanczossharp and compare.
>>
>>61236495
literally unzip it and set mpv as default player
>>
>>61236358
More like the next compile. Everybody with a decent package manager can just recompile.
>>
>>61236554
unzip it where? why can't it just move itself into my programs folder
>>
Where's webmscript anon? ;_; The old script is broken.
>>
File: 1477710712475.gif (2MB, 640x480px) Image search: [Google]
1477710712475.gif
2MB, 640x480px
>>61236671
>>
>>61236671
Dude, you're just too stupid to use a computer. Get yourself a nice tablet and watch your shit on that.

I hate summer so damn much. So many idiots find their way to /g/.
>>
Redpill me on mitchel. Why it is considered the best downscaler? Because mpv can't into antiringing? Pls be honest.
>>
>>61235467
Yes! Madshi abandoned it long time ago for a reason, good reason, the best reason.
>>
>>61237092
He didn't even start it. He wanted to push NGU so he didn't even try.
>>
>>61237088
Math! It's just mathematically great, but human eyes are not mathematics based.
>>
>>61237132
This 1/3 thingy is cool but it doesn't take into account antiringing algos.
>>
What are defaults B and C for mitchell in mpv?
>>
why doesn't mpv read negative spacing in sub station alpha subs? is it a vsfilter problem?

I've got a font with too much default spacing and the damn thing won't read spacing below 0
>>
>>61237373
not our bug

Closed.

[This has been locked to collaborators only]
>>
>>61237438
well seems like your program has that problem too
>>
>>61231175
What does each scaler handle specifically?
>scale
>cscale
>dscale
>tscale
>>
>>61236473
SSimSuperRes doesn't work with prescalers.
>>
>>61237618
rgb
chroma
rgb downscale
temporal
>>
>>61237629
It actually does.
>>
>>61237740
>people lied to me
>I can actually add even more meme placebo shaders to the chain
Happy news.
>>
>>61237893
I tried nnedi3+SSSR today and it made the picture look more blurry and with thinner lines... It definitely worked, I checked stats.lua.
>>
File: 2017-07-06_02-24-34.webm (3MB, 1278x818px) Image search: [Google]
2017-07-06_02-24-34.webm
3MB, 1278x818px
>>61236672
I'm dead.
>>
>>61238017
Nice after-effects animation. ;-)
>>
mfw I just now figured out how to fix the missing first frame of subtitles in mpv encodes
Do not do --vf=sub.
>>
File: 1496157613813.jpg (22KB, 740x784px) Image search: [Google]
1496157613813.jpg
22KB, 740x784px
>>61238017
wtf give now
>>
>>61238397
Later!
>>
>>61238734
why
>>
>>61238741
Because it's not ready yet.
The Next Big Thing is to add a segment list and editing those (subs, mute) - I got sidetracked earlier when I was looking into how to split the project into files but build it into one neat .lua. It's 2161 lines already (comments and empty lines included, though)
>>
>>61238794
i can beta test
>>
>>61238846
I know, but it's not about testers, not yet. There WILL be a Github repo for this, but only when I consider it so damn good few if any will have anything to say about that.
Just stay alive and I'll do the same.
>>
>>61235467
There's not really anything left to be done. The shader generator works, and if you can be bothered training the parameters you can generate your own trained for anime or whatever.

Actually, now that I think about it, I could switch to textureGatherOffset to make it faster.. hmm
>>
>>61233914
It's a Feature(tm). Use --hr-seek=yes to turn it off.
>>
File: test_image.png (34KB, 192x192px) Image search: [Google]
test_image.png
34KB, 192x192px
Why FSRCNN-TensorFlow gives me this shit?
It was trained with --scale 4 --epoch 250 --data_dir Train.
With --scale 3 it's just a bit better.
>>
>>61240473
You could try using the original MATLAB/Caffe code to train instead
>>
File: 61588430.jpg (43KB, 500x391px) Image search: [Google]
61588430.jpg
43KB, 500x391px
>>61240115
Train it good with anime. Train it to BTFO NGU.
>>
File: 1499313624391.png (9KB, 344x135px) Image search: [Google]
1499313624391.png
9KB, 344x135px
When trying to open a large video (A 6.3GB copy of Redline), mpv crashes upon opening it
What do?
>>
>>61242807
I dont have this problem. Just tested with 7GB video.
>>
>>61242807
run it with -v and figure it out.
>>
>>61242807
Just tested a 40GB BD Rip on latest master and it works fine
>>
File: 1499305449240.jpg (67KB, 444x457px) Image search: [Google]
1499305449240.jpg
67KB, 444x457px
>>61242841
>>61242859
>>61242927
I really don't know, there's no errors
https://pastebin.com/ZAgsRgFm
It can't be just because winshit
>>
>>61242963
Im on winshit 7, no problems.
>>
>>61242963
try with other build
>>
>>61242990
That leaves it to the actual video file itself then
>>
>>61243030
Yeah, probably messed up file. Try with different one.
>>
>>61242963
If the file is messed up, report it. The player should never crash
>>
>>61242963
Post coredump/backtrace
>>
>tfw been fucking with config for 20 days
>tfw watched nothing in period
Dont be like me.
>>
File: file.png (66KB, 961x736px) Image search: [Google]
file.png
66KB, 961x736px
>>61243053
Tried different one, same result
>>
>>61243599
>1860x1046
Try removing your mvp config file.
>>
>>61243618
that worked, how to fix?
>>
>>61243634
Idunno man. Post your config.
>>
File: 1499311887863.jpg (31KB, 481x472px) Image search: [Google]
1499311887863.jpg
31KB, 481x472px
profile=opengl-hq
no-border
vo=opengl
scale=ewa_hanning
scale-radius=3.23831
cscale=ewa_lanczos
dscale=ewa_lanczossoft
tscale=oversample
dscale=mitchell
scale-antiring=0
cscale-antiring=0
dither-depth=auto
correct-downscaling=yes
sigmoid-upscaling=yes
sigmoid-slope=10
deband=yes
vo=opengl
opengl-early-flush=no
opengl-pbo=yes
screenshot-directory=C:\Users\robin\Pictures\mpv\
screenshot-format=png
opengl-shaders="C:\Users\robin\AppData\Roaming\mpv\shaders\adaptive-sharpen.glsl"


[extension.gif]
cache=no
no-pause
loop-file=yes

[extension.webm]
#cache=no
#no-pause
#loop-file=yes

n-no laughing
>>
>>61242963
>>61243656
Remove opengl-pbo from the config. For some reason, newer versions of ANGLE shit the bed with PBOs. I'm not sure why.

>>61243645
FYI you can get the config from the start of the log file.
>>
File: 1494043982460.png (666KB, 666x666px) Image search: [Google]
1494043982460.png
666KB, 666x666px
>>61243666
It worked! Thank you Satan
>>
>>61243656
robin, why do you have two downscalers?
>>
File: 1442690477509.gif (208KB, 354x534px) Image search: [Google]
1442690477509.gif
208KB, 354x534px
>>61243992
No reason! Y-you wouldn't happen to know which the 2nd one is, right? Just testing your knowledge..
>>
File: 1496796108376.jpg (87KB, 613x679px) Image search: [Google]
1496796108376.jpg
87KB, 613x679px
>>61244005
>dscale=ewa_lanczossoft
>dscale=mitchell
>>
File: 1444428661807.jpg (167KB, 600x850px) Image search: [Google]
1444428661807.jpg
167KB, 600x850px
>>61244297
You found the mistake I put in intentionally! You pass the test anon
>>
Can someone explain to me how much Vsync Jitter is too much?

>>61244005
>>61244297
>>61244351
Damn, cute.
>>
>>61243656
robin... you dont have interpolation ON and no video-sync=display-resample...
>>
>>61244418
>robin... you dont have interpolation ON and no video-sync=display-resample...
I should have interpolation on and display-resample?
>>
>>61244470
Yeah... Well, at least video-sync=display-resample is a must. you have tsacle set so i figured you wanted to use interpolation too. Interpolation is important to prevent motion judder!
>>
File: file.png (36KB, 377x272px) Image search: [Google]
file.png
36KB, 377x272px
>>61244470
You've been caught Mr. Imposter!
>>61244491
I looked those up and that doesn't sound ideal! I want it exactly as the artist intended!
>>
>>61244491
Thanks!
I now have:
>interpolation
>tscale=linear
>video-sync=display-resample
The default is mitchell, but I use bilnear for scaling everything. Any idea why it's mitchell?

>>61244510
Sorry, I don't do all that stuff.
>>
>>61244510
>I looked those up and that doesn't sound ideal! I want it exactly as the artist intended!
Then you should use at least video-sync=display-resample. This way you will get "perfect playback". Still consider interpolation tscale=oversample because the judder will be veeery strong without it. The artist did not intend for his video to stutter! You dont need interpolation in case if your monitor refresh rate is multiple of your video FPS. ie 25FPS video - 50Hz monitor. Good luck robin!
>>
>>61244535
>I use bilnear for scaling everything
Why? Its very bad!
>Any idea why it's mitchell?
Mitchell is a middle ground between smoothness of motion and sharpness.
>>
File: Clipboard01.png (33KB, 461x741px) Image search: [Google]
Clipboard01.png
33KB, 461x741px
>>61244567
>>I use bilnear for scaling everything
>Why? Its very bad!
I don't see any reason why not. What's bad about it?
Attached is my full conf.

>Mitchell is a middle ground between smoothness of motion and sharpness.
Thanks! And you use oversample?
>>
Why in God's name should I use MPV over MPC-HC?
>>
>>61244649
Use what you want. No one give a fuck here.
>>
>>61244649
You shouldn't. You can, though. I use it because I use Mac and Windows, and tried Linux. I just have the same program for simple things like playing media that way.

I don't see a reason to use MPC, because mpv does what I want to do. If you don't see a reason, then why bother.
>>
How do i make auto-profiles.lua to read parameters of THE VIDEO instead of GUI WINDOW? Talking about profile-desc=cond:get('width',0).
>>
What's best way of getting mpv on Ubuntu
build from package manager is very old
>>
Is there a way to copy the functions of XySubFilter in mpv?
>>
Test.
>>
File: 00165021.jpg (57KB, 419x500px) Image search: [Google]
00165021.jpg
57KB, 419x500px
Hooray! Everyone updated their shaders for stats.lua. Now you can see the names of the shaiders in stats! nnedi3 shaders were updated to use this new thing haasn discovered few days ago and supposed to be faster! You need the very latest mpv though or you will get blue screen like me (mine is 1 week old).
>>
>>61241191
But I need to install MATLAB for that...
>>
>>61233819
>should of
Kys
>>
>>61238017
That's pretty impressive desu. How big is the script? Are you doing it all in lua or moonscript maybe?
>>
>>61245191
1. install gentoo
2. emerge mpv
>>
File: 1472996928154.png (491KB, 650x698px) Image search: [Google]
1472996928154.png
491KB, 650x698px
Better performance with nnedi3 with the lastest build?
https://github.com/bjin/mpv-prescalers/commit/58a6f2209dba3fa378155e93ae04feca4f9c70f9

See issue #7
>>
>>61246681
New build when?
>>
>>61245191
https://mpv.io/installation/
Ubuntu PPA
>>
>>61246681
hopefully.
>>
>>61246681
0-12% improvement, so not really noteworthy
>>
>>61247127
Thats on intel igpu only. Who knows about amd/novidia.
>>
>>61246681
>nnedi3
>closed source winshit
go away child.
>>
>>61247282
>>closed source winshit
What are you talking about?
>>
Performance seems to have decreased on git master, I'm using an intel gpu.
>>
>>61244720
>width, height
>Video size. This uses the size of the video as decoded, or if no video frame has been decoded yet, the (possibly incorrect) container indicated size.
width should already use video resolution. Have you tried using cond:p.width instead? Your fallback value of 0 might be what's screwing things up.
>>
>recent versions of mpv will automatically turn interpolation off for video clips that match your display rate
HOW TRUE IS THIS???
>>
>>61247390
Thanks for the reply. I actually copied haasn rules. I have profiles set up for different resolutions but when i open mpv it automatically loads the profile for the lowest resolution. And then, if i open a video that match profile with no shaders, for example, it will use that first profile shaders which loaded when mpv opened. What is correct way to measure video? I tried to use container expression but it still loaded profile for lowest resolution when mpv opened. Pls help!
>>
>>61247588
It's been like this for some time already.
>>
>>61247743
Oh, fuck. With updated stats.lua i can actually check for that! I had rules that turned interpolation off for 30 and 60 FPS! Fuck yeah!
>>
File: 15006135.png (210KB, 287x304px) Image search: [Google]
15006135.png
210KB, 287x304px
>>61247390
>Your fallback value of 0 might be what's screwing things up.
YES. YOU ARE MY SAVIOR. So much time i wasted on this shit! Removing 0 fixed everything!
>>
>>61247743
Okay. It works for 60 FPS since i have 60 Hz monitor, but why it doesnt work for 30 FPS? I mean im not supposed to get any judder there. In madVR smoothmotion automatically disables for me if i play 29-31FPS and 59-61FPS videos. Why mpv doesnt have this behavior?
>>
>>61246316
Lua, 2100 lines or so like I said in >>61238794
Core parts are a class to handle video/display resolution conversion (for ASS coords), a class to handle the cropping using the former (for mouse position on video space), and the main script with segments and their playback states and such. It's not the most concise thing ever, but there's no useless code or obvious bloat - making a good webm script does eat lines (well, if you consider this a "script").
>>
>>61247949
mpv already turns off interpolation when the content fps is the same as the display FPS

You can use --interpolation-threshold to tune the sensitivity
>>
>>61248446
>>61246316
Was supposed to add, this may look nicer in moonscript but when I started this I hadn't heard of it. mpv is getting (has) JS support as well, but IIRC file access? was limited, or something.
>>
>>61248491
I mean, it turns it off for exact same FPS as Hz... But why not multiple of Hz? ie 30FPS on 60Hz monitor. Thats how it works in madVR.
>>
>>61248491
Can you explain for a retard how interpolation-threshold works? Im reading manual and dont understand it.
>>
>>61248446
Yeah I suppose considering the features it's not easy to make it more concise. I'm happy with the existing webm scripts but your script looks very nice.
How well do you handle weird properties like video-pan-x, video-pan-y, video-unscaled... ? It's a pain in the ass to get the "real" video size.

>>61248506
No clue about JS, but I don't think it would make it mucheasier.
>>
>>61247148
No, 12% was Intel. Haasn tested on nvidia and they concluded it's even less on dedicated GPUs. Did you even read the issue you linked yourself...?
>>
>>61248565
Because apart from nearest/oversample, interpolation for 30->60 is not a no-op in mpv
>>
>>61248740
Ive read it but i want to test it myself first to make a conclusion.
>>
>>61248752
>not a no-op
Can you simplify this? I dont get you.
>>
>>61248666
Which webm script do you use?
Convert_script broke recently
[convert_script] 
[convert_script] stack traceback:
[convert_script] /home/a/.config/mpv/scripts/convert_script.lua:252: in function 'encode'
[convert_script] /home/a/.config/mpv/scripts/convert_script.lua:695: in function 'call_gui'
[convert_script] /home/a/.config/mpv/scripts/convert_script.lua:159: in function 'fn'
[convert_script] mp.defaults:202: in function 'fn'
[convert_script] mp.defaults:60: in function 'handler'
[convert_script] mp.defaults:339: in function 'handler'
[convert_script] mp.defaults:458: in function 'call_event_handlers'
[convert_script] mp.defaults:495: in function 'dispatch_events'
[convert_script] mp.defaults:451: in function <mp.defaults:450>
[convert_script] [C]: at 0x00477eb0
[convert_script] [C]: at 0x00479350
[convert_script] Lua error: /home/a/.config/mpv/scripts/convert_script.lua:252: bad argument #1 to 'pairs' (table expected, got nil)

and encode.lua seems to not work or give any kind of error using encode_webm
>>
>>61248775
30 -> 60 produces blended “intermediate” frames in between the video frames
>>
>>61248666
>video-pan-x, video-pan-y, video-unscaled...
I... don't. However... I thiiink I'd only have to make the display-state manager class check for those.
Do people use those? It's something I'd certainly support since I'm planning making this dabest, but I had completely forgotten these. Zooms and panscans and such as well... Sigh.

>JS
Not easier, but "classes" and such are more concise in it, not to mention a whole lot more standard libs. But I do rather like Lua (after getting used to the weird parts), and I'm in no hurry to rewrite this.
>>
>>61248864
This one, but I'm also the author:
https://github.com/occivink/mpv-scripts#encodelua
>and encode.lua seems to not work or give any kind of error using encode_webm
If you have more info I'd appreciate.


>>61248905
Yeah it's a pain. You can check crop.lua from my scripts which has decent handling for those but it's honestly not worth the trouble.
>>
>>61248892
Is it good? So i should leave interpolation on with 30 fps on 60 hz screen? Or should i disable it manually?
>>
Is there a script for managing bookmarks with a GUI?
The MPC-HC favorites feature is sorely missing.
>>
When is lachs0r going o make a release?
>>
>all this placebo shit
>>
I have a shitty laptop that struggles to decode h264 in real time. I managed to make it work well using the vdpau output on mpv, but I'm struggling with styled subtitles.
Is there a way to remove all styling to improve decoding speed? I tried using the 'u' key as shown on the man page, but some styling remains.
If I run the same video with mplayer, it removes all styling by default, so there might be some way to disable all styling.
>>
>>61249206
Would you recommend something that isn't placebo?
Half of us don't know shit.
>>
>>61249235
https://mpv.io/manual/master/#options-sub-ass-override
>>
>>61249235
>>61249459
There's also https://mpv.io/manual/master/#options-sub-ass-shaper
>>
How do i get sharpness on linux?
>>
>>61249459
>>61249487
Thanks for the help anon, you were right on point with those options.
>>
blend-subtitles yes or video? What is better for animu?
>>
File: 08313983.jpg (2KB, 126x103px) Image search: [Google]
08313983.jpg
2KB, 126x103px
So, original SSSR has 3 modes according to Shiandow: soft, hybrid and sharp. Which mode is ported by igv? Maybe its possible to switch somehow between modes like in the MPDN shader?
>>
>>61250125
no
>>
File: fug.webm (1MB, 1000x570px) Image search: [Google]
fug.webm
1MB, 1000x570px
playlistmanager.lua with autoload.lua gives me a bunch of dupe files in my playlist sometimes. how 2 fix?
>>
Any lua script that can cut scenes and turn them into .webm?
I remember seeing a webm where you can even select a certain region of the image.
>>
>>61250590
Forgot to mention, would be nice if it can hardcode the subtitles into the webm output fie.
>>
>>61250590
crop.lua and encode.lua
https://github.com/occivink/mpv-scripts

or tell >>61238734 to release his already

>>61250603
https://gist.github.com/Zehkul/25ea7ae77b30af959be0
This one was able to hardcode subs and work streaming youtube videos but I can't get it's broken for me now >>61248864
>>
File: 1497167016425-v.png (212KB, 357x511px) Image search: [Google]
1497167016425-v.png
212KB, 357x511px
Has anyone had problems with video-sync=display-resample causing freezes where the PC becomes unresponsive (I cannot even move cursor)? I can only reliably reproduce it when opening a video file to play; it happens immediately.

Literally the only thing in mpv.conf is
video-sync=display-resample

Removing this line fixes the freezing.

Any thoughts?
>>
>>61250805
Forgot to add:
i5 2500K @ 4.2GHz
GTX 1070
Windows 7
>>
>>61250805
Freezes the computer instead of mov crashing? Then it's most likely a driver problem
>>
>>61250805
are you robin?
>>
>>61250570
bump
>>
>>61238017
COME ON MAN PLEASE I'LL SUCK YOUR DIIIIIICK
>>
>>61252105
Good things come to those who wait, ya know?
>>
>set up an auto profile to detect for HorribleSubs filenames
>only way I could get it to work feels like a really retarded way to do it
profile-desc=cond:string.find(get("filename"), "HorribleSubs")==2

It works and all, but it seems like there should be a better way to do it.
string.match(get("filename"), "HorribleSubs")==HorribleSubs
always returned false for a reason I don't understand. Did I fuck up or is this just how Lua is?
>>
>>61252832
I've been waiting since you said you didn't like the way the original encode.lua was written
>>
File: haste_hasta.webm (3MB, 1920x1080px) Image search: [Google]
haste_hasta.webm
3MB, 1920x1080px
>>61253275
I've never spoken of encode.lua (assuming you refer to the one linked above) - https://gist.github.com/Zehkul/25ea7ae77b30af959be0 is the one I didn't like, because it requires YAD, has so much wrapping for YAD, uses global variables and doesn't really bother to structure code any more than "key, gui, encode". However, it did what it was meant to do; not like it's "wrong" or somehow outrageously bad. Most importantly: it made me realize that hey - mpv can do lua scripts.
But I digress. All I can say is someday (I'll be vocal about it, don't worry). In the meantime, best course of action is to assume I'm dead by heart attack and it'll never happen - a pessimist can only be pleasantly surprised.
>>
>>61250623
If you want to hack-fix the Zehkul one, comment out lines 250, 252-254 (the get_property_native and the if) - you'll lose support for explicitly set external subtitles, which should not be a big deal on anime.
I'd assume the property got renamed or such but without testing, meh. I'm still on the ages-old ca09cd6.
>>
>>61253026
Wew never mind, I'm retarded and forget to quote the string.
>>
File: 1477103092689.jpg (87KB, 649x815px) Image search: [Google]
1477103092689.jpg
87KB, 649x815px
bump
>>
>>61250406
Hybrid by default. Sharp mode is when locality on line 324 set to 1000.
>>
How can I take screenshots?
>>
>>61254755
S
Ctrl+s to take upscaled screenshots.
>>
>>61254713
Thank you very much! Thanks for all of your work if youre igv, i love you :3
>>
File: 02209180.jpg (9KB, 251x246px) Image search: [Google]
02209180.jpg
9KB, 251x246px
>wake up
>no updated build by shinchiro
>>
File: 1476156819801.png (1MB, 1920x1080px) Image search: [Google]
1476156819801.png
1MB, 1920x1080px
>>61255074
I know m8
>>
File: 2017-07-07-10:30:43-screenshot.png (3KB, 422x200px) Image search: [Google]
2017-07-07-10:30:43-screenshot.png
3KB, 422x200px
I have a relatively weak laptop with i7-6600U.

I want to watch videos (mostly anime) without melting my CPU, but with high framerate.

Here is my config. What should I change/add/remove?
>>
>>61255372
Why would your CPU melt? Youre not watching 8K on it, right?
>but with high framerate
What? It only matters if you watch 4K+ or if your video card is trash.
>>
>>61255390
>Why would your CPU melt?
Before I've turned hwdec on, my CPU went up to 40% load and began heating-up rapidly.

I'm overexxagerating, obviously, but I don't want to listen to the fan instead of the audio.

I have no external GPU.
>>
>>61255372
Hwdec. Keep in mind though that it's it lowering the load, just shifts it from CPU to GPU
>>
File: Untitled.png (343KB, 643x332px) Image search: [Google]
Untitled.png
343KB, 643x332px
Is this something bad? I don't get mistimed nor delayed frames anyways, only at the very start.
>>
>>61255802
By "this" I mean that the Fresh timings are below 16666 μs
>>
>>61253693
renaming sub-file and audio-file to sub-files and audio-files fixed it
>>
Shinchiro pls, I want to watch anime.
>>
For any potential mpv-android devs here, can you add option to have only brightness touch gesture without volume touch gesture. Also is brightness supposed to start at ~50% every time you start swiping up/down even when you previously swiped the brightness to something else or is that a bug?

At any rate the player is damn near perfect IMO and just needs a few more QoL changes to btfo MX player once and for all.
>>
Still no ready fast NNEDI3 or NGU like algorithms?
>>
>>61231175
>Maximum quality without autism settings:
>profile=opengl-hq
>scale=ewa_lanczossharp
>cscale=ewa_lanczossharp
>video-sync=display-resample
>interpolation
>tscale=oversample
New fag here, is it the absolute best quality I can achieve? I have a decent system
>>
>>61257029
fsrcnn is available and works:

https://github.com/haasn/fsrcnn-mpv

it's rather slow, though, currently limited to 3x upscaling, and may need more extensive training to catch up with ngu in terms of image quality.

don't know if haasn has any fsrcnn improvements planned.
>>
>>61257190
You can add ssimsuperres shader and call it a day. You can find it there https://github.com/mpv-player/mpv/wiki/User-Scripts
>>
>>61257190
sigmoid-slope=10
>>
>>61257361
What about

https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10

Can I load both shaders at the same time?
>>
>>61257436
What it does?
>>
File: 121920.jpg (196KB, 432x444px) Image search: [Google]
121920.jpg
196KB, 432x444px
>>61257280
so it's not really faster...
is still limited to 3x...
needed to be trained...
not sure if it will be maintained in the future...
and still producing insane ringing...
>>
File: mpv-shot0005.jpg (137KB, 1280x720px) Image search: [Google]
mpv-shot0005.jpg
137KB, 1280x720px
>>61254893
Thanks, m8.
>>
>>61257456
Yes
>>
How do I bind "quit without saving position" with save-position-on-quit enabled?
>>
This is my config. It's a bit messy and I haven't "updated" it in a while. I prefer sharper pictures.

https://pastebin.com/sj8fqy0e
>>
>>61257627
well, a 2x version should be somewhat faster, not sure by how much. training doesn't have to be done by haasn, anybody could do that.

not sure about the ringing, though. maybe that's just the way fsrcnn looks? or maybe longer training could help there?
>>
>>61259169
>anybody could do that
Some one has to fix FSRCNN-Tensorflow first, it is broken piece of shit currently.
>>
>>61259323
OK! FSRCNN code itself is not even stable or good for upscaling.
I finally understand madshi now. It was better to create his own algorithm than trying to fix a retarded and full of bugs one.
Holy shit I was beginning to believe haasn was just teasing us by pleasure.
>>
Is FSRCNN the best Super Resolution algorithm available for realtime upscaling in 2017?
>>
>>61259169
What's a pertinent picture to train FSRCNN?
Could you define it to me?
>>
Is this running with h/w drivers?

the mpv.conf just has

profile=opengl-hq
script-opts=osc-layout=bottombar
>>
>>61259835
I have the official Nvidia drivers btw
>>
>>61259784
no

>>61259815
all of them

>>61259835
no, add
hwdec=auto
>>
>>61259835
What's wrong?
>>
>>61259835
I don't understand your question
>>
>>61259835
>780 dropped frames
whatever it is, it isn't fast enough
>>
>>61260015
So a retard could just create random flat color pictures generator to train FSRCNN and get better result than with NGU Sharp or NGU AA!
>>
>>61260015
Damn! I don't understand all those CNN things.
I wanted to create a boobs and dicks detector for my website and I collected a massive (50K+) amount of pictures. Damn I am wondering which package produces the best result. :D
>>
>>61259815
>>61260066
you don't train with just one image. you select a bunch (as in hundreds) of images for training. the more the merrier. but don't expect miracles. the improvement over what haasn has already created/trained will probably not be dramatic.
>>
Just tried the FineSharp shader but console spits out an error:
[vo/opengl] Unrecognized command 'DESC FineSharp convolution'!
>>
File: qt-bunny.jpg (787KB, 1900x1268px) Image search: [Google]
qt-bunny.jpg
787KB, 1900x1268px
>>61250974
I did a completely clean reinstall of the latest drivers and this fixed it. Cheers
>>
>>61261367
upgrade mpv
>>
video-sync=display-resample
interpolation
tscale=oversample

shoul i add something
intel celeron g550
>>
>>61262005
thanks senpai
>>
>>61259784
If you have powerful enough hardware and a small enough file, in theory

Although note that the version for mpv is not the full FSRCNN, due to arbitrary mpv limitations I had to reduce the number of convolution layers. Although given how slow FSRCNN is this is sort of mandatory anyway.

I would try making a more optimized asymmetric 2x upscaling version but the tensorflow crapped stoppd being able to train stuff for me.
>>
>>61262900
What about insane ringing artefacts?
>>
>>61262900
Try with small momentum value.
>>
>>61255815
Yes. The frame latency is above the stated range of 16ms per frame @ 60hz. In your case your frame latency is at 19.
>>
File: 1470970764161.jpg (88KB, 1280x720px) Image search: [Google]
1470970764161.jpg
88KB, 1280x720px
So is FSRCNN dead?
>>
>>61262900
Is it really that limited on mpv? Is it fixable?
>>
The super-resolved image is cropped on this repository: https://github.com/drakelevy/FSRCNN-TensorFlow

Why?
>>
why can't shinchiro builds be done each commit?
>>
>>61264518
Money?
>>
>>61264725
is it not already completely automated?
>>
>>61264901
1) Wake up.
2) Power his computer on.
3) Enter login/password.
4) Open his terminal.
5) Run: cd somewhere
6) Run: ./buildanduploadmpvforwinfags.sh
7) Close his terminal.
8) Power his computer off.
9) Go back to sleep.
>>
File: hungerpitajenlawrenceface.jpg (105KB, 822x822px) Image search: [Google]
hungerpitajenlawrenceface.jpg
105KB, 822x822px
>>61263657
WIP aka work in progress
>>
>>61264518
Compile it yourself
>>
Shiandow is still in the place:
https://forum.doom9.org/showthread.php?p=1811604#post1811604
>>
>>61265652
>I've also added a shader at the end to convert from a 2.2 gamma to 2.4, since the current standards seems to suggest that SDR media should be displayed on a 100 nit screen with a 2.4 gamma.
Intredasting. Do we have or want it in mpv? I love Shiandow!
>>
>>61265652
>>61265692
Madshi vs Haasn vs Shiandow. The battle is on!
>>
>>61265708
disgonbegud.png
>>
File: retardedsurpriseface.jpg (35KB, 368x368px) Image search: [Google]
retardedsurpriseface.jpg
35KB, 368x368px
>>61265739
>fatty nerds battle
>begud
>you (picture related)
>>
>>61265765
I dont know about madshi but haasn and shiandow are in perfect shape ;)
>>
>>61265504
how do i do on windows?
>>
>>61266463
https://github.com/mpv-player/mpv/blob/master/DOCS/compile-windows.md
>>
>>61266463
You'll have installed Linux, "learned" about it and the shell and then compiled mpv before you've done it on windows.
>>
mplayer is superior
>>
>>61265652
>Bilateral > SSIM > Deband Experimental > SSSR
What did he mean by this?
>>
what's the best config for watching mongolian documentaries on a 10 year old potato?My laptop has died yesterday.
>>
Can you put a music visualizer on mpv?
>>
>>61268322
https://github.com/mfcc64/mpv-scripts/blob/master/visualizer.lua
>>
Mpv resets window size at every scene change.

Is there a setting to disable this?
>>
>>61263892
They choose to crop instead of padding when training/testing, to prevent learning artifacts that arise from the image border

>>61263778
mpv is hard-coded to use only 6 texture units, and making this dynamic would be possible but probably annoying (because OpenGL sucks).

>>61262988
Oh hey, I think that fixes it!
>>
>>61265652
>>61265692
1. that sounds like bullshit
2. mpv does color management in a very rigorous, spec-compliant way.
>>
>>61262978
The entire output of FSRCNN depends on the images and network you use to train it, there's literally no other process going on. It's just a straight up neural network that decides what the final image should be.

So any artifacts you get are that way because the neural network has learned that they're the best. (given its constraints). If you don't like them, you could:

1. Train a bigger network (slow)
2. Train a network on better images (e.g. images you care about)
3. Train the network using a loss function that knows about ringing

Right now the TensorFlow thing trains using MSE (aka PSNR), which is one of the shittiest possible ways to train and the reason why all neural networks make the images look like watercolors. Switching to something more effective like MS-SSIM would most likely drastically change the result of the neural network because it learns using a different, vastly improved concept of what a “good” image looks like. There's some TensorFlow MS-SSIM code out there, so it should be possible to test in theory.
>>
>>61268909
Also
4. Train the network longer
Keep in mind that ringing is sort of one of the natural byproducts of any sort of convolution, and all of the layers in FSRCNN are convolutional in nature (hence “C”NN), so it's possible that it may be inherent. But in principle, as long as you use a big enough NN and teach it that ringing=bad, it should learn to remove it.
>>
File: 1470768630680.jpg (43KB, 600x451px) Image search: [Google]
1470768630680.jpg
43KB, 600x451px
>mfw new shinchiro build
It's out m8s
>>
>>61268909
> MSE [...] make the images look like watercolors

i think it's rather caused by neural networks being able to restore edges very well (sometimes almost perfectly), while they can do nothing about texture detail that's just not there in the low-res image. very sharp edges + no texture detail = watercolor images.
>>
>>61268909
>>61268952
>>61270220
Thank you very much!
Thread posts: 318
Thread images: 56


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.