Open Vizalkar opened 1 month ago
I can't enable vdpau on ubuntu 24.04, vdpauinfo fails too. vaapi is recommended, it's available in wayland and x11. Can you upload the log?
VAAPI is insanely slow, much slower than vanilla FFmpeg Video used in this test : CubeTunnel_HEVC.mov
VAAPI is insanely slow, much slower than vanilla FFmpeg
Can you compare the fps of ./DecodeFps -c:v vaapi test.mp4
and ./DecodeFps -c:v vaapi test.mp4
or ffmpeg command?
"mdk debug log" : Lack of EGL_EXT_image_dma_buf_import, disable dma interop
You have to use EGL to get the best rendering performance. If no EGL, 0-copy extension is missing for amd gpus. I tested EGL on ubuntu with x11 at least 8 years ago, it's the default in wayland. For qt, you can use environment var QT_XCB_GL_INTEGRATION=xcb_egl
to enable EGL, or use wayland platform.
"mdk debug log" : trying vdpau from x11 display: (nil)
Setting x11 display from qt is recommended: https://github.com/wang-bin/mdk-examples/blob/master/Qt/QMDKWidget.cpp#L32
"mdk debug log" : gl.VDPAUInitNV((const GLvoid)(intptrt)device, (const GLvoid)resolver_) GL ERROR (502) @ensureInterop373
"mdk debug log" : unknown, bpc:0, bpp:0(), channels:(), map: 0 0 0 0 => host mapped nv12, bpc:8, bpp:12(8,16), channels:(1,2), map: 0 1 2 0
some players have this error, others are good. I don't know why. Can you test with less players?
src:default--[1280x720 1:1 yuv420p]--default| auto_scale_0 |default--[1280x720 1:1 rgba]--format:default | (scale) |
Weird, avfilter should not be used.
some players have this error, others are good. I don't know why. Can you test with less players?
VAAPI is insanely slow, much slower than vanilla FFmpeg
Can you compare the fps of
./DecodeFps -c:v vaapi test.mp4
and./DecodeFps -c:v vaapi test.mp4
or ffmpeg command?"mdk debug log" : Lack of EGL_EXT_image_dma_buf_import, disable dma interop
You have to use EGL to get the best rendering performance. If no EGL, 0-copy extension is missing for amd gpus. I tested EGL on ubuntu with x11 at least 8 years ago, it's the default in wayland. For qt, you can use environment var
QT_XCB_GL_INTEGRATION=xcb_egl
to enable EGL, or use wayland platform.
./DecodeFps produce same fps with vaapi and vdpau, adding the QT_XCB_GL_INTEGRATION=xcb_egl env var gives good performance. Thank you
Describe the bug When several videos playing, using VDPAU, changing one video to FFmpeg then back to VDPAU again make other videos turn black.
To Reproduce Download the archive : boxes_switchHwAccel.zip Compile. Run the program. Right click on a video box and select "switch hwAccel" => switches to FFmpeg Right click on the same video box and select "switch hwAccel" => switches to VDPAU => other boxes turn black and stop playing
Environment:
Regards