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

No video output with dmabuf_wayland on GTX 1080 #14627

Closed
6 tasks done
E-Allie opened this issue Aug 2, 2024 · 4 comments
Closed
6 tasks done

No video output with dmabuf_wayland on GTX 1080 #14627

E-Allie opened this issue Aug 2, 2024 · 4 comments
Labels
down-upstream features and bugs that need to be implemented and fixed upstream os:linux

Comments

@E-Allie
Copy link

E-Allie commented Aug 2, 2024

mpv Information

mpv 0.38.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Jan  1 1980 00:00:00
libplacebo version: v7.349.0
FFmpeg version: 6.1.1
FFmpeg library versions:
   libavutil       58.29.100
   libavcodec      60.31.102
   libavformat     60.16.100
   libswscale      7.5.100
   libavfilter     9.12.100
   libswresample   4.12.100

Other Information

  • Linux version: NixOS 24.11 (Vicuna)
  • Kernel Version: Linux 6.10.2 #1-NixOS SMP PREEMPT_DYNAMIC Sat Jul 27 09:40:36 UTC 2024 x86_64 GNU/Linux
  • GPU Model: NVIDIA Corporation GP104BM [GeForce GTX 1080 Mobile] [10de:1be0] (rev a1)
  • GPU Driver Version: NVIDIA Stable 555.58.02 and Beta 560.28.03 [closed kernel, proprietary driver]
  • Mesa Version: Mesa 24.1.4
  • Window Manager and Version: KDE Plasma/KWin 6.1.3
  • Source mpv: OS repository/nixpkgs

On latest mpv [other versions untested], and latest stable and beta NVIDIA proprietary drivers, dmabuf-wayland fails to produce video.

Reproduction Steps

With the hardware and software above, using dmabuf-wayland and any tested combination of gpu-api, gpu-context, and hwdec leads to no video output.

Expected Behavior

Video Output

Actual Behavior

No video output, with the status level error of:
status-level error of:

[hwupload] no support for this hw format
[hwupload] hardware format not supported
[autoconvert] HW-uploading to drm_prime
[hwupload] upload yuv420p -> drm_prime[yuv420p]
[hwupload] failed to upload frame
Cannot convert decoder/filter output to any format supported by the output.
Could not initialize video chain.

Possible additional context: When using other working vo's and hwdec, the output format tends to be along the lines of "cuda[nv12]", instead of drm_prime

Log File

output.txt

Sample Files

Any and all videos tested yield the same result

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.
@Dudemanguy
Copy link
Member

dmabuf_wayland requires either vaapi or drmprime support. The latter is only relevant on SoC devices and AFAIK vaapi isn't going to work on nvidia so this is expected.

@E-Allie
Copy link
Author

E-Allie commented Aug 3, 2024

Excellent point:

When nvidia-vaapi-driver is used, the vaapi hardware decoder does work in the gpu-next context.

Attached are two additional logs, one where dmabuf_wayland fails in the presence of the vaapi driver, and the other where vaapi under gpu-next succeeds

outputdmabuf.txt
outputvaapi.txt

@Dudemanguy
Copy link
Member

gpu-next is using vaapi-copy which doesn't work for dmabuf-wayland because it still needs to hwupload the frame to vaapi. You can try specifying --hwdec=vaapi. I think it will fail for you.

@philipl
Copy link
Member

philipl commented Aug 3, 2024

--hwdec=vaapi will work with --vo=gpu-next if you use OpenGL. It does not work with Vulkan (IIRC, due to the Vulkan dmabuf import not being supported). I haven't tried with --vo=dmabuf-wayland but if it doesn't work it's almost certainly a driver limitation you'd need to deal with in the driver.

@sfan5 sfan5 added the down-upstream features and bugs that need to be implemented and fixed upstream label Aug 4, 2024
@sfan5 sfan5 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
down-upstream features and bugs that need to be implemented and fixed upstream os:linux
Projects
None yet
Development

No branches or pull requests

4 participants