Very short audio files don't play
Open
Nobody has claimed this yet.
down-upstream:pipewire
os:linux
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
mpv Information
mpv v0.38.0-dirty Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
built on Sep 4 2024 19:59:01
libplacebo version: v7.349.0
FFmpeg version: n7.0.2
FFmpeg library versions:
libavutil 59.8.100
libavcodec 61.3.100
libavformat 61.1.100
libswscale 8.1.100
libavfilter 10.1.100
libswresample 5.1.100
Other Information
- Linux version: Arch
- Kernel Version: Linux deepmass 6.10.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 12 Sep 2024 17:21:02 +0000 x86_64 GNU/Linux
- GPU Model: NVIDIA Corporation GP107 [GeForce GTX 1050] (rev a1)
- Mesa/GPU Driver Version: 4.6.0 NVIDIA 560.35.03
- Window Manager and Version: openbox 3.6.1-11
- Source mpv:
- Introduced in version:
Reproduction Steps
mpv clip_pixabay_21156.ogg
Expected Behavior
To hear the sound
Actual Behavior
I hear nothing
Log File
If there's something specific in the log I can provided it. Here's the end
[ 0.070][i][cplayer] AO: [pipewire] 44100Hz mono 1ch floatp
[ 0.070][v][cplayer] AO: Description: PipeWire audio output
[ 0.070][v][af] [convert] (disabled)
[ 0.070][v][af] [out] 44100Hz mono 1ch floatp
[ 0.070][v][af] filter input EOF
[ 0.070][v][af] filter output EOF
[ 0.070][v][cplayer] audio filter EOF
[ 0.070][d][osc] osc_init
[ 0.070][v][cplayer] audio ready (and EOF)
[ 0.070][v][cplayer] starting audio playback
[ 0.070][d][ao/pipewire] Stream state changed: old_state=connecting state=paused error=(null)
[ 0.070][v][cplayer] audio draining
[ 0.070][v][cplayer] playback restart complete @ 0.002902, audio=draining, video=eof
[ 0.070][v][cplayer] audio EOF reached
[ 0.070][v][cplayer] EOF code: 1
[ 0.070][d][ad] Uninit decoder.
[ 0.070][d][cplayer] Terminating demuxers...
[ 0.071][d][cplayer] Done terminating demuxers.
[ 0.071][v][cplayer] finished playback, success (reason 0)
[ 0.071][i][cplayer] Exiting... (End of file)
[ 0.071][d][ytdl_hook] Exiting...
[ 0.071][d][stats] Exiting...
[ 0.071][d][console] Exiting...
[ 0.071][d][auto_profiles] Exiting...
[ 0.071][v][cplayer] Set property: user-data/osc/margins={"b":0,"l":0,"t":0,"r":0} -> 1
[ 0.071][d][cplayer] Run command: del, flags=64, args=[name="user-data/osc"]
[ 0.072][d][osc] Exiting...
[ 0.072][d][ao/pipewire] Stream state changed: old_state=paused state=streaming error=(null)
[ 0.075][v][cplayer] draining left over audio
[ 0.323][d][ao/pipewire] Stream state changed: old_state=streaming state=paused error=(null)
Sample Files
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with mpv clip_pixabay_21156.ogg and the attached sample.zip, then compare the playback log with a longer audio file. No source file or test is named in the issue; done means the provided very short audio sample plays audibly without regressing normal audio playback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- audio-video-rtc, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100