diff options
Diffstat (limited to 'modules/common/mpv.nix')
-rw-r--r-- | modules/common/mpv.nix | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/modules/common/mpv.nix b/modules/common/mpv.nix index 97f406c..28b3cf5 100644 --- a/modules/common/mpv.nix +++ b/modules/common/mpv.nix @@ -46,6 +46,17 @@ in { profiles = { "protocol.http".force-window = "immediate"; "protocol.https".profile = "protocol.http"; + + "extension.gif" = { + cache = false; + loop-file = true; + }; + "extension.png" = { + profile = "extension.gif"; + video-aspect-override = 0; + }; + "extension.jpeg".profile = "extension.png"; + "extension.jpg".profile = "extension.png"; }; config = let @@ -70,15 +81,18 @@ in { "ru-RU" ]; in { - audio-display = "no"; autofit-larger = "100%x95%"; + cache = true; cursor-autohide = 1000; - force-seekable = "no"; + cursor-autohide-fs-only = true; + demuxer-max-back-bytes = "20M"; + demuxer-max-bytes = "20M"; + force-seekable = true; fullscreen = true; msg-color = true; msg-module = true; prefetch-playlist = true; - save-position-on-quit = false; + save-position-on-quit = true; screenshot-format = "png"; screenshot-template = "%F [%p]"; stop-screensaver = true; @@ -89,9 +103,9 @@ in { osd-bar-h = 2; osd-bar-w = 60; osd-border-color = "#FF262626"; - osd-border-size = 2.5; + osd-border-size = 2; osd-color = "#FFFFFFFF"; - osd-duration = 2500; + osd-duration = 1000; osd-font-size = 40; osd-fractions = true; osd-level = 1; @@ -99,20 +113,22 @@ in { osc = false; - sub-auto = "fuzzy"; - sub-file-paths-append = "srt"; + blend-subtitles = true; + embeddedfonts = false; sub-ass-force-margins = true; sub-ass-force-style = "kerning=yes"; - sub-fix-timing = true; - sub-use-margins = true; - sub-font-size = 40; - sub-color = "#FFFFFFFF"; + sub-auto = "fuzzy"; sub-border-color = "#FF262626"; sub-border-size = 2.5; - sub-shadow-offset = 1; + sub-color = "#FFFFFFFF"; + sub-file-paths-append = "srt"; + sub-fix-timing = true; + sub-font-size = 40; + sub-scale-with-window = true; sub-shadow-color = "#33000000"; + sub-shadow-offset = 1; sub-spacing = 0.5; - blend-subtitles = true; + sub-use-margins = true; audio-file-auto = "fuzzy"; volume = 100; |