add webcam mode and change rtsp server configs, add avconv for youtube rtmp testing

This commit is contained in:
Alfonso Gamboa
2022-05-18 02:02:46 -07:00
parent b518cd5770
commit c98ecf288a
11 changed files with 88 additions and 19 deletions

8
SD_ROOT/wz_mini/etc/init.d/v3_init.sh Executable file → Normal file
View File

@@ -121,6 +121,14 @@ if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "DEBUG_ENABLED\=") == "DEBUG_ENABLED\
sed -i '/app_init.sh/,+3d' /opt/wz_mini/tmp/.storage/rcS
sed -i '/^# Run init/i/bin/sh /etc/profile' /opt/wz_mini/tmp/.storage/rcS
touch /tmp/dbgflag
else
if [[ $(cat /opt/wz_mini/run_mmc.sh | grep "ENABLE_WEB_CAM\=") == "ENABLE_WEB_CAM\=\"true\"" ]]; then
sed -i '/app_init.sh/,+3d' /opt/wz_mini/tmp/.storage/rcS
sed -i '/^# Run init/i/opt/wz_mini/etc/init.d/wz_cam.sh' /opt/wz_mini/tmp/.storage/rcS
touch /tmp/dbgflag
fi
fi
if ! [[ -e /tmp/dbgflag ]]; then

View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -x
exec 1> /opt/wz_mini/log/wz_cam.log 2>&1
mount --bind /opt/wz_mini/usr/bin /system/bin
insmod /system/driver/avpu.ko
insmod /system/driver/tx-isp-t31.ko isp_clk=220000000
insmod /system/driver/sensor_gc2053_t31.ko
insmod /system/driver/audio.ko
insmod /opt/wz_mini/lib/modules/libcomposite.ko
insmod /opt/wz_mini/lib/modules/videobuf2-vmalloc.ko
insmod /opt/wz_mini/lib/modules/usbcamera.ko
cd /system/bin/
/system/bin/ucamera &
#Set dwc2 ID_PIN driver memory
devmem 0x13500000 32 0x001100cc
devmem 0x10000040 32 0x0b000096
#wipe the bits to set the ID_PIN
devmem 0x10000040 32 0x0b000FFF