mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Long filenames cause every audio output device to reinit with ao=pipewire

Open po5 opened this issue 1 year ago • 3 comments

mpv Information

mpv v0.38.0-569-g7c70df0934 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0 (v7.349.0-rc1)
FFmpeg version: N-115975-g0c0e7ec81e
FFmpeg library versions:
   libavcodec      61.8.100
   libavdevice     61.2.100
   libavfilter     10.2.102
   libavformat     61.3.104
   libavutil       59.25.100
   libswresample   5.2.100
   libswscale      8.2.100

Other Information

  • Linux version: EndeavourOS Linux x86_64
  • Kernel Version: 6.9.5-arch1-1
  • GPU Model: NVIDIA GeForce RTX 3060 Ti
  • Mesa/GPU Driver Version: nvidia-dkms 550.90.07-3
  • Window Manager and Version: KDE 6.1.0-1
  • Source mpv: mpv-full-git AUR
  • Introduced in version: unknown

Reproduction Steps

I appended 100k characters to an EDL URI from a YouTube video's stream-open-filename.

Expected Behavior

Same behavior as with the original ytdl_hook EDL.

Actual Behavior

Causes this message to flash every few seconds, showing the audio device is getting re-initialized. audio KDE reports no audio outputs while this is happening. Audio plays (both mpv and other applications) but has frequent glitches not present otherwise. Video plays as normal. open This continues for as long as mpv is kept open, and stops once mpv is closed or after switching to a different file. closed

Only happens with --ao=pipewire. Diff'd against log with the original EDL, but there is no trace of the constant reinits.

Log File

ao=pipewire mpv-audio-reinit-bug2-v-v.txt ao=pulse mpv-audio-reinit-bug3-v-v.txt

Sample Files

No response

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

  • [X] I tested with the latest mpv version to validate that the issue is not already fixed.
  • [X] I provided all required information including system and mpv version.
  • [X] 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.
  • [X] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • [X] I attached the full, untruncated log file.
  • [X] I attached the backtrace in the case of a crash.

po5 avatar Jul 17 '24 13:07 po5

Can you produce a log with PIPEWIRE_DEBUG=5 mpv [...]? I can't reproduce this fwiw

llyyr avatar Jul 17 '24 16:07 llyyr

PIPEWIRE_DEBUG=5 mpv [...] -v -v --no-config --log-file=issue14568.txt 2> issue14568-pipewiredebug5.txt issue14568.txt issue14568-pipewiredebug5.txt

po5 avatar Jul 17 '24 16:07 po5

Nothing seems unusual there, it might be a KDE menu bug because it tries to display that string in the "Application" tab of the volume control

llyyr avatar Jul 17 '24 17:07 llyyr