-
Notifications
You must be signed in to change notification settings - Fork 97
Description
Thanks for this great script, Chris! I try to run the photobooth on a Raspi 3 with the original Pi camera module, and a Raspberry Pi 7" Touch screen Display with 800 x 480 px resolution.
But the drumminhands_photobooth.py produces an error and stops after the 'Strike your pose' message.
The terminal shows:
Photo booth app running...
Get Ready
Taking pics
mmal: mmal_vc_port_info_set: failed to set port info (3:0): EINVAL
mmal: mmal_vc_port_set_format: mmal_vc_port_info_set failed 0x15af4c0 (EINVAL)
...
I was able to reproduce the error in the camera test file and found that the line which is meant to start a resized camera preview is failing (233):
camera.start_preview(resolution=(config.monitor_w, config.monitor_h))
Even if surpassing the config variables and entering the screen resolution directly, the line will fail to execute. I did not find any documentation about specifying the output resolution of the camera.
It works all fine if I just start the preview with a default camera.start_preview() call. I guess when using a larger screen this might look rather coarse grained. It seems, I don't need that rescaling. But do you have any ideas what is causing the error?