From 94d31208676027fd26416f94fb18a60422c79d01 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sat, 2 Dec 2023 13:31:04 +0800 Subject: [PATCH] mqtt --- record.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/record.sh b/record.sh index d0a651b..8f7d68d 100755 --- a/record.sh +++ b/record.sh @@ -1,3 +1,3 @@ #!/bin/bash current_time=$(date +"%Y-%m-%d-%H-%M-%S") -ffmpeg -rtsp_transport tcp -i rtsp://admin:123456@192.168.0.123:554/mpeg4 -c:v libx265 -preset fast -crf 31 -c:a aac -vf scale=1920x1280:flags=lanczos -f mp4 segment -segment_time 900 file_$current_time.mp4 +ffmpeg -rtsp_transport tcp -i rtsp://admin:123456@192.168.0.123:554/mpeg4 -c:v libx265 -preset fast -crf 31 -c:a aac -vf scale=1920x1280:flags=lanczos -f mp4 segment -segment_time 900 /home/pi/mp4/file_$current_time.mp4