diff --git a/record.sh b/record.sh index 4684cf0..c88a259 100755 --- a/record.sh +++ b/record.sh @@ -11,7 +11,7 @@ while true; do # 构建录像文件名 OUTPUT_FILE="${OUTPUT_DIR}/${CURRENT_TIME}.mp4" # 开始录制RTSP流 - ffmpeg -rtsp_transport tcp -i "${RTSP_URL}" -c copy -c:a aac -s 1920x1080 -r 18 -crf 34 -t "${RECORD_DURATION}" -f mp4 "${OUTPUT_FILE}" + ffmpeg -rtsp_transport tcp -i "${RTSP_URL}" -c copy -c:a aac -s 1920x1080 -r 15 -crf 35 -t "${RECORD_DURATION}" -f mp4 "${OUTPUT_FILE}" # 等待1秒钟再开始录制 sleep ${INTERNAL}