-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Stuttering during video playback #12699
Comments
Can reproduce as well, constant stutters when playing any video. Command used: |
Interesting, I don't see much issues with my local build. But with shinchiro's it is completely broken indeed. Use older build for now. I have some local changes that likely will resolve the issue, but I will let @sfan5 decide what to do for now. Also latest nightly build contains a few changes that might be causing that, like aotmic changes, try_lock change, timer changes. |
I can still reproduce the issue with But it would interesting if it's build-dependent rather than an issue with the timer changes specifically. |
unable to reproduce this after revert #12662 |
Oh so it wasn't just me, I went back to the previous shinchiro build which was fine. Was noticing only slightly increased frametimes (like 5%) but it was dropping frames quite often. |
It seems to stutter only when |
I can't reproduce this either, try this build and check: https://github.com/mpv-player/mpv/actions/runs/6596458157#artifacts If you can still reproduce it please download this ZIP and test which executables exhibit the issue.
Do you have an idea what could cause this? If so, what is it? |
Stuttering is present in |
diff --git a/osdep/win32/pthread.c b/osdep/win32/pthread.c
index 9bc7f0057d..c9f581957e 100644
--- a/osdep/win32/pthread.c
+++ b/osdep/win32/pthread.c
@@ -119,7 +119,7 @@ int pthread_cond_timedwait(pthread_cond_t *restrict cond,
timeout_ms = INFINITE;
} else if (abstime->tv_sec >= ts.tv_sec) {
int64_t msec = (abstime->tv_sec - ts.tv_sec) * INT64_C(1000) +
- (abstime->tv_nsec - ts.tv_nsec) / INT64_C(10000000);
+ (abstime->tv_nsec - ts.tv_nsec) / INT64_C(1000000);
if (msec > ULONG_MAX) {
timeout_ms = INFINITE;
} else if (msec > 0) { |
Still getting stutters and frames drops on that build: PC Specs:
The file used is a H.264 8-bit video and is being read off a NVME SSD so there shouldn't be any bottleneck.
Stutters and frame drops: Running without any issues: I hope this helps @sfan5 |
@kasper93 oops. Next time I will definitely type @Isaacx123 should be fixed in https://github.com/mpv-player/mpv/actions/runs/6597777436 (as soon as it finishes) |
We should be using new handy macros added recently |
Can confirm the stutters and frame drops are gone on the latest zhongfly build: |
Late to the party, but yes, the issue is fixed now. |
Important Information
Provide following Information:
Reproduction steps
--no-config
Expected behavior
mpv is only broken on Windows 7.
Actual behavior
mpv is broken on all versions of Windows.
Log file
ihatempv.log
The text was updated successfully, but these errors were encountered: