From bb9996d8d2d23d6703cdb2256fa200d6910a5ef1 Mon Sep 17 00:00:00 2001 From: Andreas Blaesius Date: Mon, 16 Nov 2020 19:50:59 +0100 Subject: [PATCH] faq: add initial gphoto2 preview instructions Change-Id: I6a81e6950faf2367c86af2c97204247470df4b8b --- faq/faq.md | 16 ++++++++++++++++ manual/faq.html | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/faq/faq.md b/faq/faq.md index 378bbaab6..cfcf87e27 100644 --- a/faq/faq.md +++ b/faq/faq.md @@ -223,6 +223,22 @@ There's different ways depending on your needs and personal setup: - Capture pictures via `raspistill` won't work if motion is installed! - Requires Photobooth v2.2.1 or later! +3. A device independent preview can also be done using the video mode of your DSLR (Linux only): + - install all dependencies `sudo apt install ffmpeg v4l2loopback-dkms -y` + - create a virtual webcam `modprobe v4l2loopback exclusive_caps=1 card_label="GPhoto2 Webcam"` + - `/dev/video0` is used by default, you can use `v42l-ctl --list-devices` to check which `/dev/*` is the correct one: + If it doesn't match the default setup you need to adjust the `Command to generate a live preview` inside the admin panel! + - Give permissions to /dev/video* `sudo gpasswd -a www-data video` (this was done automatically if you used the installation script) and reboot once + - Admin panel config *"Preview mode"*: `from gphoto2` + + **Note** + - Requires Photobooth v2.11.0 or later! + - There's a delay of about 3 seconds until the preview starts, to avoid that disable the `Battery saving mode on gphoto2 live preview` option to generate a preview in background. **This results in a high battery usage and also a general slowdown.** + - Sometimes Chromium doesn't detect the V4l2 camera launch from php: you need to run `sudo gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0` from terminal first and load Chromium a first time with a webpage asking for the camera. + - Chromium sometimes has trouble, if there is another webcam like `bcm2835-isp`, it will take it by default instead. Disable other webcams, e.g. `rmmod bcm2835-isp`. + - Make sure the countdown is long enough to start the preview and free gphoto2 at the end of the countdown to be able to take a picture (2 seconds before the countdown ends). + - For best user experience the countdown should be set at least to 8 seconds. +
### Can I use a live stream as background? diff --git a/manual/faq.html b/manual/faq.html index 276b270ac..f93769f3d 100644 --- a/manual/faq.html +++ b/manual/faq.html @@ -268,6 +268,23 @@

How to use a live stream as background at countdown?

+
  • A device independent preview can also be done using the video mode of your DSLR (Linux only):

    + + + +

    Note

    + +