From 241a2e766fa5b68e0451757f31c62283b2fa43c6 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 2 Dec 2023 17:22:59 +0800 Subject: [PATCH] mqtt --- record.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/record.sh b/record.sh index 65d9ed7..dd9dbef 100755 --- a/record.sh +++ b/record.sh @@ -9,7 +9,7 @@ while true; do CURRENT_TIME=$(date +"%Y-%m-%d_%H-%M-%S") # 构建录像文件名 - OUTPUT_FILE="${OUTPUT_DIR}/RECORD_${CURRENT_TIME}.mp4" + OUTPUT_FILE="${OUTPUT_DIR}/${CURRENT_TIME}.mp4" # 开始录制RTSP流 ffmpeg -rtsp_transport tcp -i "${RTSP_URL}" -c:v libx265 -vf scale=1920x1280:flags=lanczos -r 19 -crf 33 -c:a aac -t "${RECORD_DURATION}" -f mp4 "${OUTPUT_FILE}"