Linux – Copy files from GoPro over USB on Linux

goprogvfslinuxusb

I'm having a problem to copy files from GoPro over standard USB connection.
I can copy tons of photos without any problem, but the connections break when I copy large (800Mb+) video files.

In my system (Ubuntu 14.10), the GoPro is mounted using gvfs as: gphoto2://[usb:003,018]

I guess gvfs is causing problems. gvfs-move also fails:

gvfs-move "gphoto2://[usb:003,028]/GOPR0396.MP4" gopro/
...
progress 562814208/1990950259
Error moving file gphoto2://[usb:003,028]/GOPR0396.MP4: Error getting file: -1: Unspecified error

Do you know of any workaround to mount is as standard USB external drive?

When I use microSD card from GoPro in my Ubuntu laptop with card reader, everything copies without any problem.

BTW: I was not completely sure where to ask this question, but finally I have decided to post it here.

EDIT
rsync seems to work, but it's rather slow (15Mb/s) for USB3 and microSDHC:

rsync -av --progress /run/user/1000/gvfs/gphoto2\:host\=%5Busb%3A003%2C048%5D/ gopro/
sent 13,581,365,605 bytes  received 114 bytes  15,691,930.35 bytes/sec

EDIT2
The problem is absent in Ubuntu 14.04 – shotwell manages importing just fine.

Best Answer

Another solution is to skip using usb altogether and downloading the files using the integrated wifi hotspot and http server. This is the way I do it because is faster then using mtp.

  1. To avoid making the unit shutdown itself after few seconds open the gopro app and go to the camera menu and then browse the files
  2. open http://10.5.5.9:8080/videos/DCIM/ in the browser to check for the directory of interest (like 100GOPRO/)
  3. retrieve them with wget -r or curl

I know this answer is not directly answering the question but offer an alternate solution that is not depending on external library

Related Question