20 Commits

Author SHA1 Message Date
Cédric Verstraeten
5973ba025d Add configurable tus chunking and stability fixes
Enable configurable chunked tus uploads and related robustness changes.

- Add AGENT_TUS_CHUNK_SIZE_BYTES env (default 1 MiB, 0 disables chunking) and docs in machinery/.env; ignore machinery/go.work files and set GOWORK=off in VSCode launch to avoid go.work during debugging.
- Implement tusChunkSize() and update uploadVaultResumable to send PATCHes in configurable chunk sizes, checkpoint progress after each chunk, and handle partial failures by refreshing retry budget when progress occurs.
- Change tusPatch to accept an explicit length and return the advanced offset when a PATCH is fully accepted.
- Skip uploads when the recording file no longer exists to avoid infinite retries.
- Add tests exercising chunked uploads, chunking-disabled behavior, and tusChunkSize parsing; extend fakeTus test server to record patch sizes.
- Reduce noisy info logs to debug in AAC transcoder and WebRTC audio processing.

These changes improve resumable upload reliability, allow tuning for proxy/load-balancer limits, and reduce log spam during normal operation.
2026-06-11 23:03:05 +02:00
cedricve
f3c1cb9b82 Enhance SPS/PPS handling for main stream in gortsplib: add fallback for missing SDP 2026-02-26 15:21:54 +00:00
Cédric Verstraeten
1425430376 Update .gitignore to include __debug* and change Dockerfile base image to golang:1.24.5-bullseye 2025-09-09 14:36:32 +00:00
Cédric Verstraeten
af3f8bb639 Add GitHub Actions workflow for pull request builds and update Dockerfile dependencies 2025-09-09 16:28:19 +02:00
cedricve
58555d352f Update .gitignore and launch.json to reference .env.local instead of .env 2025-05-15 10:42:01 +00:00
Cedric Verstraeten
ecadf7a4db add realtime processing endpoint 2024-06-11 22:47:01 +02:00
Cedric Verstraeten
99cc7d419f add .vscode launch file 2023-05-06 08:46:31 +02:00
Cedric Verstraeten
e375c107ef get rid of opencv for encoding 2023-01-17 16:51:59 +01:00
Cedric Verstraeten
cd4e9eed3d add references to env. list! 2022-12-08 12:29:58 +01:00
Cedric Verstraeten
bf0ae4cb64 Revert "fixes"
This reverts commit fb666bb622.
2022-11-17 21:40:38 +01:00
Cédric Verstraeten
fb666bb622 fixes 2022-11-17 20:39:02 +00:00
Thomas Quandalle
e00b45037c add a random key when empty + add verification for hub and vault 2022-08-26 21:13:43 +02:00
Thomas Quandalle
eae3a5f90a properly close recording in continuous recording mode + disconnect MQTT 2022-06-21 17:22:09 +02:00
Thomas Quandalle
a2cb606e49 gitignore config.json 2022-06-21 14:28:42 +02:00
Thomas Quandalle
86bb1beb5b more fixes to get to a stable release 2022-06-08 18:46:14 +02:00
cedricve
bf5c4aa817 add airbnb linting, delete build directories 2021-01-01 19:44:03 +01:00
cedricve
ca990543df rename sub projects to avoid confusion 2020-12-29 08:28:23 +01:00
cedricve
0d38451d61 Update .gitignore 2020-12-27 22:58:57 +01:00
cedricve
dc6ec58463 add react and merge with golang 2020-12-27 22:39:52 +01:00
cedricve
2a4eb9f37f add react base 2020-12-27 22:25:22 +01:00