1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-08 07:00:44 +02:00

Video settings (#405)

* Add configuration for audio
- New sub menu for audio in (mic)
- Add birate configuration
- double click on tabs name in log page will clear the logs

* Add configuration for audio
- New sub menu for audio in (mic)
- Add birate configuration
- double click on tabs name in log page will clear the logs

* New video settings
- Can configure bitrate and video format
This commit is contained in:
nik0
2018-06-03 17:46:04 +02:00
committed by Elias Kotlyar
parent 260720dc84
commit 9c94f42ee9
6 changed files with 194 additions and 62 deletions

View File

@@ -57,9 +57,14 @@ start()
AUDIOPARAM="-A"
fi
## Video format
if [ "$VIDEOFORMAT" != "" ]; then
VIDEOFORMAT="-r $VIDEOFORMAT"
fi
echo "================== START ===============" >> "$LOGPATH"
echo "/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM" >> "$LOGPATH"
/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM >> "$LOGPATH" &
echo "/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM $VIDEOFORMAT" >> "$LOGPATH"
/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master $RTSPH264OPTS $AUDIOPARAM $VIDEOFORMAT >> "$LOGPATH" &
echo "$!" > "$PIDFILE"
fi
}

View File

@@ -55,9 +55,16 @@ start()
else
AUDIOPARAM="-A"
fi
## Video format
if [ "$VIDEOFORMAT" != "" ]; then
VIDEOFORMAT="-r $VIDEOFORMAT"
fi
echo "================== START ===============" >> "$LOGPATH"
echo "/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM" >> "$LOGPATH"
/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM >> "$LOGPATH" &
echo "/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM $VIDEOFORMAT" >> "$LOGPATH"
/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master -fMJPG $RTSPMJPEGOPTS $AUDIOPARAM $VIDEOFORMAT >> "$LOGPATH" &
echo "$!" > "$PIDFILE"
fi
}