Skip to content

mpv takes multiple seconds to open video when no audio devices are available #16967

@oattbread

Description

@oattbread

mpv Information

mpv v0.40.0-402-gaa2dad035 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Oct 23 2025 10:10:53
libplacebo version: v7.357.0 (v7.351.0-87-g9bffcaf-dirty)
FFmpeg version: N-121522-gd01608e02
FFmpeg library versions:
   libavcodec      62.16.100
   libavdevice     62.2.100
   libavfilter     11.9.100
   libavformat     62.6.101
   libavutil       60.14.100
   libswresample   6.2.100
   libswscale      9.3.100

Other Information

- Windows version: Microsoft Windows [Version 10.0.22631.6060]
- GPU model, driver and version: NVIDIA GeForce RTX 4070 Laptop GPU, Game Ready Driver 581.08
- Source of mpv: Windows builds by zhongfly - 2025-10-26 12:11
- Latest known working version: Not sure/ N/A
- Issue started after the following happened: Tried playing video after not having headphones connected.

Reproduction Steps

I have tested with and without an empty %appdata%/mpv folder and the issue still occurs.
2 ways to recreate.

Method 1:

  1. Ensure no audio devices are connected. To know that you have done this hover over the volume indicator on the right side of the windows taskbar and see if it says 'No audio device is installed'.
  2. Open mpv (this opens instantly like expected).
  3. Drag and drop video onto window (error occurs here)

The error occurs in on the third step, with the window freezing for a few (around 8) seconds.

Method 2:

  1. Ensure no audio devices are connected. To know that you have done this hover over the volume indicator on the right side of the windows taskbar and see if it says 'No audio device is installed'.
  2. Double click video file that has default player as mpv (error occurs here)

The error occurs in the second step, but it is more jarring compared to the first. mpv will not open or show any indication of opening until a few seconds later when the video opens like expected.

Additionally, if a video is started when no audio devices are enabled but one gets enabled during playback, the video will not have sound until closing and reopening mpv

Expected Behavior

Videos should open when no audio devices are available as fast as they do when there is an audio device enabled.

Actual Behavior

Videos take much longer to open when no audio device is available.

Log File

terminal-out.txt

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

    down-upstreamfeatures and bugs that need to be implemented and fixed upstreamos:win

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions