diff --git a/bash/stream_local.sh b/bash/stream_local.sh new file mode 100644 index 0000000..bc0382b --- /dev/null +++ b/bash/stream_local.sh @@ -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 \ No newline at end of file diff --git a/conf/common/push_stream.conf b/conf/common/push_stream.conf index 2cf5ed5..c89d33d 100644 --- a/conf/common/push_stream.conf +++ b/conf/common/push_stream.conf @@ -1,6 +1,6 @@ [program:push_stream] directory=/home/pi/agri_xumu/bash -command=/usr/bin/bash stream.sh +command=/usr/bin/bash stream_local.sh user=pi autostart=true autorestart=true