feat: add mpv
This commit is contained in:
parent
1f25c0cc84
commit
d37987d9d4
Binary file not shown.
|
@ -0,0 +1,142 @@
|
|||
#
|
||||
# Example mpv configuration file
|
||||
#
|
||||
# Warning:
|
||||
#
|
||||
# The commented example options usually do _not_ set the default values. Call
|
||||
# mpv with --list-options to see the default values for most options. There is
|
||||
# no builtin or example mpv.conf with all the defaults.
|
||||
#
|
||||
#
|
||||
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
|
||||
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
|
||||
# system-wide settings, all of which are overridden by the command line.
|
||||
#
|
||||
# Configuration file settings and the command line options use the same
|
||||
# underlying mechanisms. Most options can be put into the configuration file
|
||||
# by dropping the preceding '--'. See the man page for a complete list of
|
||||
# options.
|
||||
#
|
||||
# Lines starting with '#' are comments and are ignored.
|
||||
#
|
||||
# See the CONFIGURATION FILES section in the man page
|
||||
# for a detailed description of the syntax.
|
||||
#
|
||||
# Profiles should be placed at the bottom of the configuration file to ensure
|
||||
# that settings wanted as defaults are not restricted to specific profiles.
|
||||
|
||||
##################
|
||||
# video settings #
|
||||
##################
|
||||
|
||||
# Start in fullscreen mode by default.
|
||||
#fs=yes
|
||||
|
||||
# force starting with centered window
|
||||
#geometry=50%:50%
|
||||
|
||||
# don't allow a new window to have a size larger than 90% of the screen size
|
||||
#autofit-larger=90%x90%
|
||||
|
||||
# Do not close the window on exit.
|
||||
#keep-open=yes
|
||||
|
||||
# Do not wait with showing the video window until it has loaded. (This will
|
||||
# resize the window once video is loaded. Also always shows a window with
|
||||
# audio.)
|
||||
#force-window=immediate
|
||||
|
||||
# Disable the On Screen Controller (OSC).
|
||||
osc=no
|
||||
|
||||
# Keep the player window on top of all other windows.
|
||||
#ontop=yes
|
||||
|
||||
# Specify high quality video rendering preset (for --vo=gpu only)
|
||||
# Can cause performance problems with some drivers and GPUs.
|
||||
#profile=gpu-hq
|
||||
|
||||
# Force video to lock on the display's refresh rate, and change video and audio
|
||||
# speed to some degree to ensure synchronous playback - can cause problems
|
||||
# with some drivers and desktop environments.
|
||||
#video-sync=display-resample
|
||||
|
||||
# Enable hardware decoding if available. Often, this does not work with all
|
||||
# video outputs, but should work well with default settings on most systems.
|
||||
# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs
|
||||
# may or may not help.
|
||||
#hwdec=auto
|
||||
|
||||
##################
|
||||
# audio settings #
|
||||
##################
|
||||
|
||||
# Specify default audio device. You can list devices with: --audio-device=help
|
||||
# The option takes the device string (the stuff between the '...').
|
||||
#audio-device=alsa/default
|
||||
|
||||
# Do not filter audio to keep pitch when changing playback speed.
|
||||
#audio-pitch-correction=no
|
||||
|
||||
# Output 5.1 audio natively, and upmix/downmix audio with a different format.
|
||||
#audio-channels=5.1
|
||||
# Disable any automatic remix, _if_ the audio output accepts the audio format.
|
||||
# of the currently played file. See caveats mentioned in the manpage.
|
||||
# (The default is "auto-safe", see manpage.)
|
||||
#audio-channels=auto
|
||||
|
||||
##################
|
||||
# other settings #
|
||||
##################
|
||||
|
||||
# Pretend to be a web browser. Might fix playback with some streaming sites,
|
||||
# but also will break with shoutcast streams.
|
||||
#user-agent="Mozilla/5.0"
|
||||
|
||||
# cache settings
|
||||
#
|
||||
# Use a large seekable RAM cache even for local input.
|
||||
#cache=yes
|
||||
#
|
||||
# Use extra large RAM cache (needs cache=yes to make it useful).
|
||||
#demuxer-max-bytes=500M
|
||||
#demuxer-max-back-bytes=100M
|
||||
#
|
||||
# Disable the behavior that the player will pause if the cache goes below a
|
||||
# certain fill size.
|
||||
#cache-pause=no
|
||||
#
|
||||
# Store cache payload on the hard disk instead of in RAM. (This may negatively
|
||||
# impact performance unless used for slow input such as network.)
|
||||
#cache-dir=~/.cache/
|
||||
#cache-on-disk=yes
|
||||
|
||||
# Display English subtitles if available.
|
||||
#slang=en
|
||||
|
||||
# Play Finnish audio if available, fall back to English otherwise.
|
||||
#alang=fi,en
|
||||
|
||||
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
|
||||
# If the file seems to be valid UTF-8, prefer UTF-8.
|
||||
# (You can add '+' in front of the codepage to force it.)
|
||||
#sub-codepage=cp1256
|
||||
|
||||
# You can also include other configuration files.
|
||||
#include=/path/to/the/file/you/want/to/include
|
||||
|
||||
############
|
||||
# Profiles #
|
||||
############
|
||||
|
||||
# The options declared as part of profiles override global default settings,
|
||||
# but only take effect when the profile is active.
|
||||
|
||||
# The following profile can be enabled on the command line with: --profile=eye-cancer
|
||||
|
||||
#[eye-cancer]
|
||||
#sharpen=5
|
||||
|
||||
no-audio-display
|
||||
save-position-on-quit=yes
|
||||
ontop
|
|
@ -0,0 +1,133 @@
|
|||
#######################################################
|
||||
# This is the default config file for mpv-file-browser
|
||||
# https://github.com/CogentRedTester/mpv-file-browser
|
||||
#######################################################
|
||||
|
||||
#root directories, separated by commas
|
||||
#on linux you will probably want to add `/`,
|
||||
#on windows this should be used to add different drive letters
|
||||
#Examples:
|
||||
#linux: root=~/,/
|
||||
#windows: root=~/,C:/
|
||||
root=~/
|
||||
|
||||
#characters to separate root directories, each character works individually
|
||||
#this is in case one is using directories with strange names
|
||||
root_separators=,;
|
||||
|
||||
#number of entries to show on the screen at once
|
||||
num_entries=20
|
||||
|
||||
#wrap the cursor around the top and bottom of the list
|
||||
wrap=no
|
||||
|
||||
#only show files compatible with mpv in the browser
|
||||
filter_files=yes
|
||||
|
||||
#experimental feature that recurses directories concurrently when appending items to the playlist
|
||||
#this feature has the potential for massive performance improvements when using addons with asynchronous IO
|
||||
concurrent_recursion=no
|
||||
|
||||
#maximum number of recursions that can run concurrently
|
||||
#if this number is too high it risks overflowing the mpv event queue, which will cause some directories to be dropped entirely
|
||||
max_concurrency=16
|
||||
|
||||
#enable custom keybinds
|
||||
#the keybind json file must go in ~~/script-opts
|
||||
custom_keybinds=no
|
||||
|
||||
#file-browser only shows files that are compatible with mpv by default
|
||||
#adding a file extension to this list will add it to the extension whitelist
|
||||
#extensions are separated with the root separators, do not use any spaces
|
||||
extension_whitelist=
|
||||
|
||||
#add file extensions to this list to disable default filetypes
|
||||
#note that this will also override audio/subtitle_extension options below
|
||||
extension_blacklist=
|
||||
|
||||
#files with these extensions will be added as additional audio tracks for the current file instead of appended to the playlist
|
||||
#items on this list are automatically added to the extension whitelist
|
||||
audio_extensions=mka,dts,dtshd,dts-hd,truehd,true-hd
|
||||
|
||||
#files with these extensions will be added as additional subtitle tracks for the current file instead of appended to the playlist
|
||||
#items on this list are automatically added to the extension whitelist
|
||||
subtitle_extensions=etf,etf8,utf-8,idx,sub,srt,rt,ssa,ass,mks,vtt,sup,scc,smi,lrc,pgs
|
||||
|
||||
#filter directories or files starting with a period like .config
|
||||
#for linux systems
|
||||
filter_dot_dirs=no
|
||||
filter_dot_files=no
|
||||
|
||||
#substitude forward slashes for backslashes when appending a local file to the playlist
|
||||
#may be useful on windows systems
|
||||
substitute_backslash=no
|
||||
|
||||
#this option reverses the behaviour of the alt+ENTER keybind
|
||||
#when disabled the keybind is required to enable autoload for the file
|
||||
#when enabled the keybind disables autoload for the file
|
||||
autoload=no
|
||||
|
||||
#if autoload is triggered by selecting the currently playing file, then
|
||||
#the current file will have it's watch-later config saved before being closed and re-opened
|
||||
#essentially the current file will not be restarted
|
||||
autoload_save_current=yes
|
||||
|
||||
#when opening the browser in idle mode prefer the current working directory over the root
|
||||
#note that the working directory is set as the 'current' directory regardless, so `home` will
|
||||
#move the browser there even if this option is set to false
|
||||
default_to_working_directory=no
|
||||
|
||||
#enables addons
|
||||
addons=no
|
||||
addon_directory=~~/script-modules/file-browser-addons
|
||||
|
||||
#directory to load external modules - currently just user-input-module
|
||||
module_directory=~~/script-modules
|
||||
|
||||
####################################
|
||||
######### style settings ###########
|
||||
####################################
|
||||
|
||||
#force file-browser to use a specific text alignment (default: top-left)
|
||||
#uses ass tag alignment numbers: https://aegi.vmoe.info/docs/3.0/ASS_Tags/#index23h3
|
||||
#set to 0 to use the default mpv osd-align options
|
||||
alignment=7
|
||||
|
||||
#allows custom icons be set to fix incompatabilities with some fonts
|
||||
#the `\h` character is a hard space to add padding
|
||||
folder_icon=🖿
|
||||
cursor_icon=➤
|
||||
indent_icon=\h\h\h
|
||||
|
||||
#set the opacity of fonts in hexadecimal from 00 (opaque) to FF (transparent)
|
||||
font_opacity_selection_marker=99
|
||||
|
||||
#print the header in bold font
|
||||
font_bold_header=yes
|
||||
|
||||
#set custom font sizes
|
||||
font_size_header=35
|
||||
font_size_body=25
|
||||
font_size_wrappers=16
|
||||
|
||||
#set custom font names, blank is the default
|
||||
#setting custom fonts for the folder/cursor can fix broken or missing icons
|
||||
font_name_header=
|
||||
font_name_body=
|
||||
font_name_wrappers=
|
||||
font_name_folder=
|
||||
font_name_cursor=
|
||||
|
||||
#set custom font colours
|
||||
#colours are in hexadecimal format in Blue Green Red order
|
||||
#note that this is the opposite order to most RGB colour codes
|
||||
font_colour_header=00ccff
|
||||
font_colour_body=ffffff
|
||||
font_colour_wrappers=00ccff
|
||||
font_colour_cursor=00ccff
|
||||
|
||||
#these are colours applied to list items in different states
|
||||
font_colour_selected=fce788
|
||||
font_colour_multiselect=fcad88
|
||||
font_colour_playing=33ff66
|
||||
font_colour_playing_multiselected=22b547
|
|
@ -0,0 +1,2 @@
|
|||
vidscale=yes
|
||||
volumecontrol=yes
|
|
@ -0,0 +1,147 @@
|
|||
#### ------- Mpv-Playlistmanager configuration ------- ####
|
||||
|
||||
#### ------- FUNCTIONAL ------- ####
|
||||
|
||||
#navigation keybindings force override only while playlist is visible
|
||||
#if "no" then you can display the playlist by any of the navigation keys
|
||||
dynamic_binds=yes
|
||||
|
||||
# main key
|
||||
key_showplaylist=SHIFT+ENTER
|
||||
|
||||
#dynamic keys - to bind multiple keys separate them by a space
|
||||
key_moveup=UP
|
||||
key_movedown=DOWN
|
||||
key_movepageup=PGUP
|
||||
key_movepagedown=PGDWN
|
||||
key_movebegin=HOME
|
||||
key_moveend=END
|
||||
key_selectfile=RIGHT LEFT
|
||||
key_unselectfile=
|
||||
key_playfile=ENTER
|
||||
key_removefile=BS
|
||||
key_closeplaylist=ESC
|
||||
|
||||
# extra functionality keys
|
||||
key_sortplaylist=
|
||||
key_shuffleplaylist=
|
||||
key_reverseplaylist=
|
||||
key_loadfiles=
|
||||
key_saveplaylist=
|
||||
|
||||
#json format for replacing, check .lua for explanation
|
||||
#example json=[{"ext":{"all":true},"rules":[{"_":" "}]},{"ext":{"mp4":true,"mkv":true},"rules":[{"^(.+)%..+$":"%1"},{"%s*[%[%(].-[%]%)]%s*":""},{"(%w)%.(%w)":"%1 %2"}]},{"protocol":{"http":true,"https":true},"rules":[{"^%a+://w*%.?":""}]}]
|
||||
#empty for no replace
|
||||
filename_replace=
|
||||
|
||||
#filetypes to search from directory
|
||||
loadfiles_filetypes=["jpg","jpeg","png","tif","tiff","gif","webp","svg","bmp","mp3","wav","ogm","flac","m4a","wma","ogg","opus","mkv","avi","mp4","ogv","webm","rmvb","flv","wmv","mpeg","mpg","m4v","3gp"]
|
||||
|
||||
#loadfiles at startup if 1 or more items in playlist
|
||||
loadfiles_on_start=no
|
||||
#loadfiles from working directory on idle startup
|
||||
loadfiles_on_idle_start=no
|
||||
#always put loaded files after currently playing file
|
||||
loadfiles_always_append=no
|
||||
|
||||
#sort playlist on mpv start
|
||||
sortplaylist_on_start=no
|
||||
|
||||
#sort playlist when any files are added to playlist after initial load
|
||||
sortplaylist_on_file_add=no
|
||||
|
||||
#yes: use alphanumerical sort comparison(nonpadded numbers in order), no: use normal lua string comparison
|
||||
alphanumsort=yes
|
||||
|
||||
#linux | windows | auto
|
||||
system=auto
|
||||
|
||||
#Use ~ for home directory. Leave as empty to use mpv/playlists
|
||||
playlist_savepath=
|
||||
|
||||
#save playlist automatically after current file was unloaded
|
||||
save_playlist_on_file_end=no
|
||||
|
||||
#2 shows playlist, 1 shows current file(filename strip applied), 0 shows nothing
|
||||
show_playlist_on_fileload=0
|
||||
|
||||
#sync cursor when file is loaded from outside reasons(file-ending, playlist-next shortcut etc.)
|
||||
sync_cursor_on_load=yes
|
||||
|
||||
#playlist open key will toggle visibility instead of refresh
|
||||
open_toggles=yes
|
||||
|
||||
#allow the playlist cursor to loop from end to start and vice versa
|
||||
loop_cursor=yes
|
||||
|
||||
#youtube-dl executable for title resolving if enabled, probably "youtube-dl" or "yt-dlp", can be absolute path
|
||||
youtube_dl_executable=youtube-dl
|
||||
|
||||
#### ------- VISUAL ------- ####
|
||||
|
||||
#prefer to display titles for following files: "all", "url", "none". Sorting still uses filename
|
||||
prefer_titles=url
|
||||
|
||||
#call youtube-dl to resolve the titles of urls in the playlist
|
||||
resolve_titles=no
|
||||
|
||||
#timeout in seconds for title resolving
|
||||
resolve_title_timeout=15
|
||||
|
||||
#playlist timeout on inactivity, with high value on this open_toggles is good to be yes
|
||||
playlist_display_timeout=5
|
||||
|
||||
#amount of entries to show before slicing. Optimal value depends on font/video size etc.
|
||||
showamount=16
|
||||
|
||||
#font size scales by window, if no then needs larger font and padding sizes
|
||||
scale_playlist_by_window=yes
|
||||
#playlist ass style overrides
|
||||
#example {\fnUbuntu\fs10\b0\bord1} equals: font=Ubuntu, size=10, bold=no, border=1
|
||||
#read http://docs.aegisub.org/3.2/ASS_Tags/ for reference of tags
|
||||
#no values defaults to OSD settings in mpv.conf
|
||||
style_ass_tags=
|
||||
#paddings for top left corner
|
||||
text_padding_x=10
|
||||
text_padding_y=30
|
||||
|
||||
#set title of window with stripped name
|
||||
set_title_stripped=no
|
||||
title_prefix=
|
||||
title_suffix= - mpv
|
||||
|
||||
#slice long filenames, and how many chars to show
|
||||
slice_longfilenames=no
|
||||
slice_longfilenames_amount=70
|
||||
|
||||
#Playing header. One newline will be added after the string.
|
||||
#%mediatitle or %filename = title or name of playing file
|
||||
#%pos = position of playing file
|
||||
#%cursor = position of navigation
|
||||
#%plen = playlist lenght
|
||||
#%N = newline
|
||||
playlist_header=[%cursor/%plen]
|
||||
|
||||
#Playlist file templates
|
||||
#%pos = position of file with leading zeros
|
||||
#%name = title or name of file
|
||||
#%N = newline
|
||||
#you can also use the ass tags mentioned above. For example:
|
||||
# selected_file={\c&HFF00FF&}➔ %name | to add a color for selected file. However, if you
|
||||
# use ass tags you need to reset them for every line (see https://github.com/jonniek/mpv-playlistmanager/issues/20)
|
||||
normal_file=○ %name
|
||||
hovered_file=● %name
|
||||
selected_file=➔ %name
|
||||
playing_file=▷ %name
|
||||
playing_hovered_file=▶ %name
|
||||
playing_selected_file=➤ %name
|
||||
|
||||
#what to show when playlist is truncated
|
||||
playlist_sliced_prefix=...
|
||||
playlist_sliced_suffix=...
|
||||
|
||||
#output visual feedback to OSD when saving, shuffling, reversing playlists
|
||||
display_osd_feedback=yes
|
||||
|
||||
#reset cursor navigation when playlist is not visible
|
||||
reset_cursor_on_close=yes
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue