roleoroleo / yi-hack-Allwinner-v2

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
844 stars 96 forks source link

Issue on r30gb high res #129

Closed roleoroleo closed 2 years ago

roleoroleo commented 3 years ago

Moved from this issue. https://github.com/roleoroleo/yi-hack-Allwinner-v2/issues/124#issuecomment-814193656

rRTSPServer doesn't rely on other programs to work. The only difference is about the command line options.

@GizmoLibre Please copy the new binary https://github.com/roleoroleo/yi-hack-Allwinner-v2/files/6265336/rRTSPServer.gz in the cam (/tmp/sd) and try to run it manually in this manner. Source environment, kill watchdog and process:

. /tmp/sd/yi-hack/script/env.sh
killall wd_rtsp.sh
killall rRTSPServer

Run RTSP server for high res:

RRTSP_RES=high RRTSP_AUDIO=no RRTSP_MODEL=r30gb RRTSP_DEBUG=3 /tmp/sd/rRTSPServer

or for low res:

RRTSP_RES=low RRTSP_AUDIO=no RRTSP_MODEL=r30gb RRTSP_DEBUG=3 /tmp/sd/rRTSPServer

and post the output.

GizmoLibre commented 3 years ago

putty.log

RadaKk commented 3 years ago

Hi,

I think I got the same kind of issue with a yi dome guard (r30gb - 0.1.5), I connect the cam to a Synology NAS surveillance station.

Although my RTSP stream in high or low res is stable, when I use ONVIF connection (in high res) it works for a few seconds and then the cam keeps rebooting. ONVIF connection with low res is stable.

roleoroleo commented 3 years ago

Onvif is only a protocol descriptor. When the stream starts it uses always rtsp. If you noticed a reboot using onvif, probably it's an "out of memory" problem. Try to enable swap file.

RadaKk commented 3 years ago

Yes, that was it... Thank you