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