这是indexloc提供的服务,不要输入任何密码
Skip to content

Vulkan hwdec framedrops with dpb and output coincide #16578

@nowrep

Description

@nowrep

mpv Information

mpv v0.40.0-231-gb47fd2842 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Jul 25 2025 08:51:32
libplacebo version: v6.338.2
FFmpeg version: N-120361-g829680f96a
FFmpeg library versions:
   libavcodec      62.8.100
   libavdevice     62.0.100
   libavfilter     11.3.100
   libavformat     62.1.103
   libavutil       60.6.100
   libswresample   6.0.100
   libswscale      9.0.100

Other Information

- Kernel Version: 6.14.0
- GPU Model: AMD RX 9060XT
- Mesa/GPU Driver Version: main 6fc78f38ae265

Reproduction Steps

Play any high resolution video with vulkan hwdec.

Expected Behavior

No framedrops.

Actual Behavior

Framedrops.

Log File

Can't get log with --gpu-debug because of validation errors.

The issue only happens on drivers that doesn't use additional images for DPB - VK_VIDEO_DECODE_CAPABILITY_DPB_AND_OUTPUT_COINCIDE_BIT_KHR.

Decoding is stalled by waiting on rendering current frame, if the current frame is used as reference for decoding next frame.

Image

Using -vf scale_vulkan to force copy workarounds the issue. No issue with VAAPI

Sample Files

No response

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions