From 07a1b0c825df7d3708d2871c442a535a0bc92385 Mon Sep 17 00:00:00 2001 From: Alfonso Gamboa Date: Fri, 20 May 2022 01:22:43 -0700 Subject: [PATCH] add enable_mp4_write variable in run_mmc.sh --- SD_ROOT/wz_mini/run_mmc.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SD_ROOT/wz_mini/run_mmc.sh b/SD_ROOT/wz_mini/run_mmc.sh index 7e23472..12b9395 100755 --- a/SD_ROOT/wz_mini/run_mmc.sh +++ b/SD_ROOT/wz_mini/run_mmc.sh @@ -53,6 +53,8 @@ RTSP_LOW_RES_MAX_BITRATE="" RTSP_LOW_RES_TARGET_BITRATE="" RTSP_LOW_RES_ENC_PARAMETER="" +ENABLE_MP4_WRITE="false" + #####GENERAL##### ENABLE_SWAP="true" ENABLE_USB_STORAGE="false" @@ -356,6 +358,13 @@ else echo "remote accessory disabled" fi +if [[ "$ENABLE_MP4_WRITE" == "true" ]]; then + /opt/wz_mini/bin/cmd mp4write on + echo "mp4 write enabled" +else + echo "mp4 write disabled" +fi + if [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then if [[ "$ENABLE_SWAP" == "true" ]]; then