i dont understand why this thread isnt the most alive one on the forum.. its like the best thing!
i dont understand why this thread isnt the most alive one on the forum.. its like the best thing!
anyway, what lines do i need to change so the "normall mode" and "station mode" change between 120fps 720 to 1080 30fps?
if that is possible yes, very usefull!so you want like this ?
normal mode: 720p 120fps
station mode: 1080p 30fps
apmode.ash & stamode.ash:
sleep 1
# video resolution 1296p
writeb 0xC06CE446 0x02
sleep 1
# bitrate 35Mbps
writew 0xC05C1006 0x420C
#!/bin/sh
# Trigger Video Mode Switch Without WiFi
# I don't test this in YiCam, should be working.
MODE=$1
LOGS=/tmp/fuse_a/custom/mode.log
if [ ! -f $LOGS ]; then
echo `ls -lR /tmp/fuse_d/DCIM/ | grep "YDXJ" | wc -l` > $LOGS
else
OLD=`cat $LOGS`
NEW=`ls -lR /tmp/fuse_d/DCIM/ | grep "YDXJ" | wc -l`
if [ $NEW -ge $(($OLD + 3)) ]; then
TOP=`ls -lcR /tmp/fuse_d/DCIM/ | grep "YDXJ" | head -6`
JPG=`echo "${TOP}" | grep ".jpg" | wc -l`
if [ $JPG -ge 3 ]; then
MP4=`echo "${TOP}" | grep "YDXJ" | head -3 | grep ".mp4" | wc -l`
if [ $MP4 -eq 0 ]; then
if [ "${MODE}" == "normal" ]; then
cp -f /tmp/fuse_a/custom/advanced.ash /tmp/fuse_d/autoexec.ash
else
cp -f /tmp/fuse_a/custom/normal.ash /tmp/fuse_d/autoexec.ash
fi
sleep 1
rm $LOGS
reboot
fi
fi
fi
fi
# video resolution 1296p
writeb 0xC06CE446 0x02
sleep 1
# bitrate 35Mbps
writew 0xC05C1006 0x420C
156 1280 720 119,88 4190 C05C1966
157 1280 720 119,88 4170 C05C1976
158 1280 720 119,88 4140 C05C1986
# video resolution 720p @ 120fps
writeb 0xC06CE446 0x34
sleep 1
# bitrate 35Mbps
writew 0xC05C1966 0x420C
156 / 3 = 52 --> hex 0x34
thanks alot,ok, found for you:
Code:# video resolution 720p @ 120fps writeb 0xC06CE446 0x34 sleep 1 # bitrate 35Mbps writew 0xC05C1966 0x420C
actual 156 is very very closed to 0x34
Code:156 / 3 = 52 --> hex 0x34