Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| gphoto [Le 03/10/2016, 09:51] zecceaefaezf [Liens] | gphoto [Le 02/11/2023, 09:43] (Version actuelle) bcag2 [Quelques commandes] ajout --get-file range | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| {{tag>multimédia graphisme photo}} | {{tag>multimédia graphisme photo}} | ||
| - | |||
| - | |||
| ====== gPhoto ====== | ====== gPhoto ====== | ||
| Ligne 25: | Ligne 23: | ||
| Problème pour reconnaitre l'appareil en mode USB : | Problème pour reconnaitre l'appareil en mode USB : | ||
| - | * "sudo rm /usr/share/dbus-1/services/org.gtk.Private.GPhoto2VolumeMonitor.service" | + | <code> sudo rm /usr/share/dbus-1/services/org.gtk.Private.GPhoto2VolumeMonitor.service </code>  | 
| - | * "sudo rm /usr/share/gvfs/mounts/gphoto2.mount" | + | <code> sudo rm /usr/share/gvfs/mounts/gphoto2.mount </code>  | 
| - | * "sudo rm /usr/share/gvfs/remote-volume-monitors/gphoto2.monitor" | + | <code> sudo rm /usr/share/gvfs/remote-volume-monitors/gphoto2.monitor </code>  | 
| - | * "sudo rm /usr/lib/gvfs/gvfs-gphoto2-volume-monitor" | + | <code> sudo rm /usr/lib/gvfs/gvfs-gphoto2-volume-monitor </code>  | 
| Redémarrer pour prendre en compte le changement avec un "sudo shutdown -r 0" | Redémarrer pour prendre en compte le changement avec un "sudo shutdown -r 0" | ||
| - | ===== Quelques commandes ===== | ||
| - | ''gphoto2 -v'' Affiche la version de gphoto2 | + | ===== Quelques commandes ===== | 
| + | Affiche la version de gphoto2: | ||
| + | <code bash>gphoto2 -v </code> | ||
| - | ''gphoto2 %%--list-cameras%%'' Affiche toute la liste des appareils supportés.\\ Pour savoir directement si le modèle D301s est supporté :\\ ''gphoto2 %%--list-cameras%%|grep D301s'' | + | Affiche toute la liste des appareils supportés: | 
| + | <code bash>gphoto2 --list-cameras </code>  | ||
| - | ''gphoto2 %%--auto-detect%%'' affiche le(s) appareil(s) photo connecté(s) | + | Pour savoir directement si le modèle D301s est supporté : | 
| + | <code bash>gphoto2 --list-cameras |grep D301s </code>  | ||
| - | ''gphoto2 %%--summary%%'' affiche le statut résumé de l'appareil détecté | + | Affiche le(s) appareil(s) photo connecté(s): | 
| + | <code bash>gphoto2 --auto-detect </code>  | ||
| - | ''gphoto2 %%--capture-image%%'' prend une photo | + | Affiche le statut résumé de l'appareil détecté: | 
| + | <code bash>gphoto2 --summary </code> | ||
| + | <note important>Il est fort probable qu'un autre logiciel ait pris la main sur l'appareil. Il peut être nécessaire de démonter l'appareil (éjecter depuis nautilus par exemple) afin de pouvoir réaliser les commandes suivantes</note> | ||
| - | ''gphoto2 %%--capture-image-and-download%%'' prend une photo et la télécharge dans la foulée sur le pc | + | Prend une photo: | 
| + | <code bash>gphoto2 --capture-image </code>  | ||
| - | ''gphoto2 %%--list-files%%'' affiche la liste des fichiers présents dans l'appareil photo | + | Prend une photo et la télécharge dans la foulée sur le pc: | 
| + | <code bash>gphoto2 --capture-image-and-download </code>  | ||
| - | ''gphoto2 %%--get-all-files%%'' télécharge les photos présentes sur l'appareil photo dans le répertoire courant | + | Prend une photo toutes les 10 secondes: | 
| + | <code bash>gphoto2 --capture-image --interval 10 </code>  | ||
| - | ''gphoto2 %%--capture-image --interval%% 10'' prend une image toutes les 10 secondes  | + | Télécharge toutes les photos présentes sur l'appareil photo dans le répertoire courant: | 
| + | <code bash>gphoto2 --get-all-files </code>  | ||
| + | Affiche la liste des fichiers présents dans l'appareil photo: | ||
| + | <code bash>gphoto2 --list-files  | ||
| + | #1 DSC_7679.JPG  rd  4840 KB 4288x2848 image/jpeg | ||
| + | #2 DSC_7680.JPG  rd  4831 KB 4288x2848 image/jpeg | ||
| + | #3 DSC_7681.JPG  rd  4219 KB 4288x2848 image/jpeg | ||
| + | #4 DSC_7682.JPG  rd  5840 KB 4288x2848 image/jpeg | ||
| + | […] | ||
| + | #612 DSC_8498.JPG  rd  6632 KB 4288x2848 image/jpeg | ||
| + | #613 DSC_8499.JPG  rd  5472 KB 4288x2848 image/jpeg | ||
| + | #614 DSC_8500.JPG  rd  5133 KB 4288x2848 image/jpeg | ||
| + | #615 DSC_8501.AVI  rd 80291 KB video/x-msvideo | ||
| + | #616 DSC_8502.JPG  rd  4951 KB 4288x2848 image/jpeg | ||
| + | #617 DSC_8503.JPG  rd  5280 KB 4288x2848 image/jpeg | ||
| + | #618 DSC_8504.JPG  rd  5544 KB 4288x2848 image/jpeg | ||
| + | #619 DSC_8505.JPG  rd  5805 KB 4288x2848 image/jpeg | ||
| + | #620 DSC_8506.JPG  rd  5411 KB 4288x2848 image/jpeg | ||
| + | </code>  | ||
| + | dans la liste retourné le premier fichier (le plus ancien) a le numéro #1, le suivant #2…\\ | ||
| + | Pour récupérer les fichier #613 à #620 :\\ | ||
| + | <code bash> | ||
| + | gphoto2 --get-file 613-620 | ||
| + | </code> | ||
| ===== Interface Graphique ===== | ===== Interface Graphique ===== | ||
| [[gtkam|Gtkam]] est l'interface officiel (GTK+2) qui manipule la librairie libgphoto2. Cela fournit une interface utilisateur graphique qui permet d'importer les photos et possiblement de nombreuses autres fonctionnalités. | [[gtkam|Gtkam]] est l'interface officiel (GTK+2) qui manipule la librairie libgphoto2. Cela fournit une interface utilisateur graphique qui permet d'importer les photos et possiblement de nombreuses autres fonctionnalités. | ||
| ===== Liens ===== | ===== Liens ===== | ||
| - | * [[http://gphoto.sourceforge.net/doc/manual/]] Documentation officielle | + | * [[http://gphoto.org/doc/manual/]] Manuel dans la documentation officielle | 
| - | * [[http://gphoto.sourceforge.net/doc/remote/]] Contrôle des appareils photos par l'ordinateur | + | * [[http://gphoto.org/doc/remote/]] Contrôle des appareils photos par l'ordinateur | 
| * [[http://www.gphoto.org/proj/libgphoto2/support.php]] Liste des appareils photo compatibles | * [[http://www.gphoto.org/proj/libgphoto2/support.php]] Liste des appareils photo compatibles | ||
| - | * [[http://www.yannmoisan.com/importer-et-classer-automatiquement-ses-photos-numeriques.html]] Script basé sur gphoto2 pour importer et classer automatiquement ses photos numériques | + | * [[https://www.yannmoisan.com/importer-et-classer-automatiquement-ses-photos-numeriques.html]] Script basé sur gphoto2 pour importer et classer automatiquement ses photos numériques | 
| * [[http://www.instructables.com/id/Raspberry-Pi-photo-booth-controller/step2/Connect-the-Camera/]] Raspberry Pi photo booth controller | * [[http://www.instructables.com/id/Raspberry-Pi-photo-booth-controller/step2/Connect-the-Camera/]] Raspberry Pi photo booth controller | ||
| * [[https://fr.wikipedia.org/wiki/GPhoto]] GPhoto - Wikipédia | * [[https://fr.wikipedia.org/wiki/GPhoto]] GPhoto - Wikipédia | ||