Remove mpv
Now managed by home-manager.
This commit is contained in:
parent
73990eaed6
commit
36d202452e
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -4,9 +4,6 @@
|
|||
[submodule "home/.dynamic-colors"]
|
||||
path = dynamic-colors
|
||||
url = https://github.com/sos4nt/dynamic-colors
|
||||
[submodule "mpv-gallery-view"]
|
||||
path = mpv-gallery-view
|
||||
url = https://github.com/occivink/mpv-gallery-view
|
||||
[submodule "vim-plug"]
|
||||
path = vim-plug
|
||||
url = https://github.com/junegunn/vim-plug
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
# audio filter bs2b (for headphones)
|
||||
b af toggle "bs2b"
|
||||
|
||||
# toggle debanding
|
||||
D cycle deband
|
||||
|
||||
# variable correction of audio pitch when changing speed
|
||||
k cycle-values audio-pitch-correction "no" "yes"
|
||||
|
||||
# reverse cycling for audio and video (shift modifier on german keyboard layout)
|
||||
' cycle audio down
|
||||
- cycle video down
|
||||
|
||||
c cycle-values audio-channels stereo mono auto
|
||||
|
||||
K cycle-values glsl-shaders ~~/shaders/ravu-lite-r4.hook ~~/shaders/ravu-lite-r3.hook ~~/shaders/ravu-lite-r2.hook /dev/null
|
||||
|
||||
Ctrl+p script-message-to pitchcontrol toggle
|
||||
|
||||
# more granular panning
|
||||
Alt+left add video-pan-x 0.05
|
||||
Alt+right add video-pan-x -0.05
|
||||
Alt+up add video-pan-y 0.05
|
||||
Alt+down add video-pan-y -0.05
|
||||
|
||||
# sub-delay for fixing 24 empty frames on blu-ray
|
||||
Alt+z add sub-delay -1
|
||||
Alt+Z add sub-delay +1
|
|
@ -1,82 +0,0 @@
|
|||
# configure fonts
|
||||
osd-font = 'DINW07-Medium'
|
||||
|
||||
sub-font = 'Gandhi Sans'
|
||||
sub-bold = yes
|
||||
sub-font-size = 44
|
||||
sub-use-margins = no
|
||||
sub-border-size = 2
|
||||
|
||||
# make vobsub/PGS subtitles look nicer
|
||||
sub-gauss=0.5
|
||||
sub-gray=yes
|
||||
|
||||
# don’t correct pitch of audio
|
||||
#audio-pitch-correction = no
|
||||
|
||||
# max volume
|
||||
volume-max = 150
|
||||
|
||||
# downmix to stereo by default
|
||||
audio-channels = stereo
|
||||
|
||||
# i18n
|
||||
#alang = ger,de,deu,eng,en
|
||||
#slang = ger,de,deu,eng,en
|
||||
|
||||
# allow seeking in streamed media
|
||||
force-seekable
|
||||
|
||||
# enable hardware decoding when avaliable
|
||||
hwdec = vaapi
|
||||
|
||||
# do not show images only one second
|
||||
image-display-duration = inf
|
||||
|
||||
# better quality (but not too high, otherwise too high frame drop)
|
||||
profile = gpu-hq
|
||||
deband = no
|
||||
dither-depth = auto
|
||||
|
||||
# screenshots
|
||||
screenshot-format = png
|
||||
screenshot-directory = ~/Videos/screenshots/unsorted/
|
||||
|
||||
[musicvideo]
|
||||
lavfi-complex = '[aid1]asplit=4[ao][a1][a2][a3];[a1]avectorscope=m=lissajous:s=640x600:draw=dot:r=25[avectorscope];[a2]aresample=44100,showwaves=s=1280x600:mode=p2p:colors=red|lightgreen:r=25[showwaves];[a3]showcqt=s=1920x600:axis=0:axis_h=0:r=25[showcqt];[showwaves][avectorscope]hstack=shortest=1[top];[top][showcqt]vstack=shortest=1,fps=25[vo]'
|
||||
alpha = no
|
||||
|
||||
[musicvideo-1080]
|
||||
lavfi-complex = '[aid1]asplit=4[ao][a1][a2][a3];[a1]avectorscope=m=lissajous:s=640x540:draw=dot:r=25[avectorscope];[a2]aresample=44100,showwaves=s=1280x540:mode=p2p:colors=red|lightgreen:r=25[showwaves];[a3]showcqt=s=1920x540:axis=0:axis_h=0:r=25[showcqt];[showwaves][avectorscope]hstack=shortest=1[top];[top][showcqt]vstack=shortest=1,fps=25[vo]'
|
||||
alpha = no
|
||||
|
||||
[musicvideo-c64]
|
||||
lavfi-complex = '[aid1]channelsplit=4.0[mono][c1][c2][c3];[mono]channelmap=mono,asplit=2[ao][a2];[c1][c2][c3]join=inputs=3:channel_layout=3.0[a1];[a1]aresample=44100,showwaves=s=1920x600:mode=p2p:colors=red|lightgreen|yellow:split_channels=1:r=25[showwaves];[a2]showcqt=s=1920x600:axis=0:axis_h=0:r=25[showcqt];[showwaves][showcqt]vstack=shortest=1,fps=25,format=rgba[vo]'
|
||||
alpha = no
|
||||
|
||||
[hqencode]
|
||||
ovc = libx264
|
||||
ovcopts-add = crf=18
|
||||
oac = flac
|
||||
audio-format = s16
|
||||
|
||||
[rain]
|
||||
lavfi-complex = 'amovie=https\\://s3.sbruder.de/cdn/rain.opus,volume=0.5[rain];[aid1][rain]amix=2:duration=shortest[ao]'
|
||||
|
||||
[lq]
|
||||
scale = bicubic_fast
|
||||
cscale = bicubic_fast
|
||||
dscale = bicubic_fast
|
||||
|
||||
[interpolate]
|
||||
blend-subtitles = yes
|
||||
video-sync = display-resample
|
||||
interpolation = yes
|
||||
tscale = box
|
||||
tscale-window = sphinx
|
||||
tscale-radius = 1.0
|
||||
tscale-clamp = 0.0
|
||||
|
||||
[clear-speed]
|
||||
# https://github.com/mpv-player/mpv/issues/4418#issuecomment-368272929
|
||||
af-add = scaletempo=stride=28:overlap=.9:search=25
|
|
@ -1 +0,0 @@
|
|||
thumbs_dir=~/.cache/thumbnails/mpv
|
|
@ -1,4 +0,0 @@
|
|||
font=DINW07-Regular
|
||||
font_mono=DINW07-Regular
|
||||
font_size=10
|
||||
redraw_delay=0.25
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/gallery-thumbgen.lua
|
|
@ -1 +0,0 @@
|
|||
../../../../../mpv-gallery-view/scripts/lib/gallery.lua
|
|
@ -1,33 +0,0 @@
|
|||
require 'mp.options'
|
||||
|
||||
function handle_file_load ()
|
||||
if mp.get_property("metadata/by-key/artist") == nil and mp.get_property("metadata/by-key/title") == nil then
|
||||
-- media-title is filename if no title is set
|
||||
if mp.get_property("media-title") ~= mp.get_property("filename") then
|
||||
info = mp.get_property("media-title")
|
||||
else
|
||||
info = mp.get_property("filename/no-ext")
|
||||
end
|
||||
else
|
||||
info = mp.get_property("metadata/by-key/artist") .. " – " .. mp.get_property("metadata/by-key/title")
|
||||
end
|
||||
|
||||
-- check for youtube-dl
|
||||
if mp.get_property("stream-open-filename") ~= mp.get_property("path") then
|
||||
info = info .. "\n(" .. mp.get_property("path") .. ")"
|
||||
end
|
||||
|
||||
file = io.open(options.write, "w")
|
||||
io.output(file)
|
||||
io.write(info .. "\n")
|
||||
io.close(file)
|
||||
end
|
||||
|
||||
options = {
|
||||
write = "",
|
||||
}
|
||||
read_options(options)
|
||||
|
||||
if options.write ~= "" then
|
||||
mp.register_event("file-loaded", handle_file_load)
|
||||
end
|
|
@ -1,95 +0,0 @@
|
|||
-- pitchcontrol.lua
|
||||
--
|
||||
-- Version: 0.2.0
|
||||
-- URL: https://github.com/FichteFoll/mpv-scripts
|
||||
-- License: ISC
|
||||
|
||||
-- Commands for key bindings:
|
||||
--
|
||||
-- * script-message-to pitchcontrol increase
|
||||
-- Increase pitch by one half-tone. Bound to Alt+R.
|
||||
-- * script-message-to pitchcontrol decrease
|
||||
-- Increase pitch by one half-tone. Bound to Alt+r.
|
||||
-- * script-message-to pitchcontrol toggle
|
||||
-- Toggle pitching.
|
||||
-- * script-message-to pitchcontrol set_halftone_pitch <number>
|
||||
-- Sets pitch to <number> half-tones - positive, negative or 0.
|
||||
|
||||
|
||||
-- Copyright 2016-2017 FichteFoll
|
||||
--
|
||||
-- Permission to use, copy, modify, and/or distribute this software for any
|
||||
-- purpose with or without fee is hereby granted, provided that the above
|
||||
-- copyright notice and this permission notice appear in all copies.
|
||||
--
|
||||
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||
-- SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
-- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
|
||||
local utils = require 'mp.utils'
|
||||
local msg = require('mp.msg')
|
||||
local options = require('mp.options')
|
||||
local script_name = mp.get_script_name() -- "pitchcontrol"
|
||||
|
||||
local HALFTONE_SCALE = math.pow(2, 1.0/12) -- 1.059463094352953
|
||||
local RUBBERBAND_LABEL = string.format("%s-rubberband", script_name)
|
||||
|
||||
local current_pitch = 0
|
||||
local active = false
|
||||
|
||||
|
||||
function set_halftone_pitch(pitch, activate)
|
||||
if activate == nil then
|
||||
activate = true
|
||||
end
|
||||
pitch = tonumber(pitch)
|
||||
local pitch_scale = math.pow(HALFTONE_SCALE, pitch)
|
||||
|
||||
if active then
|
||||
mp.commandv('af-command', RUBBERBAND_LABEL, 'set-pitch', pitch_scale)
|
||||
elseif activate then
|
||||
mp.command(("af add @%s:rubberband=pitch-scale=%s"):format(RUBBERBAND_LABEL, pitch_scale))
|
||||
active = true
|
||||
else
|
||||
mp.osd_message(("'%s' is inactive"):format(script_name))
|
||||
return
|
||||
end
|
||||
|
||||
current_pitch = pitch
|
||||
|
||||
-- output new pitch
|
||||
msg.debug(("new pitch-scale: %f"):format(pitch_scale))
|
||||
mp.osd_message(("Pitch: %+d halftones"):format(pitch))
|
||||
end
|
||||
|
||||
|
||||
function increase_handler()
|
||||
set_halftone_pitch(current_pitch + 1, false)
|
||||
end
|
||||
|
||||
|
||||
function decrease_handler()
|
||||
set_halftone_pitch(current_pitch - 1, false)
|
||||
end
|
||||
|
||||
|
||||
function toggle_handler()
|
||||
if active then
|
||||
mp.command(("af del @%s"):format(RUBBERBAND_LABEL))
|
||||
mp.osd_message(("'%s' deactivated"):format(script_name))
|
||||
active = false
|
||||
else
|
||||
set_halftone_pitch(current_pitch, true)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
mp.add_key_binding("Alt+p", 'increase', decrease_handler)
|
||||
mp.add_key_binding("Alt+P", 'decrease', increase_handler)
|
||||
mp.register_script_message('toggle', toggle_handler)
|
||||
mp.register_script_message('set_halftone_pitch', set_halftone_pitch)
|
|
@ -1 +0,0 @@
|
|||
../../../../mpv-gallery-view/scripts/playlist-view.lua
|
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
Subproject commit 5139d346de67e8dbee8c8983777026502d6bc627
|
Reference in a new issue