-
Notifications
You must be signed in to change notification settings - Fork 29
Video stutter when resuming it after pausing it. #54
Comments
M1 or Intel? |
M1 pro. Forgot to mention.
… On 17 May 2022, at 11:44, Carter Li ***@***.***> wrote:
M1 or Intel?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
I'm also having this issue on my Intel system. One thing to note is that for me at least this only occurs sometimes when using my spacebar to play/pause. If I right click with my mouse to play/pause or click on the play/pause button this does not occur and if it is already happening then using right click or the play/pause button will stop it from happening. |
I have the same problem,But only when using the SMB(2.0+ with multi channel) protocol. M1 Pro~ |
Did it ever happen on the official version? I have no idea what's going on. |
Alright, I looked into it some more and here's what I've found, It can be triggered by any video file / video stream. Also, this is reproducible with the latest official nightly build. |
Alright, I found that the latest stable official build does not have this issue however the earliest available official nightly build does so that means it was caused by one of the 32 commits that happened between 2/5/21 and 12/13/21. |
What that change is doing is stopping two threads that were needlessly running and therefore wasting battery while paused. |
I just noticed this IINA issue: iina#3744 |
I'm not too sure, that issue seems a bit different (resume taking a second vs constant stuttering after resume). Also when debugging this issue I tried removing This leads me to believe that input.conf toggle pause for some reason is not using the proper pause/resume functions (therefore not calling However, while trying to look into this, all of a sudden I'm unable to reproduce this behavior with any build of IINA at all. With no change to any settings or reboot of my mac the issue has been completely fixed for me. Possibly because of the swapping between IINA builds? maybe? or this is a bug that can only be reproduced when CVDisplayLink has been confused? Boy would I love to know! Regardless, good luck? 😅 |
Late here and I'm fried, but I was unhappy that it seemed like I added a serious regression so I've been looking into this. I'm testing with one of the new 16" MacBook Pros with the M1 chip under macOS 12.3.1. I was pausing and resuming using using clicking on the window, pressing the space bar and clicking on the OSC control. All worked fine. I added debug logs. I added code to log the return codes from display link calls that were not being checked. All looked good. Tried over and over again. No issue. All worked fine. I was about to give up and... some of the debug log messages stopped coming out. Pressing the space bar was no longer causing the IINA
This confirms exactly what @GreyAsteroid had already determined. My change in PR iina#3538 is definitely responsible for this regression. Both IINA and IINA+ need a fix. Before I can fix this I need to figure out what is going on with key press handling. What is causing the behavior change? Will be tied up tomorrow but have time to get back to this on Friday. Sorry again for the trouble! Thanks for all the work to trace this to my commit. |
This commit will: - Add code to MPVController.handlePropertyChange to suspend/resume active systems not needed while paused - Remove code added to PlayerCore methods pause and resume that attempted to manage these active systems This corrects a regression added by PR iina#3538 that could cause playback to stutter, due to the display link not being restarted. The original fix failed when the OSC was used to pause playback, which went through PlayerCore.pause and then playback was resumed using the space bar which by-passed PlayerCore.resume, leaving the display link shutdown.
Reproducing
Playback resumes, but video stutters. AnalysisAs already correctly determined above, this is a regression caused by PR iina#3538. The change to shutdown systems that were needlessly running while paused was made in the FixingThe code for pausing operations must be moved from Fix is in the latest IINA+ build. Try it out and let me know if you encounter any issues. Thanks to all for reporting and tracking down my mistake! |
System and IINA version:
Actual behavior:
Sometimes when I pause the video to check an email or safari on another desktop (4 fingers drag kind of desktop) the video will stutter when resuming it.
I have to quit IINA and start it again to fix the issue.
Steps to reproduce:
I don't know how to precisely reproduce it
How often does this happen?
Not really often. But I never had the issue before the 3-4 last versions.
The text was updated successfully, but these errors were encountered: