uel-gopro 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- uel_gopro-0.1.0/PKG-INFO +277 -0
- uel_gopro-0.1.0/README.md +246 -0
- uel_gopro-0.1.0/pyproject.toml +61 -0
- uel_gopro-0.1.0/pyproject.toml.orig +53 -0
- uel_gopro-0.1.0/src/uel_gopro/__init__.py +7 -0
- uel_gopro-0.1.0/src/uel_gopro/api/rest.py +174 -0
- uel_gopro-0.1.0/src/uel_gopro/cli/main.py +852 -0
- uel_gopro-0.1.0/src/uel_gopro/cloud/__init__.py +11 -0
- uel_gopro-0.1.0/src/uel_gopro/cloud/client.py +269 -0
- uel_gopro-0.1.0/src/uel_gopro/core/config.py +33 -0
- uel_gopro-0.1.0/src/uel_gopro/core/exceptions.py +33 -0
- uel_gopro-0.1.0/src/uel_gopro/core/models.py +92 -0
- uel_gopro-0.1.0/src/uel_gopro/labs/__init__.py +15 -0
- uel_gopro-0.1.0/src/uel_gopro/labs/qr.py +100 -0
- uel_gopro-0.1.0/src/uel_gopro/media/__init__.py +26 -0
- uel_gopro-0.1.0/src/uel_gopro/media/downloader.py +195 -0
- uel_gopro-0.1.0/src/uel_gopro/media/exif.py +215 -0
- uel_gopro-0.1.0/src/uel_gopro/media/stitcher.py +213 -0
- uel_gopro-0.1.0/src/uel_gopro/stream/preview.py +75 -0
- uel_gopro-0.1.0/src/uel_gopro/stream/webcam.py +54 -0
- uel_gopro-0.1.0/src/uel_gopro/telemetry/__init__.py +25 -0
- uel_gopro-0.1.0/src/uel_gopro/telemetry/exporters.py +153 -0
- uel_gopro-0.1.0/src/uel_gopro/telemetry/gpmf.py +419 -0
- uel_gopro-0.1.0/src/uel_gopro/transport/__init__.py +34 -0
- uel_gopro-0.1.0/src/uel_gopro/transport/ble.py +246 -0
- uel_gopro-0.1.0/src/uel_gopro/transport/cohn.py +46 -0
- uel_gopro-0.1.0/src/uel_gopro/transport/manager.py +73 -0
- uel_gopro-0.1.0/src/uel_gopro/transport/mtp.py +264 -0
- uel_gopro-0.1.0/src/uel_gopro/transport/usb.py +60 -0
- uel_gopro-0.1.0/src/uel_gopro/transport/wifi_ap.py +46 -0
uel_gopro-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: uel-gopro
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Unofficial Extended Life GoPro CLI toolchain
|
|
5
|
+
Keywords: gopro,action-camera,open-gopro,telemetry,gpmf,cli,mtp
|
|
6
|
+
Author: StrangeSid
|
|
7
|
+
Author-email: StrangeSid <140191922+StrangeSid@users.noreply.github.com>
|
|
8
|
+
License-Expression: GPL-3.0-or-later
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Environment :: Console
|
|
11
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
12
|
+
Classifier: Operating System :: MacOS
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Multimedia :: Video
|
|
19
|
+
Requires-Dist: bleak>=0.22.0
|
|
20
|
+
Requires-Dist: httpx>=0.27.0
|
|
21
|
+
Requires-Dist: psutil>=5.9.0
|
|
22
|
+
Requires-Dist: pydantic>=2.7.0
|
|
23
|
+
Requires-Dist: rich>=13.7.0
|
|
24
|
+
Requires-Dist: segno>=1.6.0
|
|
25
|
+
Requires-Dist: typer>=0.12.0
|
|
26
|
+
Requires-Python: >=3.11
|
|
27
|
+
Project-URL: Homepage, https://github.com/StrangeSid/uel-gopro
|
|
28
|
+
Project-URL: Repository, https://github.com/StrangeSid/uel-gopro
|
|
29
|
+
Project-URL: Issues, https://github.com/StrangeSid/uel-gopro/issues
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
# UEL-GoPro
|
|
33
|
+
|
|
34
|
+
> **Unofficial Extended Life GoPro Toolchain**
|
|
35
|
+
> A local-first, scriptable CLI toolchain.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Overview
|
|
40
|
+
|
|
41
|
+
GoPro's software ecosystem has steadily degraded for desktop and technical users:
|
|
42
|
+
- Desktop tooling was abandoned in favor of ad-heavy mobile applications.
|
|
43
|
+
- Bulk media downloads and multi-device workflows are gated behind subscription paywalls.
|
|
44
|
+
- Embedded telemetry (GPS and IMU sensor data) is locked inside binary formats, while webcam utilities frequently break with firmware updates.
|
|
45
|
+
|
|
46
|
+
**UEL-GoPro** provides a unified command-line toolchain for all GoPro operations: wired USB-C control, chapter-aware media ingest, lossless stream stitching, native GPMF telemetry extraction, optical QR automation, and live streaming.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Key Features
|
|
51
|
+
|
|
52
|
+
- **USB CDC-ECM Auto-Detection:** Automatically discovers cameras at `172.2X.1XX.51:8080` without manual IP configuration.
|
|
53
|
+
- **32-Bit Firmware Bug Mitigation:** Bypasses GoPro firmware's `/gopro/media/list` 4 GB integer overflow bug by querying authoritative 64-bit HTTP `HEAD` `Content-Length`.
|
|
54
|
+
- **Resumable Downloader:** Parallel chunked downloads using `.partial` files, HTTP `Range` requests, and byte integrity validation.
|
|
55
|
+
- **Lossless Chapter Stitcher:** Concatenates split video chapters (`GX010042.MP4`, `GX020042.MP4`) via FFmpeg concat demuxer without re-encoding, preserving multi-channel audio, timecode, and `gpmd` telemetry tracks.
|
|
56
|
+
- **Native GPMF Telemetry Parser:** Decodes binary KLV metadata (GPS5, accelerometer, gyroscope) and exports to GPX, KML, GeoJSON, and CSV.
|
|
57
|
+
- **In-Terminal QR Generator:** Generates high-contrast Unicode half-block QR codes directly inside the terminal window for instant optical configuration via GoPro Labs firmware.
|
|
58
|
+
- **Live Streaming & Webcam:** Zero-latency preview streaming directly to `mpv` or `ffplay`, plus native 1080p/720p USB webcam mode.
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Requirements & Prerequisites
|
|
63
|
+
|
|
64
|
+
- **Python:** 3.11 or newer (Python 3.13 recommended)
|
|
65
|
+
- **uv:** Modern, fast Python package manager ([installation instructions](https://docs.astral.sh/uv/))
|
|
66
|
+
- **FFmpeg:** Required for chapter concatenation and GPMF telemetry extraction
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Installation
|
|
71
|
+
|
|
72
|
+
### 1. One-Line Script (Recommended)
|
|
73
|
+
|
|
74
|
+
Installs `uel-gopro` directly to `~/.local/bin` using `uv` or an isolated Python virtual environment:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
curl -fsSL https://raw.githubusercontent.com/StrangeSid/uel-gopro/main/install.sh | bash
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### 2. Homebrew (macOS / Linux)
|
|
81
|
+
|
|
82
|
+
Install from the local formula or tap:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
# Direct formula build
|
|
86
|
+
brew install --build-from-source Formula/uel-gopro.rb
|
|
87
|
+
|
|
88
|
+
# Or via tap
|
|
89
|
+
brew tap StrangeSid/uel-gopro
|
|
90
|
+
brew install uel-gopro
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### 3. PyPI (`uv` / `pip`)
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
# Using uv (isolated CLI tool)
|
|
97
|
+
uv tool install uel-gopro
|
|
98
|
+
|
|
99
|
+
# Using pip
|
|
100
|
+
pip install uel-gopro
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### 4. Build from Source or Standalone Binary
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
git clone https://github.com/StrangeSid/uel-gopro.git
|
|
107
|
+
cd uel-gopro
|
|
108
|
+
uv sync
|
|
109
|
+
|
|
110
|
+
# Build a zero-dependency standalone binary:
|
|
111
|
+
uv run pyinstaller --onefile --name uel-gopro --clean src/uel_gopro/cli/main.py
|
|
112
|
+
./dist/uel-gopro --help
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## CLI Command Reference
|
|
118
|
+
|
|
119
|
+
### Discovery & Status
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Auto-detect connected cameras over USB (GoPro Connect or MTP mode) and BLE
|
|
123
|
+
uel-gopro discover
|
|
124
|
+
|
|
125
|
+
# Scan for Bluetooth Low Energy (BLE) GoPro cameras
|
|
126
|
+
uel-gopro discover --ble
|
|
127
|
+
|
|
128
|
+
# Display real-time status dashboard (battery, storage, thermals, recording mode)
|
|
129
|
+
uel-gopro status
|
|
130
|
+
|
|
131
|
+
# Query real-time status wirelessly over Bluetooth Low Energy
|
|
132
|
+
uel-gopro status --ble
|
|
133
|
+
|
|
134
|
+
# Output status dashboard as structured JSON
|
|
135
|
+
uel-gopro status --json
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
> [!TIP]
|
|
139
|
+
> UEL-GoPro supports two USB connection modes:
|
|
140
|
+
> - **GoPro Connect (CDC-ECM):** Full camera control, shutter, webcam, live streaming, settings, and high-speed downloads (40 MB/s).
|
|
141
|
+
> - **MTP Mode:** File listing and media downloading without changing camera settings. Control commands fallback or prompt to switch to GoPro Connect.
|
|
142
|
+
|
|
143
|
+
### Recording & Shutter
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# Start video recording or timelapse
|
|
147
|
+
uel-gopro record start
|
|
148
|
+
|
|
149
|
+
# Stop recording
|
|
150
|
+
uel-gopro record stop
|
|
151
|
+
|
|
152
|
+
# Capture a still photograph
|
|
153
|
+
uel-gopro record photo
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Camera Settings & Presets
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
# List available camera presets
|
|
160
|
+
uel-gopro preset list
|
|
161
|
+
|
|
162
|
+
# Activate a preset by ID
|
|
163
|
+
uel-gopro preset load 1000
|
|
164
|
+
|
|
165
|
+
# Inspect camera settings
|
|
166
|
+
uel-gopro config list
|
|
167
|
+
uel-gopro config get 2
|
|
168
|
+
|
|
169
|
+
# Update a camera setting (e.g., setting ID 2 to value 1)
|
|
170
|
+
uel-gopro config set 2 1
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Media Ingest & SD Card Management
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# List media stored on the camera SD card
|
|
177
|
+
uel-gopro media list
|
|
178
|
+
|
|
179
|
+
# Download a video with progress tracking and size validation
|
|
180
|
+
uel-gopro media download GX010042.MP4 --dest ~/Videos/GoPro
|
|
181
|
+
|
|
182
|
+
# Delete a specific file from the SD card
|
|
183
|
+
uel-gopro media delete GX010042.MP4 --force
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
> [!WARNING]
|
|
187
|
+
> Formatting an SD card irreversibly erases all footage. UEL-GoPro requires explicit confirmation:
|
|
188
|
+
> ```bash
|
|
189
|
+
> uel-gopro media format --confirm
|
|
190
|
+
> ```
|
|
191
|
+
|
|
192
|
+
### Chapter Stitching & Post-Processing
|
|
193
|
+
|
|
194
|
+
GoPro splits long recordings into multiple chapter files. UEL-GoPro stitches them into a single contiguous file without re-encoding:
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
# Losslessly stitch chapters in a directory
|
|
198
|
+
uel-gopro process stitch /path/to/chapters/ --output stitched.mp4
|
|
199
|
+
|
|
200
|
+
# Synchronize file modification dates with true capture timestamps
|
|
201
|
+
uel-gopro process sync-dates GX010042.MP4
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
> [!TIP]
|
|
205
|
+
> Stitching uses stream copy mode (`-c copy -map 0`), preserving all embedded GPS and telemetry tracks for post-processing.
|
|
206
|
+
|
|
207
|
+
### GPMF Sensor Telemetry Extraction
|
|
208
|
+
|
|
209
|
+
Extract embedded sensor telemetry from GoPro MP4 files into standard geospatial formats:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Export GPS track to GPX (for Strava, Garmin, or GIS tools)
|
|
213
|
+
uel-gopro telemetry export GX010042.MP4 --format gpx --output track.gpx
|
|
214
|
+
|
|
215
|
+
# Export to KML (Google Earth)
|
|
216
|
+
uel-gopro telemetry export GX010042.MP4 --format kml --output track.kml
|
|
217
|
+
|
|
218
|
+
# Export to GeoJSON
|
|
219
|
+
uel-gopro telemetry export GX010042.MP4 --format geojson --output track.geojson
|
|
220
|
+
|
|
221
|
+
# Export to tabular CSV
|
|
222
|
+
uel-gopro telemetry export GX010042.MP4 --format csv --output track.csv
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### GoPro Labs QR Automation
|
|
226
|
+
|
|
227
|
+
Render optical macro programming codes directly on your screen without leaving the terminal:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
# List available macro presets
|
|
231
|
+
uel-gopro labs presets
|
|
232
|
+
|
|
233
|
+
# Render a high-contrast half-block QR code in the terminal
|
|
234
|
+
uel-gopro labs qr bitrate_max
|
|
235
|
+
uel-gopro labs qr motion_detect
|
|
236
|
+
uel-gopro labs qr speed_trigger_50kmh
|
|
237
|
+
|
|
238
|
+
# Generate a custom Labs macro and save as PNG/SVG
|
|
239
|
+
uel-gopro labs qr "!M1*BITR=180" --save macro.png
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### Live Preview & USB Webcam
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
# Launch zero-latency preview stream in mpv or ffplay
|
|
246
|
+
uel-gopro stream preview --player mpv
|
|
247
|
+
|
|
248
|
+
# Start 1080p USB webcam mode
|
|
249
|
+
uel-gopro stream webcam start --res 1080p
|
|
250
|
+
|
|
251
|
+
# Stop USB webcam mode
|
|
252
|
+
uel-gopro stream webcam stop
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### GoPro Plus Cloud Sync (NAS Backup)
|
|
256
|
+
|
|
257
|
+
Bypass the official web interface's 25-file bulk download ceiling and mirror your complete GoPro Plus cloud library:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
# Store your GoPro Plus authentication token
|
|
261
|
+
uel-gopro cloud auth --token <YOUR_BEARER_TOKEN>
|
|
262
|
+
|
|
263
|
+
# Browse cloud media assets with pagination
|
|
264
|
+
uel-gopro cloud list --page 1 --per-page 25
|
|
265
|
+
|
|
266
|
+
# Headless mirror of cloud assets to local storage or NAS
|
|
267
|
+
uel-gopro cloud sync --dest /mnt/nas/GoProCloudBackup --max-pages 100
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
> [!NOTE]
|
|
271
|
+
> Cloud sync uses atomic `.partial` staging buffers and checks file sizes, skipping assets that are already safely archived.
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Disclaimer
|
|
276
|
+
|
|
277
|
+
GoPro, HERO, and MAX are registered trademarks of GoPro, Inc. UEL-GoPro is an independent, community-driven open-source project and is not affiliated with, sponsored by, or endorsed by GoPro, Inc.
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# UEL-GoPro
|
|
2
|
+
|
|
3
|
+
> **Unofficial Extended Life GoPro Toolchain**
|
|
4
|
+
> A local-first, scriptable CLI toolchain.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
GoPro's software ecosystem has steadily degraded for desktop and technical users:
|
|
11
|
+
- Desktop tooling was abandoned in favor of ad-heavy mobile applications.
|
|
12
|
+
- Bulk media downloads and multi-device workflows are gated behind subscription paywalls.
|
|
13
|
+
- Embedded telemetry (GPS and IMU sensor data) is locked inside binary formats, while webcam utilities frequently break with firmware updates.
|
|
14
|
+
|
|
15
|
+
**UEL-GoPro** provides a unified command-line toolchain for all GoPro operations: wired USB-C control, chapter-aware media ingest, lossless stream stitching, native GPMF telemetry extraction, optical QR automation, and live streaming.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Key Features
|
|
20
|
+
|
|
21
|
+
- **USB CDC-ECM Auto-Detection:** Automatically discovers cameras at `172.2X.1XX.51:8080` without manual IP configuration.
|
|
22
|
+
- **32-Bit Firmware Bug Mitigation:** Bypasses GoPro firmware's `/gopro/media/list` 4 GB integer overflow bug by querying authoritative 64-bit HTTP `HEAD` `Content-Length`.
|
|
23
|
+
- **Resumable Downloader:** Parallel chunked downloads using `.partial` files, HTTP `Range` requests, and byte integrity validation.
|
|
24
|
+
- **Lossless Chapter Stitcher:** Concatenates split video chapters (`GX010042.MP4`, `GX020042.MP4`) via FFmpeg concat demuxer without re-encoding, preserving multi-channel audio, timecode, and `gpmd` telemetry tracks.
|
|
25
|
+
- **Native GPMF Telemetry Parser:** Decodes binary KLV metadata (GPS5, accelerometer, gyroscope) and exports to GPX, KML, GeoJSON, and CSV.
|
|
26
|
+
- **In-Terminal QR Generator:** Generates high-contrast Unicode half-block QR codes directly inside the terminal window for instant optical configuration via GoPro Labs firmware.
|
|
27
|
+
- **Live Streaming & Webcam:** Zero-latency preview streaming directly to `mpv` or `ffplay`, plus native 1080p/720p USB webcam mode.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Requirements & Prerequisites
|
|
32
|
+
|
|
33
|
+
- **Python:** 3.11 or newer (Python 3.13 recommended)
|
|
34
|
+
- **uv:** Modern, fast Python package manager ([installation instructions](https://docs.astral.sh/uv/))
|
|
35
|
+
- **FFmpeg:** Required for chapter concatenation and GPMF telemetry extraction
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Installation
|
|
40
|
+
|
|
41
|
+
### 1. One-Line Script (Recommended)
|
|
42
|
+
|
|
43
|
+
Installs `uel-gopro` directly to `~/.local/bin` using `uv` or an isolated Python virtual environment:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
curl -fsSL https://raw.githubusercontent.com/StrangeSid/uel-gopro/main/install.sh | bash
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### 2. Homebrew (macOS / Linux)
|
|
50
|
+
|
|
51
|
+
Install from the local formula or tap:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Direct formula build
|
|
55
|
+
brew install --build-from-source Formula/uel-gopro.rb
|
|
56
|
+
|
|
57
|
+
# Or via tap
|
|
58
|
+
brew tap StrangeSid/uel-gopro
|
|
59
|
+
brew install uel-gopro
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 3. PyPI (`uv` / `pip`)
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# Using uv (isolated CLI tool)
|
|
66
|
+
uv tool install uel-gopro
|
|
67
|
+
|
|
68
|
+
# Using pip
|
|
69
|
+
pip install uel-gopro
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 4. Build from Source or Standalone Binary
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
git clone https://github.com/StrangeSid/uel-gopro.git
|
|
76
|
+
cd uel-gopro
|
|
77
|
+
uv sync
|
|
78
|
+
|
|
79
|
+
# Build a zero-dependency standalone binary:
|
|
80
|
+
uv run pyinstaller --onefile --name uel-gopro --clean src/uel_gopro/cli/main.py
|
|
81
|
+
./dist/uel-gopro --help
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## CLI Command Reference
|
|
87
|
+
|
|
88
|
+
### Discovery & Status
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Auto-detect connected cameras over USB (GoPro Connect or MTP mode) and BLE
|
|
92
|
+
uel-gopro discover
|
|
93
|
+
|
|
94
|
+
# Scan for Bluetooth Low Energy (BLE) GoPro cameras
|
|
95
|
+
uel-gopro discover --ble
|
|
96
|
+
|
|
97
|
+
# Display real-time status dashboard (battery, storage, thermals, recording mode)
|
|
98
|
+
uel-gopro status
|
|
99
|
+
|
|
100
|
+
# Query real-time status wirelessly over Bluetooth Low Energy
|
|
101
|
+
uel-gopro status --ble
|
|
102
|
+
|
|
103
|
+
# Output status dashboard as structured JSON
|
|
104
|
+
uel-gopro status --json
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
> [!TIP]
|
|
108
|
+
> UEL-GoPro supports two USB connection modes:
|
|
109
|
+
> - **GoPro Connect (CDC-ECM):** Full camera control, shutter, webcam, live streaming, settings, and high-speed downloads (40 MB/s).
|
|
110
|
+
> - **MTP Mode:** File listing and media downloading without changing camera settings. Control commands fallback or prompt to switch to GoPro Connect.
|
|
111
|
+
|
|
112
|
+
### Recording & Shutter
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
# Start video recording or timelapse
|
|
116
|
+
uel-gopro record start
|
|
117
|
+
|
|
118
|
+
# Stop recording
|
|
119
|
+
uel-gopro record stop
|
|
120
|
+
|
|
121
|
+
# Capture a still photograph
|
|
122
|
+
uel-gopro record photo
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Camera Settings & Presets
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
# List available camera presets
|
|
129
|
+
uel-gopro preset list
|
|
130
|
+
|
|
131
|
+
# Activate a preset by ID
|
|
132
|
+
uel-gopro preset load 1000
|
|
133
|
+
|
|
134
|
+
# Inspect camera settings
|
|
135
|
+
uel-gopro config list
|
|
136
|
+
uel-gopro config get 2
|
|
137
|
+
|
|
138
|
+
# Update a camera setting (e.g., setting ID 2 to value 1)
|
|
139
|
+
uel-gopro config set 2 1
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Media Ingest & SD Card Management
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# List media stored on the camera SD card
|
|
146
|
+
uel-gopro media list
|
|
147
|
+
|
|
148
|
+
# Download a video with progress tracking and size validation
|
|
149
|
+
uel-gopro media download GX010042.MP4 --dest ~/Videos/GoPro
|
|
150
|
+
|
|
151
|
+
# Delete a specific file from the SD card
|
|
152
|
+
uel-gopro media delete GX010042.MP4 --force
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
> [!WARNING]
|
|
156
|
+
> Formatting an SD card irreversibly erases all footage. UEL-GoPro requires explicit confirmation:
|
|
157
|
+
> ```bash
|
|
158
|
+
> uel-gopro media format --confirm
|
|
159
|
+
> ```
|
|
160
|
+
|
|
161
|
+
### Chapter Stitching & Post-Processing
|
|
162
|
+
|
|
163
|
+
GoPro splits long recordings into multiple chapter files. UEL-GoPro stitches them into a single contiguous file without re-encoding:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
# Losslessly stitch chapters in a directory
|
|
167
|
+
uel-gopro process stitch /path/to/chapters/ --output stitched.mp4
|
|
168
|
+
|
|
169
|
+
# Synchronize file modification dates with true capture timestamps
|
|
170
|
+
uel-gopro process sync-dates GX010042.MP4
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
> [!TIP]
|
|
174
|
+
> Stitching uses stream copy mode (`-c copy -map 0`), preserving all embedded GPS and telemetry tracks for post-processing.
|
|
175
|
+
|
|
176
|
+
### GPMF Sensor Telemetry Extraction
|
|
177
|
+
|
|
178
|
+
Extract embedded sensor telemetry from GoPro MP4 files into standard geospatial formats:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
# Export GPS track to GPX (for Strava, Garmin, or GIS tools)
|
|
182
|
+
uel-gopro telemetry export GX010042.MP4 --format gpx --output track.gpx
|
|
183
|
+
|
|
184
|
+
# Export to KML (Google Earth)
|
|
185
|
+
uel-gopro telemetry export GX010042.MP4 --format kml --output track.kml
|
|
186
|
+
|
|
187
|
+
# Export to GeoJSON
|
|
188
|
+
uel-gopro telemetry export GX010042.MP4 --format geojson --output track.geojson
|
|
189
|
+
|
|
190
|
+
# Export to tabular CSV
|
|
191
|
+
uel-gopro telemetry export GX010042.MP4 --format csv --output track.csv
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### GoPro Labs QR Automation
|
|
195
|
+
|
|
196
|
+
Render optical macro programming codes directly on your screen without leaving the terminal:
|
|
197
|
+
|
|
198
|
+
```bash
|
|
199
|
+
# List available macro presets
|
|
200
|
+
uel-gopro labs presets
|
|
201
|
+
|
|
202
|
+
# Render a high-contrast half-block QR code in the terminal
|
|
203
|
+
uel-gopro labs qr bitrate_max
|
|
204
|
+
uel-gopro labs qr motion_detect
|
|
205
|
+
uel-gopro labs qr speed_trigger_50kmh
|
|
206
|
+
|
|
207
|
+
# Generate a custom Labs macro and save as PNG/SVG
|
|
208
|
+
uel-gopro labs qr "!M1*BITR=180" --save macro.png
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Live Preview & USB Webcam
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
# Launch zero-latency preview stream in mpv or ffplay
|
|
215
|
+
uel-gopro stream preview --player mpv
|
|
216
|
+
|
|
217
|
+
# Start 1080p USB webcam mode
|
|
218
|
+
uel-gopro stream webcam start --res 1080p
|
|
219
|
+
|
|
220
|
+
# Stop USB webcam mode
|
|
221
|
+
uel-gopro stream webcam stop
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### GoPro Plus Cloud Sync (NAS Backup)
|
|
225
|
+
|
|
226
|
+
Bypass the official web interface's 25-file bulk download ceiling and mirror your complete GoPro Plus cloud library:
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
# Store your GoPro Plus authentication token
|
|
230
|
+
uel-gopro cloud auth --token <YOUR_BEARER_TOKEN>
|
|
231
|
+
|
|
232
|
+
# Browse cloud media assets with pagination
|
|
233
|
+
uel-gopro cloud list --page 1 --per-page 25
|
|
234
|
+
|
|
235
|
+
# Headless mirror of cloud assets to local storage or NAS
|
|
236
|
+
uel-gopro cloud sync --dest /mnt/nas/GoProCloudBackup --max-pages 100
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
> [!NOTE]
|
|
240
|
+
> Cloud sync uses atomic `.partial` staging buffers and checks file sizes, skipping assets that are already safely archived.
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## Disclaimer
|
|
245
|
+
|
|
246
|
+
GoPro, HERO, and MAX are registered trademarks of GoPro, Inc. UEL-GoPro is an independent, community-driven open-source project and is not affiliated with, sponsored by, or endorsed by GoPro, Inc.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "uel-gopro"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Unofficial Extended Life GoPro CLI toolchain"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "GPL-3.0-or-later"
|
|
7
|
+
requires-python = ">=3.11"
|
|
8
|
+
keywords = [
|
|
9
|
+
"gopro",
|
|
10
|
+
"action-camera",
|
|
11
|
+
"open-gopro",
|
|
12
|
+
"telemetry",
|
|
13
|
+
"gpmf",
|
|
14
|
+
"cli",
|
|
15
|
+
"mtp",
|
|
16
|
+
]
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 4 - Beta",
|
|
19
|
+
"Environment :: Console",
|
|
20
|
+
"Intended Audience :: End Users/Desktop",
|
|
21
|
+
"Operating System :: MacOS",
|
|
22
|
+
"Operating System :: POSIX :: Linux",
|
|
23
|
+
"Programming Language :: Python :: 3",
|
|
24
|
+
"Programming Language :: Python :: 3.11",
|
|
25
|
+
"Programming Language :: Python :: 3.12",
|
|
26
|
+
"Programming Language :: Python :: 3.13",
|
|
27
|
+
"Topic :: Multimedia :: Video",
|
|
28
|
+
]
|
|
29
|
+
dependencies = [
|
|
30
|
+
"bleak>=0.22.0",
|
|
31
|
+
"httpx>=0.27.0",
|
|
32
|
+
"psutil>=5.9.0",
|
|
33
|
+
"pydantic>=2.7.0",
|
|
34
|
+
"rich>=13.7.0",
|
|
35
|
+
"segno>=1.6.0",
|
|
36
|
+
"typer>=0.12.0",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[[project.authors]]
|
|
40
|
+
name = "StrangeSid"
|
|
41
|
+
email = "140191922+StrangeSid@users.noreply.github.com"
|
|
42
|
+
|
|
43
|
+
[project.urls]
|
|
44
|
+
Homepage = "https://github.com/StrangeSid/uel-gopro"
|
|
45
|
+
Repository = "https://github.com/StrangeSid/uel-gopro"
|
|
46
|
+
Issues = "https://github.com/StrangeSid/uel-gopro/issues"
|
|
47
|
+
|
|
48
|
+
[project.scripts]
|
|
49
|
+
uel-gopro = "uel_gopro.cli.main:main"
|
|
50
|
+
|
|
51
|
+
[build-system]
|
|
52
|
+
requires = ["uv_build>=0.12.19,<0.13.0"]
|
|
53
|
+
build-backend = "uv_build"
|
|
54
|
+
|
|
55
|
+
[dependency-groups]
|
|
56
|
+
dev = [
|
|
57
|
+
"pyinstaller>=6.22.3",
|
|
58
|
+
"pytest>=9.1.1",
|
|
59
|
+
"pytest-asyncio>=1.4.0",
|
|
60
|
+
"pytest-mock>=3.17.0",
|
|
61
|
+
]
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "uel-gopro"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Unofficial Extended Life GoPro CLI toolchain"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "GPL-3.0-or-later"
|
|
7
|
+
authors = [
|
|
8
|
+
{ name = "StrangeSid", email = "140191922+StrangeSid@users.noreply.github.com" }
|
|
9
|
+
]
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
keywords = ["gopro", "action-camera", "open-gopro", "telemetry", "gpmf", "cli", "mtp"]
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 4 - Beta",
|
|
14
|
+
"Environment :: Console",
|
|
15
|
+
"Intended Audience :: End Users/Desktop",
|
|
16
|
+
"Operating System :: MacOS",
|
|
17
|
+
"Operating System :: POSIX :: Linux",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.11",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Topic :: Multimedia :: Video",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
dependencies = [
|
|
26
|
+
"bleak>=0.22.0",
|
|
27
|
+
"httpx>=0.27.0",
|
|
28
|
+
"psutil>=5.9.0",
|
|
29
|
+
"pydantic>=2.7.0",
|
|
30
|
+
"rich>=13.7.0",
|
|
31
|
+
"segno>=1.6.0",
|
|
32
|
+
"typer>=0.12.0",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.urls]
|
|
36
|
+
Homepage = "https://github.com/StrangeSid/uel-gopro"
|
|
37
|
+
Repository = "https://github.com/StrangeSid/uel-gopro"
|
|
38
|
+
Issues = "https://github.com/StrangeSid/uel-gopro/issues"
|
|
39
|
+
|
|
40
|
+
[project.scripts]
|
|
41
|
+
uel-gopro = "uel_gopro.cli.main:main"
|
|
42
|
+
|
|
43
|
+
[build-system]
|
|
44
|
+
requires = ["uv_build>=0.12.19,<0.13.0"]
|
|
45
|
+
build-backend = "uv_build"
|
|
46
|
+
|
|
47
|
+
[dependency-groups]
|
|
48
|
+
dev = [
|
|
49
|
+
"pyinstaller>=6.22.3",
|
|
50
|
+
"pytest>=9.1.1",
|
|
51
|
+
"pytest-asyncio>=1.4.0",
|
|
52
|
+
"pytest-mock>=3.17.0",
|
|
53
|
+
]
|