[fpv] records names autogeneration (#1190)

pull/1193/head
cronyx 2023-12-08 18:43:18 +03:00 committed by GitHub
parent 230b5e28a6
commit f4d84e6034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 4 deletions

View File

@ -212,14 +212,15 @@ copy_function() {
uni_build() {
[ -z "$BOARD" ] && BOARD=$FUNCNAME
SOC=$(echo $BOARD | cut -d '_' -f 1)
SOC=$(echo $BOARD | cut -sd '_' -f 1)
FLAVOR=$(echo $BOARD | cut -sd '_' -f 2)
set -e
if [ "$(echo $BOARD | cut -sd '_' -f 2)" == "" ]; then
BOARD="${BOARD}_lite"
if [ "${FLAVOR}" == "" ]; then
BOARD="${SOC}_lite"
fi
if [ "$BOARD" == "hi3518ev200_lite" ]; then
if [ "${SOC}_${FLAVOR}" == "hi3518ev200_lite" ]; then
NEED_AUTOUP=1
fi

View File

@ -4,6 +4,14 @@
#
. /etc/vdec.conf
if [ ! -z ${records} ]; then
for i in $(seq 1000 9000)
do
[ ! -f ${records}/video_${i}.${codec} ] && break
done
extra=$(echo ${extra} -w ${records}/video_${i}.${codec})
fi
if [ ${osd} = "simple" ]; then
osd_variant="--osd"
fi

View File

@ -29,6 +29,10 @@ mavlink_port=14750
osd=simple
### Records archive (Mount ssd, set up full path to records archive, file names generated automatically. example: /mnt/sda1/recorder)
records=
### Extra param (write in one line split by space):
# --ar [mode] - Aspect ratio mode (Default: keep)