mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-10-10 09:28:04 +00:00
add second stream to rtsp
This commit is contained in:
@@ -11,11 +11,21 @@ set -x
|
||||
|
||||
echo "v3_post.sh exec"
|
||||
|
||||
if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "RTSP_ENABLED\=") == "RTSP_ENABLED\=\"true\"" ]] && ! [[ -e /tmp/dbgflag ]]; then
|
||||
|
||||
if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "RTSP_HI_RES_ENABLED\=") == "RTSP_HI_RES_ENABLED\=\"true\"" ]] || [[ $(cat /opt/wz_mini/run_mmc.sh | grep "RTSP_LOW_RES_ENABLED\=") == "RTSP_LOW_RES_ENABLED\=\"true\"" ]] && ! [[ -e /tmp/dbgflag ]]; then
|
||||
if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "RTSP_LOW_RES_ENABLED\=") == "RTSP_LOW_RES_ENABLED\=\"true\"" ]] && [[ $(cat /opt/wz_mini/run_mmc.sh | grep "RTSP_HI_RES_ENABLED\=") == "RTSP_HI_RES_ENABLED\=\"true\"" ]]; then
|
||||
echo "load video loopback driver at video1 video2"
|
||||
insmod /opt/wz_mini/lib/modules/v4l2loopback.ko video_nr=1,2
|
||||
elif [[ $(cat /opt/wz_mini/run_mmc.sh | grep "RTSP_LOW_RES_ENABLED\=") == "RTSP_LOW_RES_ENABLED\=\"true\"" ]]; then
|
||||
echo "load video loopback driver at video2"
|
||||
insmod /opt/wz_mini/lib/modules/v4l2loopback.ko video_nr=2
|
||||
elif [[ $(cat /opt/wz_mini/run_mmc.sh | grep "RTSP_HI_RES_ENABLED\=") == "RTSP_HI_RES_ENABLED\=\"true\"" ]]; then
|
||||
echo "load video loopback driver at video1"
|
||||
insmod /opt/wz_mini/lib/modules/v4l2loopback.ko video_nr=1
|
||||
fi
|
||||
|
||||
cp /system/bin/iCamera /opt/wz_mini/tmp/.storage/
|
||||
mount -o ro,bind /opt/wz_mini/usr/bin/iCamera /system/bin/iCamera
|
||||
echo "load video loopback driver at video1"
|
||||
insmod /opt/wz_mini/lib/modules/v4l2loopback.ko video_nr=1
|
||||
fi
|
||||
|
||||
##LIBRARY DEBUG
|
||||
|
Reference in New Issue
Block a user