From 094a9f520eff741ab0b5798ffdb69bb05b1b169c Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Mon, 11 Dec 2023 09:44:29 +0800 Subject: [PATCH] update --- bash/stream.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bash/stream.sh b/bash/stream.sh index e21697f..ab233a7 100644 --- a/bash/stream.sh +++ b/bash/stream.sh @@ -1,2 +1,3 @@ #!/bin/bash +device_name=`cat /home/pi/device_name` /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://192.168.1.27:554/live/$device_name \ No newline at end of file