diff options
| -rw-r--r-- | config/mpv/input.conf (renamed from mpv/input.conf) | 46 | ||||
| -rw-r--r-- | config/mpv/mpv.conf | 145 | ||||
| -rw-r--r-- | config/mpv/script-opts/subs2srs.conf (renamed from mpv/script-opts/subs2srs.conf) | 0 | ||||
| m--------- | config/mpv/scripts/subs2srs (renamed from mpv/scripts/subs2srs) | 0 |
4 files changed, 160 insertions, 31 deletions
diff --git a/mpv/input.conf b/config/mpv/input.conf index 24305f9..f8ad5a8 100644 --- a/mpv/input.conf +++ b/config/mpv/input.conf @@ -33,7 +33,6 @@ #MBTN_RIGHT cycle pause # toggle pause/playback mode #MBTN_BACK playlist-prev # skip to the previous file #MBTN_FORWARD playlist-next # skip to the next file -#Ctrl+MBTN_LEFT script-binding positioning/drag-to-pan # pan around the clicked point # Mouse wheels, touchpad or other input devices that have axes # if the input devices supports precise scrolling it will also scale the @@ -44,16 +43,16 @@ #WHEEL_RIGHT seek 10 # seek 10 seconds forward ## Seek units are in seconds, but note that these are limited by keyframes -RIGHT seek 1 # seek 5 seconds forward -LEFT seek -1 # seek 5 seconds backward +RIGHT no-osd seek 1 exact +LEFT no-osd seek -1 exact #UP seek 60 # seek 1 minute forward #DOWN seek -60 # seek 1 minute backward # Do smaller, always exact (non-keyframe-limited), seeks with shift. # Don't show them on the OSD (no-osd). -#Shift+RIGHT no-osd seek 1 exact # seek exactly 1 second forward -#Shift+LEFT no-osd seek -1 exact # seek exactly 1 second backward -#Shift+UP no-osd seek 5 exact # seek exactly 5 seconds forward -#Shift+DOWN no-osd seek -5 exact # seek exactly 5 seconds backward +Shift+RIGHT seek 1 +Shift+LEFT seek -1 +Shift+UP no-osd seek 5 exact # seek exactly 5 seconds forward +Shift+DOWN no-osd seek -5 exact # seek exactly 5 seconds backward #Ctrl+LEFT no-osd sub-seek -1 # seek to the previous subtitle #Ctrl+RIGHT no-osd sub-seek 1 # seek to the next subtitle #Ctrl+Shift+LEFT sub-step -1 # change subtitle timing such that the previous subtitle is displayed @@ -66,12 +65,9 @@ LEFT seek -1 # seek 5 seconds backward #ZOOMIN add video-zoom 0.1 # zoom in #Alt+- add video-zoom -0.1 # zoom out #ZOOMOUT add video-zoom -0.1 # zoom out -#Alt+KP_ADD add video-zoom 0.1 # zoom in -#Alt+KP_SUBTRACT add video-zoom -0.1 # zoom out -#Ctrl+WHEEL_UP script-binding positioning/cursor-centric-zoom 0.1 # zoom in towards the cursor -#Ctrl+WHEEL_DOWN script-binding positioning/cursor-centric-zoom -0.1 # zoom out towards the cursor -#Alt+BS set video-zoom 0; no-osd set panscan 0; no-osd set video-pan-x 0; no-osd set video-pan-y 0; no-osd set video-align-x 0; no-osd set video-align-y 0 # reset zoom and pan settings -#HOME seek 0 absolute # seek to the start +#Ctrl+WHEEL_UP add video-zoom 0.1 # zoom in +#Ctrl+WHEEL_DOWN add video-zoom -0.1 # zoom out +#Alt+BS set video-zoom 0; set panscan 0; set video-pan-x 0; set video-pan-y 0 # reset zoom and pan settings #PGUP add chapter 1 # seek to the next chapter #PGDWN add chapter -1 # seek to the previous chapter #Shift+PGUP seek 600 # seek 10 minutes forward @@ -95,24 +91,19 @@ LEFT seek -1 # seek 5 seconds backward #> playlist-next # skip to the next file #ENTER playlist-next # skip to the next file #< playlist-prev # skip to the previous file -#Shift+HOME no-osd set playlist-pos 0 # skip to the first file -#Shift+END no-osd set playlist-pos-1 ${playlist-count} # skip to the last file #O no-osd cycle-values osd-level 3 1 # toggle displaying the OSD on user interaction or always #o show-progress # show playback progress #P show-progress # show playback progress #i script-binding stats/display-stats # display information and statistics #I script-binding stats/display-stats-toggle # toggle displaying information and statistics -#? script-binding stats/display-page-4-toggle # toggle displaying key bindings -#` script-binding commands/open # open the console +#` script-binding console/enable # open the console #z add sub-delay -0.1 # shift subtitles 100 ms earlier #Z add sub-delay +0.1 # delay subtitles by 100 ms #x add sub-delay +0.1 # delay subtitles by 100 ms -#ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio +#ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio #ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier -#ctrl+KP_ADD add audio-delay 0.100 # change audio/video sync by delaying the audio -#ctrl+KP_SUBTRACT add audio-delay -0.100 # change audio/video sync by shifting the audio earlier -#G add sub-scale +0.1 # increase the subtitle font size -#F add sub-scale -0.1 # decrease the subtitle font size +#Shift+g add sub-scale +0.1 # increase the subtitle font size +#Shift+f add sub-scale -0.1 # decrease the subtitle font size #9 add volume -2 #/ add volume -2 #KP_DIVIDE add volume -2 @@ -153,7 +144,7 @@ LEFT seek -1 # seek 5 seconds backward #w add panscan -0.1 # decrease panscan #W add panscan +0.1 # shrink black bars by cropping the video #e add panscan +0.1 # shrink black bars by cropping the video -#A cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "no" # cycle the video aspect ratio +#A cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1" # cycle the video aspect ratio ("-1" is the container aspect) #POWER quit #PLAY cycle pause # toggle pause/playback mode #PAUSE cycle pause # toggle pause/playback mode @@ -175,9 +166,8 @@ LEFT seek -1 # seek 5 seconds backward #l ab-loop # set/clear A-B loop points #L cycle-values loop-file "inf" "no" # toggle infinite looping #ctrl+c quit 4 -#Ctrl+v loadfile ${clipboard/text} append-play; show-text '+ ${clipboard/text}' # append the copied path #DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always -#ctrl+h cycle-values hwdec "no" "auto" # toggle hardware decoding +#ctrl+h cycle-values hwdec "no" "auto-safe" # toggle hardware decoding #F8 show-text ${playlist} # show the playlist #F9 show-text ${track-list} # show the list of video, audio and sub tracks #g ignore @@ -188,16 +178,10 @@ LEFT seek -1 # seek 5 seconds backward #g-v script-binding select/select-vid #g-t script-binding select/select-track #g-c script-binding select/select-chapter -#g-e script-binding select/select-edition #g-l script-binding select/select-subtitle-line #g-d script-binding select/select-audio-device -#g-h script-binding select/select-watch-history -#g-w script-binding select/select-watch-later #g-b script-binding select/select-binding #g-r script-binding select/show-properties -#g-m script-binding select/menu -#MENU script-binding select/menu -#ctrl+p script-binding select/menu #Alt+KP1 add video-rotate -1 # rotate video counterclockwise by 1 degree #Alt+KP5 set video-rotate 0 # reset rotation diff --git a/config/mpv/mpv.conf b/config/mpv/mpv.conf new file mode 100644 index 0000000..ce785c7 --- /dev/null +++ b/config/mpv/mpv.conf @@ -0,0 +1,145 @@ +# +# 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 /etc/mpv or /usr/local/etc/mpv, +# and per-user from ~/.config/mpv, 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 fast video rendering preset (for --vo=<gpu|gpu-next> only) +# Recommended for mobile devices or older hardware with limited processing power +#profile=fast + +# Specify high quality video rendering preset (for --vo=<gpu|gpu-next> only) +# Offers superior image fidelity and visual quality for an enhanced viewing +# experience on capable hardware +#profile=high-quality + +# 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 + +hr-seek=no diff --git a/mpv/script-opts/subs2srs.conf b/config/mpv/script-opts/subs2srs.conf index e69de29..e69de29 100644 --- a/mpv/script-opts/subs2srs.conf +++ b/config/mpv/script-opts/subs2srs.conf diff --git a/mpv/scripts/subs2srs b/config/mpv/scripts/subs2srs -Subproject aceb8542a221a905e05ec369e4e29b100a3d46e +Subproject aceb8542a221a905e05ec369e4e29b100a3d46e |
