mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-08 15:10:45 +02:00
Add multicast to rtsp config & controlscript (#1263)
This commit is contained in:
@@ -79,6 +79,11 @@ start()
|
||||
PORT="-P $PORT"
|
||||
fi
|
||||
|
||||
## Multicast
|
||||
if [ "$MULTICASTDEST" != "" ]; then
|
||||
MULTICASTDEST="-M $MULTICASTDEST"
|
||||
fi
|
||||
|
||||
## FLIP
|
||||
if [ "$FLIP" == "ON" ]; then
|
||||
/system/sdcard/bin/setconf -k f -v 1
|
||||
@@ -87,9 +92,9 @@ start()
|
||||
fi
|
||||
|
||||
echo "================== START ===============" >> "$LOGPATH"
|
||||
echo "/system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT" >> "$LOGPATH"
|
||||
echo "/system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT $MULTICASTDEST" >> "$LOGPATH"
|
||||
cd /system/sdcard/hls
|
||||
/system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT 2>> "$LOGPATH" >> "$LOGPATH" &
|
||||
/system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT $MULTICASTDEST 2>> "$LOGPATH" >> "$LOGPATH" &
|
||||
echo "$!" > "$PIDFILE"
|
||||
fi
|
||||
}
|
||||
|
@@ -77,6 +77,11 @@ start()
|
||||
PORT="-P $PORT"
|
||||
fi
|
||||
|
||||
## Multicast
|
||||
if [ "$MULTICASTDEST" != "" ]; then
|
||||
MULTICASTDEST="-M $MULTICASTDEST"
|
||||
fi
|
||||
|
||||
## FLIP
|
||||
if [ "$FLIP" == "ON" ]; then
|
||||
/system/sdcard/bin/setconf -k f -v 1
|
||||
@@ -85,8 +90,8 @@ start()
|
||||
fi
|
||||
|
||||
echo "================== START ===============" >> "$LOGPATH"
|
||||
echo "/system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT" >> "$LOGPATH"
|
||||
/system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT 2>> "$LOGPATH" >> "$LOGPATH" &
|
||||
echo "/system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT $MULTICASTDEST" >> "$LOGPATH"
|
||||
/system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM $VIDEOFORMAT $CREDENTIAL $PORT $MULTICASTDEST 2>> "$LOGPATH" >> "$LOGPATH" &
|
||||
echo "$!" > "$PIDFILE"
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user