update
This commit is contained in:
parent
72d496d23f
commit
0643f0ae7a
|
@ -8,5 +8,5 @@ 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流
|
||||||
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 1920x1080 -r 15 -crf 35 -t "${RECORD_DURATION}" -f mp4 "${OUTPUT_FILE}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue