Skip to content

Instantly share code, notes, and snippets.

@ncoder-1
ncoder-1 / gpsd-example.cpp
Last active July 1, 2022 09:07
example C++17 gpsd program using libgpsmm
// Example C++17 gpsd program using libgpsmm
// Has no actual purpose other than output some of libgpsmm struct variables of your choosing.
// reference declarations: https://fossies.org/dox/gpsd-3.22/index.html
//
// compiles without warning as follows:
// g++ -std=c++17 -Wall -pedantic -pthread $(pkg-config --cflags --libs libgps) gpsd-example.cpp -o gpsd-example
// clang++ -std=c++17 -Wall -pedantic -pthread $(pkg-config --cflags --libs libgps) gpsd-example.cpp -o gpsd-example
// Free for the taking.
// Version 1.84
@ncoder-1
ncoder-1 / gopro_hevc_to_dnxhd.sh
Last active January 10, 2023 22:21
Convert GoPro Hero7/Hero8 videos (mainly HEVC) to DNxHD and AAC to PCM which can be read with DaVinci Resolve 16 in Linux
#!/usr/bin/env bash
#
# Convert GoPro Hero7/Hero8 videos (mainly HEVC) to DNxHD and AAC to PCM which can be read with DaVinci Resolve 16 in Linux
# Also keeps GoPro's metadata
#
# Required dependency: ffmpeg 4.1
# To do: per-stream error handling, actually use datastream count and more efficient parsing of ffprobe
#
# Free for the taking.
#
@ncoder-1
ncoder-1 / gopro_aac_to_pcm.sh
Last active March 2, 2020 22:36
Convert GoPro Hero7/Hero8 videos AAC to PCM which can be read with DaVinci Resolve Studio 16 in Linux
#!/usr/bin/env bash
#
# Convert GoPro Hero7/Hero8 videos AAC to PCM which can be read with DaVinci Resolve Studio 16 in Linux
# Also keeps GoPro's metadata
#
# Required dependency: ffmpeg 4.1
# To do: per-stream error handling, actually use datastream count and more efficient parsing of ffprobe
#
# Free for the taking.
#