diff --git a/bash/stream.sh b/bash/stream.sh new file mode 100644 index 0000000..74fb4b4 --- /dev/null +++ b/bash/stream.sh @@ -0,0 +1,2 @@ +#!/bin/bash +/usr/bin/ffmpeg -rtsp_transport tcp -re -i rtsp://admin:123456@192.168.0.123:554/mpeg4 -c copy -preset fast -r 20 -flvflags no_duration_filesize -f rtsp -rtsp_transport tcp rtsp://47.108.186.87:554/live/$device_name \ No newline at end of file diff --git a/conf/var/test/push_stream.conf b/conf/var/test/push_stream.conf index 6f4191b..df0357d 100644 --- a/conf/var/test/push_stream.conf +++ b/conf/var/test/push_stream.conf @@ -1,6 +1,6 @@ [program:push_stream] -directory=/home/pi/lot_manager -command=/usr/bin/ffmpeg -rtsp_transport tcp -re -i rtsp://admin:123456@192.168.0.123:554/mpeg4 -c copy -preset fast -r 20 -flvflags no_duration_filesize -f rtsp -rtsp_transport tcp rtsp://47.108.186.87:554/live/test +directory=/home/pi/lot_manager/bash +command=/usr/bin/bash stream.sh user=pi autostart=false autorestart=true