MPV: Difference between revisions
imported>ThinkChaos m Use `mpv` instead of `mpv-with-scripts` |
imported>Aaronchall give overlay fix for mpv-unwrapped |
||
Line 34: | Line 34: | ||
]; | ]; | ||
} | } | ||
</syntaxhighlight> | |||
<h2>Error, unknown format</h2> | |||
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). | |||
<syntaxhighlight lang="shell"> | |||
$ mpv --log-file=foo.log av://v4l2:/dev/video5 | |||
[lavf] Unknown lavf format v4l2 | |||
Failed to recognize file format. | |||
Exiting... (Errors when loading file) | |||
</syntaxhighlight> | |||
To address this problem, you can use the following overlay in your <code>nixpkgs.overlays</code>: | |||
<syntaxhighlight lang="nix"> | |||
nixpkgs.overlays = with pkgs; [ | |||
(self: super: { | |||
mpv-unwrapped = super.mpv-unwrapped.override { | |||
ffmpeg_5 = ffmpeg_5-full; | |||
}; | |||
}) | |||
]; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Applications]] | [[Category:Applications]] |