Optimize streaming latency: remove -re flag, add keyframe settings, reduce HLS segments, faster ICE timeout
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 21s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 21s
This commit is contained in:
@@ -9,7 +9,6 @@ fi
|
||||
|
||||
# Start ffmpeg with drawtext filter for score overlay
|
||||
exec ffmpeg \
|
||||
-re \
|
||||
-rtsp_transport tcp \
|
||||
-i rtsp://localhost:8554/court \
|
||||
-vf "drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:\
|
||||
@@ -25,7 +24,11 @@ y=10" \
|
||||
-c:v libx264 \
|
||||
-preset ultrafast \
|
||||
-tune zerolatency \
|
||||
-g 30 \
|
||||
-keyint_min 30 \
|
||||
-b:v 2M \
|
||||
-maxrate 2M \
|
||||
-bufsize 1M \
|
||||
-f rtsp \
|
||||
-rtsp_transport tcp \
|
||||
rtsp://localhost:8554/court_h264
|
Reference in New Issue
Block a user