[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/ - keep it simple
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: 29
File: default_icon_512x512.png (1 MB, 512x512) Image search: [Google]
default_icon_512x512.png
1 MB, 512x512
> windows builds:
- https://mpv.srsfckn.biz/
- https://kawaii.imo.uto.moe/
- https://sourceforge.net/projects/mpv-player-windows/files/
- https://bitbucket.org/rorgoroth/mpv-for-windows/downloads

> user shaders:
- https://gist.github.com/igv
- https://gist.github.com/voltmtr

> mpv based gui players:
- https://github.com/gnome-mpv/gnome-mpv
- https://github.com/cmdrkotori/mpc-qt
- https://github.com/plexinc/plex-media-player

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


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


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


> high preset with interpolation:
vo=opengl-hq:interpolation:blend-subtitles
video-sync=display-resample
hwdec=no
>>
File: qtcreator.svg_512x512.png (25 KB, 512x512) Image search: [Google]
qtcreator.svg_512x512.png
25 KB, 512x512
Is there official windows builds for mpc-qt somewhere?
>>
I installed this AUR package:
https://aur.archlinux.org/packages/plex-media-player/

Why the fuck does it ask me a fucking plex pass!
>>
Anyone have any idea why my mpv windows automatically maximizes when starting? I don't mean fullscreen, I simply mean maximize.

I am using KDE Plasma, this is what my conf looks like:

# Video
vo=opengl-hq:interpolation:blend-subtitles:fbo-format=rgba16f:post-shaders="~~/ToGamma.glsl,~~/adaptive-sharpen-pass1.glsl,~~/adaptive-sharpen-pass2.glsl"
video-sync=display-resample
framedrop=no
hwdec=no

# OSC
script-opts=osc-layout=bottombar,osc-seekbarstyle=bar

# Streams
sub-auto=fuzzy
demuxer-mkv-subtitle-preroll
slang=English,eng,en
alang=Japanese,jap,English,eng,en,German,ger,de

# Misc
save-position-on-quit

[extension.webm]
loop-file=inf

ytdl
ytdl-format=bestvideo+bestaudio/best
>>
>>54518742
Add this:

geometry=50%:50%
autofit-larger=90%x90%
>>
>>54519041
thanks bud, unfortunately it had no effect. I'm beginning to think it has to do with KWin.
>>
>>54519056
Weird, I have KDE too. Which version do you have and what OS?

Add this btw:

force-window
>>
>>54519106
 baddy@arch  ~/Downloads  screenfetch
-`
.o+` baddy@arch
`ooo/ OS: Arch Linux
`+oooo: Kernel: x86_64 Linux 4.5.3-1-ARCH
`+oooooo: Uptime: 1d 8m
-+oooooo+: Packages: 1002
`/:-:++oooo+: Shell: zsh 5.2
`/++++/+++++++: Resolution: 3840x1080
`/++++++++++++++: DE: KDE5
`/+++ooooooooooooo/` WM: KWin
./ooosssso++osssssso+` GTK Theme: Arc [GTK2/3]
.oossssso-````/ossssss+` Icon Theme: breeze
-osssssso. :ssssssso. Font: Noto Sans Regular
:osssssss/ osssso+++. CPU: Intel Core i7 CPU 930 @ 2.801GHz
/ossssssss/ +ssssooo/- GPU: GeForce GTX 650
`/ossssso+/:- -:/+osssso+- RAM: 3789MiB / 16042MiB
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/


force-window didn't have much of an effect. Videos that are 1080p (i.e. my native resolution) seems to automatically maximinize the window, videos below that size seem to start in windowed mode (now?).
>>
File: screenshot_003.jpg (444 KB, 1920x1200) Image search: [Google]
screenshot_003.jpg
444 KB, 1920x1200
>>54519150
>videos below that size seem to start in windowed mode (now?).
You mean like this?

Although with the first two I asked you to add even 1080p videos should start like this.
>>
>>54519249
Sorry let me clarify. They all start in windowed modus, nothing is fullscreen. However when the video size is 1080p KWin or mpv itself seem to decide that the window should be maximized (maybe to fit it perfectly into the desktop?). It stays in windowed mode, but the maximize button is definitely toggled -- the sides however, depending on the video aspect ratio, don't necessarily cover the whole desktop.

My mpv unfortunately doesn't always start like yours. I tested it earlier with an empty configuration file and it worked "normally" again. I'll have to debug tomorrow.

Liking your desktop by the way.
>>
>>54519396
Nevermind, it even happens with a completely empty configuration. I'll try adding just the lines you told me.

Just tested it. I had to add your lines to the top of the file... the position in the file mattered. That's definitely a bug.
>>
>>54519450
>>54519396
>>54519249
Ah yes, thank you of course. Can't forge that.
>>
>>54519396
>>54519450
That's weird, I don't have it at the beginning of my file. Which version of mpv do you have?

>>54519469
No problem.
>>
>>54519494
[cplayer] Command line options: '-v'
[cplayer] mpv git-304d9d5 (C) 2000-2016 mpv/MPlayer/mplayer2 projects
[cplayer] built on Thu Apr 28 10:09:56 CEST 2016
[cplayer] ffmpeg library versions:
[cplayer] libavutil 55.17.103
[cplayer] libavcodec 57.24.102
[cplayer] libavformat 57.25.100
[cplayer] libswscale 4.0.100
[cplayer] libavfilter 6.31.100
[cplayer] libswresample 2.0.101


Compiled from the AUR.
>>
>>54519494
>>54519519
Welp, gotta head to bed. Good night man, and thanks again. I'll check this thread tomorrow in case anyone else runs into this.
>>
>>54519566
>>54519519
I have an older built than yours. No idea what could it be. But at least you were able to fix it in some way.
>>
Honestly wish they were better stats show in the stats script, like GPU/CPU usage.
>>
>>54520117
mpv can't really measure any of that. The GPU is a black box, and even measuring CPU performance is nontrivial

best use a tool like htop or nvidia-smi if you're interested in that.
>>
Am I missing something new or should I remove something from here?

vo=opengl-hq:interpolation:blend-subtitles:fbo-format=rgba16f:scale=ewa_lanczossharp:cscale=ewa_lanczossoft:scale-antiring=0.8:cscale-antiring=0.9
video-sync=display-resample
vd-lavc-threads=8
hwdec=no
>>
>>54520243
>fbo-format=rgba16f
why?
>>
>>54520272
Added it a while ago while reading the manual since it seems to improve the quality if you select the format while using opengl.

But I have no idea if it does something though.
>>
>>54520316
The default of rgba16 is better
>>
Why is mpc-qt tied to msys2 qt on windows anyway? Couldn't you just use the official msvc qt version?
>>
File: Untitled.png (400 KB, 930x483) Image search: [Google]
Untitled.png
400 KB, 930x483
>>54521830
LMAO
it compiles now
>>
>>54522001
thats one ugly icon
can you put the windows style borderless or frameless, forgot it's name
>>
>>54522188
when i get back ill see
>>
>>54522001
>that speaker icon
why???
>>
File: wtf_is_this_ugly_icon.png (71 KB, 829x457) Image search: [Google]
wtf_is_this_ugly_icon.png
71 KB, 829x457
>>54522001
>>54522188
>>54522263
>>
File: selena_intense_react.jpg (81 KB, 643x557) Image search: [Google]
selena_intense_react.jpg
81 KB, 643x557
>>54522001
WTF it's so ugly...
>>
>>54522491
Due to me using win Classic tbqh
I'm sure it looks decent on win10
>>
>>54517971
>mpv based gui players
>lists the three shittiest frontends available for mpv
No wonder these threads are so shit.
>>
>>54523024
Share your list!
>>
>>54523066
I miss Bomi ;_;
All the other frontends still stink compared to Bomi.
>>
>>54523085
Bomi is not a front-end
>>
>>54523085
What was so special about Bomi? It looked the same as Baka MPlayer.
>>
>>54523085
Bomi is completely dead as you can see on its github:
https://github.com/xylosper/bomi
>>
>>54521830
MSVC is garbage.
>>
>>54523168
Everything from Microsoft smell shit.
However some people love playing with their poop.
>>
>>54523168
Msvc 2015 supports more of c++11/14 than gcc 4

This isn't 2010 >>54523251
>>
File: baka-nightlies.png (283 KB, 939x525) Image search: [Google]
baka-nightlies.png
283 KB, 939x525
>>54523103
I am so desperate.
I am about to re-switch to mpc-hc/mad and it makes me sad.
>>
>>54523336
You're unlikely to get nightlies for Baka, the devs are starting over from scratch and rebranding.
>>
>>54523319
I just checked master branch and it's gcc 7...
>>
>>54523354
What do you mean by rebranding?
Did they change the weird name?
>>
>>54523366
Yeah, I remember reading it on their GitHub. Now it's called Noki Player or something like that.
>>
>>54523384
It seems dead unlike baka-mplayer.
https://github.com/mochi-player/mochi-player
>>
>>54523394
The pre branch seems to be somewhat active, but it's still not usable.
https://github.com/mochi-player/mochi-player/tree/pre
>>
>>54522437
talking about the smiley face icon for the program
>>54523354
gonna take a year for them to even make another one
>>54523085
it wasn't really a front-end but it was really good.
>>
>>54523355
check qt downloads section
their mingw is at gcc 4
>>
What's new in the mpv development recently?
Saw some dx11 and angle things. Did I miss something?
>>
The presets should have hwdec=auto-copy instead of hwdec=auto or hwdec=no.
>>
>>54523319
>c++11/14
That's super cool, but mpv is written in C99.
>>
>>54524156
Ah 1999, that year was crazy.
There were pokemon trainers everywhere with fatty grey gameboy in their hands.
>>
what options should i use if I want the smoothest seeking possible?

anyone have a smooth seeking preset?
>>
In 1999, I hoped we could code from our mind in 2010.
Now I hope that we will never be able to do it.
>>
In 1999, I was in love with java, now it hurt in my butt each time I saw java code.
>>
File: young_white_man_lezard_shit.jpg (199 KB, 1024x654) Image search: [Google]
young_white_man_lezard_shit.jpg
199 KB, 1024x654
>>54519249
KDE is a dumb shit.
>>
File: kde_is_free_but_stinks.jpg (201 KB, 1024x654) Image search: [Google]
kde_is_free_but_stinks.jpg
201 KB, 1024x654
>>54524346
Free doesn't mean it's good.
>>
>>54524346
>>54524391
>Too poor for KDE
hahahaha. How's your neetbux?
>>
When is the Photoshop autist going to leave?
>>
File: 1413505815541.gif (2 MB, 350x251) Image search: [Google]
1413505815541.gif
2 MB, 350x251
>>54524411
Yes it use my gpu so much, even utorrent btc miner was more discrete.
>>
File: laziness.jpg (51 KB, 640x489) Image search: [Google]
laziness.jpg
51 KB, 640x489
>>54524423
I am too fat to leave unfortunately.
>>
>>54524466
>Your PC
>GPU
Nice meme poorfag kek
>>
File: make_kde_great_again.png (1 MB, 1920x1080) Image search: [Google]
make_kde_great_again.png
1 MB, 1920x1080
>>54524423
>>54524489
:D
>>
>>54524569
I don't give a shit about burgerland but I do agree on making KDE greater again
>>
>>54517971
>- https://mpv.srsfckn.biz/
>- https://kawaii.imo.uto.moe/
>- https://sourceforge.net/projects/mpv-player-windows/files/
>- https://bitbucket.org/rorgoroth/mpv-for-windows/downloads

Which one is the most recommended?
>>
>>54524156
that's super cool, but we are talking about mpc-qt, the gui written in Qt which is written in C++
>>
>>54525192
That's super cool, but mpc-qt is an mpv GUI, and while it's possible to build a program using libraries generated by multiple different compilers, it tends to add complexity to the build process for no good reason.
>>
>>54525256
what complexity? It is built independently from mpv
>>
>>54525297
No, it links to libmpv.
>>
>>54518742
>
hwdec=no

>>54520243
>
hwdec=no

why
>>
>>54525325
I thought it was needed for something else to work correctly.
>>
>>54525319
Which mpc-qt doesn't build
>>
>>54525809
It requires it. You'd be an idiot to use a different development environment to the one your dependencies require. What if you wanted to test against bleeding edge libmpv?
>>
>>54525325
Causes audio glitches for me. And doesn't work with most of the content I watch anyway (10 bit stuff).
>>
>>54524587
no one knows.jpeg

if it's for windows you can pick kawaii or bitbucket

the bitbucket one has an updater though don't know about kawaii
>>
The ultimate guide for perfect home cinema experience:
http://forum.kodi.tv/showthread.php?tid=259188
>>
>>54526520
Or just set this config and you are done
vo=opengl-hq:interpolation:user-shaders="~~/CrossBilateralSR.glsl,~~/SuperRes1.glsl":cscale=bilinear:scale=ewa_lanczossharp
video-sync=display-resample
hwdec=auto-copy
>>
>>54526760
>
SuperRes1

what it do?
>>
>>54526802
>The general idea behind the super resolution method is explained in the white paper Alexey Lukin et al. The idea is to treat upscaling as inverse downscaling. So the aim is to find a high resolution image, which, after downscaling is equal to the low resolution image.

>Estimated upscaled image is calculated -> Image is downscaled -> Differences from the original image are calculated

>Forces (corrections) are calculated based on the calculated differences -> Combined forces are applied to upscale the image
>>
>>54526850
basically upscales the image and than downscales?
>>
>>54527814
basically makes image sharper based on the difference of the original image and downscaled.
>>
why doesn't 4chan have a board for video edition?

I always have to ask stuff in here because I know people who know stuff visit the mpv threads

any of you guys know why libopus can't lower the sample rate to 44 KHz?

I'm trying to use -ar 44100 in ffmpeg and the damn thing says it can't.
>>
what would be the best configuration for a laptop with this features:
i3-2350M CPU 2.30 GHz
RAM: 6GB
Graphics: Intel 3000
>>
>>54528692
Depends on what resolution video and fps.

vo=opengl-hq + hwdec=auto should be okay on 720p files but going up to 60fps can cause huge drops.

Depend also what you watch? Do you really need everything in opengl-hq? If not vo=opengl can be fast.

3000 series intel drivers didn't get fixed (only 4000+) for dxinterop backend to work and not be buggy otherwise you'd be able to use that.
>>
So can you set keybinds for something like debanding?
>>
>>54529553
yeah mostly 720p files and my resolution is 1336x768
>>
>>54526760
can you share the glsl script
>>
>>54531559
https://gist.github.com/igv
>>
what is a shader?
>>
>>54531713
...and can I use that on windows?
>>
>>54531659
Yeah I found that one but the crossbilateral I couldn't find
>>
>>54531773
Don't forget you can't use it with OP builds.
You have to compile an experimental branch.
Just wait a little bit. ;)
>>
>>54531818
Oh great ;)

by the way

Error parsing option user-shaders (option not found)
Option vo: Error while parsing opengl-hq parameter user-shaders (C:\mpv\user-scripts\SuperRes1.glsl)
Error parsing option vo (option could not be parsed)


epic ;)
>>
>>54531885
Be patient and keep it easy.
I think these shaders need haasn's supervision and maybe they will be integrated inside mpv.
>>
Why not creating a community mpv-shaders repository to handle all these shaders?
>>
Is there a way to get mpv scripts working on frontends such as Baka MPlayer?
>>
>>54532168
Please don't use this dead frontend anymore.
>>
Are you going to remove post-shaders in favor of user-shaders?
>>
>>54533058
What frontend should I use, then?
>>
>>54533150
Default one, so no frontend.
>>
>>54533170
Keep using Baka MPlayer? Got it.
>>
>>54533180
No just mpv...
>>
>>54532101
that would make too much sense
>>
What's wrong with smplayer?
https://www.assembla.com/spaces/smplayer/subversion/source/HEAD/smplayer/trunk/Changelog
>>
File: 1450181274179.png (12 KB, 614x59) Image search: [Google]
1450181274179.png
12 KB, 614x59
Recently it started to take screenshots of this size aprox, before the max size of screenshots was from 100 to 200kb, anyone know why is this happening?
>>
>>54533456
What format are you using for the screenshots?
>>
>>54533528
If you mean the format of the screenshots, its .png is that the reason?
>>
>>54533568
It would explain somewhat, but that's still larger than it should be. What filesize do you get if you use .jpeg instead?
>>
>>54533568
nigga use pngcrush or the like
>>
>>54533666
From 100 to 200kb
>>
>using deband
>using antiring

Absolutely disgusting. These are destructive video enhancements.
>>
File: 1440749223395.jpg (102 KB, 1280x720) Image search: [Google]
1440749223395.jpg
102 KB, 1280x720
>>54533666
I look into my config and I changed the format to jpg and its much better.

Pic related, I just took it.
>>
Is there a way to have mpv display the current frame?
>>
>>54532101
There's a wiki

https://github.com/mpv-player/mpv/wiki/User-Scripts

Feel free to add your shaders there
>>
>>54533121
No, post-shaders will stick around but it's pretty much just a compatibility shim at this point. See:

https://github.com/haasn/mpv/blob/user_hooks/video/out/opengl/video.c#L1608
>>
>>54533920
OK!
>>
File: Capture.png (5 KB, 576x45) Image search: [Google]
Capture.png
5 KB, 576x45
>>54533706
>use pngcrush
Wow anon, thanks for the advice!
>>
>>54533834
Someone please respond
>>
> lumasharpen
> adaptive-sharpen
> finesharp

Why not creating something like ewa_lanczossharpest?
>>
>>54533920
>>54533942
Also if you want to port a post-shader to a user-shader, you just need to set these attributes:
https://github.com/haasn/mpv/blob/user_hooks/video/out/opengl/video.c#L1731

Which in the scripting language of user hooks means adding the following to the script:
//!HOOK SCALED
//!BIND HOOKED


Then change your function signature and replace tex/pos by HOOKED and HOOKED_pos, etc.

Note that since the hook metadata is just a regular comment as far as GLSL is concerned, I could just change the named of the hook function to make it possible to have a shader be both a valid user-shader and a post-shader at the same time, if that would help. For example:

//!HOOK SCALED
//!BIND HOOKED

vec4 sample_pixel(sampler2D tex, vec2 pos, vec2 tex_size)
{
// do something with tex/pos here
return /*something*/;
}

vec4 hook()
{
return sample_pixel(HOOKED, HOOKED_pos, HOOKED_size);
}


This would be a legal user-shader and post-shader at the same time. Would that help?
>>
>>54533965
https://github.com/Kagami/mpv_frame_info

Is this what need?
>>
>>54533965
https://github.com/Argon-/mpv-stats/

There's also this if you want more info
>>
How do I play youtube videos on mpv? I followed the instructions in http://sva.wakku.to/~chris/mpv_builds/ but I can't get it to work.

I used to just type in
mpv [youtubeurl]
in the terminal but it's not working

PS I didn't install mpv via homebrew, I just used the binaries
>>
>>54534078
do you have youtube-dl?
>>
>>54534130
yeah

From the website:

>If you want to directly play videos from YouTube (and many other video hosters), you have to install a recent version of youtube-dl (place it in ~/.config/mpv/ or $PATH).

This is what I downloaded and put in the folder that was specified: https://yt-dl.org/downloads/2016.05.10/youtube-dl
>>
>>54534078
You can use SMTube which comes with SMPlayer, it's way more easy. Or youtube-dl if you don't like it
>>
>>54534078
Just use Baka MPlayer, it integrates youtube-dl very well.
>>
i have mpv set up with youtubedl on gentoo and i read it supports XNXX porn vids but when I try to run $ mpv http/link/to/dank/porn it gives an error of:
[ytdl_hook] youtube-dl failed, trying to play URL directly ...
Failed to recognize file format.

what's the correct way to watch XNXX or other porn vids w/ mpv + youtubedl?
>>
>>54534851
Are you using http/link/to/dank/porn.mp4 or just http/link/to/dank/porn?
>>
can you toggle vo or vo options during playback?

Like make a keybind that switches from --vo=opengl to vo=opengl-hq?
>>
>>54534879
I was just doing http://link_to_dank_porn

how do you find the file name and extension?
>>
>>54533456
 --screenshot-high-bit-depth=no
>>
>>54534879
ok so I think i found the problem, I ran $ youtube-dl --version and it says

2016.01.01-gentoo_no_offensive_sites

fucking pussies, trying to appeal to normies. so yeah I'm going to try to figure out how to install the NSFW version. when I had originally installed youtube-dl i just emerged the default portage ebuild and I guess that one is for normies.
>>
>>54535238
>patching out porn
gentoo is DEAD

DEAD
>>
>>54535457
it works perfectly now I just re-emerged youtube-dl w/ the "offensive" USE flag. you just enter the url and it loads just as easily as a youtube vid. They should improve the error messages, it makes it sound like it's not working when in reality it being intentionally blocked, the error should say "this link has been identified as offensive, to view offensive links recompile youtube-dl with the offensive flag" or some shit like that. I was searching all over trying to find out why it wasn't working when they had sites like xnxx and other porn sites listed as supported sites.
>>
>>54535560
i don't think this offensive/non-offensive option is an official one, but rather added by the gentoo packagers
>>
>>54535560
>this link has been identified as offensive, to view offensive links recompile youtube-dl with the offensive flag
But that's stupid; if you were using youtube-dl on that link, shouldn't the expectation be that you WANTED to view that link?
>>
>>54535737
i meant as a warning that you accidently compiled the no_offensive_sites version, when I emerged youtube-dl I had no idea that it was going to block porn. So i just thought I was entering the file names wrong or something.
>>
>>54535797
Yeah but I mean there's no point in that restriction even existing. What is this USE flag's use case?

Anyway, that wouldn't be easy since the -offensive USE just removes all of the imports on offensive websites. It doesn't include a check or blacklist or anything.
>>
>>54534048
>>54534065
No, I want to be able to see exactly what frame number I'm on when I pause a video.

Is it not possible?
>>
>>54535827
makes no sense to me

the only people who will run into the parts of youtube-dl that pertain to porn sites is when someone has already committed to using it to download porn (so it naturally can't offend them)
>>
>>54535915
>>54535827
yeah I looked into it, it does seem like it's something the gentoo package maintainer added, i don't see a any offensive flags listed on the official github page for youtube-dl, fucking prudes. the worst part is there's no mention of this shit on this page

https://packages.gentoo.org/packages/net-misc/youtube-dl

and yeah like even if you had a kid and they were using youtube-dl they would have to know the porn site name to even download this shit AND if you want to block porn there are better ways to do it like on /etc/hosts on the router or on the computer itself.
>>
>>54535915
there's
youtube-dl --list-extractors
which could give you a list of offensive sites you don't want to know about
>>
File: offensive.png (18 KB, 1329x1062) Image search: [Google]
offensive.png
18 KB, 1329x1062
>>54536001
>yeah I looked into it, it does seem like it's something the gentoo package maintainer added
Well that much was obvious
>>
>>54536011
couldn't they have just changed that behaviour?
for example, change the list to say "N potentially offensive sites hidden, pass --offensive to view full list"
>>
>>54536057
The patch isn't that sophisticated
>>
What is the most autistic placebo config possible for mpv? I want to run my GPU at 100%, waste a ton of power and generate a fuckload of heat so I can gain 1% better video quality.
>>
>>54528032
>why doesn't 4chan have a board for video edition?
There's some amateur filmmakers fucks at /p/
>any of you guys know why libopus can't lower the sample rate to 44 KHz?
Opus internally operates at 48 khz, for everything
You can encode 44 khz audio, it encoded 48 khz, and played at 44 khz
>>
>>54528692
opengl-hq unless you want 4K or 60 fps, in that case you will need opengl
>>
>>54533815
Deband is nice on pretty much every case since pretty much every video out there has banding, except the autismo encodes that anime groups make
>>
>>54536472
You can jack up NNEDI3 to ridiculous neurons
You won't get an improvement in image quality though
>>
>>54528032
I dunno anon, but may I suggest using opusenc (sudo apt-get install opus-tools) instead? It has good defaults.
>>
>>54536472
>>54536725
Increase the ewa_lanczos radius to 4 or 5
>>
>>54528032
>any of you guys know why libopus can't lower the sample rate to 44 KHz?
The Opus format internally only supports 48 kHz
>>
I really want to try the lumesharpenhook.glsl
>>
>>54534014
I went ahead and did this, also more changes

https://github.com/mpv-player/mpv/compare/master...haasn:user_hooks
>>
>>54539130
Note to shader authors: the API for texture access changed (for good reasons).

Instead of
texture(HOOKED, position)
you now use
HOOKED_tex(position)
and instead of
texture(HOOKED, HOOKED_pos + HOOKED_pt * offset)
you now use
HOOKED_texOff(offset)
.
>>
>>54539161
If prescalers were used LUMA will be prescaled?
Can you add PRESCALEDLUMA in this case?
>>
>>54539301
Prescalers are also just regular hooks on LUMA. They get added before any user shaders, so they will run first.

(And to the user shader, ‘LUMA’ will refer to the prescaled version)
>>
>>54539318
Would be better to move prescalers to a separate file in this case, so user shaders could access not prescaled LUMA.
>>
>>54539341
I could make a copy of the textures (e.g. LUMA_RAW) before running hooks on them I guess.
>>
>>54539341
>>54539368
But note that then you'll have e.g. the situation where LUMA was debanded and LUMA_RAW was not.

If you really need your shader to run before superxbr or whatever, then it would probably be a better idea to just turn off prescaling and add the superxbr prescaler as an external hook, after yours.

Either way it's not a high priority issue I think
>>
>>54539405
> then it would probably be a better idea to just turn off prescaling and add the superxbr prescaler as an external hook
You don't plan to remove prescalers from mpv anymore?
>>
>>54539161
>instead of texture(HOOKED, HOOKED_pos + HOOKED_pt * offset)
but this can still be used?
>>
>>54539444
Still undecided. There's a certain beauty to generating shaders the “mpv way”.

>>54539479
Nope, ‘HOOKED’ itself no longer exists.

I did add the raw texture as HOOKED_raw if you really know what you're doing, but there's little reason not to prefer the new accessors.
>>
File: yt.png (146 KB, 400x400) Image search: [Google]
yt.png
146 KB, 400x400
What scaler does youtube use?
>>
File: ewa.png (243 KB, 400x400) Image search: [Google]
ewa.png
243 KB, 400x400
>>54539805
ewa_lanczos
>>
>>54539805
Almost certainly bilinear
>>
>>54539161
>error C1008: undefined variable "hook"
>>
>>54540341
rename
vec4 sample_pixel
to
vec4 hook
>>
>>54539161
Maybe replace texture with textureLod? Required when used in a loops with ANGLE.
>>
Every anime/large video I play seems to freeze for a second or so deep down. Is this caused by cache issue? It doesnt' seem to be a framedrop issue.
>>
Will you add a more advanced profile system in the new mpv release?
The madVR way to do it is very simple!
http://forum.kodi.tv/showthread.php?tid=259188&pid=2238974#pid2238974
>>
>>54539161
>"%s_tex(%s_pos + %s_rot * vec2(off)/%s_size)\n",
>/%s_size
Why not *%s_pt?
>>
>>54540829
size is rotated, pt is unrotated.
>>
So mpv has superres, crossbilateral and some advanced sharpen shaders! That's truly awesome, finally a cross-platform/opengl video player with these features.
>>
Damn I can't use hwdec on my dumbass laptop even with dxinterop or angle.

mpv git-5bd6b76

vo=opengl-hq
hwdec=auto
[d3d11va] Failed to create video decoder: Unspecified error (0x80004005)

vo=opengl-hq
hwdec=auto-copy
[dxva2] Failed to create DXVA2 video decoder: Not enough storage is available to complete this operation. (0x8007000e)

vo=opengl-hq:backend=angle
hwdec=auto-copy
[dxva2] Failed to create DXVA2 video decoder: Not enough storage is available to complete this operation. (0x8007000e)

vo=opengl-hq:backend=angle
hwdec=auto
[d3d11va] Failed to create video decoder: Unspecified error (0x80004005)

vo=opengl-hq:backend=dxinterop
hwdec=auto-copy
[dxva2] Failed to create DXVA2 video decoder: Not enough storage is available to complete this operation. (0x8007000e)

vo=opengl-hq:backend=dxinterop
hwdec=auto
[d3d11va] Failed to create video decoder: Unspecified error (0x80004005)


I think I will come back to linux. ;)
>>
>>54541829
Shitty driver or pooped GPU?
>>
File: a10-1280x1024.jpg (222 KB, 1280x859) Image search: [Google]
a10-1280x1024.jpg
222 KB, 1280x859
Best settings for an AMD APU?
>>
>>54541908
vo=opengl-hq
if it runs in realtime.
vo=opengl
otherwise.

>AMD drivers
prepare for segfaults
>>
>>54541908
Try this:
vo=opengl-hq:no-deband
hwdec=auto-copy
>>
>>54541908
As long as there are no framedrops, experiment with shaders
>>
>>54541922
Should I use dxva2 or dxva2-copy?
>>
>>54541932
auto-copy
>>
>>54541922
>>54541925
>>54541931
>>54541941
Thanks, guys.

I ended up using:
vo=opengl
hwdec=auto-copy

And it works perfectly. I just needed the safest vo setting and dxva2 didn't let me write screenshots so this config is perfect for an AMD A10 running Windows 10.
>>
>>54541998
which backend it used?
>>
>>54542049
I have no idea how to check that.
>>
>>54542057
mpv --msg-level=vo=v input
>>
This player is too experimental for me.

Users who already have mpc-hc with madvr shouldn't try this.
Seriously it's a waste of time.
>>
>>54542226
>Seriously it's a waste of time.
for you
>>
>>54542226
>Seriously it's a waste of time.

I'm a noob at mpv but I had it replace mpc-hc for me on my Win10 machine just fine.

The youtube-dl support makes it a superior choice to mpc-hc imho.
>>
>>54542234
For any windows users!
I can't understand people who use opengl atrocious mess.
The official DirectShow toolchain is much better.

>>54542251
You can use 3dyd to have youtube-dl features!
http://ys.3dyd.com/home/
>>
>>54542269
>The official DirectShow toolchain is much better.
nice joke
>>
>>54542269
>You can use 3dyd to have youtube-dl features!

That's not the same as youtube-dl. It only does a few sites. youtube-dl has support for dozens of sites.

mpv is still superior to mpc-hc
>>
>>54542280
So a little bit better, you're happy now!
>>
>Error when converting image.
>Error writing screenshot!
>hwdec=auto
>Using hardware decoding (dxva2)

Weird issue I had using dxva2 and screenshot. Turns out the issue was with using backend=dxinterop. Once I removed that, I was able to use screenshot again.

What exactly is the problem here? Why cant I use dxinterop backend with dxva2?

Without dxinterop backend, the transition from windowed mode to fullscreen fucks up shit on my computer. First there's the blackscreen flash when you go transition. Second, randomly, second monitor goes black completely in fullscreen.
>>
>>54542328
>Weird issue I had using dxva2 and screenshot. Turns out the issue was with using backend=dxinterop. Once I removed that, I was able to use screenshot again.

I had that problem too. Went away when I switched to hwdec=auto-copy.
>>
>>54542353
There is no auto-copy option for hwdec.

I did however switch to dxva2-copy and that fixed the issue of fullscreen/windowed mode transition and the screenshots.

    no
auto
vdpau
videotoolbox
vaapi
vaapi-copy
dxva2
dxva2-copy
d3d11va
d3d11va-copy
rpi
mediacodec


These are the values for hwdec.
>>
>>54542269
>The official DirectShow toolchain is much better.
This is the part where I know it's satire
>>
>>54542280
>>54542307
DirectShow is the nightmare that causes maintainers of legacy COBOL systems to weak up in a cold sweat
>>
can somebody tell me how to put subtitles in the video frame instead of the black bars? i'm new to mpv
>>
>>54542369
That means you are not using nightly builds.
>>
>>54542434
Why use auto-copy instead of the specific copy values?
>>
>>54542440
It's currently the only one useful thing in madVR now that mpv has fancy shaders support.
>>
>>54540785
The current system is more capable than the system madVR has
>>
>>54542461
It is just easier to write!
>>
>>54542478
What! I thought it was only possible with framerates and file extensions.
Show us!
>>
>>54542461
Because it's better for noobs and retarded winfags.
>>
>>54542479
>>54542549
So what's better?

dxva2-copy or d3d11va-copy?
>>
>>54542461
OMG! Even devs didn't know that hwdec=auto-copy was available.
>>
>>54542559
d3d11va-copy in theory
>>
>>54542585
Why is d3d11va-copy better than dxva2-copy?
>>
>>54542559
Just use auto-copy.
d3d11va-copy is better with backend=angle
>>
>>54542597
nv12
>>
It'sbeenalongtime since we haven't got a screenshot comparison!
So lumasharpenhook vs finesharp vs adaptive?
>>
>>54542714
and also mpv's SuperRes vs madVR's one
>>
File: mpv_htpc_box.jpg (122 KB, 1000x1000) Image search: [Google]
mpv_htpc_box.jpg
122 KB, 1000x1000
When pre-built htpc computer with pre-installed mpv and auto-updating system?
>>
File: mzl.nhgwellg.png (58 KB, 1024x1024) Image search: [Google]
mzl.nhgwellg.png
58 KB, 1024x1024
Oh please make a port of ewa_lanczos for KODI.

https://github.com/xbmc/xbmc/tree/master/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders
>>
>>54542739
What is there to compare? mpv doesn't have SuperRes
>>
>>54543028
https://github.com/xbmc/xbmc/blob/master/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/ConvolutionKernels.cpp#L34
Lmao, I guess somebody missed the “switch/case” day of C++ class
>>
>>54543299
Why people talk about things they don't know anything about?
>>
>>54543028
>>54543306
https://github.com/xbmc/xbmc/blob/master/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/VideoFilterShader.cpp
https://github.com/xbmc/xbmc/blob/master/system/shaders/convolution-6x6.glsl

holy shit I'm dead inside. This code is beyond saving
>>
File: superres.png (16 KB, 1080x497) Image search: [Google]
superres.png
16 KB, 1080x497
>>54543357
I don't see any superres here
>>
My new wallpaper!
I combined my two favourite things, mpv code and selena gomez. Do you think I am weird?
>>
>>54543433
the colors are wrong
>>
>>54543380
Unfortunately you are right. :(
Shader system in xbmc/kodi is very old and messy as hell.
>>
What should i do if i want to take .png screenshotsusing mpv? Because whenever i want to SS something, it outputs a .jpg image, i want a .png
>>
>>54543517
start by reading the manual
>>
>>54543517
screenshot-format=png
>>
>>54543560
Thanks
>>54543553
Will do
>>
>>54528032
Opus is 48khz only because that's all you need since 44 and 41 fit perfectly in it
>>
>>54519249
how do i display onscreen stats like that?
>>
vo=opengl-hq:interpolation:scale=ewa_lanczossharp:cscale=ewa_lanczossoft:tscale=mitchell:temporal-dither:pbo:target-prim=bt.709:target-trc=bt.1886:gamma-auto:icc-profile=~/.config/dell_u2312hm_standard.icc:3dlut-size=256x256x256:waitvsync:deband:tscale-clamp:deband-grain=0:blend-subtitles

video-sync=display-resample

hwdec=auto-copy
#display-fps=59.7
ao=pulse
ytdl-format=bestvideo+bestaudio/best

video-sync=display-resample

audio-channels=2
ad-lavc-downmix=yes

#cache stuff goes here. Use a big cache file for youtube-dl streaming. By default mpv autodects whether or not it should use cache based on whether or not the media is streamed or played by file

#set cache file to be 1gb
cache-default=1048576
#put cache file in whatever glibc decides TMP is (probably /tmp/, which is a tmpfs (ram) with systemd)
cache-file=TMP
#wait until this much data has been cached before starting playback. manual says it is in kb but expermentation suggests it is larger, but smaller than a megabyte. I don't really get it.
cache-initial=768

no-audio-display
sub-use-margins
no-sub-visibility

screenshot-template="%f-%p"
screenshot-format="png"

#on screen display OSC
script-opts=osc-vidscale=no,osc-layout=bottombar

#autodecect cores to use that ammount of threads for decoding. Doesn't work with all codecs. commented out because it mpv spits out a warning when I try to use it. I might be a feature only available in dev builds or it might be deprecated. I don't know yet
#ad-lavc-threads=0
ad-lavc-threads=3

[extension.webm]
loop-file=yes

[extension.png]
keep-open
no-border
[extension.jpg]
keep-open
no-border
[extension.webp]
keep-open
no-border
loop-file=yes



suggestions?
>>
>>54544309
>screenshot-format=png
Unless you need the png for screenshot quality comparison, jpg @ 85 is much much more efficient.

>
>>
>>54544276
stats.lua
>>
>>54519249
>FLAC for a torrent release

why are weebs so autistic and retarded?
>>
>>54544344
I run optipng on all my pngs so it isn't that bad.
>>
>>54519249
>2 channel
>flac
kek

If you're going for maximum placebo, why not 5.1 channel or more?
>>
>>54544353
you forgot to point out
>96 kHz
>>
>--screenshot-png-compression=<0-9>
>Set the PNG compression level. Higher means better compression. This will affect the file size of the written screenshot file and the time it takes to write a screenshot. Too high compression might occupy enough CPU time to interrupt playback. The default is 7.

Is 7 enough for proper screenshot comparison?
>>
>>54544385
Just use 0 then run optipng or pngcrush on it.
>>
>>54542369
>>54542434
The bitbucket nightly builds will have auto-copy tonight.

MPV stopped building with mingw-w64 stable because of the d3d11va changes/mergers (https://github.com/mpv-player/mpv/commit/fd82e14888ae2fb1a7430e1166a048dc03321d49) so I've had to update toolchain to mingw-w64-5.0-rc2 to get it working again.
>>
>>54544615
>auto-copy

What's the point of this? Why not just use specific -copy values?
>>
>>54542424
ass-force-margins=no
sub-use-margins=no
>>
>>54517971
Illiterate here, how do I use these shaders? Do I have to store the code somewhere?
>>
How can I define symbols to use for the terminal progress bar again? I can't find the option in the term-status-msg section of the manual.
>>
>>54543433
give me notepad theme
>>
>>54544787
You have to go to
mpv/shaders in appdata to store the .glsl
and make a new mpv.conf on the mpv folder with these settings

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


Replace/Remove the shaders you wish.
>>
Do what does hwdec=auto-copy do?
>>
>>54544787
Even worse, you need to compile mpv, but that is temporarily.
>>
>>54544908
>
vo=opengl:interpolation:blend-subtitles:post-shaders="~~/shaders/ToGamma.glsl,~~/shaders/AdaptiveSharpen.glsl"

this won't work correctly, AdaptiveSharpen requires linear-scaling or sigmoid-upscaling
>>
>>54544960
It works fine?

I am telling him how to use shaders, not to use mines.
>>
File: mpc_qt.png (835 KB, 3200x1800) Image search: [Google]
mpc_qt.png
835 KB, 3200x1800
>>54544990
Why so many developers use the qt framework for gui?
>>
>>54545072
I don't get why you posted that picture or why you are replying to me, well I do to an extent, but why?
>>
>>54544990
>It works fine?
It will be oversharpend as fuck
>>
>>54545163
It is not?
Thread replies: 255
Thread images: 29

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.