Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipewire output shows erratic behavior. #15555

Open
6 tasks done
X6B opened this issue Dec 21, 2024 · 2 comments
Open
6 tasks done

Pipewire output shows erratic behavior. #15555

X6B opened this issue Dec 21, 2024 · 2 comments
Labels

Comments

@X6B
Copy link

X6B commented Dec 21, 2024

mpv Information

mpv v0.39.0-521-g96bebf0935 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Dec 21 2024 09:11:15
libplacebo version: v7.349.0
FFmpeg version: n7.1
FFmpeg library versions:
   libavcodec      61.19.100
   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

This is on Archlinux / Plasma 6 / Wayland.

Reproduction Steps

mpv --no-config -ao=pipewire videofile; create an A-B loop with L key.

Expected Behavior

Uninterrupted sound as in the pulse output.

Actual Behavior

Every time the loop starts, there are a few milliseconds of silence and you can see errors in pw-top.

Log File

output.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.
@X6B X6B added the os:linux label Dec 21, 2024
@t-8ch
Copy link
Contributor

t-8ch commented Dec 28, 2024

I can't reproduce this. There is a tiny crackling but no error in pw-top.

When you say "pulse output" do you mean --ao=pulse over pipewire-pulse or real PulseAudio?

Can you reproduce it with a command like

$ ffmpeg -f lavfi -i "sine=f=1000:d=10" out.wav
$ mpv --ab-loop-a=1 --ab-loop-b=2 out.wav

@X6B
Copy link
Author

X6B commented Dec 29, 2024

Yes, --ao=pulse over pipewire-pulse.

I can´t. In this sample the sound is perfect using pipewire output and no errors in pw-top.

I have found that the larger the video file (not in size or duration, but in video quality), the more errors appear in pw-top each loop using the pipewire output. In a small video the errors are one at a time, in a large video 10 errors can appear in each loop. In large videos, using the pulse output, the sound is interrupted this time, but no pw-top errors are visible.

I am using the latest stable version of pipewire.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants