patrickmatte / scroll-capture

18 stars 5 forks source link

Stuttering/jumping recording #26

Closed benjaminelwoods closed 9 months ago

benjaminelwoods commented 9 months ago

I've tried the varying encoding and bitrate options in different combinations and there is often quite bad stuttering or jump-spikes throughout the clip. Is this a performance issue that can be remedied on the user-end or something more involved that needs to be optimised within the code?

Here's two examples of the same website (had to upload to Vimeo).

Example 1 File Format: webm Encoding: av1 - 64Mbps Window size: 1533px by 1533px

Example 2 File Format: x-matroska Encoding: vp9 - 64Mbps Window size: 1533px by 1533px

patrickmatte commented 9 months ago

Try to bring down the bitrate, I augmented the max limit but I think 16mbps is more than enough for vp9. Unless you have a very large resolution. Vp8 and h264 tend to be more fluid but quality is less than vp9.

I’ll add a routine that checks it the system supports the different codecs and file formats. I read that chrome supported mkv but perhaps it isn’t true for all platforms.

Le dim. 26 nov. 2023 à 16:37, Ben Elwood @.***> a écrit :

I've tried the varying encoding and bitrate options in different combinations and there is often quite bad stuttering or jump-spikes throughout the clip. Is this a performance issue that can be remedied on the user-end or something more involved that needs to be optimised within the code?

Here's two examples of the same website (had to upload to Vimeo).

Example 1 https://vimeo.com/888498377?share=copy File Format: webm Encoding: av1 - 64Mbps Window size: 1533px by 1533px

Example 2 https://vimeo.com/888498392?share=copy File Format: x-matroska Encoding: vp9 - 64Mbps Window size: 1533px by 1533px

— Reply to this email directly, view it on GitHub https://github.com/patrickmatte/scroll-capture/issues/26, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADKN67PNOFB3O7AJGW3KZTYGOZBTAVCNFSM6AAAAAA73EFVQ6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTCMRRGYZDCMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

benjaminelwoods commented 9 months ago

I'm zooming out to 75% on the page at a 1:1 ratio.

patrickmatte commented 9 months ago

What are the tech specs of the computer you are using to capture? CPU, GPU, RAM?

benjaminelwoods commented 9 months ago

MacBook Pro 14-inch 2023 Chip: M2 Pro Memory: 16GB macOS: Sonoma 14.1

I'm also using a Samsung Odyssey G9 Neo 49" DQHD monitor if that makes a difference.

patrickmatte commented 9 months ago

Ok then it's not a computer performance issue. I have an old mac with an intel processor from 2018 and the captured video is a lot smoother than what you sent. There's not much I can do to optimize the performance. Maybe try to just record the screen with quicktime and use the play button to play the list of actions and see if the performance is better that way.

benjaminelwoods commented 9 months ago

Yeah I found it worked well with using the macOS built in screen recorder.

I remoted into my PC at home and that provided a much better output. Maybe it's an issue with Apple Silicon..