This commit is contained in:
xyj 2024-01-25 16:33:38 +08:00
parent 816d9a19b3
commit 51dc7f8d5d
2 changed files with 4 additions and 1 deletions

3
bash/stream_local.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
device_name=`cat /home/pi/device_name`
/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://192.168.1.27:554/live/$device_name

View File

@ -1,6 +1,6 @@
[program:push_stream] [program:push_stream]
directory=/home/pi/agri_xumu/bash directory=/home/pi/agri_xumu/bash
command=/usr/bin/bash stream.sh command=/usr/bin/bash stream_local.sh
user=pi user=pi
autostart=true autostart=true
autorestart=true autorestart=true