[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
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: 126
Thread images: 25
File: qtina.webm (127 KB, 1280x720) Image search: [Google]
qtina.webm
127 KB, 1280x720
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
>>
File: 1394526813192.png (46 KB, 143x160) Image search: [Google]
1394526813192.png
46 KB, 143x160
>>51318572
Living dangerously I see

I like to live dangerously myself.
>>
File: mpv-shot0002.png (712 KB, 1280x720) Image search: [Google]
mpv-shot0002.png
712 KB, 1280x720
>>51318775
Thanks, Anon!
>>
File: vlcsnap0005.jpg (723 KB, 1920x1080) Image search: [Google]
vlcsnap0005.jpg
723 KB, 1920x1080
>>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's

screenshot-template="~/Desktop/vlcsnap-%tY-%tm-%td-%n"
>>
File: vlcsnap-2015-11-12-0001.jpg (431 KB, 1920x1080) Image search: [Google]
vlcsnap-2015-11-12-0001.jpg
431 KB, 1920x1080
>>51318968
Perfect.
>>
File: vlcsnap-2015-11-13-0001.png (756 KB, 1280x720) Image search: [Google]
vlcsnap-2015-11-13-0001.png
756 KB, 1280x720
>>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
>>
File: qtina_better.webm (2 MB, 1280x720) Image search: [Google]
qtina_better.webm
2 MB, 1280x720
>>51319296
OK, thanks.

Here's a test with crf and qmax both set to 0.
>>
>>51314931
echo screenshot-format=png > ~/.config/mpv/mpv.conf
>>
File: vlcsnap-2015-11-13-0006.png (641 KB, 1280x720) Image search: [Google]
vlcsnap-2015-11-13-0006.png
641 KB, 1280x720
>>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.
>>
File: CastleSmall.png (668 KB, 696x436) Image search: [Google]
CastleSmall.png
668 KB, 696x436
>>51321934
I did a little test with sharpen filters on this pic.

50% to be upscaled
>>
File: castle_ewa_lanczos.png (2 MB, 1392x872) Image search: [Google]
castle_ewa_lanczos.png
2 MB, 1392x872
>>51327309
vo=opengl-hq:dither-depth=8:scale=ewa_lanczos:scale-antiring=1.0
>>
File: castle_ewa_lanczos_sharp025.png (2 MB, 1392x872) Image search: [Google]
castle_ewa_lanczos_sharp025.png
2 MB, 1392x872
>>51327327
vo=opengl-hq:dither-depth=8:scale=ewa_lanczos:scale-antiring=1.0:sharpen=0.25
>>
>>51327344
vo=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"
>>
File: castle_ewa_lanczos_lumasharpen.png (2 MB, 1392x872) Image search: [Google]
castle_ewa_lanczos_lumasharpen.png
2 MB, 1392x872
>>51327354
vo=opengl-hq:dither-depth=8:scale=ewa_lanczos:scale-antiring=1.0:post-shaders=lumasharpen.glsl
>>
File: CastleBig.png (3 MB, 1392x872) Image search: [Google]
CastleBig.png
3 MB, 1392x872
>>51327375
100% non upscaled
>>
>>51327309
any chance for nnedi3 sir?
>>
File: castle_nnedi3.png (2 MB, 1392x872) Image search: [Google]
castle_nnedi3.png
2 MB, 1392x872
>>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
>>
File: castle_nnedi3_sharp025.png (2 MB, 1392x872) Image search: [Google]
castle_nnedi3_sharp025.png
2 MB, 1392x872
>>51327492
vo=opengl-hq:dither-depth=8:prescale=nnedi3:scale=ewa_lanczos:scale-antiring=1.0:sharpen=0.25
>>
>>51327509
vo=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"
>>
File: castle_nnedi3_lumasharpen.png (2 MB, 1392x872) Image search: [Google]
castle_nnedi3_lumasharpen.png
2 MB, 1392x872
>>51327529
vo=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 do
youtube-dl --list-format
to know what resolutions you can use. Then
mpv --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
>>
File: mpv-shot0001.jpg (169 KB, 1920x1080) Image search: [Google]
mpv-shot0001.jpg
169 KB, 1920x1080
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
>>
File: feel.jpg (44 KB, 640x640) Image search: [Google]
feel.jpg
44 KB, 640x640
>>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?
>>
File: vlcsnap-2015-11-14-02h11m37s069.png (480 KB, 853x480) Image search: [Google]
vlcsnap-2015-11-14-02h11m37s069.png
480 KB, 853x480
>>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 need
screenshot-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
>>
File: vlcsnap-2015-11-14-02h02m43s.png (292 KB, 853x480) Image search: [Google]
vlcsnap-2015-11-14-02h02m43s.png
292 KB, 853x480
>>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.
>>
>>51339028
no
>>
>>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.
Thread replies: 126
Thread images: 25

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.