From 2546e9435564f55204bf1d6d328e4b1cb9ed72ec Mon Sep 17 00:00:00 2001
From: xyj <1090822794@qq.com>
Date: Tue, 5 Mar 2024 10:49:53 +0800
Subject: [PATCH] update
---
.idea/workspace.xml | 11 ++++++++++-
bash/stream.sh | 2 +-
forever.py | 1 +
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 9e1c9ec..c333ed4 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -6,6 +6,7 @@
+
@@ -371,7 +372,15 @@
1709603862500
-
+
+
+ 1709603965369
+
+
+
+ 1709603965369
+
+
diff --git a/bash/stream.sh b/bash/stream.sh
index d39990b..da5a388 100644
--- a/bash/stream.sh
+++ b/bash/stream.sh
@@ -1,3 +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://47.108.186.87:554/live/$device_name
\ No newline at end of file
+/usr/bin/ffmpeg -loglevel quiet -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://47.108.186.87:554/live/$device_name
\ No newline at end of file
diff --git a/forever.py b/forever.py
index e2f8aaa..c44ad22 100644
--- a/forever.py
+++ b/forever.py
@@ -3,6 +3,7 @@ import time
import subprocess
+
def job():
subprocess.Popen(['supervisorctl restart push_stream'], shell=True)