m (→Our input) |
m (→Turning the frames into a movie) |
||
Line 69: | Line 69: | ||
<pre>avconv -f image2 -r 15 -i imageSequence0000%04d.jpg -vcodec libx264 output.mp4</pre> | <pre>avconv -f image2 -r 15 -i imageSequence0000%04d.jpg -vcodec libx264 output.mp4</pre> | ||
− | To add the timestamp on the image itself (say at position | + | To add the timestamp on the image itself (say at position 10x760), use this script: |
<pre> | <pre> | ||
Line 76: | Line 76: | ||
timestamp=`date -r $1 +%H:%M` | timestamp=`date -r $1 +%H:%M` | ||
echo $timestamp; | echo $timestamp; | ||
− | convert -draw "text 10, | + | convert -fill white -pointsize 20 -draw "text 10,760 '$timestamp'" $1 $1.jpg |
</pre> | </pre> | ||
+ | |||
+ | and then, calling this, say, <tt>stampit</tt>: | ||
+ | |||
+ | <pre>for f in tostamp/*; do ./stampit "$f"; done</pre> | ||
== See also == | == See also == |
Contents |
Time-lapsing is a trick of technology to get rid of our limited perception of time. By recording shots and playing them back at a different speed, one can reach to the other timescales, namely, the slow ones for time-lapses and the fast ones for slow-motion.
we currently work (as of 30 December (2013)) on time-lapsing of the Plaza Mayor from our vantage point at Mayorcita.
Our friend Carlos is also exploring time-lapsing and once in a while releases some publicly. Notable are:
There are many mind-boggling timelapses of Madrid.
We work both with our Nikon D40 camera and our HTC smartphone.
We started with (http://www.lapseit.com/ LapseIt] (the nonfree Pro version), which however is buggy as it freezes or crashes completely if the repetition rate is too high.
There is a list here of other applications to try. To remedy the shortcoming of lapseit, I'll try them all in order until I find one that works well enough.
TimeLapse! looks good but does not save frames but exports the movie directly. We used it to capture the Sunset over the Palacio Real de Madrid.
The D40 has no built-in feature, so we recourse to gphoto2~[3].
The following is a basic setting to capture (here every 30s):
gphoto2 --capture-image-and-download --filename "%Y-%m-%d..%H%M%S.jpg" --interval 30
To assemble the frames into a movie (15 fps):
avconv -f image2 -r 15 -i imageSequence0000%04d.jpg -vcodec libx264 output.mp4
To add the timestamp on the image itself (say at position 10x760), use this script:
#!/bin/bash timestamp=`date -r $1 +%H:%M` echo $timestamp; convert -fill white -pointsize 20 -draw "text 10,760 '$timestamp'" $1 $1.jpg
and then, calling this, say, stampit:
for f in tostamp/*; do ./stampit "$f"; done