Creating a mpg from jpg's

Heuveltje

Verified User
Joined
Nov 7, 2006
Messages
77
Location
Leek, NL
Hi, i have set up a webcam that saves picts to a dir. I want to make a "timelapse" movie from the images saved here. I searched the net for a nice how to, but the only thing i can find is using the convert command from ImageMagick. This works rather good in shell, however using php's exec() command does not create any output. What is want to do is the following: create an "day" movie, a week, a month and total movie. created nightly via cron.

a. Has anyone developed a similar script in php /cgi?
b. Can anyone give me a clue why my exec() does not function?
c. All ideas and insprirations, links etc. are very welcome!

Michiel
 
i already set up a cronjob for generating these movies:

Code:
#!/bin/bash

#######################################################
## Camera script om een filmpje te maken van die dag ##
#######################################################

convert -delay 10 -quality 75 /home/username/domains/userdomain.nl/public_html/webcam/`date --date="yesterday" +%Y_%m-%d`*.jpg /home/username/domains/userdomain/public_html/webcam/day/`date --date="yesterday" +%Y_%m_%d`.mpg
This generates a movie of all images shot the previous day.
The cron is set to run at 01:02 hours everyday.
Code:
2 1 * * * /home/username/domains/userdomain.nl/public_html/camera-dag.cron

When i ssh (as root) to this server and type:
Code:
./camera.cron
the file is generated nicely.

However the cron ran in the night (looking at the log) but there was no resulting file.
Is this some permissions issue? Can anyone help?

Michiel
 
This problem has been resolved: important to use full path names in the cron-script
 
Last edited:
Back
Top