Kaynağa Gözat

add delay on v2 for impdbg commands

Alfonso Gamboa 3 yıl önce
ebeveyn
işleme
d68109d1fe
2 değiştirilmiş dosya ile 9 ekleme ve 2 silme
  1. 7 1
      SD_ROOT/wz_mini/etc/init.d/wz_user.sh
  2. 2 1
      file.chk

+ 7 - 1
SD_ROOT/wz_mini/etc/init.d/wz_user.sh

@@ -385,7 +385,7 @@ fi
 
 if [[ "$ENABLE_MP4_WRITE" == "true" ]]; then
         if [[ "$V2" == "true" ]]; then
-		echo "mp4_write not supported on v2"
+		echo "mp4_write is not supported on v2"
 	else
 		/opt/wz_mini/bin/cmd mp4write on
 		echo "mp4_write enabled"
@@ -428,6 +428,7 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
                 if [[ "$V2" == "true" ]]; then
                         if [[ $RTSP_HI_RES_ENC_PARAMETER =~ "^[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 &
+				sleep 5
                         else
                                 echo "Invalid encoder value"
                         fi
@@ -443,6 +444,7 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
 	if [[ "$RTSP_HI_RES_MAX_BITRATE" != "" ]]; then
 		if [[ "$V2" == "true" ]]; then
 			watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:28:4:$RTSP_HI_RES_MAX_BITRATE" > /dev/null 2>&1 &
+			sleep 5
 		else
 			watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:52:4:$RTSP_HI_RES_MAX_BITRATE" > /dev/null 2>&1 &
 		fi
@@ -459,6 +461,7 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
 	if [[ "$RTSP_HI_RES_FPS" != "" ]]; then
 		if [[ "$V2" == "true" ]]; then
 			watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:8:4:$RTSP_HI_RES_FPS" > /dev/null 2>&1 &
+			sleep 5
 		else
 			watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:80:4:$RTSP_HI_RES_FPS" > /dev/null 2>&1 &
 		fi
@@ -505,6 +508,7 @@ if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then
                 if [[ "$V2" == "true" ]]; then
                         if [[ $RTSP_LOW_RES_ENC_PARAMETER =~ "^[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 &
+				sleep 5
                         else
                                 echo "Invalid encoder value"
                         fi
@@ -520,6 +524,7 @@ if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then
 	if [[ "$RTSP_LOW_RES_MAX_BITRATE" != "" ]]; then
 		if [[ "$V2" == "true" ]]; then
 			watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:28:4:$RTSP_LOW_RES_MAX_BITRATE" > /dev/null 2>&1 &
+			sleep 5
 		else
 			watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:52:4:$RTSP_LOW_RES_MAX_BITRATE" > /dev/null 2>&1 &
 		fi
@@ -536,6 +541,7 @@ if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then
 	if [[ "$RTSP_LOW_RES_FPS" != "" ]]; then
 		if [[ "$V2" == "true" ]]; then
 			watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:8:4:$RTSP_LOW_RES_FPS" > /dev/null 2>&1 &
+			sleep 5
 		else
 			watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:80:4:$RTSP_LOW_RES_FPS" > /dev/null 2>&1 &
 		fi

+ 2 - 1
file.chk

@@ -3,10 +3,11 @@ d41d8cd98f00b204e9800998ecf8427e  SD_ROOT/wz_mini/mnt/.gitignore
 34c6a4c3a941ff2becd9f487826d7692  SD_ROOT/wz_mini/etc/uvc.config
 58d3a10a80422e3aa1b49b046e17db5c  SD_ROOT/wz_mini/etc/init.d/wz_cam.sh
 4973a55d6eecc6f3559f42651ec2bee6  SD_ROOT/wz_mini/etc/init.d/v3_init.sh
-827e7ba29e010ef751ffb88f36fc13e5  SD_ROOT/wz_mini/etc/init.d/wz_user.sh
+5a426ea8ffaf9294f16e8b609324ce20  SD_ROOT/wz_mini/etc/init.d/wz_user.sh
 86082f8c1b7de18463731372bac630d1  SD_ROOT/wz_mini/etc/init.d/wz_post.sh
 e3034eac02d8eda9902ca9cf89f0a586  SD_ROOT/wz_mini/etc/inittab
 840aa9c26726201f7cffbf001bee193a  SD_ROOT/wz_mini/etc/uvc_jxf22.config
+2e2d5c1ebdcc16da6852e9cdd3ffc66c  SD_ROOT/wz_mini/etc/wz_mini.conf.dist
 8b5e58acfcbb20034dc4873a08b45fd9  SD_ROOT/wz_mini/etc/profile
 2c2df1b9cb603f9c31c46162d6ac307f  SD_ROOT/wz_mini/etc/alsa/alsa.conf
 9e5591da95042bcca910403bde25dc60  SD_ROOT/wz_mini/etc/fstab