Skip to content

Commit 2b2aa29

Browse files
author
jh
committed
update build package script
1 parent 463c22a commit 2b2aa29

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

build_debian_package.sh

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,19 @@ EOF
7979
# Default settings for rtsp-gwc.
8080
# systemctl --user status rtsp-gwc
8181
82-
RTSP_USER=admin
83-
RTSP_PWD=admin
84-
RTSP_URL=http://192.168.2.10
85-
RTSP_PORT=9002
82+
#OPTS="-c http://192.168.1.30 -u admin -p admin --port=9002"
83+
OPTS=""
8684
EOF
8785

8886

8987
cat > ${DEB_PKG_ROOT}/etc/default/webrtc-gwc<<EOF
9088
# Default settings for webrtc-sendonly.
9189
# systemctl --user status webrtc-gwc
9290
93-
W_USER=admin
94-
W_PWD=admin1234
95-
IFACE=eth0
96-
UDPHOST=224.1.1.5
97-
W_PORT=9001
98-
CAPS=video/x-raw,width=1280,height=720,framerate=10/1,format=YUY2
91+
CAPS=video/x-raw,width=1280,height=720,framerate=10/1,format=YUY2
92+
VIDEO_PATH=/mnt/nfs
93+
#OPTS="-c \${CAPS} -u admin -p admin1234 --iface=eth0 --udpport=224.1.1.5 --port=9001 --max_time=10 --record_path=\${VIDEO_PATH}"
94+
OPTS=""
9995
EOF
10096

10197
cat > ${DEB_PKG_ROOT}/etc/systemd/user/webrtc-gwc.service <<EOF
@@ -106,8 +102,7 @@ After=multi-user.target
106102
107103
[Service]
108104
EnvironmentFile=/etc/default/webrtc-gwc
109-
ExecStart=/usr/sbin/webrtc-sendonly -c \${CAPS} --udphost=\${UDPHOST} --iface=\${IFACE} --port=\${W_PORT} -u \${W_USER} -p \${W_PWD}
110-
Restart=no
105+
ExecStart=/usr/sbin/webrtc-sendonly \${OPTS}
111106
Type=simple
112107
StandardOutput=append:/tmp/webrtc-sendoly.log
113108
StandardError=append:/tmp/webrtc-sendoly.log
@@ -143,7 +138,7 @@ After=multi-user.target
143138
144139
[Service]
145140
EnvironmentFile=/etc/default/rtsp-gwc
146-
ExecStart=/usr/sbin/rtspsrc-webrtc -c \${RTSP_URL} -u \${RTSP_USER} -p \${RTSP_PWD} --port=\${RTSP_PORT}
141+
ExecStart=/usr/sbin/rtspsrc-webrtc \${OPTS}
147142
Restart=no
148143
Type=simple
149144
StandardOutput=append:/tmp/rtsp-gwc.log

0 commit comments

Comments
 (0)