Open fagnersales opened 2 years ago
@fagnersales where you find a solution to the choppy video recording?
The default settings for Chrome's screencasting lead to a low quality video output. This could be improved by adding format
and quality
options to puppeteer-screen-recorder and passing them to Page.startScreencast
.
I would like to have such an improvement because I am trying to make training videos for my software, and the current video output quality is not good enough.
Hi, Any updates on this, please? I'm also trying to record a video with high viewport sizes (1920, 1080) and it seems to have some lag.. :( Thank you! Btw, great job with the library!
@prasanaworld I did some testing based on @kgeis comment about the format, and I definitely see better results with jpg compared to png (which seems to be the default?). Also noticed that even with jpg, quality of 25 versus 100 doesn't seem to have that big of a difference.
Not entirely sure why they would be different but it is definitely noticeable in terms of smoothness.
I agree that exposing a format
in the options would be helpful.
I tested by modifying the npm module in place:
await currentSession.send('Page.startScreencast', {
everyNthFrame: 1,
format: "jpeg",
quality: quality,
});
Actual change would be this I suppose?
await currentSession.send('Page.startScreencast', {
everyNthFrame: 1,
format: this.options.format,
quality: quality,
});
I imagine this combined with https://github.com/prasanaworld/puppeteer-screen-recorder/pull/40 will be huge for being able to tweak the video quality.
@jrabek Thanks for suggestion. I appreciate it..!!
In order to bring up more such healthy discussion and suggestion, created a public discussion forum.
For those looking to record pages that feature lots of animations/transitions, I found that Puppeteer by default launches without GPU hardware acceleration (at least in headless mode).
Enabling hardware acceleration by passing args: ['--use-gl=egl'],
when launching Puppeteer significantly improves the smoothness of the video recording.
I'm submitting a ... [ ] bug report [ ] feature request [ ] question about the decisions made in the repository [x] question about how to use this project
Summary I'm trying to record the screen while accessing an youtube video, but it results in a very loss quality video and I'm not sure why.
The code i'm testing:
I also uploaded the result, so you guys can see it. https://youtu.be/DBszvKddl_4
The computer that I'm testing it:
If some other information is needed, plase tell me!