This commit is contained in:
2026-08-29 20:35:49 +02:00
parent a8f06b0cfb
commit 636f3d7cfc
2 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ build: $(BUILD_DIR)/$(TARGET)
.PHONY: run
run: $(BUILD_DIR)/$(TARGET)
# $(BUILD_DIR)/$(TARGET) $(RUN_ARGS)
$(PROJECT_DIR)/delay.sh /dev/video0 30 640x480 25
$(PROJECT_DIR)/delay.sh
.PHONY: submodule-init
submodule-init:
+3 -6
View File
@@ -2,16 +2,13 @@
set -e
DEVICE=${1:-/dev/video0}
DELAY=${2:-30}
SIZE=${3:-1280x720}
FPS=${4:-20}
DELAY=30
rm -rf /tmp/delay_stream*
ffmpeg -f v4l2 -framerate $FPS -video_size $SIZE -i $DEVICE \
-vcodec libx264 -preset ultrafast -tune zerolatency \
ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 \
-vf scale=720:576 \
-vcodec libx264 -preset ultrafast -tune zerolatency \
-f hls -hls_time 1 -hls_list_size $((DELAY + 5)) -hls_flags delete_segments \
/tmp/delay_stream.m3u8 &
FFMPEG_PID=$!