mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.74k stars 2.86k forks source link

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

Open po5 opened 1 month ago

po5 commented 1 month ago

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

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:

llyyr commented 1 month ago

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

po5 commented 1 month ago

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

llyyr commented 1 month ago

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