-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Clicking / Popping sound on videos #15775
Comments
You need to make a log file where the issue occurs, not a log file where mpv is not playing any video. The issue template tells you so. |
Sorry. I've edited and attached the log file of the video. It should be correct this time I think. |
I don't see anything wrong in the log file. Does |
Nothing changed. This is what I used I also tested the video on Windows Media Player, and the popping sound isn't there at all. |
When I extracted the audio from the video using "ffmpeg -i input.mkv -vn -acodec copy output.opus" and played it on MPV, the popping/cracking sound disappeared. I hope this can help in finding a solution for this. Edit: The popping/cracking sound disappeared when I used ffmpeg to convert .mkv to .mp4. Anyone know a fix for this without having to convert the file? |
Can't reproduce on my end so assuming this is WASAPI-specific for now. |
Could this issue happen on a badly muxed video? I downloaded the raw of the anime that I'm watching, and the issue is nonexistent. Here are 2 screenshots of the video. Main difference I guess is the audio format? MPV can support .opus right? But still it's very weird that converting it to .mp4 would fix the issue. Let me know if there's a fix for this. I could just use raws to watch, but maybe someone in the future will experience this as well so maybe it will help. |
Do you get the problem if you use |
Yap the problem is still there, tried both. |
Hmm well removing the tag. Maybe it's device specific or something. |
Can you reproduce the issue with ffplay? |
This comment has been minimized.
This comment has been minimized.
Yes the issue is still there. I run the video using "ffplay video.mkv", if I did it right. |
The issue is fixed for mine, not random. From the video I uploaded, it is very noticeable around 8:06 ~ 8:09 minute range. Honestly not sure what is wrong. Could be the audio format being incompatible with MPV or something else. You could try to download the video and see if it happens for you as well. |
I can reproduce on the extracted audio playing in MPV but not in Foobar2000. I went back to a 2 week old build since I suspected it being a recent MPV/FFMPEG issue but I can still reproduce, my issue may have been source or co-incidence. |
If ffplay can reproduce it, then it should be some ffmpeg issue. If someone feels like bisecting, that would be appreciated. |
I went to try but then realized I completely forgot to try in other containers. .opus - Good I originally extracted to mka (since it was from MKV) and was testing that, it would pop going all the way back to 5.1 (Foobar is apparently using 6.0 so I assume they aren't using FFMPEG directly to play but extracting the raw opus stream then playing it which avoids the container issues? |
I can reproduce the issue now, this only happens when this specific opus file and when the container is mkv specifically. If you reencode the opus before muxing to mkv, or mux to a different container (mp4), it doesn't crackle. And of course, playing back the raw opus doesn't crackle either. This is a weird issue but not a mpv bug. Report to ffmpeg if you care. I could reproduce the issue with 7.1 and master, so I don't know how long it's been like this. @Jules-A Please don't pollute tickets with blogs about unrelated issues. |
This comment has been minimized.
This comment has been minimized.
Thanks guys. I will report this issue to ffmpeg and hope that they could fix it. |
mpv Information
Other Information
Reproduction Steps
Tested the reproduction steps, and the issue still persists. This issue does not happen when I use VLC media player, only on MPV. It happens regardless of the playback device I use. I am only using these lines for my mpv.conf,
"profile=gpu-hq
vo=gpu-next
hwdec=yes
gpu-api=vulkan".
Let me know if there is anything I need to do or add as an attempt to fix this issue.
Expected Behavior
Video plays normally
Actual Behavior
Clicking / Popping sounds on certain parts of video
Log File
output.txt
Sample Files
Clipped video and full video:
https://drive.google.com/drive/folders/1S108QeTOSg1ieo7uFyoqWIYjvPIgNIeO?usp=sharing
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.The text was updated successfully, but these errors were encountered: