Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
gphoto preview: sleep 1 second after killing gphoto
Browse files Browse the repository at this point in the history
- a small delay is needed to use gphoto to take a picture

Change-Id: I049e6cac42d4f30dcd9110828cce7af0bc74e7af
  • Loading branch information
andi34 committed Nov 15, 2020
1 parent 7549a9d commit ab69dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
],
'preview' => [
'cmd' => 'gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 > /dev/null 2>&1 & echo $!',
'killcmd' => 'killall gphoto2',
'killcmd' => 'killall gphoto2 && sleep 1',
]
],
];
Expand Down

0 comments on commit ab69dd6

Please sign in to comment.