Advertisement
metalx1000

gphoto2 notes

Aug 15th, 2015
1,927
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.06 KB | None | 0 0
  1. #!!!!!!!!!!!if camera is "claimed" look for process that is using it,
  2. #!!!!!!!!!!!possible "gvfs-gphoto2-volume-monitor" and kill it
  3.  
  4. #Some Settings are only available if you are in “M” mode on the camera
  5. List features:
  6. gphoto2 --list-ports
  7. gphoto2 --auto-detect
  8. gphoto2 --summary
  9. gphoto2 --list-files
  10. gphoto2 --get-all-files
  11. gphoto2 --list-config
  12.  
  13. set shutter speed:
  14. gphoto2 --set-config shutterspeed=1
  15.  
  16. See shutter speed settings:
  17. gphoto2 --get-config shutterspeed
  18.  
  19. Take a photo and save it to the computer:
  20. gphoto2 --capture-image-and-download --filename "%Y%m%d%H%M%S.jpg"
  21.  
  22. Take a Photo and save it to the Camera:
  23. gphoto2 --capture-image
  24. gphoto2 --trigger-capture
  25.  
  26. Save the image to the computer when taken from the camera
  27. gphoto2 --capture-tethered
  28. Limit it to only 10 seconds
  29. gphoto2 --capture-tethered=10s
  30.  
  31.  
  32. gphoto2 - -I 20 -F 3150 --capture-image-and-download --filename "%Y%m%d%H%M%S.jpg"
  33.  
  34. -I 20
  35. Use a 20 seconds interval between two snapshots
  36. -F 3150
  37. Capture 3150 snapshots
  38.  
  39.  
  40. gphoto2 --set-config capturetarget=0 #use camera’s ram to store image
  41. gphoto2 --set-config capturetarget=1 #use SD card to store image
  42.  
  43.  
  44. #ricoh theta 360
  45. http://mimosa-pudica.net/ricoh-theta.html
  46. # Create a command alias.
  47. theta() { gphoto2 --port=ptpip:192.168.1.1 "--camera=PTP/IP Camera" "$@" }
  48.  
  49. # Set date/time in localtime.
  50. # Because My THETA is a Japanese version, add JST+09 == +32400 sec.
  51. theta --set-config datetime=$(($(date +%s) + 32400))
  52.  
  53. # Set an exposure compensation to -0.3EV.
  54. theta --set-config exposurecompensation=7
  55.  
  56. # Take a picture.
  57. theta --trigger-capture
  58.  
  59. # Retrieve all files (I recommended to do this with USB connection
  60. # because of slowness).
  61. theta --get-all-files
  62.  
  63.  
  64. #!/bin/bash
  65.  
  66. case "$ACTION" in
  67.     download)
  68.         #sudo kill qiv
  69.         echo "$ARGUMENT" &
  70.         ;;
  71.     "")
  72.         me=$(cd ${0%/*} && echo $PWD/${0##*/})
  73. #       gphoto2 --capture-tethered --hook-script=$me
  74. #       gphoto2 --capture-image --hook-script=$me
  75.         gphoto2 --capture-image-and-download --hook-script=$me --filename=$(date +%s).jpg
  76.         ;;
  77. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement