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

Gphoto2: Kamera löst nur via Konsole aus.. #101

Closed
UncleCCC opened this issue Oct 4, 2019 · 25 comments
Closed

Gphoto2: Kamera löst nur via Konsole aus.. #101

UncleCCC opened this issue Oct 4, 2019 · 25 comments
Labels
gphoto gphoto related problem invalid

Comments

@UncleCCC
Copy link

UncleCCC commented Oct 4, 2019

Mahlzeit..
Ich hab Photobooth frisch auf meinem NucI3 installiert,
Als OS ist MX Linux am werkeln (Basiert auf Debian)
Die Installation verlief ohne Probleme, jedoch wird die Kamera übers WebIf nicht ausgelöst, immer wieder der Hinweis nach dem Countdown "Es ist ein Fehler aufgetreten..."
Direkt über die Konsole funktioniert das ganze ohne Probleme..
$ env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --capture-image-and-download
New file is in location /capt0000.jpg on the camera
File capt0000.jpg exists. Overwrite? [y|n] y
Saving file as capt0000.jpg
Deleting file /capt0000.jpg on the camera

@andi34
Copy link
Collaborator

andi34 commented Oct 4, 2019

Camera?
Camera set to jpeg only?

You could try updated installation instructions and see if it's an permissions issue.
https://github.com/andreknieriem/photobooth/pull/86/files

@UncleCCC
Copy link
Author

UncleCCC commented Oct 4, 2019

Ah, after setting the rights it works, but only 2 photos.
Also in the console it does not work anymore.
Then the following error:
*** Error ***
Canon EOS Full-Press failed (0x2019: PTP Device Busy)
ERROR: Could not capture image.
ERROR: Could not capture.
*** Error (-110: 'I/O in progress') ***
Probably a bug on GPhoto?

@andi34
Copy link
Collaborator

andi34 commented Oct 4, 2019

Could be.
Could also be interesting for you:
#73
#93

@plin2
Copy link

plin2 commented Oct 4, 2019

