mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 13:37:19 +00:00
add delay on v2 for impdbg commands
This commit is contained in:
parent
124cb02522
commit
d68109d1fe
@ -385,7 +385,7 @@ fi
|
|||||||
|
|
||||||
if [[ "$ENABLE_MP4_WRITE" == "true" ]]; then
|
if [[ "$ENABLE_MP4_WRITE" == "true" ]]; then
|
||||||
if [[ "$V2" == "true" ]]; then
|
if [[ "$V2" == "true" ]]; then
|
||||||
echo "mp4_write not supported on v2"
|
echo "mp4_write is not supported on v2"
|
||||||
else
|
else
|
||||||
/opt/wz_mini/bin/cmd mp4write on
|
/opt/wz_mini/bin/cmd mp4write on
|
||||||
echo "mp4_write enabled"
|
echo "mp4_write enabled"
|
||||||
@ -428,6 +428,7 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
|
|||||||
if [[ "$V2" == "true" ]]; then
|
if [[ "$V2" == "true" ]]; then
|
||||||
if [[ $RTSP_HI_RES_ENC_PARAMETER =~ "^[1|2|4|8]$" ]]; 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 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:0:4:$RTSP_HI_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
||||||
|
sleep 5
|
||||||
else
|
else
|
||||||
echo "Invalid encoder value"
|
echo "Invalid encoder value"
|
||||||
fi
|
fi
|
||||||
@ -443,6 +444,7 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
|
|||||||
if [[ "$RTSP_HI_RES_MAX_BITRATE" != "" ]]; then
|
if [[ "$RTSP_HI_RES_MAX_BITRATE" != "" ]]; then
|
||||||
if [[ "$V2" == "true" ]]; 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 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:28:4:$RTSP_HI_RES_MAX_BITRATE" > /dev/null 2>&1 &
|
||||||
|
sleep 5
|
||||||
else
|
else
|
||||||
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:52:4:$RTSP_HI_RES_MAX_BITRATE" > /dev/null 2>&1 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:52:4:$RTSP_HI_RES_MAX_BITRATE" > /dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
@ -459,6 +461,7 @@ if [[ "$RTSP_HI_RES_ENABLED" == "true" ]]; then
|
|||||||
if [[ "$RTSP_HI_RES_FPS" != "" ]]; then
|
if [[ "$RTSP_HI_RES_FPS" != "" ]]; then
|
||||||
if [[ "$V2" == "true" ]]; 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 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:8:4:$RTSP_HI_RES_FPS" > /dev/null 2>&1 &
|
||||||
|
sleep 5
|
||||||
else
|
else
|
||||||
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:80:4:$RTSP_HI_RES_FPS" > /dev/null 2>&1 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 0:80:4:$RTSP_HI_RES_FPS" > /dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
@ -505,6 +508,7 @@ if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then
|
|||||||
if [[ "$V2" == "true" ]]; then
|
if [[ "$V2" == "true" ]]; then
|
||||||
if [[ $RTSP_LOW_RES_ENC_PARAMETER =~ "^[1|2|4|8]$" ]]; 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 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:0:4:$RTSP_LOW_RES_ENC_PARAMETER" > /dev/null 2>&1 &
|
||||||
|
sleep 5
|
||||||
else
|
else
|
||||||
echo "Invalid encoder value"
|
echo "Invalid encoder value"
|
||||||
fi
|
fi
|
||||||
@ -520,6 +524,7 @@ if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then
|
|||||||
if [[ "$RTSP_LOW_RES_MAX_BITRATE" != "" ]]; then
|
if [[ "$RTSP_LOW_RES_MAX_BITRATE" != "" ]]; then
|
||||||
if [[ "$V2" == "true" ]]; 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 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:28:4:$RTSP_LOW_RES_MAX_BITRATE" > /dev/null 2>&1 &
|
||||||
|
sleep 5
|
||||||
else
|
else
|
||||||
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:52:4:$RTSP_LOW_RES_MAX_BITRATE" > /dev/null 2>&1 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:52:4:$RTSP_LOW_RES_MAX_BITRATE" > /dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
@ -536,6 +541,7 @@ if [[ "$RTSP_LOW_RES_ENABLED" == "true" ]]; then
|
|||||||
if [[ "$RTSP_LOW_RES_FPS" != "" ]]; then
|
if [[ "$RTSP_LOW_RES_FPS" != "" ]]; then
|
||||||
if [[ "$V2" == "true" ]]; 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 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:8:4:$RTSP_LOW_RES_FPS" > /dev/null 2>&1 &
|
||||||
|
sleep 5
|
||||||
else
|
else
|
||||||
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:80:4:$RTSP_LOW_RES_FPS" > /dev/null 2>&1 &
|
watch -n30 -t "/system/bin/impdbg --enc_rc_s 1:80:4:$RTSP_LOW_RES_FPS" > /dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
|
3
file.chk
3
file.chk
@ -3,10 +3,11 @@ d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/mnt/.gitignore
|
|||||||
34c6a4c3a941ff2becd9f487826d7692 SD_ROOT/wz_mini/etc/uvc.config
|
34c6a4c3a941ff2becd9f487826d7692 SD_ROOT/wz_mini/etc/uvc.config
|
||||||
58d3a10a80422e3aa1b49b046e17db5c SD_ROOT/wz_mini/etc/init.d/wz_cam.sh
|
58d3a10a80422e3aa1b49b046e17db5c SD_ROOT/wz_mini/etc/init.d/wz_cam.sh
|
||||||
4973a55d6eecc6f3559f42651ec2bee6 SD_ROOT/wz_mini/etc/init.d/v3_init.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
|
86082f8c1b7de18463731372bac630d1 SD_ROOT/wz_mini/etc/init.d/wz_post.sh
|
||||||
e3034eac02d8eda9902ca9cf89f0a586 SD_ROOT/wz_mini/etc/inittab
|
e3034eac02d8eda9902ca9cf89f0a586 SD_ROOT/wz_mini/etc/inittab
|
||||||
840aa9c26726201f7cffbf001bee193a SD_ROOT/wz_mini/etc/uvc_jxf22.config
|
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
|
8b5e58acfcbb20034dc4873a08b45fd9 SD_ROOT/wz_mini/etc/profile
|
||||||
2c2df1b9cb603f9c31c46162d6ac307f SD_ROOT/wz_mini/etc/alsa/alsa.conf
|
2c2df1b9cb603f9c31c46162d6ac307f SD_ROOT/wz_mini/etc/alsa/alsa.conf
|
||||||
9e5591da95042bcca910403bde25dc60 SD_ROOT/wz_mini/etc/fstab
|
9e5591da95042bcca910403bde25dc60 SD_ROOT/wz_mini/etc/fstab
|
||||||
|
Loading…
Reference in New Issue
Block a user