mre / timelapse

🎬 Native macOS app for recording timelapse videos of your desktop.
https://endler.dev/2020/timelapse/
Apache License 2.0
214 stars 18 forks source link

Define which part of the screen gets recorded #49

Open katieisnell opened 4 years ago

katieisnell commented 4 years ago

Feature Request Type

Description

A simple setting which changed which part of the screen is going to be recorded could be implemented. I would like to have the 3 options that are offered by the native screen recording tool:

  1. Capture entire screen (including menu bar)
  2. Capture selected window
  3. Capture selected portion
mre commented 4 years ago

That's a great idea @katieisnell.

screencapture has an option for capturing a rectangle:

-R<x,y,w,h> capture screen rect

So we could use that. Problem is that I don't know how we want the window portion to be selected interactively. Was thinking to run the first screencapture with screencapture -i to get an interactive rectangle for that and use the selected rectangle for subsequent screenshots with the -R flag above. Unfortunately screencapture does not output the rectangle that was captured. Ideas welcome.

Our screenshot code is here if you or anyone else wants to have a try.