MPV: Difference between revisions
let's not promote nix-env anymore in 2024 |
shorten mpv override flags, merge "mpv scripts" section into configuration section |
||
Line 42: | Line 42: | ||
mpv = pkgs.mpv-unwrapped.override { | mpv = pkgs.mpv-unwrapped.override { | ||
waylandSupport = true; | waylandSupport = true; | ||
# To find more scripts run this in a terminal: nix search nixpkgs mpvScripts | |||
# The scripts are defined in the following Nixpkgs directory: https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/video/mpv/scripts | |||
scripts = with pkgs.mpvScripts; [ | |||
uosc | |||
sponsorblock | |||
]; | |||
# Find more override options in the expression: | |||
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/video/mpv/default.nix | |||
}; | }; | ||
}) | }) | ||
# MPV configuration options | # MPV configuration options | ||
Line 90: | Line 62: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | == Error, unknown format == | ||
If you get the following sort of error, note that mpv currently uses the small ffmpeg version (ffmpeg_5) instead of the full version (ffmpeg_5-full). | If you get the following sort of error, note that mpv currently uses the small ffmpeg version (ffmpeg_5) instead of the full version (ffmpeg_5-full). |