mpv-player / mpv

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

Audio cracking/popping sound when pause or when dragging the progress bar #9730

Open ShawnXiaoY opened 2 years ago

ShawnXiaoY commented 2 years ago

Important Information

Provide following Information:

Reproduction steps

Pause a video/audio at a point that the audio's amplitude is large.

Expected behavior

Not to generate a cracking/popping sound

Actual behavior

Generating a cracking/popping sound

Sample files

There is no issue when playing the video/audio on Quicktime Player or on youtube.com, after investigating I found the reason: This is the wave form when you pause a video on mpv player or IINA(a macOS player based on mpv 0.32.0 currently):

截屏2022-01-19 下午7 36 37

This is the wave form when you pause a video on Quicktime Player:

截屏2022-01-19 下午7 41 23

These two are not the same piece of audio but it describes the issue, Quicktime Player seems to give a really quick fade out effect when you pause that users doesn't notice (because it's too short) so the wave won't suddenly stop which will make the speaker generate a pop sound, and when you drag the progress bar, I guess Quicktime will also give a fade out and fade in effect (I am too lazy to do the experiment :P).

p.s. the results are also noticeable when you look at the spectrum diagram:

屏幕录制2022-01-19 下午7 32 28

屏幕录制2022-01-19 下午7 37 21

avih commented 2 years ago

You could try --audio-stream-silence=yes https://mpv.io/manual/master/#options-audio-stream-silence .

ItsABlackScreen commented 9 months ago

Also has this problem, not on all but some files. Problem was on pause and also during playback.

In the end what helped was turning hardware decoding on. The problem was completely fixed after that. Turning it off introduced the problem back. Also the system was not stressed or throttling during playback, so it isn't a resource issue.

System: Fedora 38 mpv 0.35.1 CPU: AMD Ryzen 7 5800H with Radeon Graphics (16) GPU: NVIDIA GeForce RTX 3060 Mobile

Bellavene commented 1 month ago

Any news? Ten years have passed, yet still this problem persists.

na-na-hi commented 1 month ago

Duplicate of https://github.com/mpv-player/mpv/issues/2515.