mpv-player / mpv-player/mpv

audio-stream-silence no longer working

Open
#6,109 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ao:alsa core:audio
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

mpv version and platform

Using two versions of mpv to test. One is mpv 0.27.2 from debian multimedia.org. The other is mpv 0.29.0-28-ga5b0d59084, compiled Sept 2nd.

Reproduction steps

I am using a symlink from /usr/local/etc/mpv to /etc/mpv, and share the same config file for both versions. I know the config file is being parsed by both versions, as many usability tweaks are missing otherwise.

With mpv 0.27.2 and audio-stream-silence=yes in mpv.conf, my amp pauses, seeks, resumes with virtually no lag in audio starting up.

With mpv 0.29.0-28-ga5b0d59084 and audio-stream-silence=yes in mpv.conf, my amp pauses, seeks, resumes with up to 2-3 seconds delay before audio starts.

I do have mpv ready to compile.. so, I can text/check/etc anything suggested.

Hmm.

When beginning to collect a logfile for this bug report, I noticed this on pause (something I would not notice via my media center + remote control at the TV):

AV: 00:00:00.501 / 02:11:42.933 (0%) A-V: 0.000 Cache: 91s+159MB
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!
(Paused) AV: 00:00:00.542 / 02:11:42.933 (0%) A-V: 0.000 Cache: 91s+159MB
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!
(Paused) AV: 00:00:00.542 / 02:11:42.933 (0%) A-V: 0.000 Cache: 91s+159MB
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!
(Paused) AV: 00:00:00.542 / 02:11:42.933 (0%) A-V: 0.000 Cache: 91s+159MB
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!
[ao/alsa] Error received from snd_pcm_avail (-32, Broken pipe)!

These errors are not shown with mpv 0.27.2.

Thanks

mpv.log

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached mpv.log and the pause/resume path for audio-stream-silence, then inspect the ALSA output indicated by [ao/alsa]. Reproduce the behavior with mpv 0.27.2 and 0.29.0-28-ga5b0d59084 using the shared mpv.conf; done means the delay and repeated Broken pipe errors no longer occur.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.