|
@@ -426,14 +426,14 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
|
|
|
|
|
|
|
|
if [[ "$RTSP_HI_RES_ENC_PARAMETER" != "" ]]; then
|
|
if [[ "$RTSP_HI_RES_ENC_PARAMETER" != "" ]]; then
|
|
|
if [[ "$V2" == "true" ]]; then
|
|
if [[ "$V2" == "true" ]]; then
|
|
|
- if [[ $RTSP_HI_RES_ENC_PARAMETER =~ "^[1|2|4|8]$" ]]; then
|
|
|
|
|
|
|
+ if [[ $RTSP_HI_RES_ENC_PARAMETER =~ "^[0|1|2|4|8]$" ]]; then
|
|
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:0:4:$RTSP_HI_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:0:4:$RTSP_HI_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
|
|
sleep 5
|
|
sleep 5
|
|
|
else
|
|
else
|
|
|
echo "Invalid encoder value"
|
|
echo "Invalid encoder value"
|
|
|
fi
|
|
fi
|
|
|
else
|
|
else
|
|
|
- if [[ $RTSP_HI_RES_ENC_PARAMETER =~ "^[1|2|4|8]$" ]]; then
|
|
|
|
|
|
|
+ if [[ $RTSP_HI_RES_ENC_PARAMETER =~ "^[0|1|2|4|8]$" ]]; then
|
|
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:44:4:$RTSP_HI_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:44:4:$RTSP_HI_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
|
|
else
|
|
else
|
|
|
echo "Invalid encoder value"
|
|
echo "Invalid encoder value"
|
|
@@ -506,14 +506,14 @@ if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then
|
|
|
|
|
|
|
|
if [[ "$RTSP_LOW_RES_ENC_PARAMETER" != "" ]]; then
|
|
if [[ "$RTSP_LOW_RES_ENC_PARAMETER" != "" ]]; then
|
|
|
if [[ "$V2" == "true" ]]; then
|
|
if [[ "$V2" == "true" ]]; then
|
|
|
- if [[ $RTSP_LOW_RES_ENC_PARAMETER =~ "^[1|2|4|8]$" ]]; then
|
|
|
|
|
|
|
+ if [[ $RTSP_LOW_RES_ENC_PARAMETER =~ "^[0|1|2|4|8]$" ]]; then
|
|
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:0:4:$RTSP_LOW_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:0:4:$RTSP_LOW_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
|
|
sleep 5
|
|
sleep 5
|
|
|
else
|
|
else
|
|
|
echo "Invalid encoder value"
|
|
echo "Invalid encoder value"
|
|
|
fi
|
|
fi
|
|
|
else
|
|
else
|
|
|
- if [[ $RTSP_LOW_RES_ENC_PARAMETER =~ "^[1|2|4|8]$" ]]; then
|
|
|
|
|
|
|
+ if [[ $RTSP_LOW_RES_ENC_PARAMETER =~ "^[0|1|2|4|8]$" ]]; then
|
|
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:44:4:$RTSP_LOW_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:44:4:$RTSP_LOW_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
|
|
else
|
|
else
|
|
|
echo "Invalid encoder value"
|
|
echo "Invalid encoder value"
|