gtxaspec / wz_mini_hacks

wz camera mods... make your camera better.
1.23k stars 103 forks source link

Cannot get RTSP to work on V2 cam #436

Open klingon888 opened 1 year ago

klingon888 commented 1 year ago

I've managed to install on V3 cams but no matter what I try, I cannot seem to get RTSP to work on my V2 cam. To make it less complicated, I've only set the following:

NTP_SERVER="time.google.com"

RTSP_HI_RES_ENABLED="true" RTSP_HI_RES_ENABLE_AUDIO="true" RTSP_HI_RES_MAX_BITRATE="2048" RTSP_HI_RES_TARGET_BITRATE="1024" RTSP_HI_RES_FPS="" RTSP_HI_RES_ENC_PARAMETER="2"

RTSP_AUTH_DISABLE="true"

[root@WCV3:~]# netstat -tulpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:4000 0.0.0.0: LISTEN 313/iCamera tcp 0 0 0.0.0.0:8554 0.0.0.0: LISTEN 714/v4l2rtspserver tcp 0 0 0.0.0.0:22 0.0.0.0: LISTEN 134/dropbear tcp 0 0 :::8554 ::: LISTEN 714/v4l2rtspserver tcp 0 0 :::80 ::: LISTEN 377/httpd tcp 0 0 :::22 ::: LISTEN 134/dropbear udp 0 0 0.0.0.0:45287 0.0.0.0: 313/iCamera udp 0 0 0.0.0.0:32761 0.0.0.0: 313/iCamera

Only SSH seems to work. I cannot access the cam's web page even with WEB_SERVER_ENABLED="true". I've tried Wyze FW versions 4.9.8.1002 and up to the latest 4.9.9.1574, reset and reinstalled the cam, used different SD cards, RTSP still not working.

And when I run /opt/wz_mini/bin/gather_wz_logs.sh, it just hangs on the following step: echo "gather logcat" logcat -d > /opt/wz_mini/tmp/log_gather/logcat

So I just ran "logcat -d" manually and it just spits out continuously: W/ai ( 313): _ai_polling_frame_wait timeout

Appreciate any help to get this to work. Attached are some of the logs from /opt/wz_mini/log. TQ.

logs.zip

dkropman-Slalom commented 1 year ago

Sorry, I am no help only to let you know that I have the same problem as you. I am using vlc to try view the stream and I do get prompted for my username and password and then an error.

After some playing, this worked for me

RTSP_HI_RES_ENABLED="true" RTSP_HI_RES_ENABLE_AUDIO="true" RTSP_HI_RES_FPS="" RTSP_HI_RES_MAX_BITRATE="" RTSP_HI_RES_TARGET_BITRATE="" RTSP_HI_RES_ENC_PARAMETER="2"