2020-01-11 22:04:45 +01:00
<?xml version="1.0" encoding="utf-8"?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml:lang = "en" >
< head >
2022-05-09 10:05:23 +02:00
<!-- 2022 - 05 - 09 lun. 10:04 -->
2020-01-11 22:04:45 +01:00
< meta http-equiv = "Content-Type" content = "text/html;charset=utf-8" / >
< title > MPV Configuration< / title >
< meta name = "author" content = "Dehaeze Thomas" / >
2021-10-25 14:37:10 +02:00
< meta name = "generator" content = "Org Mode" / >
2021-01-01 20:12:34 +01:00
< link rel = "stylesheet" type = "text/css" href = "./dist/style.css" / >
< script type = "text/javascript" src = "./dist/script.js" > < / script >
2020-01-11 22:04:45 +01:00
< / head >
< body >
< div id = "org-div-home-and-up" >
< a accesskey = "h" href = "./index.html" > UP < / a >
|
< a accesskey = "H" href = "./index.html" > HOME < / a >
2021-10-25 14:37:10 +02:00
< / div > < div id = "content" class = "content" >
2020-01-11 22:04:45 +01:00
< h1 class = "title" > MPV Configuration< / h1 >
2021-10-25 14:37:10 +02:00
< div id = "table-of-contents" role = "doc-toc" >
2020-01-11 22:04:45 +01:00
< h2 > Table of Contents< / h2 >
2021-10-25 14:37:10 +02:00
< div id = "text-table-of-contents" role = "doc-toc" >
2020-01-11 22:04:45 +01:00
< ul >
2022-05-09 10:05:23 +02:00
< li > < a href = "#org9760c47" > < code > mpv.conf< / code > - MPV Configuration< / a > < / li >
< li > < a href = "#orgc477e69" > < code > input.conf< / code > - MPV Key Bindings< / a > < / li >
2020-01-11 22:04:45 +01:00
< / ul >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-org9760c47" class = "outline-2" >
< h2 id = "org9760c47" > < code > mpv.conf< / code > - MPV Configuration< / h2 >
< div class = "outline-text-2" id = "text-org9760c47" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
2021-01-08 01:43:48 +01:00
< pre class = "src src-conf" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > When Floating, put MPV on the bottom right corner< / span >
< span class = "org-variable-name" > geometry< / span > =99%:98%
2020-01-11 22:04:45 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > don't allow a new window to have a size larger than 90% of the screen size< / span >
2021-01-08 01:43:48 +01:00
< span class = "org-variable-name" > autofit-larger< / span > =40%x40%
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Do not run the screensaver when playing videos< / span >
< span class = "org-variable-name" > stop-screensaver< / span > =< span class = "org-string" > "yes"< / span >
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Automatically load subtitle file with filename same to the video< / span >
< span class = "org-variable-name" > sub-auto< / span > =fuzzy
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Display French subtitles if available.< / span >
< span class = "org-variable-name" > slang< / span > =fr
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Play English audio if available, fall back to French otherwise.< / span >
< span class = "org-variable-name" > alang< / span > =en,fr
2020-01-11 22:04:45 +01:00
2021-01-08 01:43:48 +01:00
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Do not close mpv at the end of video< / span >
< span class = "org-variable-name" > keep-open< / span > =yes
2021-10-25 14:37:10 +02:00
2022-05-09 10:05:23 +02:00
< span class = "org-variable-name" > script-opts< / span > =ytdl_hook-ytdl_path=/home/thomas/miniconda3/bin/yt-dlp
2020-01-11 22:04:45 +01:00
< / pre >
< / div >
< / div >
< / div >
2022-05-09 10:05:23 +02:00
< div id = "outline-container-orgc477e69" class = "outline-2" >
< h2 id = "orgc477e69" > < code > input.conf< / code > - MPV Key Bindings< / h2 >
< div class = "outline-text-2" id = "text-orgc477e69" >
2020-01-11 22:04:45 +01:00
< div class = "org-src-container" >
< pre class = "src src-conf" > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Audio< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > WHEEL_LEFT add volume -2< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > WHEEL_RIGHT add volume 2< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > ctrl++ add audio-delay 0.100 # this changes audio/video sync< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > ctrl+- add audio-delay -0.100< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 9 add volume -2< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > / add volume -2< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 0 add volume 2< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > * add volume 2< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > m cycle mute< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > SHARP cycle audio # switch audio streams< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Basic< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
ESC set fullscreen no
q quit
Q quit-watch-later
SPACE cycle pause < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > toggle pause/playback mode< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > p cycle pause # toggle pause/playback mode< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Navigation< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
l seek < span class = "org-highlight-numbers-number" > 5< / span >
h seek -5
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > k seek 60< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > j seek -60< / span >
L playlist-next < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > skip to next file< / span >
H playlist-prev < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > skip to previous file< / span >
K add chapter < span class = "org-highlight-numbers-number" > 1< / span > < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > skip to next chapter< / span >
J add chapter -1 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > skip to previous chapter< / span >
WHEEL_UP seek < span class = "org-highlight-numbers-number" > 10< / span >
WHEEL_DOWN seek -10
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Subtitles< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
z add sub-delay -0.1 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > subtract 100 ms delay from subs< / span >
Z add sub-delay +0.1 < span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > add< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > x add sub-delay +0.1 # same as previous binding (discouraged)< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > r add sub-pos -1 # move subtitles up< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > R add sub-pos +1 # down< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > t add sub-pos +1 # same as previous binding (discouraged)< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > v cycle sub-visibility< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > stretch SSA/ASS subtitles with anamorphic videos to match historical< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > V cycle sub-ass-vsfilter-aspect-compat< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > switch between applying no style overrides to SSA/ASS subtitles, and< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > overriding them almost completely with the normal subtitle style< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > u cycle-values sub-ass-override "force" "no"< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > j cycle sub # cycle through subtitles< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > J cycle sub down # ...backwards< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Skip to previous/next subtitle (subject to some restrictions; see manpage)< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Ctrl+LEFT no-osd sub-seek -1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Ctrl+RIGHT no-osd sub-seek 1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Adjust timing to previous/next subtitle< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Ctrl+Shift+LEFT sub-step -1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Ctrl+Shift+RIGHT sub-step 1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > F9 show_text ${track-list} # show list of audio/sub streams< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > ? add sub-scale +0.1 # increase subtitle font size< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > ? add sub-scale -0.1 # decrease subtitle font size< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Video< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Move video rectangle< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+left add video-pan-x 0.1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+right add video-pan-x -0.1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+up add video-pan-y 0.1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+down add video-pan-y -0.1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Zoom/unzoom video< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt++ add video-zoom 0.1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+- add video-zoom -0.1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Reset video zoom/pan settings< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+BS set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 1 add contrast -1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 2 add contrast 1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 3 add brightness -1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 4 add brightness 1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 5 add gamma -1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 6 add gamma 1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 7 add saturation -1< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > 8 add saturation 1< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Speed< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > [ multiply speed 1/1.1 # scale playback speed< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > ] multiply speed 1.1< / span >
2021-01-01 20:12:34 +01:00
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > { multiply speed 0.5< / span >
2020-01-11 22:04:45 +01:00
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > } multiply speed 2.0< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > BS set speed 1.0 # reset speed to normal< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > # Informations< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > o show-progress< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > P show-progress< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > i script-binding stats/display-stats< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > I script-binding stats/display-stats-toggle< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Screenshot< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > s async screenshot # take a screenshot< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > S async screenshot video # ...without subtitles< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Ctrl+s async screenshot window # ...with subtitles and OSD, and scaled< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+s screenshot each-frame # automatically screenshot every frame< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Media keys< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > POWER quit< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > PLAY cycle pause< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > PAUSE cycle pause< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > PLAYPAUSE cycle pause< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > STOP quit< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > FORWARD seek 60< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > REWIND seek -60< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > NEXT playlist-next< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > PREV playlist-prev< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > VOLUME_UP add volume 2< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > VOLUME_DOWN add volume -2< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > MUTE cycle mute< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > CLOSE_WIN quit< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > CLOSE_WIN {encode} quit 4< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > Others< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Shift+BS revert-seek # undo previous (or marked) seek< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Shift+Ctrl+BS revert-seek mark # mark position for revert-seek< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > . frame-step # advance one frame and pause< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > , frame-back-step # go back by one frame and pause< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > O no-osd cycle-values osd-level 3 1 # cycle through OSD mode< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+0 set window-scale 0.5< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+1 set window-scale 1.0< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > Alt+2 set window-scale 2.0< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > toggle deinterlacer (automatically inserts or removes required filter)< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > d cycle deinterlace< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > _ cycle video< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > T cycle ontop # toggle video window ontop of other windows< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > f cycle fullscreen # toggle fullscreen< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > w add panscan -0.1 # zoom out with -panscan 0 -fs< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > W add panscan +0.1 # in< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > e add panscan +0.1 # same as previous binding (discouraged)< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > cycle video aspect ratios; "-1" is the container aspect< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > A cycle-values video-aspect "16:9" "4:3" "2.35:1" "-1"< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > E cycle edition # next edition< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > l ab-loop # Set/clear A-B loop points< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > L cycle-values loop-file "inf" "no" # toggle infinite looping< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > ctrl+c quit 4< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > DEL script-binding osc/visibility # cycle OSC display< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > ctrl+h cycle-values hwdec "auto" "no" # cycle hardware decoding< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > F8 show_text ${playlist} # show playlist< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > q {encode} quit 4< / span >
< span class = "org-comment-delimiter" > #< / span > < span class = "org-comment" > ESC {encode} quit 4< / span >
< span class = "org-comment-delimiter" > # < / span > < span class = "org-comment" > =============================================================< / span >
< / pre >
< / div >
< / div >
< / div >
< / div >
< div id = "postamble" class = "status" >
< p class = "author" > Author: Dehaeze Thomas< / p >
2022-05-09 10:05:23 +02:00
< p class = "date" > Created: 2022-05-09 lun. 10:04< / p >
2020-01-11 22:04:45 +01:00
< / div >
< / body >
< / html >