ahjolinna / mpv-conf Goto Github PK
View Code? Open in Web Editor NEWmy personal mpv conf build
License: GNU General Public License v2.0
my personal mpv conf build
License: GNU General Public License v2.0
please re-upload, gracious ~master
as the MPV has made many changes I need to make some adjustments to better reflect them...for now it doesn't work anymore with v0.23
when Nvidia has released their HDR support to their linux driver then I will try to get a good 4k/HDR +G-Sync(maybe) monitor and I will try to implement a new setting....I do hope that others (intel/amd) will also get HDR support also..
maybe I need to make 2 version of my confs? one that is designed 100% nvidia proprietary driver (&cuda/cuvid) "users" in mind and the other one for opensource/intel&amd users, only "bad" thing is that I can't test if there are problems on AMD/radeon...(well they are used to be treated as 2nd citizen :D, so who cares :D )
You asked for some feedback and input, so here i am. These are of course my personal preferences.
Add the following to input.conf, i just can't live without the mouse scroller changing volume:
AXIS_UP add volume +2 ; show_text "Volume: ${volume}"
AXIS_DOWN add volume -2 ; show_text "Volume: ${volume}"
In mpv.conf, this is to centre the mpv screen in the middle of the monitor/tv each time it opens:
geometry=50%:50%
Add the autoload.lua in your scripts folder, so that mpv automatically plays the next file inside the folder. Since i binge watch a lot of series and anime, i am to lazy to each time open the next file manually:
https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autoload.lua
Update the lua scripts with the latest versions, most of them are getting out of date and some started showing warnings when I run mpv from shell.
Not sure how feasible the following is, but your auto options script, can it be made to detect the GPU? I'm asking because I've got a Intel GPU and I need to adjust some of the options within the script because for example the hwdec auto-copy doesn't work at all.
Would it also be possible to drop the acpitool dependency and use acpid instead? Since acpitool doesn't seem te be developed anymore. And acpid is in arch community hence no need for me to build it from scratch.
the normal output:
(same with every file/link not just this twitch)
[auto_options] Set 'options/vf-add' to 'vdpaupp=sharpen=0.10:denoise=0.10:deint=yes:deint-mode=temporal-spatial:pullup:hqscaling=1'
[auto_options] Set 'options/vo' to 'opengl-hq:cscale=ewa_lanczossoft:scale=ewa_lanczossharp:dscale=mitchell:correct-downscaling=yes:blend-subtitles=video:target-prim=bt.2020:cscale-antiring=0.9:target-trc=bt.1886:prescale-luma=superxbr:tscale=oversample:gamma=0.9338:prescale-downscaling-threshold=1.5:prescale-passes=2:scaler-resizes-only=yes:3dlut-size=256x256x256:dither-depth=auto:sigmoid-upscaling=yes:deband=yes:scale-radius=3:scale-antiring=1'
[auto_options] Set 'options/vd-lavc-threads' to '16'
[auto_options] Set 'options/hwdec' to 'auto'
Auto-loading profile 'protocol.http'
Playing: http://www.twitch.tv/angryjoeshow/v/53400472
[ffmpeg] http: No trailing CRLF found in HTTP header.
(+) Video --vid=1 (h264)
(+) Audio --aid=1 (aac)
Opening video filter: [vdpaupp sharpen=0.10 denoise=0.10 deint=yes deint-mode=temporal-spatial pullup= hqscaling=1]
AO: [pulse] 48000Hz stereo 2ch float
Using hardware decoding (vdpau).
VO: [opengl-hq] 1536x864 => 1536x864 vdpau
[vo/opengl-hq] fragment shader source:
[vo/opengl-hq] [ 1] #version 330
[vo/opengl-hq] [ 2] #define RG rg
[vo/opengl-hq] [ 3] #define texture1D texture
[vo/opengl-hq] [ 4] #define texture3D texture
[vo/opengl-hq] [ 5] out vec4 out_color;
[vo/opengl-hq] [ 6] in vec2 texcoord0;
[vo/opengl-hq] [ 7] in vec2 texcoord1;
[vo/opengl-hq] [ 8] in vec2 texcoord2;
[vo/opengl-hq] [ 9] in vec2 texcoord3;
[vo/opengl-hq] [ 10] in vec2 texcoord4;
[vo/opengl-hq] [ 11] in vec2 texcoord5;
[vo/opengl-hq] [ 12] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))
[vo/opengl-hq] [ 13] void main() {
[vo/opengl-hq] [ 14] vec4 color = vec4(0.0, 0.0, 0.0, 1.0);
[vo/opengl-hq] [ 15] color = texture(texture0, texcoord0);
[vo/opengl-hq] [ 16] // scaler pre-conversion
[vo/opengl-hq] [ 17] color.rgb = clamp(color.rgb, 0.0, 1.0);
[vo/opengl-hq] [ 18] color.rgb = mix(color.rgb / vec3(12.92), pow((color.rgb + vec3(0.055))/vec3(1.055), vec3(2.4)), lessThan(vec3(0.04045), color.rgb));
[vo/opengl-hq] [ 19] // main scaling
[vo/opengl-hq] [ 20] out_color = color;
[vo/opengl-hq] [ 21] }
[vo/opengl-hq] fragment shader compile log (status=0):
[vo/opengl-hq] 0(15) : error C1008: undefined variable "texture0"
[vo/opengl-hq]
[vo/opengl-hq] shader link log (status=0): Fragment info
[vo/opengl-hq] -------------
[vo/opengl-hq] 0(15) : error C1008: undefined variable "texture0"
[vo/opengl-hq]
[vo/opengl-hq] after rendering: OpenGL error INVALID_OPERATION.
[auto_options] Active level: high-quality
Resolution: 1536x864, Framerate: 50.000 Hz
[vo/opengl-hq] after rendering: OpenGL error INVALID_OPERATION.
AV: 00:00:00.039 / 07:03:39.860 (0%) x0.98 A-V: -0.000 Cache: 2s+525KB
[vo/opengl-hq] after rendering: OpenGL error INVALID_OPERATION.
AV: 00:00:00.079 / 07:03:39.860 (0%) x0.98 A-V: -0.000 Cache: 2s+525KB
[vo/opengl-hq] after rendering: OpenGL error INVALID_OPERATION.
AV: 00:00:00.100 / 07:03:39.860 (0%) x0.98 A-V: -0.000 Cache: 3s+525KB
[vo/opengl-hq] after rendering: OpenGL error INVALID_OPERATION.
[ffmpeg] http: No trailing CRLF found in HTTP header.
AV: 00:00:00.120 / 07:03:39.860 (0%) x0.98 A-V: -0.000 Cache: 3s+525KB
[vo/opengl-hq] after rendering: OpenGL error INVALID_OPERATION.
AV: 00:00:00.439 / 07:03:39.860 (0%) x0.98 A-V: 0.000 Cache: 6s+525KB
[ffmpeg] http: No trailing CRLF found in HTTP header.
AV: 00:00:01.460 / 07:03:39.860 (0%) x0.98 A-V: 0.000 Cache: 9s+525KB
[ffmpeg] http: No trailing CRLF found in HTTP header.
(Paused) AV: 00:00:03.780 / 07:03:39.860 (0%) x0.98 A-V: 0.000 Cache: 9s+525KB
Exiting... (Quit)
[vo/opengl-hq/vdpau-glx] Before uninitializing OpenGL interop: OpenGL error INVALID_OPERATION.
I like to add MPRIS support so I can at least use it with KDE-connect
I found this lua script that I hope can do this : lua-mpris
if someone can implement this or something a like to my build, I would appreciate it
Option --ocopyts was removed: ocopyts is now the default
Error parsing option ocopyts (option not found)
/etc/mpv/encoding-profiles.conf:108: setting option ocopyts='yes' failed.
Error parsing option ofopts-clr (option not found)
/etc/mpv/encoding-profiles.conf:111: setting option ofopts-clr='yes' failed.
Error parsing option ocopyts (option not found)
/etc/mpv/encoding-profiles.conf:116: setting option ocopyts='no' failed.
Option --oautofps was removed: no replacement
Error parsing option oautofps (option not found)
/etc/mpv/encoding-profiles.conf:117: setting option oautofps='yes' failed.
Error parsing option ofopts-clr (option not found)
/etc/mpv/encoding-profiles.conf:120: setting option ofopts-clr='yes' failed.
Error parsing option ocopyts (option not found)
/etc/mpv/encoding-profiles.conf:125: setting option ocopyts='yes' failed.
Error parsing option ocopyts (option not found)
/etc/mpv/encoding-profiles.conf:135: setting option ocopyts='yes' failed.
Error parsing option ofopts-clr (option not found)
/etc/mpv/encoding-profiles.conf:138: setting option ofopts-clr='yes' failed.
Option --ofps was removed: no replacement (use --vf-add=fps=VALUE for CFR)
Error parsing option ofps (option not found)
/etc/mpv/encoding-profiles.conf:150: setting option ofps='25' failed.
Option --oharddup was removed: use --vf-add=fps=VALUE
Error parsing option oharddup (option not found)
/etc/mpv/encoding-profiles.conf:151: setting option oharddup='yes' failed.
Warning: option --ovfirst is deprecated and might be removed in the future (no replacement).
Error parsing option ofps (option not found)
/etc/mpv/encoding-profiles.conf:163: setting option ofps='24000/1001' failed.
Error parsing option oharddup (option not found)
/etc/mpv/encoding-profiles.conf:164: setting option oharddup='yes' failed.
Option --omaxfps was removed: no replacement
Error parsing option omaxfps (option not found)
/etc/mpv/encoding-profiles.conf:180: setting option omaxfps='30' failed.
Error parsing option ofps (option not found)
/etc/mpv/encoding-profiles.conf:185: setting option ofps='25' failed.
Error parsing option omaxfps (option not found)
/etc/mpv/encoding-profiles.conf:194: setting option omaxfps='30' failed.
Option fmt: unknown format name: '444p'
Error parsing option fmt (option parameter could not be parsed)
Option vf-add: Error while parsing noformat parameter fmt (444p)
Error parsing option vf-add (option parameter could not be parsed)
/etc/mpv/encoding-profiles.conf:72: setting option vf-add='noformat=444p,noformat=444p9,noformat=444p10,noformat=422p,noformat=422p9,noformat=422p10' failed.
Passing multiple arguments to ofopts-add is deprecated!
Passing multiple arguments to ovcopts-add is deprecated!
Passing multiple arguments to ofopts-add is deprecated!
Passing multiple arguments to ovcopts-add is deprecated!
Passing more than 1 argument to vf-add is deprecated!
Passing multiple arguments to ovcopts-add is deprecated!
Passing multiple arguments to ovcopts-add is deprecated!
Passing more than 1 argument to vf-add is deprecated!
Passing multiple arguments to ovcopts-add is deprecated!
Passing multiple arguments to ovcopts-add is deprecated!
Passing more than 1 argument to vf-add is deprecated!
Passing more than 1 argument to vf-add is deprecated!
Passing more than 1 argument to vf-add is deprecated!
Warning: option --sub-paths was replaced with --sub-file-paths and might be removed in the future.
Great stuff, love the quality of the presets, and the extra scripts. Had to comment out all the cache options in the mpv.conf files though else mpv would hang randomly when playing videos from my NAS all the time. With mpv handling the cache by itself, it is working flawlesly.
Not sure if this is actually an issue with the mpv.conf cache settings provided or with mpv itself.
I'd like to narrow down the issue further. Any suggestion on where to go from here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.