Saturday, August 19, 2017
Ubuntu Tip GoPro Hero 4 gphoto2 USB
Ubuntu Tip GoPro Hero 4 gphoto2 USB
There are a couple of methods in Ubuntu to get your content off of a GoPro. We can connect to the GoPro over WiFi. We can download content directly from the SD cards and we can download content from the camera via USB. Just drag and drop.
Each method has is pros and cons. WiFi can drop out and its painfully slow for 4GB HD video files. Constantly removing and inserting SD cards does them no favours. And dragging and dropping is hard to automate with a script.
Finding the GoPro on the command line takes effort. I personally couldnt do it. Yet Nautilus finds the camera without any problem. And if you look at the actual address of the camera in Nautilus (ctrl+l). Things get a bit stranger still. Its not a normal directory listing. Instead we get something weird , "gphoto2://[usb:003,003]/". Which the usual command line tools wont touch.
There are a number of ways we can get around this problem. We can opt for WiFi and wget. Except WiFi is slow. Fortunately the clue we need is in the camera address. In particular the "gphoto2" part. This seems to be part of a suit of tools for nix OSs. It allows them to talk to digital cameras. And Ubuntu doesnt have the command line tools installed by default.
We can however fix this. Open a terminal and run the following command.
sudo apt-get install -y gphoto2
Before attempting to use the gphoto2 command line tool. Unmount the GoPro in Nautilus. Otherwise the gphoto2 command line tool wont be able to talk to the GoPro.
I havent actually downloaded any files with this tool yet. But I can confirm that it will talk to a GoPro Hero 4 Silver edition camera. There are a lot of switches listed in the man page Id like to read over and understand before diving in. But if you want to download files from your GoPro via the command line over USB. This seems to be the way to go.
To be continued ...
download file now