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:
@@ -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
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user