xmflsct / yi-hack-1080p

Xiaomi Yi camera 1080p hack
104 stars 18 forks source link

Correct firmware, telnet/ftp working, rtsp NOT working. #24

Closed corrado33 closed 5 years ago

corrado33 commented 5 years ago

I downloaded the correct firmware from xmflsct in another issue here, then installed the hack. It, at first, got stuck on setting the time until I modified the program to use google's ntp server address directly (ip address, no lookup). Now everything works... except the rtsp (which is the whole reason for this hack.)

Log file here.

Starting to log... [INIT] Your firmware version is: 2.0.0.1A_201612051401 [INIT] Killing original init.sh script. [BUSYBOX] Copy busybox 1.16.1 to system. [RTSP SERVER] Copy rtsp2301 to system. [RTSP SERVER] Copy rtsp2301_watch.sh to system. Check for wifi configuration file... /tmp/wpa_supplicant.conf /tmp/sd/test/wpa_supplicant.conf /tmp/sd/.Trashes/501/test/wpa_supplicant.conf /tmp/sd/.Trashes/501/test 9.10.44 PM/wpa_supplicant.conf Start wifi configuration... Status for wifi configuration=0 (0 is ok) Do network configuration 1/2 (IP and Gateway) Done Do network configuration 2/2 (DNS) Done Configuration is: wlan0 Link encap:Ethernet HWaddr 10:A4:BE:D6:2F:25
inet addr:192.168.1.121 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:244 errors:0 dropped:37 overruns:0 frame:0 TX packets:21 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:75884 (74.1 KiB) TX bytes:2624 (2.5 KiB)

Get time from a NTP server... Previous datetime is Thu Jan 1 00:00:29 CST 1970 Done New datetime is Thu Jan 1 00:00:29 CST 1970 Starting telnet server... Starting FTP server... Starting RTSP server... Processes after startup : PID USER TIME COMMAND 1 root 0:00 init 2 root 0:00 [kthreadd] 3 root 0:00 [ksoftirqd/0] 4 root 0:00 [kworker/0:0] 5 root 0:00 [kworker/u:0] 6 root 0:00 [khelper] 7 root 0:00 [kworker/u:1] 88 root 0:00 [sync_supers] 90 root 0:00 [bdi-default] 91 root 0:00 [kintegrityd] 93 root 0:00 [kblockd] 103 root 0:00 [khubd] 105 root 0:00 [kusbotg] 199 root 0:00 [kswapd0] 251 root 0:00 [fsnotify_mark] 264 root 0:00 [crypto] 316 root 0:00 [romblock0] 319 root 0:00 [mtdblock0] 324 root 0:00 [romblock1] 327 root 0:00 [mtdblock1] 332 root 0:00 [romblock2] 335 root 0:00 [mtdblock2] 340 root 0:00 [romblock3] 343 root 0:00 [mtdblock3] 348 root 0:00 [romblock4] 351 root 0:00 [mtdblock4] 356 root 0:00 [romblock5] 359 root 0:00 [mtdblock5] 364 root 0:00 [romblock6] 367 root 0:00 [mtdblock6] 372 root 0:00 [romblock7] 375 root 0:00 [mtdblock7] 398 root 0:00 [cfinteractive] 403 root 0:00 [kworker/0:1] 404 root 0:00 [kworker/u:2] 412 root 0:00 [deferwq] 413 root 0:00 [jffs2_gcd_mtd4] 427 root 0:00 udevd --daemon 484 root 0:00 udevd --daemon 486 root 0:00 [kworker/u:3] 488 root 0:00 udevd --daemon 547 root 0:00 [mmcqd/1] 667 root 0:00 [jffs2_gcd_mtd5] 669 root 0:00 -sh 693 root 0:00 [flush-mtd-unmap] 694 root 0:00 [flush-31:2] 695 root 0:00 [flush-179:0] 704 root 0:00 {exe} ash /home/app/script/factory_test.sh 706 root 0:00 {factory_test.sh} /bin/sh /tmp/sd/test/factory_test.sh 790 root 0:00 [RtmpTimerTask] 791 root 0:00 [RtmpMlmeTask] 792 root 0:00 [RtmpCmdQTask] 793 root 0:00 [RtmpWscTask] 802 root 0:00 /home/base/tools/wpa_supplicant -c/tmp/wpa_supplicant.conf -g/var/run/wpa_supplicant-global -iwlan0 -B 864 root 0:00 /home/app/localbin/busybox ntpd -q -p 216.239.35.0 1035 root 0:00 [hidog] 1039 root 0:00 /home/app/localbin/busybox telnetd 1042 root 0:00 /home/app/localbin/busybox tcpsvd -vE 0.0.0.0 21 /home/app/localbin/busybox ftpd -w / 1044 root 0:00 {rtsp2301_watch.} /bin/sh /home/app/localbin/rtsp2301_watch.sh 1048 root 0:00 ps 1049 root 0:00 sleep 30 Storage status : Filesystem 1024-blocks Used Available Use% Mounted on /dev/root 1280 1092 188 85% / tmpfs 15380 4 15376 0% /dev /dev/mtdblock5 12992 9652 3340 74% /home tmpfs 16384 12 16372 0% /tmp /dev/mmcblk0p1 31154688 29920 31124768 0% /tmp/sd

EDIT: I'm trying to connect to the stream with vlc. I went into VLC's settings and changed the Live555 stream transport to RTP over RTSP, then I tried opening a network stream of rtsp://192.168.1.121/ch0_0.h264 with no luck. Then I tried rtsp://192.168.1.121:554/ch0_0.h264 with no luck.

corrado33 commented 5 years ago

Nevermind, it works, for some reason it just didn't work on one of my computers.....

Thanks for this!