Open mitzsch opened 1 month ago
Can you upload the audio track?
unfortunately, I'm not allowed to upload that track... copyright. I will do some more testing, maybe I can find the version that introduced that behavior.
I have a similar problem, after adjusting the progress, the video stutters, the audio is fine, and sometimes the video is fine but there is no sound. Error reported:
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Consider trying --profile=fast
and/or --hwdec=auto-safe
as they may help.
There is no problem with the hardware The cpu is not occupied Files are played using PotPlayer without this problem The parameter “profile=fast,hwdec=auto-safe” was use
I use mpv.dll from this page https://github.com/shinchiro/mpv-winbuild-cmake/releases When I switch to the old 20240720 version of mpv.dll there is also no problem
I only found this problem on a highly compressed 4K mkv video.
I did some further investigation - with the limited old builds I have I could track it down to a change between build "a3baf94" (18.08.2024) and "e3a9ce2" (22.08.2024)
However, there does not seem to be a change that could affect it on mpvs side.
While debugging this message
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
Consider trying --profile=fast and/or --hwdec=auto-safe as they may help.
also got printed from time to time.
I only found this problem on a highly compressed 4K mkv video.
On my end, it also only shows up on 4K HEVC files.
Now I assume its something with FFmpeg - between the commits "https://github.com/ffmpeg/FFmpeg/commit/5c1c0325cd1bd3f826bbd73dffd0b07974a586bd" and "https://github.com/ffmpeg/FFmpeg/commit/9d15fe77e33b757c75a4186fa049857462737713"
There are multiple HEVC-related commits... Debugging them is way ahead of my skills.
If you can't share a sample and also can't bisect then I'm at a loss for how to proceed here. I guess you can create a sample if it happens with every 4k hevc sample?
I will try to reproduce it with big Buck Bunny... The problem with a sample is that its not really on a specific spot and is more like happening randomly when skipping/rewinding...
It seems to be this video file that triggers the issue: magnet:?xt=urn:btih:cd4c80cb6dfc825a8dc46a4fee6f14676127d8b4
I've been using the July version, but a couple of times I've tested the latest version and I've run into this problem. Looks like I'll be stuck with this July version for a long time.
mpv Information
Other Information
Reproduction Steps
Open a movie file fast forward/fast backward many times, and/or click randomly in the OSD at different spots in the timeline. After doing this multiple times the audio goes silent.
In the log, these lines get printed:
Sometimes the audio comes back after the diff= goes to zero but in my testing, most of the time, the audio stays silent after the diff counter goes to zero. The log also indicates "audio EOF reached" which is not true.
I tested an older version of mpv that I had lying around on my PC. That does not exhibit this behavior. (mpv v0.37.0-766-ge42a8d53)
Expected Behavior
Fast forward/fast backward as many often as you want, without losing audio.
Actual Behavior
Fast forward/fast backward very often, audio playback is lost.
Log File
mpv-scrub-audio-out_new.txt
Snipped of a log on a different file with a DTS-HD track
audio-delay-after-skip.txt
Log of old mpv that does not show this issue:
mpv-scrub-audio-out_olderV.txt
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.