update
This commit is contained in:
parent
5d7919154d
commit
23c0165637
|
@ -8,4 +8,4 @@ CURRENT_TIME=$(date +"%Y-%m-%d_%H-%M-%S")
|
||||||
# 构建录像文件名
|
# 构建录像文件名
|
||||||
OUTPUT_FILE="${OUTPUT_DIR}/${CURRENT_TIME}.mp4"
|
OUTPUT_FILE="${OUTPUT_DIR}/${CURRENT_TIME}.mp4"
|
||||||
# 开始录制RTSP流
|
# 开始录制RTSP流
|
||||||
/usr/bin/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}"
|
/usr/bin/ffmpeg -rtsp_transport tcp -i "${RTSP_URL}" -c copy -c:a aac -s 1280x720 -r 15 -crf 35 -t "${RECORD_DURATION}" -f mp4 "${OUTPUT_FILE}"
|
Loading…
Reference in New Issue