Bug 490453

Summary: When no frames in the video are changing, video preview progress bar only updates once per second
Product: [Applications] Spectacle Reporter: Quenten <personal>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: CONFIRMED ---    
Severity: normal CC: kde, nate, personal
Priority: NOR    
Version First Reported In: 24.05.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: The progress bar updates inconsistently and choppily

Description Quenten 2024-07-18 13:49:22 UTC
Created attachment 171759 [details]
The progress bar updates inconsistently and choppily

SUMMARY
After creating a screencast with Spectacle, a window pops up that has a video player previewing the recorded video. Under that preview is a progress bar that should update (smoothly) along with the progress along the video's length (I assume). However, this progress bar updates every second, making it look rather choppy. But it is also updated every time a video frame changes. This behavior is strange to look at if the recorded video doesn't have constantly changing items in it. 

Because it's so hard to explain, I've recorded an example and attached it.

STEPS TO REPRODUCE
1. Start Spectacle and go to the recording tab
2. Select "Rectangular Region" and select the rectangular region of the screen that has a static image and no changes.
3. Start the recording
4. While the recording is happening, place your cursor in this region and leave it stationary for around a second. This is to simulate "no changes" (also make sure your cursor isn't an animated cursor, as that will constantly update the video frames).
5. Move the cursor a bit and leave it stationary again for a couple seconds. 
6. Keep repeating these actions of moving the cursor and leaving it, before ending the recording.
7. End the recording
8. The preview window should pop up.
9. Play the preview of your screen recording.
10. While the preview is playing, observe the progress bar at the bottom. You should notice that it only updates every time a change occurs within the video, and every second while there is no change in the video. 

OBSERVED RESULT
While the video is stationary, the video player progress bar moves only every second. While the video has movement in it, the progress bar moves smoothly along with frame changes.

EXPECTED RESULT
The progress bar moves smoothly at the recorded video's refresh rate.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel: 6.9.9-arch1-1
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
I use Wayland