This commit is contained in:
xyj 2023-12-02 17:22:59 +08:00
parent 9a5ac92dd5
commit 241a2e766f
1 changed files with 1 additions and 1 deletions

View File

@ -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}"