-
Notifications
You must be signed in to change notification settings - Fork 57
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
screenshot images low quality #30
Comments
@sleepingwheel You need to add |
thanks @Asheboy . managed to launch it via Chrome instead of Chromium. the result is the same fuzzy output. Meanwhile basic screen-capture with Quicktime is much more crisp. any other tips appreciated. |
@sleepingwheel I've taken the following steps:
and end up with this output https://xfer.clock.co.uk/fW1zL/vid.mp4. Are you able to try similar and confirm that your issue still persists? Also, can you try running with |
thanks once again for helping. i checked out your output video and must say although quality is a bit better i still see artifacts that prevent me from calling it good quality recording. Maybe you would agree it does look a bit fuzzy. i dont expect lossless quality though. |
@sleepingwheel I've had a look at it in headed mode and the artifacting looks to be being rendered by Chrome, rather than being an consequence of the screen shotting. Have you got a different webpage that you can record to see if it fits your purpose? |
@sleepingwheel I see what you mean. I imagine that QuickTime uses Safari and manages to get hold of something better than screenshots to render that quality.
deviceScaleFactor 1deviceScaleFactor 2It is important to note here that changing the deviceScaleFactor will result in large images. This image is 3840x2160, even though I've set the viewport to 1920x1080. N.B. The deviceScaleFactor=2 image is actually double the size of On another note, have you reviewed the screenshots which are taken by using Thanks for trying these things out for me! |
Thanks for filing this! Just to confirm, when you're capturing with QuickTime, are you capturing a Chrome window? The zooming in and out sounds peculiar. Could you record a video (or show an image of the zoom in) of that too? And as @Asheboy mentioned, using the --keep-frames in There may be a puppeteer option to improve screenshot quality for OS X, but I didn't find it from a quick web search. @Asheboy's mention of deviceScaleFactor sounds like a promising workaround. |
thanks both, regarding deviceScaleFactor, and yes i can confirm it is the images in the temp folder that are fuzzy, so it does not seem to be ffmpeg fault. |
@sleepingwheel deviceScaleFactor is not implemented in timesnap currently, so you're unable to test it yourself without making code changes. I can detail these if you'd like? Regarding the zooming, do you still get this if you set your |
we can try that, sure. the more details, the better please. zooming, |
@sleepingwheel Change this line https://github.com/tungs/timesnap/blob/master/index.js#L161 to:
and then run as normal. It will ignore your |
Instead of modifying the source, you can also set puppeteer/Chromium/Chrome specific arguments via the --launch-arguments option. So instead of You can find a whole list of arguments here. Some may lead to better screenshot quality, though the issue may just be from how puppeteer works on OS X. Thanks for posting the video link, it's really helpful for understanding what may be going on. It looks like the zooming is occurring under each screenshot capture, though I'm not why that's the case yet. |
It looks like other people have had issues with puppeteer's screenshot quality (see puppeteer/puppeteer#1469). The solution offered there is to alter the device scale factor too. |
Hi @victorrseloy, thanks for your interest and bringing this to my attention! PR #40 looks useful since it affects screenshot quality, and I'll try to get it merged in the next two weeks. |
This enhancement should have been added in version 0.2.0. It can be invoked via something like Feel free to comment or file a new issue if there are still quality issues. |
hey, firstly, thanks for Timecut, really great initiative.
however i struggle to produce crispy enough videos, and from the looks of it, the issue originates in screenshot part (timesnap?), not during stitching the images to video with ffmpeg.
command:
Node timecut/node_modules/timecut/cli.js "https://tungs.github.io/truchet-tiles-original/#autoplay=true&switchStyle=random" --duration=4 --output=vid.mp4 --viewport=1040,1040
system:
Macos Mojave 10.4.6.
p.s.
if it is caused by Chromium, i'm not sure how to troubleshoot or test that.
how would the specific command look like to change path to chrome from chromium?
The text was updated successfully, but these errors were encountered: