Commit 44ec2070 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent 33e3dd7c
......@@ -38,13 +38,16 @@ function update() {
// take new image
//
console.log('\ncapture '+name)
try {
var ret = execSync('ffmpeg -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' image.jpg')
}
catch(err) {
console.log("err")
var success = true
do {
try {
execSync('ffmpeg -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' image.jpg')
}
catch(err) {
success = false
}
}
console.log("ret "+ret)
while (success != true)
//
// remove prior images
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment