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

wip

parent 33e3dd7c
...@@ -38,13 +38,16 @@ function update() { ...@@ -38,13 +38,16 @@ function update() {
// take new image // take new image
// //
console.log('\ncapture '+name) console.log('\ncapture '+name)
try { var success = true
var ret = execSync('ffmpeg -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' image.jpg') do {
} try {
catch(err) { execSync('ffmpeg -y -f v4l2 -s '+image_width+'x'+image_height+' -i /dev/video0 -vframes 1 -vf '+video_filter+' image.jpg')
console.log("err") }
catch(err) {
success = false
}
} }
console.log("ret "+ret) while (success != true)
// //
// remove prior images // 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