Skip to content

Notification causes dropped frames #16961

@JustCauseWhyNot

Description

@JustCauseWhyNot

mpv Information

mpv v0.40.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.351.0
FFmpeg version: 7.1.1 (runtime 7.1.2)
FFmpeg library versions:
   libavcodec      61.19.101
   libavdevice     61.3.100
   libavfilter     10.4.100
   libavformat     61.7.100
   libavutil       59.39.100
   libswresample   5.3.100
   libswscale      8.3.100

Other Information

- Linux version: NAME=Gentoo PRETTY_NAME="Gentoo Linux"
- Kernel Version: Linux jcwn 6.17.3-gentoo #1 SMP PREEMPT Sun Oct 19 02:47:01 MDT 2025 x86_64 AMD Ryzen 7 9800X3D 8-Core Processor AuthenticAMD GNU/Linux
- GPU Model: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD104 [GeForce RTX 4070 SUPER] [10de:2783] (rev a1)
- Mesa/GPU Driver Version: 580.95.05
- Window Manager and Version: dwm 6.6
- Source of mpv: https://gitweb.gentoo.org/repo/sync/gentoo.git/tree/media-video/mpv/mpv-0.40.0-r3.ebuild
- Latest known working version: Unsure
- Issue started after the following happened: Unsure

Reproduction Steps

  1. Start video with hwdec=nvenc
  2. Trigger notification. I'm using dunst. I tried to install notification daemon, and see if it was reproducible with that. But I couldn't get it to work.
  3. Hopefully you'll notice dropped frames, and timing issues.

The issue is exclusively with hwdec=nvenc as far as my testing has proven to me. No other setting such as gpu-api, or vo=gpu/gpu-next impact what happens. --no-config --profile=fast didn't cause dropped frames, but that's because it was sw decoding.

The tar file has all my settings, and output.txt log.
mpvinfo.tar.gz

Expected Behavior

No frame drops when notification popup is displayed. I don't get frame drops using nvidia-vaapi gpu acceleration in firefox when notifications are shown. I know it's a different implementation, but it does show that gpu acceleration alone isn't the problem.

Actual Behavior

Frame drops when notification popup is displayed.

mpvdroppingframesfromnotification.mp4

Log File

output.txt I had to kill mpv after the notification popped up due to it freezing.

Sample Files

Any video should do, but you can use the video I uploaded it should work for this purpose also.

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