Skip to content

Commit 994d0fd

Browse files
committed
debug: RTMP log追加
1 parent b99527e commit 994d0fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

overlay_rootfs/scripts/rtspserver.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ WEBRTC_ENABLE=$(awk -F "=" '/^WEBRTC_ENABLE *=/ {print $2}' $HACK_INI)
111111
cat > $GO2RTC_CONFIG << EOF
112112
log:
113113
api: trace
114-
streams: error
114+
streams: debug
115+
rtmp: debug
115116
api:
116117
origin: '*'
117118
static_dir: '/var/www-redirect'
@@ -176,5 +177,6 @@ EOF
176177
fi
177178

178179
echo -n "go2rtc: "
179-
/usr/bin/go2rtc $option -daemon
180+
#/usr/bin/go2rtc $option -daemon
181+
/usr/bin/go2rtc $option >> /tmp/log/go2rtc.log &
180182
exit 0

0 commit comments

Comments
 (0)