test: Update 3 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 24s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 24s
This commit is contained in:
@@ -53,16 +53,10 @@ paths:
|
|||||||
recordSegmentDuration: 1h
|
recordSegmentDuration: 1h
|
||||||
recordDeleteAfter: 720h
|
recordDeleteAfter: 720h
|
||||||
|
|
||||||
# Generate HLS
|
# HLS is automatically generated for all paths when HLS server is enabled
|
||||||
sourceGenerateHLS: yes
|
|
||||||
|
|
||||||
# Generate WebRTC
|
|
||||||
sourceGenerateWebRTC: yes
|
|
||||||
|
|
||||||
# Sub-stream for lower bandwidth
|
# Sub-stream for lower bandwidth
|
||||||
court_sub:
|
court_sub:
|
||||||
source: rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=1
|
source: rtsp://${CAMERA_USER}:${CAMERA_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1&subtype=1
|
||||||
sourceProtocol: tcp
|
sourceProtocol: tcp
|
||||||
sourceOnDemand: yes
|
sourceOnDemand: yes
|
||||||
sourceGenerateHLS: yes
|
|
||||||
hlsSegmentDuration: 4s
|
|
@@ -17,7 +17,7 @@ CAMERA_RTSP_PORT=554
|
|||||||
|
|
||||||
# Court Configuration
|
# Court Configuration
|
||||||
COURT_ID=court1
|
COURT_ID=court1
|
||||||
COURT_NAME=Court 1
|
COURT_NAME="Court 1"
|
||||||
|
|
||||||
# SquashKiwi API
|
# SquashKiwi API
|
||||||
SQUASHKIWI_API=https://squash.kiwi/api
|
SQUASHKIWI_API=https://squash.kiwi/api
|
||||||
|
@@ -6,8 +6,9 @@
|
|||||||
if [ -z "${AGENT_PATH}" ]; then
|
if [ -z "${AGENT_PATH}" ]; then
|
||||||
# Manual execution - set paths relative to template directory
|
# Manual execution - set paths relative to template directory
|
||||||
AGENT_PATH="../../../agent/"
|
AGENT_PATH="../../../agent/"
|
||||||
source "./config/.template_info.env"
|
# Load from the actual deployed config, not template config
|
||||||
source "./config/service.env"
|
source "../config/.template_info.env"
|
||||||
|
source "../config/service.env"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source "${AGENT_PATH}/common.sh"
|
source "${AGENT_PATH}/common.sh"
|
||||||
@@ -30,8 +31,9 @@ echo "Testing RTSP URL (password hidden): rtsp://${CAMERA_USER}:****@${CAMERA_IP
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Testing with ffprobe..."
|
echo "Testing with ffprobe..."
|
||||||
docker run --rm --network host \
|
docker run --rm --network host \
|
||||||
|
--entrypoint ffprobe \
|
||||||
linuxserver/ffmpeg:latest \
|
linuxserver/ffmpeg:latest \
|
||||||
ffprobe -v error \
|
-v error \
|
||||||
"${RTSP_URL}" 2>&1 | head -20
|
"${RTSP_URL}" 2>&1 | head -20
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
@@ -43,13 +45,13 @@ else
|
|||||||
|
|
||||||
# Try without subtype parameter
|
# Try without subtype parameter
|
||||||
ALT_URL="rtsp://${CAMERA_USER}:${ENCODED_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1"
|
ALT_URL="rtsp://${CAMERA_USER}:${ENCODED_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/cam/realmonitor?channel=1"
|
||||||
docker run --rm --network host linuxserver/ffmpeg:latest \
|
docker run --rm --network host --entrypoint ffprobe linuxserver/ffmpeg:latest \
|
||||||
ffprobe -v error "${ALT_URL}" 2>&1 | head -5
|
-v error "${ALT_URL}" 2>&1 | head -5
|
||||||
|
|
||||||
# Try simple path
|
# Try simple path
|
||||||
SIMPLE_URL="rtsp://${CAMERA_USER}:${ENCODED_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/"
|
SIMPLE_URL="rtsp://${CAMERA_USER}:${ENCODED_PASSWORD}@${CAMERA_IP}:${CAMERA_RTSP_PORT}/"
|
||||||
docker run --rm --network host linuxserver/ffmpeg:latest \
|
docker run --rm --network host --entrypoint ffprobe linuxserver/ffmpeg:latest \
|
||||||
ffprobe -v error "${SIMPLE_URL}" 2>&1 | head -5
|
-v error "${SIMPLE_URL}" 2>&1 | head -5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
Reference in New Issue
Block a user