File tree 3 files changed +8
-3
lines changed
src/static/static/yi-hack
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ RTSP=yes
11
11
RTSP_ALT=standard
12
12
RTSP_STREAM=high
13
13
RTSP_AUDIO=yes
14
+ RTSP_STI=yes
14
15
SPEAKER_AUDIO=yes
15
16
SNAPSHOT=yes
16
17
SNAPSHOT_VIDEO=no
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ RTSP=yes
18
18
RTSP_ALT=standard
19
19
RTSP_STREAM=high
20
20
RTSP_AUDIO=yes
21
+ RTSP_STI=yes
21
22
SPEAKER_AUDIO=yes
22
23
SNAPSHOT=yes
23
24
SNAPSHOT_VIDEO=no
Original file line number Diff line number Diff line change @@ -83,6 +83,9 @@ init_config()
83
83
84
84
RTSP_RES=$( get_config RTSP_STREAM)
85
85
RTSP_ALT=$( get_config RTSP_ALT)
86
+ if [[ $( get_config RTSP_ALT) == " standard" ]] && [[ $( get_config RTSP_STI) != " yes" ]]; then
87
+ RTSP_STI=" -s"
88
+ fi
86
89
fi
87
90
88
91
if [[ $( get_config ONVIF_NETIF) == " wlan0" ]] ; then
@@ -180,19 +183,19 @@ start_rtsp()
180
183
h264grabber -m $MODEL_SUFFIX -r low $H264GRABBER_AUDIO -f &
181
184
sleep 1
182
185
fi
183
- $RTSP_DAEMON -m $MODEL_SUFFIX -r low $RTSP_AUDIO_OPTION $P_RTSP_PORT $RTSP_USER $RTSP_PASSWORD $RTSP_AUDIO_BC &
186
+ $RTSP_DAEMON -m $MODEL_SUFFIX -r low $RTSP_STI $ RTSP_AUDIO_OPTION $P_RTSP_PORT $RTSP_USER $RTSP_PASSWORD $RTSP_AUDIO_BC &
184
187
elif [[ $RTSP_RES == " high" ]]; then
185
188
if [ " $RTSP_ALT " == " yes" ]; then
186
189
h264grabber -m $MODEL_SUFFIX -r high $H264GRABBER_AUDIO -f &
187
190
sleep 1
188
191
fi
189
- $RTSP_DAEMON -m $MODEL_SUFFIX -r high $RTSP_AUDIO_OPTION $P_RTSP_PORT $RTSP_USER $RTSP_PASSWORD $RTSP_AUDIO_BC &
192
+ $RTSP_DAEMON -m $MODEL_SUFFIX -r high $RTSP_STI $ RTSP_AUDIO_OPTION $P_RTSP_PORT $RTSP_USER $RTSP_PASSWORD $RTSP_AUDIO_BC &
190
193
elif [[ $RTSP_RES == " both" ]]; then
191
194
if [ " $RTSP_ALT " == " yes" ]; then
192
195
h264grabber -m $MODEL_SUFFIX -r both $H264GRABBER_AUDIO -f &
193
196
sleep 1
194
197
fi
195
- $RTSP_DAEMON -m $MODEL_SUFFIX -r both $RTSP_AUDIO_OPTION $P_RTSP_PORT $RTSP_USER $RTSP_PASSWORD $RTSP_AUDIO_BC &
198
+ $RTSP_DAEMON -m $MODEL_SUFFIX -r both $RTSP_STI $ RTSP_AUDIO_OPTION $P_RTSP_PORT $RTSP_USER $RTSP_PASSWORD $RTSP_AUDIO_BC &
196
199
fi
197
200
198
201
WD_COUNT=$( ps | grep wd_rtsp.sh | grep -v grep | grep -c ^)
You can’t perform that action at this time.
0 commit comments