This commit is contained in:
xyj 2023-12-02 13:31:04 +08:00
parent 5cccf42674
commit 94d3120867
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
current_time=$(date +"%Y-%m-%d-%H-%M-%S") 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