Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] allow to provide custom mpv options "-o" #107

Open
Aetherall opened this issue Dec 15, 2024 · 2 comments
Open

[Feature Request] allow to provide custom mpv options "-o" #107

Aetherall opened this issue Dec 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Aetherall
Copy link

Hi !
Great job with the mpvpaper backend !
I've been using it successfully on nixos with this overlay:

 wpp = pkgs.waypaper.overridePythonAttrs (old: {
    version = "2.4";
    src = pkgs.fetchFromGitHub {
      owner = "anufrievroman";
      repo = "waypaper";
      rev = "refs/tags/2.4";
      hash = "sha256-bNh8WWSLgCV8PLFvDn/+AEcNOazxMEKEYv7n+L9ABTA=";
    };
    dependencies =
      old.dependencies
      ++ [
        pkgs.python3.pkgs.imageio
        pkgs.python3.pkgs.imageio-ffmpeg
        pkgs.python3.pkgs.screeninfo
      ];
  });

Anyway, a nice addition would be to allow custom parameters to be forwarded to mpv.
Specifically, i am using profile=fast --vf-add=fps=15:round=near on my laptop to reduce gpu usage.

I dont really want to use the mpv config file for that, as I also use mpv as my main video player.
For now, i preprocess the videos using ffmpeg, but it would enable to urls and playlists too !

Thanks again for the software :)

@anufrievroman
Copy link
Owner

Hi, that's an interesting suggestion. One possibility I see to implement it, is to add a config parameter, like mpv_options = ... and would be added to the mpvpaper command that is being run when you click wallpapers. But then this will be fixed in your waypaper config basically. Would that be okay?

@anufrievroman anufrievroman added the enhancement New feature or request label Dec 20, 2024
@Aetherall
Copy link
Author

Yeap that would be the best solution for my use case :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants