This commit is contained in:
xyj 2023-12-07 16:54:09 +08:00
parent f14aab39fe
commit 54b6955004
2 changed files with 4 additions and 2 deletions

2
bash/stream.sh Normal file
View File

@ -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

View File

@ -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