xmflsct / yi-hack-1080p

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

RTSP does not respond #9

Open bunver opened 7 years ago

bunver commented 7 years ago

Hi, Thanks for such a good job!

Unfortunately, RTSP didn't work for me.

I'm able to access to FTP but when I try to access to RTSP via VLC player (rtsp://10.0.0.101:554/ch0_0.h264) it waits for 10 seconds in play mode, doesn't show any video just black screen and then stops.

Here is the log:

Starting to log... [INIT] Your firmware version is: 2.0.0.1A_201612231003 [INIT] Killing original init.sh script. [good] busybox 1.16.1 is in the system. [good] rtsp2301 is in the system. [good] rtsp2301_watch.sh is in the system. Check for wifi configuration file... /tmp/wpa_supplicant.conf /tmp/sd/test/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 B0:D5:9D:A8:9D:E2
inet addr:10.0.0.101 Bcast:10.0.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2736 errors:0 dropped:12 overruns:0 frame:0 TX packets:38 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:607435 (593.1 KiB) TX bytes:4654 (4.5 KiB)

Get time from a NTP server... Previous datetime is Thu Jan 1 00:00:33 CST 1970 Done New datetime is Thu Jan 1 00:00:33 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 [kworker/u:3] 497 root 0:00 udevd --daemon 501 root 0:00 udevd --daemon 552 root 0:00 [mmcqd/1] 668 root 0:00 [jffs2_gcd_mtd5] 670 root 0:00 -sh 694 root 0:00 [flush-mtd-unmap] 695 root 0:00 [flush-31:2] 696 root 0:00 [flush-179:0] 705 root 0:00 {exe} ash /home/app/script/factory_test.sh 707 root 0:00 {factory_test.sh} /bin/sh /tmp/sd/test/factory_test.sh 785 root 0:00 [RtmpTimerTask] 786 root 0:00 [RtmpMlmeTask] 787 root 0:00 [RtmpCmdQTask] 788 root 0:00 [RtmpWscTask] 797 root 0:00 /home/base/tools/wpa_supplicant -c/tmp/wpa_supplicant.conf -g/var/run/wpa_supplicant-global -iwlan0 -B 874 root 0:00 /home/app/localbin/busybox ntpd -q -p 2.pool.ntp.org 1045 root 0:00 [hidog] 1049 root 0:00 /home/app/localbin/busybox telnetd 1052 root 0:00 /home/app/localbin/busybox tcpsvd -vE 0.0.0.0 21 /home/app/localbin/busybox ftpd -w / 1054 root 0:00 {rtsp2301_watch.} /bin/sh /home/app/localbin/rtsp2301_watch.sh 1058 root 0:00 ps 1060 root 0:00 /home/app/localbin/rtsp2301 1062 root 0:00 sleep 30 Storage status : Filesystem 1024-blocks Used Available Use% Mounted on /dev/root 1280 1124 156 88% / tmpfs 15380 4 15376 0% /dev /dev/mtdblock5 12992 8864 4128 68% /home tmpfs 16384 12 16372 0% /tmp /dev/mmcblk0p1 31248384 2816 31245568 0% /tmp/sd

Thanks for the help!

xmflsct commented 7 years ago

According to the log, your firmware version is higher than required. I will send you a firmware image later today for you to flash. After that, RTSP should be working.

bunver commented 7 years ago

Thanks, waiting for that!

xmflsct commented 7 years ago

@bunver here you are. home_y20.zip

bunver commented 7 years ago

Thank you a lot @xmflsct ! Firmware successfully downgraded and I'm able to access RTSP streaming. Everything is fine. Can I ask a favor? I need the function below like death2all110 did before,

Motion notifications

Optionally POST a JSON message of the status of motion detection to a URL

Values : URL to POST notification to, or leave empty to disable

MOTION_NOTIFICATION_URL=

is that possible?

raymondlml commented 6 years ago

Hi, I have the same problem but with the correct firmware. Can you please help to take a look to see what went wrong? Thanks!

Starting to log... [INIT] Your firmware version is: 2.0.0.1A_201612051401 [INIT] Killing original init.sh script. [good] busybox 1.16.1 is in the system. [good] rtsp2301 is in the system. [good] rtsp2301_watch.sh is in the system. Check for wifi configuration file... /tmp/wpa_supplicant.conf /tmp/sd/test/wpa_supplicant.conf Start wifi configuration... Status for wifi configuration=0 (0 is ok) Do network configuration (DHCP) Done Configuration is: wlan0 Link encap:Ethernet HWaddr 08:EA:40:8D:F7:BF
inet addr:192.168.11.11 Bcast:192.168.11.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1200 Metric:1 RX packets:139 errors:0 dropped:0 overruns:0 frame:0 TX packets:26 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:34340 (33.5 KiB) TX bytes:3502 (3.4 KiB)

Get time from a NTP server... Previous datetime is Thu Jan 1 08:00:20 HKT 1970 Done New datetime is Thu Jan 1 08:00:30 HKT 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 477 root 0:00 udevd --daemon 484 root 0:00 [kworker/u:3] 490 root 0:00 udevd --daemon 548 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] 702 root 0:00 {exe} ash /home/app/script/factory_test.sh 704 root 0:00 {factory_test.sh} /bin/sh /tmp/sd/test/factory_test.sh 782 root 0:00 [RtmpTimerTask] 783 root 0:00 [RtmpMlmeTask] 784 root 0:00 [RtmpCmdQTask] 785 root 0:00 [RtmpWscTask] 794 root 0:00 /home/base/tools/wpa_supplicant -c/tmp/wpa_supplicant.conf -g/var/run/wpa_supplicant-global -iwlan0 -B 831 root 0:00 /sbin/udhcpc -i wlan0 -b -s /home/app/script/default.script 852 root 0:00 /home/app/localbin/busybox ntpd -q -p 0.nl.pool.ntp.org 1023 root 0:00 [hidog] 1027 root 0:00 /home/app/localbin/busybox telnetd 1030 root 0:00 /home/app/localbin/busybox tcpsvd -vE 0.0.0.0 21 /home/app/localbin/busybox ftpd -w / 1032 root 0:00 {rtsp2301_watch.} /bin/sh /home/app/localbin/rtsp2301_watch.sh 1036 root 0:00 ps 1038 root 0:00 /home/app/localbin/rtsp2301 1040 root 0:00 sleep 30 Storage status : Filesystem 1024-blocks Used Available Use% Mounted on /dev/root 1280 1088 192 85% / tmpfs 15380 4 15376 0% /dev /dev/mtdblock5 12992 9652 3340 74% /home tmpfs 16384 28 16356 0% /tmp /dev/mmcblk0p1 7740164 2456 7737708 0% /tmp/sd