-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
mpv: --hwdec=nvdec dont work in unstable #218859
Comments
Oh boy. I can't help with nvidia hardware things. |
nix shell github:NixOS/nixpkgs/#mpv That'd use ffmpeg built without the cudaSupport flag. Unless nvcuvid is one of the "impurely deployed" libraries (go into /run), neither ffmpeg nor MPV would know about it |
i did this in my nixpkgs overlays (self: super: {
mpv-nvidia = super.wrapMpv pkgs.mpv-unwrapped-nvidia { };
})
(self: super: {
mpv-unwrapped-nvidia = super.mpv-unwrapped.override {
ffmpeg_5 = super.ffmpeg_5-full;
};
}) i tried both, mpv-nvidia and mpv-unwrapped-nvidia, i still get error |
This comment was marked as off-topic.
This comment was marked as off-topic.
have the same issue... |
Weird that I see we have a broken derivation |
@3JlOy-PYCCKUi can you
|
May 31st, the problem appears to have been solved by #217044. Closing the issue, feel free to follow up ❯ # Mpv from a two weeks old nixos-unstable. Can reproduce the nvcuvid error
❯ readlink -f $(which mpv)
/nix/store/maqw3rlx5sq60hkflm40n6lg5j0k7w1m-mpv-with-scripts-0.35.1/bin/mpv
❯ mpv --hwdec=nvdec nix-du-xdot-2.mp4
Error parsing option cache-default (option not found)
/home/ss/.config/mpv/mpv.conf:3: setting option cache-default='4000000' failed.
(+) Video --vid=1 (*) (h264 3828x2108 10.000fps)
[ffmpeg/video] h264: Cannot load libnvcuvid.so.1
[ffmpeg/video] h264: Failed loading nvcuvid.
[ffmpeg/video] h264: Failed setup for format cuda: hwaccel initialisation returned error.
VO: [gpu] 3828x2108 yuv420p
V: 00:00:00 / 00:00:41 (0%)
Exiting... (Quit)
❯ nix shell --expr '(import (builtins.getFlake github:NixOS/nixpkgs/master) { config = { cudaSupport = true; allowUnfree = true; }; }).mpv' --impure
❯ mpv --hwdec=nvdec nix-du-xdot-2.mp4
Error parsing option cache-default (option not found)
/home/ss/.config/mpv/mpv.conf:3: setting option cache-default='4000000' failed.
(+) Video --vid=1 (*) (h264 3828x2108 10.000fps)
[ffmpeg/video] h264: Cannot load libnvcuvid.so.1
[ffmpeg/video] h264: Failed loading nvcuvid.
[ffmpeg/video] h264: Failed setup for format cuda: hwaccel initialisation returned error.
VO: [gpu] 3828x2108 yuv420p
V: 00:00:00 / 00:00:41 (0%)
Exiting... (Quit) |
Describe the bug
mpv with --hwdec=nvdec throws errors
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors printed
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Problem exists in current master (4a6cd14), unstable (7f5639f)
But no issue on commit c2f4e0d (last commit pkgs/applications/video/mpv dir was touched)
i tested this via
nix shell github:NixOS/nixpkgs/<commit>#mpv
and then open video (direct link to video - https://0x0.st/s/jPdDkhUx1W-W5saPzei__Q/HzN-.mp4)Notify maintainers
@AndersonTorres
@fpletz
@globin
@Ma27
@tadeokondrak
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: