summaryrefslogtreecommitdiff
path: root/posts/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.md
diff options
context:
space:
mode:
authorAdam Carpenter <gitlab@53hor.net>2019-07-04 17:54:57 -0400
committerAdam Carpenter <gitlab@53hor.net>2019-07-04 17:54:57 -0400
commit0e183c4a073015a28b3ce8016e641f6261175168 (patch)
treed5898eb4bc40703f2c90f750b096518748821898 /posts/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.md
parentc9e8b0f501fc30bd95a8afbc167287626a24ed9f (diff)
downloadcobalt-site-0e183c4a073015a28b3ce8016e641f6261175168.tar.xz
cobalt-site-0e183c4a073015a28b3ce8016e641f6261175168.zip
Published gopro.
Diffstat (limited to 'posts/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.md')
-rw-r--r--posts/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.md58
1 files changed, 58 insertions, 0 deletions
diff --git a/posts/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.md b/posts/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.md
new file mode 100644
index 0000000..549f5fc
--- /dev/null
+++ b/posts/2019-07-04-the-best-way-to-transfer-gopro-files-with-linux.md
@@ -0,0 +1,58 @@
+---
+permalink: "/posts/{{categories}}/{{slug}}"
+title: The Best Way to Transfer GoPro Files with Linux
+categories:
+ - technology
+tags:
+ - gopro
+ - camera
+ - video
+ - download
+ - linux
+ - wireless
+published_date: "2019-07-04 21:54:49 +0000"
+layout: post.liquid
+is_draft: false
+---
+Transferring files off of most cameras to a Linux computer isn't all that
+difficult. Normally I can rip out the SD card and transfer files or just use a
+USB data transfer of some kind. The exception is my GoPro Hero 4 Black. For 4th
+of July week I took a bunch of video with the GoPro, approximately 20 MP4
+files, about 3GB each. The annoying thing about the GoPros USB interface is
+you need an app to download everything this way. The camera doesn't just show
+up as a USB device that you can mount. The GoPro does have a micro-SD card but
+I'm away from home and didn't have any dongles or adapters.
+
+The solution? GoPro cameras, after the Hero 3, can open up an ad-hoc wireless
+network that lets you browse the GoPro's onboard files through an HTTP server.
+This means you can open your browser and scroll through the files on the camera
+at a intranet address, `10.5.5.9`, and download them one by one. Well if you
+have like two dozen videos on there it kinda sucks.
+
+> *Smiles warmly*
+
+So, I opened up the manual for `wget`. I'm sure you could get really fancy with
+some of the options but the only thing I cared about was downloading every
+single MP4 video off of the camera, automatically. I did not want to download
+any of the small video formats or actual HTML files. So here's what I did:
+
+```sh
+$ wget --recursive --accept "*.MP4" http://10.5.5.9:8080/
+```
+
+This tells `wget` to download all of the files at the GoPro's address
+recursively and skips any that don't have the MP4 extension. Now I've got a
+directory tree with all of my videos in it. And the best part is I didn't have
+to install the dinky GoPro app on my laptop. Hopefully this helps if you're
+looking for an easy way to migrate lots of footage without manually clicking
+through the web interface or installing additional software.
+
+Some things I would like to change/add:
+
+- Download all image files as well; should be easy, just another `--accept`
+- Initiate parallel downloads
+- Clean up the directory afterwards so I just have one level of depth
+
+I could probably write a quick and dirty shell script to do all of this for me
+but I use the camera so infrequently that it's probably not even worth it.
+