This commit is contained in:
xyj 2024-03-05 10:59:39 +08:00
parent e467a76dde
commit d1c63edfdc
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/bin/bash
device_name=`cat /home/pi/device_name`
nohup /usr/bin/ffmpeg -loglevel quiet -rtsp_transport tcp -re -i "rtsp://admin:lihai123@192.168.0.123:554/cam/realmonitor?channel=1&subtype=0" -c copy -f rtsp -rtsp_transport tcp rtsp://47.108.186.87:554/live/$device_name > /dev/null 2>&1 &
nohup /usr/bin/ffmpeg -rtsp_transport tcp -re -i "rtsp://admin:lihai123@192.168.0.123:554/cam/realmonitor?channel=1&subtype=0" -c copy -f rtsp -rtsp_transport tcp rtsp://47.108.186.87:554/live/$device_name > /dev/null 2>&1 &