lot_manager/record.sh

4 lines
261 B
Bash
Executable File

#!/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