I would go for the gvfs service (#93). Disabling it solved the problem for me.

@UncleCCC
Copy link
Author

UncleCCC commented Oct 5, 2019

You had the same problem?

Don't understand, which memory should I hang from?
Just have sda, that's my hard drive...

@plin2
Copy link

plin2 commented Oct 5, 2019

Well, when I googled the error message I found a hint that gvfs-gphoto2-volume-monitor ist blocking the camera. The solution in that post was to hinder the daemon from execution:
chmod -x /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
That solved the situation for me.

@UncleCCC
Copy link
Author

UncleCCC commented Oct 5, 2019

The problem's killing me.
Does not exist...
$ find gvfs-gphoto2-volume-monitor
find: ‘gvfs-gphoto2-volume-monitor’: Datei oder Verzeichnis nicht gefunden

5 - 10 photos... then the error

*** Error ***
Canon EOS Full-Press failed (0x2019: PTP Device Busy)
ERROR: Could not capture image.
ERROR: Could not capture.
*** Error (-110: 'I/O in progress') *

@andi34
Copy link
Collaborator

andi34 commented Oct 5, 2019

The hard way is documented in the README and Wiki:

Ensure that the camera trigger works:

sudo rm /usr/share/dbus-1/services/org.gtk.vfs.GPhoto2VolumeMonitor.service
sudo rm /usr/share/gvfs/mounts/gphoto2.mount
sudo rm /usr/share/gvfs/remote-volume-monitors/gphoto2.monitor
sudo rm /usr/lib/gvfs/gvfs-gphoto2-volume-monitor

@andi34
Copy link
Collaborator

andi34 commented Oct 5, 2019

From #73 as solution:

Habe jetzt auf "jpg-only" gestellt und die Größe verringert.

Maybe lowering photo resolution a little bit helps?

@andi34 andi34 changed the title Kamera löst nur via Konsole aus.. Gphoto2: Kamera löst nur via Konsole aus.. Oct 5, 2019
@andi34 andi34 added the question label Oct 5, 2019
@andi34
Copy link
Collaborator

andi34 commented Oct 5, 2019

From looking at issues in gphoto at GitHub a problem also seems to be the focus on Canon sometimes:

I find out that if I force the focus with the remote just before doing the --capture-image-and-download, it works perfectly.

You might also take a look here https://github.com/gphoto/libgphoto2/issues if none of the possible solutions mentioned here works.

@plin2
Copy link

plin2 commented Oct 5, 2019

I think during my first installation of photobooth I had the problem that the user that's running the apache didn't create a .gphoto2 directory in it's home directory. I started with
ps -ef | grep apache
that showed me www-data is the owner of the process
grep www-data /etc/passwd
showed me
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
I changed /usr/sbin/nologin to /bin/bash, that allowed me to su into that user.
after su - www-data I tried to take a picture, which didn't work.
Finally I created the directory .gphoto2 to enable gphoto to store it's settings

Well, that was the first photobooth installation, for the second one it wasn't necessary. Probably some ownerships/permissions were not set correctly.

@andi34
Copy link
Collaborator

andi34 commented Oct 5, 2019

@plin2 if he says 5-10 Photos work until it crashes I'd say it's not an permissions issue.
Gphoto2 issue page contains a lot of such issues with canon cameras, on some issue threads user tell how they work around the issue.

@devnull1975
Copy link

devnull1975 commented Oct 5, 2019

Also meine Kamera löst nur aus wenn ich die Speicherkarte entferne und im Kamaramenü einstelle das die Kamera auch ohne Speicherkarte auslösen soll.
Für mich ist das ok so.

EOS 500D

@andi34
Copy link
Collaborator

andi34 commented Oct 5, 2019

There's different options you could try on gphoto2 too:

--keep

Or

--keep-raw

Or setting a capture target on your camera:

--set-config capturetarget=x

Explanation: https://github.com/andreknieriem/photobooth/wiki/gphoto2

@devnull1975
Copy link

@andi34 i know this solutions but i dont need RAWs and a copy of the images too.
My System works fine and i never change a running system.
Maybe it can be the solutions auf the isuess the the PI only take a Couple of pictures.
Also it can be that the wire from the PI to the cam make some Problems.
Is it the original Wire or a cheaper from China?

@sualko
Copy link
Collaborator

sualko commented Oct 6, 2019

Gphoto2 issue page contains a lot of such issues with canon cameras, on some issue threads user tell how they work around the issue.

Therefore I think this is not an issue with photobooth and therefore I close this issue, but please don't hesitate to continue your discussion.

@sualko sualko closed this as completed Oct 6, 2019
@UncleCCC
Copy link
Author

UncleCCC commented Oct 7, 2019

sudo rm /usr/share/dbus-1/services/org.gtk.vfs.GPhoto2VolumeMonitor.service
sudo rm /usr/share/gvfs/mounts/gphoto2.mount
sudo rm /usr/share/gvfs/remote-volume-monitors/gphoto2.monitor
sudo rm /usr/lib/gvfs/gvfs-gphoto2-volume-monito
Auswahl_100
The orders don't work on me. See screenshot

Is it the original Wire or a cheaper from China
Is the original Wire..

I think I need another camera .. :(

@andi34
Copy link
Collaborator

andi34 commented Oct 7, 2019

You've removed the files on the initial setup already as mentioned in the README?
In that case they can't exist anymore.

You could also try using latest version instead latest stable version of gphoto2. Follow the instructions to install gphoto2 again.

@andi34
Copy link
Collaborator

andi34 commented Oct 7, 2019

You've tried lowering the photo resolution on your camera?

@UncleCCC
Copy link
Author

UncleCCC commented Oct 7, 2019

Yes, I have tested 1920 x 1280, and the same problem...
Gphoto 2 I have already updated to the latest version, problem persists.

I remembered that 2 weeks ago I installed Photobooth on a Raspberry without GUI. I couldn't find the problem (Could have been a coincidence, I took only a few pictures) Now I installed it on Intel Nuc with Linux MX and Xfce. Could the problem be?

I install again on the Raspberry Photobooth


Too early delighted, could take about 30 photos with the Raspberry, then the same problem...

The problem is the autofocus, if the error occurs nut appears quickly the flash without autofocus...

@andi34
Copy link
Collaborator

andi34 commented Oct 7, 2019

From looking at issues in gphoto at GitHub a problem also seems to be the focus on Canon sometimes:

I find out that if I force the focus with the remote just before doing the --capture-image-and-download, it works perfectly.

Hatte ich schon erwähnt ;)
Aber dann ist ja ok, wenn du das Problem gefunden hast.
Kannst ja gerne https://github.com/gphoto/libgphoto2/issues ein issue aufmachen bzw deine Erfahrungen bei einem passenden Issue mitteilen in der Hoffnung daß es upstream gefixt wird.

@UncleCCC
Copy link
Author

UncleCCC commented Oct 7, 2019

Es gibt einige Issuses...
Die aber nie wirklich komplett gelöst werden, habe auch am Freitag ein neues erstellt, wurde bis heute nicht freischaltet..
Denke werde mir eine andere Cam holen..
Schade eigtl..
z.B gphoto/libgphoto2#30

@andi34
Copy link
Collaborator

andi34 commented Oct 7, 2019

Wenn du Fokus manuell einstellst? Oder vorher per remote antriggerst?
Es werden meistens issues nicht am selben Tag behandelt. OpenSource lebt durch die Community. Head devs haben in aller Regel auch noch reguläre Jobs denen sie nachkommen. Mal hat man mehr Zeit, mal weniger, um sich um Probleme und Anfragen zu kümmern.

Wie schaut's aus mit dem Python workaround? gphoto/libgphoto2#30 (comment)

@UncleCCC
Copy link
Author

UncleCCC commented Oct 7, 2019

Das soll auch überhaupt kein Vorworf an den/die Devs gewesen sein.
Und ist ganz klar das bestimmt andere sachen wichtiger sind und Vorrangig sind :)

