The Following User Says Thank You to lonk For This Useful Post: | ||
|
2012-01-07
, 12:36
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#2
|
#! /bin/bash #file: screenshot.sh while [ 1 -eq 1 ]; do appenddate=_$(date '+%d%b%y-%H%M%S') import -window root ~/screenshot$appenddate.png sleep 300 done
|
2012-01-11
, 13:57
|
Posts: 215 |
Thanked: 348 times |
Joined on May 2011
|
#3
|
You could "Ctrl + Shift + P" to take your screenshot whenever necessary.
Or install Imagemagick package and run import with store the image, from a script with sleep set to 300.
Big Fat Warning!!!This will save to /home/user! Be aware of running out of space for to many picturesCode:#! /bin/bash #file: screenshot.sh while [ 1 -eq 1 ]; do appenddate=_$(date '+%d%b%y-%H%M%S') import -window root ~/screenshot$appenddate.png sleep 300 done
The Following User Says Thank You to lonk For This Useful Post: | ||
|
2012-01-12
, 09:52
|
Posts: 915 |
Thanked: 3,209 times |
Joined on Jan 2011
@ Germany
|
#4
|
while [ 1 ]; do
while true; do
|
2012-01-12
, 16:47
|
Posts: 215 |
Thanked: 348 times |
Joined on May 2011
|
#5
|
One can write that while condition much shorter:Since the brackets might be a pita on the N900's keyboard another option would be:Code:while [ 1 ]; doEdit:Code:while true; do
btw: If you chose a date format like '+%F_%X' your files will automatically be sorted the correct way without explicitly sorting by time.
|
2012-01-12
, 21:13
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#6
|
The Following 6 Users Say Thank You to nicolai For This Useful Post: | ||
|
2012-01-18
, 20:25
|
Posts: 215 |
Thanked: 348 times |
Joined on May 2011
|
#7
|
Another way, using gstreamer:
gst-launch-0.10 ximagesrc ! video/x-raw-rgb,framerate=1/10 ! ffmpegcolorspace ! pngenc snapshot=false ! multifilesink location="frame%05d.png"
This creates png images every 10 seconds with the name
frame00000.png frame00001.png ....
Or with timestamp on top of each frame:
gst-launch-0.10 ximagesrc ! video/x-raw-rgb,framerate=1/10 ! ffmpegcolorspace ! cairotimeoverlay ! ffmpegcolorspace ! pngenc snapshot=false ! multifilesink location="frame%05d.png"
I am no expert on creating movies from images, but this should work
ffmpeg -r 1/2 -i frame%05d.png -r 24 -b 1M timelapse.mpg
where the "-r 1/2" option defines the used input framerate.That way
your 1 per 10 seconds image will be rendered as 1 per 2 seconds, like a time lapsed movie.
|
2012-01-18
, 21:10
|
Posts: 215 |
Thanked: 348 times |
Joined on May 2011
|
#9
|
^CCaught interrupt -- handling interrupt. Interrupt: Stopping pipeline ... Execution ended after 98552154543 ns.
The Following User Says Thank You to lonk For This Useful Post: | ||
The main reason is so I can make process (work in progress) gif images of my drawings from MyPaint, like this:
thanks
Last edited by lonk; 2012-01-06 at 15:27.