diff options
author | Adam Carpenter <gitlab@53hor.net> | 2019-07-04 17:48:23 -0400 |
---|---|---|
committer | Adam Carpenter <gitlab@53hor.net> | 2019-07-04 17:48:23 -0400 |
commit | ec6966c949c0583915320cc9210957671b2eeedb (patch) | |
tree | 8fa471f5d03597b74be5620aab3d500b156425f1 /posts/the-best-way-to-transfer-gopro-files-with-linux.md | |
parent | 097b4ab9d93bbb20ac8f0ea828516144a84d964e (diff) | |
parent | c9e8b0f501fc30bd95a8afbc167287626a24ed9f (diff) | |
download | cobalt-site-ec6966c949c0583915320cc9210957671b2eeedb.tar.xz cobalt-site-ec6966c949c0583915320cc9210957671b2eeedb.zip |
Merge branch 'posts'
Diffstat (limited to 'posts/the-best-way-to-transfer-gopro-files-with-linux.md')
-rw-r--r-- | posts/the-best-way-to-transfer-gopro-files-with-linux.md | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/posts/the-best-way-to-transfer-gopro-files-with-linux.md b/posts/the-best-way-to-transfer-gopro-files-with-linux.md new file mode 100644 index 0000000..7b1f00b --- /dev/null +++ b/posts/the-best-way-to-transfer-gopro-files-with-linux.md @@ -0,0 +1,51 @@ +--- +permalink: "/posts/{{categories}}/{{slug}}" +title: The Best Way to Transfer GoPro Files with Linux +categories: ["technology"] +tags: ["gopro", "camera", "video", "download", "linux", "wireless"] +layout: post.liquid +is_draft: true +--- + +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. + |