Dieses Workarounf habe ich gesehen, aber erstens habe ich wirklich wenig Ahnung davon, und weiß auch nicht genau was ich damit überhaupt anstelle, anscheinend den Autofokus ganz deaktivieren?
Aber ich denke der Autofokus ist sehr nützlich, gerade bei automatischen Aufnahmen, denke die Bilder werden dann wesentlich besser als Manuell..

@msmedien
Copy link

@UncleCCC Bei meiner Kamera (Sony alpha58) muss ich den Autofokus komplett ausschalten, da dieser sonst, vorallem bei schlechteren Lichtbedingungen, anfängt zu pumpen. Da die Software in einem gewissen Zeitrahmen eine Antwort erwartet, die Kamera aber noch versucht zu fokusieren, wird das als Fehlerhaft gewertet...

Um trotzdem Fotos mit genügend Tiefenschärfe zu machen (sollten sich die Personen einmal etwas weiter vorn oder hinten befinden), kannst Du doch die Blende an deiner Kamera nach oben setzen. - Damit solltest Du genügend "Distanzpuffer" haben. Ein Blitz, egal ob intern oder extern, sollte Dir dann genügend Licht geben um die geschlossene Blende zu kompensieren.

Eine neue Kamera sollte daher nicht nötig sein. - Dort wäre das gleiche Problem mit der Fokusierung.

@andi34 andi34 added gphoto gphoto related problem and removed question labels Mar 19, 2020
@andi34 andi34 added the invalid label Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gphoto gphoto related problem invalid
Projects
None yet
Development

No branches or pull requests

6 participants