gPhoto is a nice tool for Linux users to download photos directly from the GoPro. I show below some basic commands that must be enough for you to get your photos.
When you first connect your GoPro, I suggest you to list the available ports. You can execute this command before and after connecting your GoPro, so that you can be sure that your GoPro was found by gPhoto.
gphoto2 --list-ports
The output should show something like below, where the blue line is my GoPro.
Path Description
--------------------------------------------------------------
ptpip: PTP/IP Connection
serial:/dev/ttyS0 Serial Port 0
serial:/dev/ttyS1 Serial Port 1
serial:/dev/ttyS2 Serial Port 2
serial:/dev/ttyS3 Serial Port 3
usb:001,002 Universal Serial Bus
usb:002,005 Universal Serial Bus
In any case, you can execute the command below to detect your GoPro.
gphoto2 --auto-detect
If your GoPro was detected successfully, the output should look like below
Model Port
----------------------------------------------------------
USB PTP Class Camera usb:002,005
With the command below you can get information about your GoPro.
gphoto2 --summary
The output should look like below
Camera summary:
Manufacturer: GoPro
Model: HERO4 Silver
Version: HD4.01.02.00.00
Serial Number: C3131126769930
Vendor Extension ID: 0x6 (1.0)
Vendor Extension Description: microsoft.com: 1.0; microsoft.com/WMPPD: 11.0; microsoft.com/WMPPD: 10.0; microsoft.com/WMDRMPD: 10.1;
{...}
Storage Devices Summary:
store_00010001:
StorageDescription: GoPro MTP Client Disk Volume
VolumeLabel: GoPro MTP Client SD slot
Storage Type: Removable RAM (memory card)
Filesystemtype: Generic Flat
Access Capability: Read Only with Object deletion
Maximum Capability: 31996772352 (30514 MB)
Free Space (Bytes): 30362075136 (28955 MB)
Free Space (Images): -1
Before to download the files, you can list all the files in the GoPro by using
gphoto2 --list-files
The camera will load and the output should look like below
There is no file in folder '/'.
There is 1 file in folder '/store_00010001'.
#1 Get_started_with_GoPro.url r- 1 KB text/html
There is no file in folder '/store_00010001/DCIM'.
There are 727 files in folder '/store_00010001/DCIM/100GOPRO'.
#2 G0015181.JPG rd 2089 KB 4000x3000 image/jpeg
#3 G0015182.JPG rd 2098 KB 4000x3000 image/jpeg
#4 G0015183.JPG rd 2094 KB 4000x3000 image/jpeg
{...}
Finally, you can transfers all the files from the camera to your current directory of your computer by using
gphoto2 --get-all-files
The camera will load and the output should look like below
Downloading 'G0015181.JPG' from folder '/store_00010001/DCIM/100GOPRO'...
Saving file as G0015181.JPG
Downloading 'G0015182.JPG' from folder '/store_00010001/DCIM/100GOPRO'...
Saving file as G0015182.JPG
Downloading 'G0015183.JPG' from folder '/store_00010001/DCIM/100GOPRO'...
Saving file as G0015183.JPG
For more details you can execute
gphoto2 --help