From: Christopher Coté Date: Fri, 14 Mar 2025 16:51:45 +0000 (-0400) Subject: initial commit X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=c63d251d0e4f85c97f8afb0c8479d126303f4d09;p=gpx-dashboards.git initial commit --- c63d251d0e4f85c97f8afb0c8479d126303f4d09 diff --git a/.env b/.env new file mode 100644 index 0000000..0ac557c --- /dev/null +++ b/.env @@ -0,0 +1,7 @@ +PROJECT=test +PROJECT_PATH=/mnt/video/rides +LAYOUT=cycle.xml +PROFILE=vp9 +GPX_FILE=track.gpx +OVERLAY_SIZE=1920x1080 +OUTPUT=overlay.webm diff --git a/README.md b/README.md new file mode 100644 index 0000000..72ced3d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +Docker version 28.0.1, build 068a01e + +`docker compose run gpx` diff --git a/config/ffmpeg-profiles.json b/config/ffmpeg-profiles.json new file mode 100644 index 0000000..3b340ca --- /dev/null +++ b/config/ffmpeg-profiles.json @@ -0,0 +1,17 @@ +{ + "overlay": { + "_comment": "extension is .mov", + "input": [], + "output": ["-vcodec", "png"] + }, + "quicktime": { + "_comment": "extension is .mov", + "input": ["-hwaccel", "auto"], + "output": ["-r", "50", "-vcodec", "qtrle", "-pix_fmt", "argb"] + }, + "vp9": { + "_comment": "extension is .webm", + "input": [], + "output": ["-vcodec", "vp9", "-pix_fmt", "yuva420p"] + } +} diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d7a2cfe --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +services: + gpx: + image: overlaydash/gopro-dashboard-overlay:0.125.0 + container_name: gpx + command: + - "gopro-dashboard.py" + - "--config-dir" + - "/config" + - "--profile" + - ${PROFILE} + - "--use-gpx-only" + - "--gpx" + - ${GPX_FILE} + - "--layout" + - "xml" + - "--layout-xml" + - "/layouts/${LAYOUT}" + - "--overlay-size" + - ${OVERLAY_SIZE} + - ${OUTPUT} + volumes: + - ${PROJECT_PATH}/${PROJECT}:/work + - ${PWD}/config:/config + - ${PWD}/layouts:/layouts diff --git a/layouts/cycle.xml b/layouts/cycle.xml new file mode 100644 index 0000000..409d0cc --- /dev/null +++ b/layouts/cycle.xml @@ -0,0 +1,23 @@ + + + MPH + + + + BPM + + + + + SLOPE(%) + + + + + ALT(m) + + + + + +