Add live score overlay to video stream using shared volume between transcoder and overlay service
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 21s

This commit is contained in:
Your Name
2025-09-02 09:44:34 +12:00
parent 46ca6c9255
commit 97edbefa05
3 changed files with 51 additions and 13 deletions

View File

@@ -37,23 +37,15 @@ services:
timeout: 10s
retries: 3
# FFmpeg transcoder for H265 to H264
# FFmpeg transcoder for H265 to H264 with score overlay
transcoder:
image: linuxserver/ffmpeg:latest
build: ./transcoder
image: ${PROJECT_NAME}-transcoder:latest
container_name: ${PROJECT_NAME}-transcoder
restart: unless-stopped
network_mode: host
command: >
-re
-rtsp_transport tcp
-i rtsp://localhost:8554/court
-c:v libx264
-preset ultrafast
-tune zerolatency
-b:v 2M
-f rtsp
-rtsp_transport tcp
rtsp://localhost:8554/court_h264
volumes:
- score-data:/tmp:rw
depends_on:
- mediamtx
@@ -67,6 +59,7 @@ services:
- mediamtx
volumes:
- ${RECORDINGS_FOLDER}:/recordings
- score-data:/tmp:rw
environment:
- SQUASHKIWI_API=${SQUASHKIWI_API}
- COURT_ID=${COURT_ID}
@@ -146,6 +139,7 @@ volumes:
nginx-cache:
prometheus-data:
grafana-data:
score-data:
networks:
default: