mirror of
https://github.com/serengil/deepface.git
synced 2025-07-29 14:21:39 +00:00
save stream
This commit is contained in:
parent
6277f8cfae
commit
73ef25fd9e
23
save_stream.sh
Normal file
23
save_stream.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
while true
|
||||
do
|
||||
IP=(rtsp://admin:123456@192.168.123.235:554/stream1 \
|
||||
rtsp://admin:123456@192.168.123.235:554/stream1 \
|
||||
rtsp://admin:123456@192.168.123.235:554/stream2 \
|
||||
rtsp://admin:123456@192.168.123.235:554/stream2 \
|
||||
)
|
||||
a=0
|
||||
splite="_"
|
||||
for ip in ${IP[*]}
|
||||
do
|
||||
a=$(($a+1))
|
||||
date_time=$(date "+%Y_%m_%d")
|
||||
SAVE_PATH="/home/pc001/e/lcn/stream/$a/${date_time}"
|
||||
if [ ! -d ${SAVE_PATH} ];then mkdir -p ${SAVE_PATH}; fi
|
||||
(ffmpeg -i $ip -codec:a aac -b:a 64k -codec:v libx264 -b:v 768k -r 15 -t 60 -s 1280x720 ${SAVE_PATH}/$a${splite}`date +%Y%m%d-%H%M`.mkv
|
||||
)&
|
||||
done
|
||||
done
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user