You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timesnap would probably be the cleanest approach and is meant to take screenshots. In this case, you'd want to use the config.frames argument set to 1, and using the config.outputPattern to something like "screenshot.jpg", and omit duration. The API is pretty similar, so you can reuse most of the timecut config, but you should probably omit the timecut specific properties like pipeMode, outputOptions, and output. While they currently won't be used by timesnap, in the future they might be.
Using timecut (not recommended)
timecut is meant for videos and isn't really meant for taking screenshots (though you can probably do something with --keep-frames or keepFrames, though it doesn't work with pipeMode). It might be possible to save a particular frame while capturing the video if there would be some sort of function that would process frames, e.g. config.frameProcessor like in timesnap, but there currently isn't in timecut. Alternatively, you might be able to do something with preparePageForScreenshot by using the page.screenshot method.
Hey Steve, I was wondering if you had a "best practice" timecut options screenshot example you could share with me? I'm using this for video render:
Do I just set the FPS to 1 and duration to 1? Just trying to see if I need to use a totally different function or if I can just reply on passed args.
The text was updated successfully, but these errors were encountered: