This commit is contained in:
xyj 2023-12-04 09:54:31 +08:00
parent 6f75266310
commit 8be952e08c
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ while true; do
# 构建录像文件名 # 构建录像文件名
OUTPUT_FILE="${OUTPUT_DIR}/${CURRENT_TIME}.mp4" OUTPUT_FILE="${OUTPUT_DIR}/${CURRENT_TIME}.mp4"
# 开始录制RTSP流 # 开始录制RTSP流
ffmpeg -rtsp_transport tcp -i "${RTSP_URL}" -c copy -s 1920x1080 -r 19 -crf 33 -t "${RECORD_DURATION}" -f mp4 "${OUTPUT_FILE}" ffmpeg -rtsp_transport tcp -i "${RTSP_URL}" -c copy -c:a aac -s 1920x1080 -r 19 -crf 33 -t "${RECORD_DURATION}" -f mp4 "${OUTPUT_FILE}"
# 等待1秒钟再开始录制 # 等待1秒钟再开始录制
sleep ${INTERNAL} sleep ${INTERNAL}