Are the defaults good enough?
How do I change the default screenshot format to PNG? (I'm using Windows but it shouldn't matter).
>>51314783
screenshot-format=png
>>51314832
I mean permanently. I already do that every time I play a video if I want to take screenshots.
bump2
You can't set it permanently.
>>51316124
That's not true.
>>51317249
Then how?
>>51317749
config files.
>>51317972
The Windows builds don't seem to create any. There's a folder in %AppData% but it's empty.
>>51318018
I had to create mine on Xubuntu, and that's how I have it permanently. He should try that.
>>51318148
What files did you create?
screenshot-template="~/Desktop/vlcsnap-%n"
screenshot-format=jpg
screenshot-jpeg-quality=100
r8 my config
>>51318572
>vlcsnap
>>51318587
guaranteed replies
>>51318679
Could you help me, Anon? >>51318195
>>51318717
~/.config/mpv/mpv.conf
>>51318572
Living dangerously I see
I like to live dangerously myself.
>>51318775
Thanks, Anon!
>>51318853
you got it senpai
OP here. I made the WebM with WebM for Retards: https://gitgud.io/nixx/WebMConverter
What values should I use to improve the quality of the WebM? Under Encoding, I've set the Mode to Variable and I enabled high-quality mode but kept CRF at 10 and Tolerance at 20.
>>51318572
Anon pls, it'sscreenshot-template="~/Desktop/vlcsnap-%tY-%tm-%td-%n"
>>51318968
Perfect.
>>51318968
:3
>>51318955
Set a lower crf value.
>>51319238
Why lower?
>>51319254
higher crf mean less quality
>>51319271
So 0 means best? What about the Tolerance value (seems to be the qmax parameter in ffmpeg)?
>>51319285
Same with qmax. Higher=worse
>>51319296
OK, thanks.
Here's a test with crf and qmax both set to 0.
>>51314931
echo screenshot-format=png > ~/.config/mpv/mpv.conf
>>51319587
I already got my answer but thanks, Anon. I used the mpv manual which helped me configure it further.
https://mpv.io/manual/master/
>>51314783
mpv is so good by default that all these threads talk about how to improve the config file
also, the autist settings for png are
screenshot-format=png
screenshot-png-compression=0
screenshot-png-filter=0
screenshot-tag-colorspace=yes
screenshot-high-bit-depth=yes
screenshot-template= (whatever you want, I use - %f - %wH.%wM.%wS [%tY.%tm.%td-%tHh%tMm%tSs%00n])
>>51319690
I've set compression to 9 and left the filter at 5 since the quality drop doesn't seem to be too visible.
Will tagging screenshots with the colorspace result in compatibility issues?
>>51319740
Doesn't png do lossless compression?
>>51320075
Yes.
What the fuck /g/? Adaptive sharpen does LITERALLY nothing (at least in terms of sharpening).
Look at the following comparison (480p ensures it's blurrier and in dire need of some sharpening post upscaling: http://screenshotcomparison.com/comparison/150308
If anything, it looks softer.vo=opengl:scale=ewa_lanczossharp:cscale=ewa_lanczos:dscale=mitchell:tscale=oversample:scaler-resizes-only:tscale-clamp:dither-depth=8:deband:swapinterval=1:correct-downscaling:pbo:interpolation:prescale-passes=2:prescale-downscaling-threshold=1.6:post-shaders="~~/shaders/adaptive-sharpen-pass1.glsl,~~/shaders/adaptive-sharpen-pass2.glsl"
>>51321934
???
>>51321934
Source code: https://gist.github.com/bjin/e22e96861669e897cf65
>>51321946
?????????
Fuck off, autist.
>>51322026
>>>/global/rules/6
Your post is random and makes no sense in the context of the thread.
>>51322047
Random? This thread is about mpv, and my post was in regards to a newly ported (hlsl --> glsl) mpv shader that's supposedly not working, complete with a screenshot comparison.
You're the one who's shitposting and added literally nothing to the discussion.
>>51321934
http://www.screenshotcomparison.com/comparison/150312
works on my intel(tm) pc with NVidia(tm)(the way its meant to be played) graphics machine
How do I turn off subtitles for YouTube videos only?
How do I get the saved screenshot to include the time in the filename? I keep running into duplicate file names after I move them to new folders.
>>51324097
https://mpv.io/manual/master/#screenshot
See --screenshot-template
>>51314783
>>51319195
Who's this cutie from
>>51325429
black bullet m80
Windows mpv users with AMD gpus can try using
http://tmp.srsfckn.biz/mpv_ws.exe.xz
if they are having screen tears in fulscreen
>>51326072
(btw this is build by official windows maintained lachs0r)
https://github.com/mpv-player/mpv/issues/2177#issuecomment-156330485
>>51319350
CRF 0 is lossless encoding, which is larger than the source file you're encoding from. You'd only do that in specific scenarios. Going between 1 and 12 is also retarded for any purpose.
>>51320075
Higher compression means smaller file size in exchange for taking longer to encode/decode. Doesn't make much of a difference in either direction unless you're dealing with many files at once.
>>51326072
Yes. In fact, anyone getting tearing with the latest build should try this (due to multi-monitor systems, Windows 10 nonsense, etc.)
>>51326252
I don’t think vp8 can even do lossless encoding.
>>51321934
I did a little test with sharpen filters on this pic.
50% to be upscaled
>>51327309vo=opengl-hq:dither-depth=8:scale=ewa_lanczos:scale-antiring=1.0
>>51327327vo=opengl-hq:dither-depth=8:scale=ewa_lanczos:scale-antiring=1.0:sharpen=0.25
>>51327344vo=opengl-hq:dither-depth=8:scale=ewa_lanczos:scale-antiring=1.0:no-sigmoid-upscaling:post-shaders="adaptive-sharpen-pass1.glsl,adaptive-sharpen-pass2.glsl"
>>51327354vo=opengl-hq:dither-depth=8:scale=ewa_lanczos:scale-antiring=1.0:post-shaders=lumasharpen.glsl
>>51327375
100% non upscaled
>>51327309
any chance for nnedi3 sir?
>>51327417
I'm not a fan but here you are.vo=opengl-hq:dither-depth=8:prescale=nnedi3:scale=ewa_lanczos:scale-antiring=1.0
>>51327492vo=opengl-hq:dither-depth=8:prescale=nnedi3:scale=ewa_lanczos:scale-antiring=1.0:sharpen=0.25
>>51327509vo=opengl-hq:dither-depth=8:prescale=nnedi3:scale=ewa_lanczos:scale-antiring=1.0:no-sigmoid-upscaling:post-shaders="adaptive-sharpen-pass1.glsl,adaptive-sharpen-pass2.glsl"
>>51327529vo=opengl-hq:dither-depth=8:prescale=nnedi3:scale=ewa_lanczos:scale-antiring=1.0:post-shaders=lumasharpen.glsl
I like >>51327375
ewa_lanczos+lumasharpen without nnedi3 best. Adaptive sharpen oversharpens some edges and nnedi3 causes shitty oilpainting effect. When you combine those two you get ayylmfao effect on trees here >>51327529
>>51327529
thanks, I think this one is the best looking for my eyes, with the proper viewing distance
it looks like the supereagle stuff from emulators up close though
>>51327596
Whatever you like best. It's all personal placebo for your eyes.
here's lumasharpen
https://0x0.st/6T.glsl
>>51327551
Have you compared any of the other scales, cscales, dscales and tscales?
Does dither depth do anything if my display already is 8-bit?
>>51327663
cscale is chroma scaling, dscale is downscaling, and tscale is for interpolation
>>51327684
I know, was just wondering if you had compared all the options against each other and made any comparison pics?
>>51314783
You should at least use opengl-hq. Seriously, the quality difference from opengl to opengl-hq is much greater and way more noticeable than any changes some of the fancy fine-tuned configs make.
>>51327663
This is for comparing sharpen effect only so I didn't bother with other scales. You will obviously get a different picture if you use other scalers.
best dscale?
>>51327794
also what is better, ewa_lanczos or bicubic?
>>51327848
>What is better
Extremely subjective. Look for yourself and make a choice: https://github.com/haasn/mpvhq-upscalers/blob/master/Rose.md
>>51327591
nnedi already does that on its own, the sharpening just makes it more obvious. That’s why nnedi3 is garbage, and superxbr is even more horrible.
>>51327986
>superxbr is even more horrible
I disagree, I can print and hang this on my wall.vo=opengl-hq:dither-depth=8:prescale=superxbr:scale=ewa_lanczos:scale-antiring=1.0:no-sigmoid-upscaling:post-shaders="adaptive-sharpen-pass1.glsl,adaptive-sharpen-pass2.glsl"
anyone else here using MPV to play YT videos? can you tell me how to change the default resolution for youtube videos played through mpv?
vo=opengl-hq:scale=ewa_lanczossharp:cscale=ewa_lanczos:dscale=mitchell:tscale=mitchell:tscale-clamp:scaler-resizes-only:interpolation:deband
r8
I've just recently discovered that I can OC my monitor to 72 Hz (it's 60) comfortably. Also my 1080p TV can do 120 Hz. So should I do fpsadjust or xrandr.lua?
Considering it'll be 2 different monitors I'm assuming neither will work, right?
>>51328293
First doyoutube-dl --list-formatto know what resolutions you can use. Thenmpv --ytdl-format <format> <Ytvideo>
>>51328293
Put this in your config:ytdl-format=(bestvideo[height>720]/bestvideo[fps=60])[tbr<13000]+bestaudio/best
Change [height>720] to whatever you want it to be. Can be the other way around too. It'll try to chose the best possible quality according to your preference.
Is there a way to let subs get scaled by the window? Apparently, there are two (?) arguments for that but they don't seem to work.
The ones I'm talking about are--sub-scale-by-window and --sub-scale-with-window.
I have a CRT monitor with a resolution of 3840x480 for /vr/ and I'd also like to watch some anime with that (and also don't want to switch resolutions every time). Problem is that soft subs don't get scaled and are minuscule to read.
>>51328515
Try adding blend-subtitles=video to vo.
>>51328443
into the usual mpv.conf or something else?
>>51328561
Neither video nor yes seem to work.
>>51328605
What about --ass-scale-with-window ?
>>51326252
Then what do you recommend?
>>51328721
>--ass-scale-with-window
Didn't help either.
Then, I will have to switch resolutions.
>>51328722
For longer stuff you want to upload here, use some script that does 2-pass encoding and optionally downscales the video to squeeze it just below the file limits.
For shorter stuff, bloat doesn't matter that much.
>>51328867
You can do something like --ass-force-style=Fontsize=75 for custom font size.
>>51328875
Both WebMs I published were created using WebM for Retards high-quality mode, which already performs 2-pass encoding. It adds a bunch of parameters to the ffmpeg command, which appears briefly on the status bar and can be retrieved from the Advanced tab.
Using default settings for Variable mode and no audio, it uses the following:ffmpeg -an -c:v libvpx -pix_fmt yuv420p -threads 4 -slices 4 -qmin 0 -crf 10 -qmax 30 -qcomp 0
If I enable high-quality mode, then the commands used are:ffmpeg -an -c:v libvpx -pix_fmt yuv420p -threads 4 -slices 4 -quality best -lag-in-frames 16 -auto-alt-ref 1 -qmin 0 -crf 10 -qmax 30 -qcomp 0
What should be changed, if anything?
bump2
How is watching YouTube videos on mpv?
bump3
Anyone got a decent config that helps with fps?
My fps was fine before i started messing with the config. Now when i open other terminals while watching things, the fps drops. This never used to happen, i have good gpu and processor, 8GiB dedicated wam.
I'm unsure of which settings can help.
>>51334842
bump
>>51319627
>vlcsnap
>vlcsnap
>vlcsnap
>vlcsnap
>vlcsnap
>>51335710
Are you triggered, Anon?
>>51335710
I knew it, guaranteed replies. >>51318572
where do i drop the shaders?
i've put lumasharpen.glsl in ~/.config/mpv/shaders/ and mpv cant seem to find it
>>51334842
last bump
Side question. On Ubuntu should I be using alsa or pulse on my "ao" line?
>>51336343
To be specific, either the Gnome re-spin or default Unity.
>>51318955
avconv -i -an myvideo.mp4 -acodec libvorbis -aq 5 -ac 2 -qmax 25 -threads 2 myvideo.webm
ffmpeg -i input.mp4 -codec:v libvpx -an -aq 5 -ac 2 -qmax 10 -q:a 5 output.webm
"-an" is no sound so remove if you want sound
>>51336691
I'm startled, Anon. Are those the parameters I should use in the converter or do you want me to use ffmpeg directly?
>>51318572
>>51318897
>>51318968
>>51319014
>>51319195
>>51319627
But people on /a/ use VLC screen shots with this file name: vlcsnap-2015-11-14-01h48m39s164.png
To get that format you needscreenshot-template=~/Pictures/vlcsnap-%tY-%tm-%td-%tHh%tMm%tSs%tf
But the %tf does not grab the millisecond (strftime) making it impossible to mimic vlc's file format unless I am doing somthing wrong.
>>51338700
Just putting vlcsnap alone is enough desu
>>51338722
Yeah I just launched VLC and noticed two options. Still would be great if it can use milliseconds.
>>51338742
What's the variable for filename? I've got an extra vile idea.
>>51338557
You can use avconv or ffmpeg. Your choice
You type those in your terminal and change the filenames and gg.
>>51338776
%f is filename
%tF will not work since that is "%Y-%m-%d".
https://mpv.io/manual/master/
http://php.net/manual/en/function.strftime.php
>>51338800
Alright, thanks. But why different qmax values for each?
>>51338813
Now my screenshots are topbait
And I thought the MPC userbase was autistic.
>>51338866
But mpv isn't Windows-only, Anon.
>>51338838
That will just confuse people. Good job.
Guess I will just go for what I have on mpv and just swap for vlcsnap.
>>51338833
I dont use avconv anymore so its an older c onfig.But 25 is lesser quality then 10.Try doing a few transcodes and see what works for you
There's no way to make mpv save screenshots for each file I play in their own directory, is there? --screenshot-directory=whatever/%f doesn't work.
>>51338813
>mpv, a media player programmed in C.
>Links the PHP version of strftime
Are you fucking retarded?
How can I get mpv to show milliseconds at the status line in the cli?
(Paused) AV: 00:00:25 / 00:23:43 (1%) A-V: 0.000 ct: 0.083 Cache: 10s+73MB
Also how can I seek by milliseconds?
>>51339562
Use osd-fractions = yes and you can step through frame by frame using . and , respectively. That will probably accomplish what you want.
>>51339546
Its a page reference to strftime. It doesn't matter what source I link it from since the idea is still the same.
http://man7.org/linux/man-pages/man3/strftime.3.html
The context is almost the same. Both pages show milliseconds is not supported.
Now fuck off.
>>51339860
>not supported
By default, its possible to get milliseconds but it might require something else for mpv.