LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxAnswers Discussion (https://www.linuxquestions.org/questions/linuxanswers-discussion-27/)
-   -   HowTo: Timalapse movie (https://www.linuxquestions.org/questions/linuxanswers-discussion-27/howto-timalapse-movie-743148/)

////// 07-27-2009 01:29 PM

HowTo: Timalapse movie
 
A new la entry has been added:

HowTo: Timalapse movie

[quote]In this tutorial I quickly show how you can make timelapse movies.

1.

First you need nice webcam where you can download pictures.
Here is couple of Google searches that I use when I'm looking for cameras.

Google image search: /record/current.jpg
http://images.google.com/images?hl=e...gbv=2&aq=f&oq=

Google image search: intext:"Shift-Reload to Refresh Image"
[URL="http://images.google.com/images?imgsz=small|medium|large|xlarge&[/quote]

pwc101 07-27-2009 02:41 PM

Thanks for the idea!

I wrote a simple bash script to grab the images and save them with the time and date:
Code:

#!/bin/bash

if [ \! -d $HOME/logs/webcams/soton/ ]; then
  mkdir $HOME/logs/webcams/soton/
fi
cd $HOME/logs/webcams/soton/

while true; do
  DATE=$(date "+%y-%m-%d-%H-%M-%s")
  wget --timeout=15 --quiet -nd -np \
  http://www.southampton.gov.uk/webcamimages/largesize.jpg && \
  mv largesize.jpg soton_high_street_${DATE}.jpg
  sleep 900; # be polite and use reasonable time values ;)
done

I'm looking into how to do this with my own USB webcam - I should think it's possible to grab an image from it relatively easily and it'd make an interesting video to see how we move around the flat :)

////// 09-29-2009 07:10 AM

I'm glad you find this tut useful, did you manage to make your own movie from your webcam ?

pwc101 09-29-2009 07:34 AM

In the end, I didn't.

I found a program called grabby that would take a single image from a webcam and then store it in a particular folder, but I only managed to get it to compile on Slackware after I contacted the author and he provided me with a few patches. Even then, after it successfully compiled, it wouldn't get the images from my webcam, so I gave up.


All times are GMT -5. The time now is 05:52 AM.