diff options
Diffstat (limited to 'user-profiles')
| -rw-r--r-- | user-profiles/mpv/default.nix | 2 | ||||
| -rw-r--r-- | user-profiles/yt-dlp.nix | 18 |
2 files changed, 12 insertions, 8 deletions
diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix index 48893f49..8cf330e8 100644 --- a/user-profiles/mpv/default.nix +++ b/user-profiles/mpv/default.nix | |||
| @@ -106,7 +106,7 @@ | |||
| 106 | config = { | 106 | config = { |
| 107 | ytdl = true; | 107 | ytdl = true; |
| 108 | ytdl-format = "ytdl"; | 108 | ytdl-format = "ytdl"; |
| 109 | ytdl-raw-options = "sub-langs=\"${config.programs.yt-dlp.settings.sub-langs}\""; | 109 | # ytdl-raw-options = "sub-langs=\"${config.programs.yt-dlp.settings.sub-langs}\""; |
| 110 | subs-with-matching-audio = false; | 110 | subs-with-matching-audio = false; |
| 111 | audio-display = false; | 111 | audio-display = false; |
| 112 | osd-font = "Fira Sans"; | 112 | osd-font = "Fira Sans"; |
diff --git a/user-profiles/yt-dlp.nix b/user-profiles/yt-dlp.nix index 9e30bba8..eefa673f 100644 --- a/user-profiles/yt-dlp.nix +++ b/user-profiles/yt-dlp.nix | |||
| @@ -7,21 +7,25 @@ | |||
| 7 | cookies-from-browser = "firefox::none"; | 7 | cookies-from-browser = "firefox::none"; |
| 8 | mark-watched = true; | 8 | mark-watched = true; |
| 9 | format = lib.concatStringsSep "/" [ | 9 | format = lib.concatStringsSep "/" [ |
| 10 | "bestvideo*[width<=2560][height<=1440][fps<=60][vcodec!*=av01][vcodec!*=avc1]+bestaudio" | 10 | "bestvideo*[width<=2560][height<=1440][fps<=60][vcodec!*=av01][width>=1920]+bestaudio" |
| 11 | "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][vcodec!*=avc1]" | 11 | "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][width>=1920]" |
| 12 | "bestvideo*[vcodec!*=av01][vcodec!*=avc1]+bestaudio" | 12 | "bestvideo*[vcodec!*=av01][width>=1920]+bestaudio" |
| 13 | "best[vcodec!*=av01][vcodec!*=avc1]" | 13 | "best[vcodec!*=av01][width>=1920]" |
| 14 | "bestvideo*[width<=2560][height<=1440][fps<=60][vcodec!*=av01][height>=1080]+bestaudio" | ||
| 15 | "best[width<=2560][height<=1440][fps<=60][vcodec!*=av01][height>=1080]" | ||
| 16 | "bestvideo*[vcodec!*=av01][height>=1080]+bestaudio" | ||
| 17 | "best[vcodec!*=av01][height>=1080]" | ||
| 14 | "bestvideo*[width<=2560][height<=1440][fps<=60]+bestaudio" | 18 | "bestvideo*[width<=2560][height<=1440][fps<=60]+bestaudio" |
| 15 | "best[width<=2560][height<=1440][fps<=60]" | 19 | "best[width<=2560][height<=1440][fps<=60]" |
| 16 | "bestvideo*+bestaudio" | 20 | "bestvideo*+bestaudio" |
| 17 | "best" | 21 | "best" |
| 18 | ]; | 22 | ]; |
| 19 | embed-subs = true; | 23 | # embed-subs = true; |
| 20 | embed-thumbnail = true; | 24 | embed-thumbnail = true; |
| 21 | embed-metadata = true; | 25 | embed-metadata = true; |
| 22 | # write-subs = true; | 26 | # write-subs = true; |
| 23 | write-auto-subs = true; | 27 | # write-auto-subs = true; |
| 24 | sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; | 28 | # sub-langs = "en(-(gb|us|orig))?,de(-(de|orig))?,-live_chat,-rechat"; |
| 25 | prefer-free-formats = true; | 29 | prefer-free-formats = true; |
| 26 | # downloader = "${pkgs.axel}/bin/axel"; | 30 | # downloader = "${pkgs.axel}/bin/axel"; |
| 27 | concurrent-fragments = 12; | 31 | concurrent-fragments = 12; |
