This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Use Spectacle for timelapse recording

Tags: None
(comma "," separated)
User avatar
ChameleonScales
Registered Member
Posts
104
Karma
1
OS
I'm looking for a way to record time lapses at low frame rates (1fps and under) with a non destructive output format, while recording only one of my 2 monitors.
I found that some people use simple looping terminal commands to take screenshots with their own screenshot application and just kill the program when they're done recording : https://www.bhalash.com/archives/885403473
Could that be done with Spectacle ?
User avatar
Rog131
Registered Member
Posts
828
Karma
10
Code: Select all
$ spectacle --help
Usage: spectacle [options]
KDE Screenshot Utility

Options:
  -v, --version              Displays version information.
  -h, --help                 Displays this help.
  --author                   Show author information.
  --license                  Show license information.
  --desktopfile <file name>  The base file name of the desktop entry for this
                             application.
  -f, --fullscreen           Capture the entire desktop (default)
  -m, --current              Capture the current monitor
  -a, --activewindow         Capture the active window
  -u, --windowundercursor    Capture the window currently under the cursor,
                             including parents of pop-up menus
  -t, --transientonly        Capture the window currently under the cursor,
                             excluding parents of pop-up menus
  -r, --region               Capture a rectangular region of the screen
  -g, --gui                  Start in GUI mode (default)
  -b, --background           Take a screenshot and exit without showing the GUI
  -s, --dbus                 Start in DBus-Activation mode
  -n, --nonotify             In background mode, do not pop up a notification
                             when the screenshot is taken
  -o, --output <fileName>    In background mode, save image to specified file
  -d, --delay <delayMsec>    In background mode, delay before taking the shot
                             (in milliseconds)
  -w, --onclick              Wait for a click before taking screenshot.
                             Invalidates delay


One liner example: Five full screen desktop capture png images with 1 second interval:
Code: Select all
$ for i in {1..5}; do spectacle -f -b -n -d 1000 -o $i.png; done


Infinite loop:
Code: Select all
$ while true; do ((i++));spectacle -f -b -n -d 1000 -o $i.png; done


...and with the same format as in https://www.bhalash.com/archives/885403473 :
Code: Select all
$ while true; do spectacle -f -b -n -d 1000 -o $(date +%Y%m%d%H%M%S).jpg; done
User avatar
ChameleonScales
Registered Member
Posts
104
Karma
1
OS
Thanks, that works ! I just had to remove the $.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Sogou [Bot], Yahoo [Bot]