Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live Preview while countdown fix #235

Closed
Piccar opened this issue Apr 2, 2020 · 15 comments
Closed

Live Preview while countdown fix #235

Piccar opened this issue Apr 2, 2020 · 15 comments

Comments

@Piccar
Copy link

Piccar commented Apr 2, 2020

To get a Live view while the countdown is running you'll need a camera that can be used as a webcam and will not be controlled by Gphoto2. Simply get motioneye an mount the secound camera. Then open a stream on a Port you like. Then go into your Web folder and eddit the /config/my.config.inc.php.
You'll need to update the color of the countdown-background.

should look something like this....
array (
'primary' => '#7fbe87',
'secondary' => '#090300',
'background_countdown' => 'url(http://yourlocaladress:8081)',

),

If you then also go into the /admin panel and set the background image also to url(http://yourlocaladress:8081) the illusion is complete.

NOTE: You can still eddit the live view in the motion eye control panel.

@andi34
Copy link
Collaborator

andi34 commented Apr 2, 2020

If you like to use the admin panel for it you can add my implementation:
andi34#44

@andi34
Copy link
Collaborator

andi34 commented Apr 2, 2020

Requested here already #230

@andi34 andi34 closed this as completed Apr 2, 2020
@Piccar
Copy link
Author

Piccar commented Apr 2, 2020

whoops I'm sorry. Somehow I missed that!

@andi34
Copy link
Collaborator

andi34 commented Apr 2, 2020

whoops I'm sorry. Somehow I missed that!

Don't worry, #230 is written in german

@HBTphoto
Copy link

Hi, i install this photobooth using my camera canon 5d II, it is very great, but i cannot have a live view during the countdown from the Raspberry pi camera ? I follow the FAQ (Admin panel config "See preview by device cam": true) but it change nothing.
I test if the raspberry camera work for picture with "raspistill -n -o %s -q 100 -t 1 | echo Done", it take the picture but no live view ?
It need to install motion ?
Thank for your help

@andi34
Copy link
Collaborator

andi34 commented Oct 24, 2021

@HBTphoto you need to follow
https://github.com/andreknieriem/photobooth/wiki/FAQ#preview-by-device-cam

Maybe you need the additional steps mentioned.

@andi34
Copy link
Collaborator

andi34 commented Oct 24, 2021

Also maybe note #296

@HBTphoto
Copy link

Thank, I follow the FAQ and ad http://localhost in insecure origin treated as secure in chromium but it still does’nt work
There is an error message after countdown “No preview by device cam available”

But in the config of photobooth I see, command to generate a live preview with gphoto2
I trying to work only with raspberry cam for the moment, what should be this command?

IMG_20211025_231004

@andi34
Copy link
Collaborator

andi34 commented Oct 25, 2021

Maybe a chromium issue? Like mentioned in the other issue?

Thanks for the reply. I finally found the issue! It‘s been the latest version of Chromium (v92) which causes the device camera access to stop working. From this version of Chromium on, my Raspberry Pi Cam v2 is no longer recognized as camera by the browser. I will file a respective issue for Chromium.

By device cam would be right.
You could also setup motion to generate a stream from your Pi Cam and use the Preview from URL option.

@andi34
Copy link
Collaborator

andi34 commented Oct 25, 2021

You could tweak the print command like this:
cupsenable yourPrinterName;lp -o landscape -o fit-to-page %s

@andi34
Copy link
Collaborator

andi34 commented Oct 27, 2021

You can also use
https://abenjamin765.github.io/camera-app/part-1
to test if your device camera works inside a browser.

@HBTphoto
Copy link

With your link to test camera inside a broswer, it does'nt work (it take a blank picture).

Using raspistill -n -o %s -q 100 -t 1 | echo Done command to take picture
With Preview "from device cam" from config panel
On firefox latest version a have message asking to allow camera, but i don't have preview image, but the background change of color (i did'tn have this change of color in chromium)

And if i select in the Admin panel config "Device cam takes picture", i still have no preview but also no picture take.
Error message no prewiew avialible

How can i solve the browser issu ?

@andi34
Copy link
Collaborator

andi34 commented Oct 27, 2021

You're mixing different options not needed to mix.

Preview from device cam --> "Device cam takes picture" will record the image. Raspistill or gphoto command will be ignored.

"Device cam takes picture" not needed for Gphoto preview, you need to use Gphoto or raspistill command to take a picture.

So the question is:
How do you like to capture an image? Using your device cam (Pi Cam) or your Canon?

You need a preview?

@HBTphoto
Copy link

Ok, understand.
Yes i need a preview at countdown

idelaly, i would have the chose of 2 configuration possible :
preview and capture from the Canon camera
or
preview and capture from the Raspberry camera

@andi34
Copy link
Collaborator

andi34 commented Oct 27, 2021

You better join https://t.me/PhotoboothGroup to assist on setup, GitHub isnt the right place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants