Closed asecor closed 5 years ago
I don't know the cause but this looks relevant:
2018-06-21 01:00:34.964 ( 2.313s) [main thread ] ImpEncoder.cpp:1172 ERR| ##### sensor not found
2018-06-21 01:00:34.967 ( 2.317s) [main thread ] ImpEncoder.cpp:1185 0| Found Sensor with ID:-1
-1 == SENSOR_TYPE_INVALID
Could you please run:
echo 1 >/proc/jz/sinfo/info cat /proc/jz/sinfo/info
and post the output here?
Hi @EliasKotlyar, thanks for checking. This is the output:
[root@S1:~]# echo 1 >/proc/jz/sinfo/info
[root@S1:~]# cat /proc/jz/sinfo/info
sensor not found
[root@S1:~]# ls /proc/
1/ 149/ 2/ 39/ 73/ cpu-feature-override iomem locks proc-pmon tty/
10/ 15/ 20/ 4/ 8/ cpuinfo ioports meminfo scsi/ uid_stat/
101/ 152/ 21/ 5/ 81/ crypto irq/ misc self/ uptime
102/ 17/ 22/ 56/ 9/ devices jz/ modules softirqs version
103/ 170/ 23/ 6/ 98/ diskstats kallsyms mounts stat vmallocinfo
11/ 18/ 2517/ 60/ buddyinfo driver/ kcore mtd swaps vmstat
112/ 185/ 2518/ 62/ bus/ execdomains kmsg net/ sys/ zoneinfo
12/ 188/ 3/ 64/ cgroups filesystems kpagecount pagetypeinfo sysrq-trigger
13/ 19/ 37/ 66/ cmdline fs/ kpageflags partitions sysvipc/
14/ 192/ 38/ 7/ consoles interrupts loadavg proc-exec timer_list
[root@S1:~]# ls /proc/jz/
audio/ clock/ ddr/ debug/ gpio/ isp/ motor/ reset/ sinfo/ vic/
[root@S1:~]# ls /proc/jz/sinfo/info .
.ash_history .busybox_aliases .profile
If it's of any help, I have observed that after a restart (or start-up) when connected to the RTSP stream (via VLC in this case) after around 1:30 minutes the "rtsp-h264" services crashes and have to restart the whole camera to repeat the same issue:
Content of v4l2rtspserver-master.log
================== START ===============
/system/sdcard/bin/v4l2rtspserver-master -E MP3:44100
1970-01-01 08:00:16.581 ( 0.004s) [main thread ] main.cpp:443 0| === Dumping environment variables ===
1970-01-01 08:00:16.582 ( 0.005s) [main thread ] main.cpp:446 0| USER=root
1970-01-01 08:00:16.582 ( 0.005s) [main thread ] main.cpp:446 0| LD_LIBRARY_PATH=/system/sdcard/lib/:/thirdlib:/system/lib
1970-01-01 08:00:16.583 ( 0.005s) [main thread ] main.cpp:446 0| SHLVL=2
1970-01-01 08:00:16.583 ( 0.005s) [main thread ] main.cpp:446 0| HOME=/
1970-01-01 08:00:16.583 ( 0.006s) [main thread ] main.cpp:446 0| OLDPWD=/sys/class/gpio
1970-01-01 08:00:16.583 ( 0.006s) [main thread ] main.cpp:446 0| OPENSSL_CONF=/system/sdcard/config/openssl.cnf
1970-01-01 08:00:16.584 ( 0.006s) [main thread ] main.cpp:446 0| TERM=vt102
1970-01-01 08:00:16.584 ( 0.006s) [main thread ] main.cpp:446 0| PATH=/system/bin:/bin:/sbin:/usr/bin:/usr/sbin
1970-01-01 08:00:16.584 ( 0.007s) [main thread ] main.cpp:446 0| SHELL=/bin/sh
1970-01-01 08:00:16.584 ( 0.007s) [main thread ] main.cpp:446 0| PWD=/sys/class/gpio/gpio77
1970-01-01 08:00:16.584 ( 0.007s) [main thread ] main.cpp:446 0| rmem=15644K@0x30B9000
1970-01-01 08:00:16.585 ( 0.007s) [main thread ] main.cpp:449 0| === end ===
1970-01-01 08:00:18.882 ( 2.304s) [main thread ] ImpEncoder.cpp:1172 ERR| ##### sensor not found
1970-01-01 08:00:18.885 ( 2.308s) [main thread ] ImpEncoder.cpp:1185 0| Found Sensor with ID:-1
1970-01-01 08:00:19.410 ( 2.833s) [main thread ] ImpEncoder.cpp:1423 0| encoderMode: 2
1970-01-01 08:00:19.411 ( 2.833s) [main thread ] ImpEncoder.cpp:1462 0| Using VBR mode.
1970-01-01 08:00:19.411 ( 2.834s) [main thread ] ImpEncoder.cpp:1467 0| Set initial bitrate (from sharedmem) to 5000
i264e[info]: profile Constrained Baseline, level 3.1
1970-01-01 08:00:19.446 ( 2.869s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 0,0,1279,36
1970-01-01 08:00:19.448 ( 2.870s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 1240,0,1279,39
1970-01-01 08:00:20.462 ( 3.884s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
1970-01-01 08:00:20.466 ( 3.888s) [main thread ] main.cpp:557 0| Create ALSA Source.../dev/dsp
1970-01-01 08:00:20.466 ( 3.889s) [main thread ] ALSACapture.cpp:94 0| Audio In GetPubAttr samplerate : 8000
1970-01-01 08:00:20.466 ( 3.889s) [main thread ] ALSACapture.cpp:95 0| Audio In GetPubAttr bitwidth : 16
1970-01-01 08:00:20.467 ( 3.889s) [main thread ] ALSACapture.cpp:96 0| Audio In GetPubAttr soundmode : 1
1970-01-01 08:00:20.467 ( 3.889s) [main thread ] ALSACapture.cpp:97 0| Audio In GetPubAttr frmNum : 40
1970-01-01 08:00:20.467 ( 3.890s) [main thread ] ALSACapture.cpp:98 0| Audio In GetPubAttr numPerFrm : 1600
1970-01-01 08:00:20.467 ( 3.890s) [main thread ] ALSACapture.cpp:99 0| Audio In GetPubAttr chnCnt : 1
1970-01-01 08:00:20.485 ( 3.907s) [update_thread ] ImpEncoder.cpp:413 0| Attempt to changed Bitrate to 5000
1970-01-01 08:00:20.485 ( 3.908s) [update_thread ] ImpEncoder.cpp:431 0| Setting VBR maxBitrate.
1970-01-01 08:00:20.485 ( 3.908s) [update_thread ] ImpEncoder.cpp:511 0| Changed motion sensitivity=4
1970-01-01 08:00:20.486 ( 3.908s) [update_thread ] ImpEncoder.cpp:652 0| Detection region= ((0,0)-(1279,719))
1970-01-01 08:00:20.493 ( 3.915s) [update_thread ] ImpEncoder.cpp:516 0| Changed motion region
1970-01-01 08:00:20.493 ( 3.916s) [update_thread ] ImpEncoder.cpp:524 0| Display motion OSD color=2
1970-01-01 08:00:20.886 ( 4.308s) [main thread ] ALSACapture.cpp:126 0| Audio In GetChnParam usrFrmDepth : 20
1970-01-01 08:00:20.887 ( 4.309s) [main thread ] ALSACapture.cpp:154 0| Audio In GetVol vol : 70
1970-01-01 08:00:21.059 ( 4.482s) [main thread ] ALSACapture.cpp:379 0| Enabled highfilter
1970-01-01 08:00:21.060 ( 4.483s) [main thread ] ALSACapture.cpp:396 0| NS Filter=1
1970-01-01 08:00:21.165 ( 4.588s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
1970-01-01 08:00:21.166 ( 4.588s) [DeviceSource ] ALSACapture.cpp:379 0| Enabled highfilter
1970-01-01 08:00:21.166 ( 4.588s) [DeviceSource ] ALSACapture.cpp:396 0| NS Filter=1
1970-01-01 08:00:21.172 ( 4.595s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.178.37:8554/unicast"
1970-01-01 08:00:22.647 ( 6.070s) [ivsMoveDetection] ImpEncoder.cpp:558 0| Will execute command /system/sdcard/scripts/detectionOn.sh
1970-01-01 08:00:22.650 ( 6.073s) [ivsMoveDetection] ImpEncoder.cpp:560 0| Execute /system/sdcard/scripts/detectionOn.sh returned:-1
1970-01-01 08:00:22.650 ( 6.073s) [ivsMoveDetection] ImpEncoder.cpp:752 0| Detect !!
1970-01-01 08:00:24.712 ( 8.135s) [ivsMoveDetection] ImpEncoder.cpp:558 0| Will execute command /system/sdcard/scripts/detectionOff.sh
1970-01-01 08:00:24.715 ( 8.138s) [ivsMoveDetection] ImpEncoder.cpp:560 0| Execute /system/sdcard/scripts/detectionOff.sh returned:-1
1970-01-01 08:00:26.768 ( 10.191s) [ivsMoveDetection] ImpEncoder.cpp:558 0| Will execute command /system/sdcard/scripts/detectionOn.sh
1970-01-01 08:00:26.771 ( 10.194s) [ivsMoveDetection] ImpEncoder.cpp:560 0| Execute /system/sdcard/scripts/detectionOn.sh returned:-1
1970-01-01 08:00:26.772 ( 10.194s) [ivsMoveDetection] ImpEncoder.cpp:752 0| Detect !!
1970-01-01 08:00:28.847 ( 12.269s) [ivsMoveDetection] ImpEncoder.cpp:558 0| Will execute command /system/sdcard/scripts/detectionOff.sh
1970-01-01 08:00:28.851 ( 12.273s) [ivsMoveDetection] ImpEncoder.cpp:560 0| Execute /system/sdcard/scripts/detectionOff.sh returned:-1
1970-01-01 08:00:37.007 ( 20.429s) [ivsMoveDetection] ImpEncoder.cpp:558 0| Will execute command /system/sdcard/scripts/detectionOn.sh
1970-01-01 08:00:37.010 ( 20.433s) [ivsMoveDetection] ImpEncoder.cpp:560 0| Execute /system/sdcard/scripts/detectionOn.sh returned:-1
1970-01-01 08:00:37.010 ( 20.433s) [ivsMoveDetection] ImpEncoder.cpp:752 0| Detect !!
1970-01-01 08:00:39.045 ( 22.468s) [ivsMoveDetection] ImpEncoder.cpp:558 0| Will execute command /system/sdcard/scripts/detectionOff.sh
1970-01-01 08:00:39.048 ( 22.470s) [ivsMoveDetection] ImpEncoder.cpp:560 0| Execute /system/sdcard/scripts/detectionOff.sh returned:-1
1970-01-01 08:00:41.102 ( 24.525s) [ivsMoveDetection] ImpEncoder.cpp:558 0| Will execute command /system/sdcard/scripts/detectionOn.sh
1970-01-01 08:00:41.111 ( 24.533s) [ivsMoveDetection] ImpEncoder.cpp:560 0| Execute /system/sdcard/scripts/detectionOn.sh returned:-1
1970-01-01 08:00:41.111 ( 24.534s) [ivsMoveDetection] ImpEncoder.cpp:752 0| Detect !!
1970-01-01 08:00:43.170 ( 26.592s) [ivsMoveDetection] ImpEncoder.cpp:558 0| Will execute command /system/sdcard/scripts/detectionOff.sh
1970-01-01 08:00:43.172 ( 26.595s) [ivsMoveDetection] ImpEncoder.cpp:560 0| Execute /system/sdcard/scripts/detectionOff.sh returned:-1
2018-06-24 23:51:17.130 (1529855460.553s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-24 23:51:17.130 (1529855460.553s) [main thread ]ServerMediaSubsession.c:29 Creating H264 Source...
2018-06-24 23:51:17.137 (1529855460.560s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : video/H264
2018-06-24 23:51:17.143 (1529855460.566s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-24 23:51:17.143 (1529855460.566s) [main thread ]ServerMediaSubsession.c:42 Creating normal Source...
2018-06-24 23:51:17.144 (1529855460.566s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : audio/MPEG
2018-06-24 23:51:17.160 (1529855460.582s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-24 23:51:17.160 (1529855460.583s) [main thread ]ServerMediaSubsession.c:29 Creating H264 Source...
2018-06-24 23:51:17.161 (1529855460.583s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : video/H264
2018-06-24 23:51:17.168 (1529855460.591s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-24 23:51:17.169 (1529855460.592s) [main thread ]ServerMediaSubsession.c:42 Creating normal Source...
2018-06-24 23:51:17.170 (1529855460.593s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : audio/MPEG
RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
2018-06-24 23:51:26.951 (1529855470.374s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOn.sh
2018-06-24 23:51:26.954 (1529855470.376s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOn.sh returned:-1
2018-06-24 23:51:26.954 (1529855470.377s) [ivsMoveDetection] ImpEncoder.cpp:752 Detect !!
2018-06-24 23:51:28.998 (1529855472.421s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOff.sh
2018-06-24 23:51:29.010 (1529855472.432s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOff.sh returned:-1
2018-06-24 23:51:35.170 (1529855478.593s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOn.sh
2018-06-24 23:51:35.174 (1529855478.596s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOn.sh returned:-1
2018-06-24 23:51:35.174 (1529855478.597s) [ivsMoveDetection] ImpEncoder.cpp:752 Detect !!
2018-06-24 23:51:37.229 (1529855480.652s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOff.sh
2018-06-24 23:51:37.233 (1529855480.656s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOff.sh returned:-1
2018-06-24 17:53:33.664 (1529855597.087s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-24 17:53:33.665 (1529855597.087s) [main thread ]ServerMediaSubsession.c:29 Creating H264 Source...
2018-06-24 17:53:33.665 (1529855597.088s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : video/H264
2018-06-24 17:53:33.686 (1529855597.109s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-24 17:53:33.687 (1529855597.110s) [main thread ]ServerMediaSubsession.c:42 Creating normal Source...
2018-06-24 17:53:33.688 (1529855597.111s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : audio/MPEG
RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
================== START ===============
/system/sdcard/bin/v4l2rtspserver-master -E MP3:44100
2018-06-25 20:10:51.657 ( 0.004s) [main thread ] main.cpp:443 0| === Dumping environment variables ===
2018-06-25 20:10:51.658 ( 0.005s) [main thread ] main.cpp:446 0| USER=root
2018-06-25 20:10:51.658 ( 0.005s) [main thread ] main.cpp:446 0| LD_LIBRARY_PATH=/system/sdcard/lib/:/thirdlib:/system/lib
2018-06-25 20:10:51.659 ( 0.005s) [main thread ] main.cpp:446 0| SHLVL=2
2018-06-25 20:10:51.659 ( 0.005s) [main thread ] main.cpp:446 0| HOME=/
2018-06-25 20:10:51.659 ( 0.006s) [main thread ] main.cpp:446 0| OLDPWD=/sys/class/gpio
2018-06-25 20:10:51.659 ( 0.006s) [main thread ] main.cpp:446 0| TERM=vt102
2018-06-25 20:10:51.660 ( 0.006s) [main thread ] main.cpp:446 0| PATH=/system/bin:/bin:/sbin:/usr/bin:/usr/sbin
2018-06-25 20:10:51.660 ( 0.006s) [main thread ] main.cpp:446 0| SHELL=/bin/sh
2018-06-25 20:10:51.660 ( 0.007s) [main thread ] main.cpp:446 0| PWD=/sys/class/gpio/gpio77
2018-06-25 20:10:51.660 ( 0.007s) [main thread ] main.cpp:446 0| rmem=15644K@0x30B9000
2018-06-25 20:10:51.660 ( 0.007s) [main thread ] main.cpp:449 0| === end ===
2018-06-25 20:10:53.958 ( 2.305s) [main thread ] ImpEncoder.cpp:1172 ERR| ##### sensor not found
2018-06-25 20:10:53.962 ( 2.308s) [main thread ] ImpEncoder.cpp:1185 0| Found Sensor with ID:-1
2018-06-25 20:10:54.486 ( 2.833s) [main thread ] ImpEncoder.cpp:1423 0| encoderMode: 2
2018-06-25 20:10:54.487 ( 2.833s) [main thread ] ImpEncoder.cpp:1462 0| Using VBR mode.
2018-06-25 20:10:54.487 ( 2.833s) [main thread ] ImpEncoder.cpp:1467 0| Set initial bitrate (from sharedmem) to 5000
i264e[info]: profile Constrained Baseline, level 3.1
2018-06-25 20:10:54.512 ( 2.859s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 0,0,1279,36
2018-06-25 20:10:54.514 ( 2.861s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 1240,0,1279,39
2018-06-25 20:10:55.529 ( 3.876s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
2018-06-25 20:10:55.532 ( 3.878s) [main thread ] main.cpp:557 0| Create ALSA Source.../dev/dsp
2018-06-25 20:10:55.533 ( 3.880s) [update_thread ] ImpEncoder.cpp:413 0| Attempt to changed Bitrate to 5000
2018-06-25 20:10:55.533 ( 3.880s) [update_thread ] ImpEncoder.cpp:431 0| Setting VBR maxBitrate.
2018-06-25 20:10:55.534 ( 3.880s) [update_thread ] ImpEncoder.cpp:511 0| Changed motion sensitivity=4
2018-06-25 20:10:55.534 ( 3.881s) [update_thread ] ImpEncoder.cpp:652 0| Detection region= ((0,0)-(1279,719))
2018-06-25 20:10:55.532 ( 3.879s) [main thread ] ALSACapture.cpp:94 0| Audio In GetPubAttr samplerate : 8000
2018-06-25 20:10:55.536 ( 3.883s) [main thread ] ALSACapture.cpp:95 0| Audio In GetPubAttr bitwidth : 16
2018-06-25 20:10:55.537 ( 3.883s) [main thread ] ALSACapture.cpp:96 0| Audio In GetPubAttr soundmode : 1
2018-06-25 20:10:55.537 ( 3.884s) [main thread ] ALSACapture.cpp:97 0| Audio In GetPubAttr frmNum : 40
2018-06-25 20:10:55.537 ( 3.884s) [main thread ] ALSACapture.cpp:98 0| Audio In GetPubAttr numPerFrm : 1600
2018-06-25 20:10:55.537 ( 3.884s) [main thread ] ALSACapture.cpp:99 0| Audio In GetPubAttr chnCnt : 1
2018-06-25 20:10:55.553 ( 3.900s) [update_thread ] ImpEncoder.cpp:516 0| Changed motion region
2018-06-25 20:10:55.554 ( 3.900s) [update_thread ] ImpEncoder.cpp:524 0| Display motion OSD color=2
2018-06-25 20:10:55.953 ( 4.299s) [main thread ] ALSACapture.cpp:126 0| Audio In GetChnParam usrFrmDepth : 20
2018-06-25 20:10:55.954 ( 4.301s) [main thread ] ALSACapture.cpp:154 0| Audio In GetVol vol : 70
2018-06-25 20:10:56.131 ( 4.478s) [main thread ] ALSACapture.cpp:379 0| Enabled highfilter
2018-06-25 20:10:56.132 ( 4.478s) [main thread ] ALSACapture.cpp:396 0| NS Filter=1
2018-06-25 20:10:56.215 ( 4.562s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
2018-06-25 20:10:56.216 ( 4.563s) [DeviceSource ] ALSACapture.cpp:379 0| Enabled highfilter
2018-06-25 20:10:56.216 ( 4.563s) [DeviceSource ] ALSACapture.cpp:396 0| NS Filter=1
2018-06-25 20:10:56.227 ( 4.574s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.178.37:8554/unicast"
================== START ===============
/system/sdcard/bin/v4l2rtspserver-master -E MP3:44100
2018-06-25 20:12:25.643 ( 0.004s) [main thread ] main.cpp:443 0| === Dumping environment variables ===
2018-06-25 20:12:25.643 ( 0.005s) [main thread ] main.cpp:446 0| USER=root
2018-06-25 20:12:25.644 ( 0.005s) [main thread ] main.cpp:446 0| LD_LIBRARY_PATH=/system/sdcard/lib/:/thirdlib:/system/lib
2018-06-25 20:12:25.644 ( 0.005s) [main thread ] main.cpp:446 0| SHLVL=2
2018-06-25 20:12:25.644 ( 0.005s) [main thread ] main.cpp:446 0| HOME=/
2018-06-25 20:12:25.644 ( 0.006s) [main thread ] main.cpp:446 0| OLDPWD=/sys/class/gpio
2018-06-25 20:12:25.645 ( 0.006s) [main thread ] main.cpp:446 0| TERM=vt102
2018-06-25 20:12:25.645 ( 0.006s) [main thread ] main.cpp:446 0| PATH=/system/bin:/bin:/sbin:/usr/bin:/usr/sbin
2018-06-25 20:12:25.645 ( 0.006s) [main thread ] main.cpp:446 0| SHELL=/bin/sh
2018-06-25 20:12:25.645 ( 0.007s) [main thread ] main.cpp:446 0| PWD=/sys/class/gpio/gpio77
2018-06-25 20:12:25.646 ( 0.007s) [main thread ] main.cpp:446 0| rmem=15644K@0x30B9000
2018-06-25 20:12:25.646 ( 0.007s) [main thread ] main.cpp:449 0| === end ===
2018-06-25 20:12:27.944 ( 2.305s) [main thread ] ImpEncoder.cpp:1172 ERR| ##### sensor not found
2018-06-25 20:12:27.948 ( 2.309s) [main thread ] ImpEncoder.cpp:1185 0| Found Sensor with ID:-1
2018-06-25 20:12:28.471 ( 2.833s) [main thread ] ImpEncoder.cpp:1423 0| encoderMode: 2
2018-06-25 20:12:28.472 ( 2.833s) [main thread ] ImpEncoder.cpp:1462 0| Using VBR mode.
2018-06-25 20:12:28.472 ( 2.834s) [main thread ] ImpEncoder.cpp:1467 0| Set initial bitrate (from sharedmem) to 5000
i264e[info]: profile Constrained Baseline, level 3.1
2018-06-25 20:12:28.497 ( 2.858s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 0,0,1279,36
2018-06-25 20:12:28.499 ( 2.860s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 1240,0,1279,39
2018-06-25 20:12:29.514 ( 3.875s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
2018-06-25 20:12:29.517 ( 3.878s) [main thread ] main.cpp:557 0| Create ALSA Source.../dev/dsp
2018-06-25 20:12:29.518 ( 3.879s) [main thread ] ALSACapture.cpp:94 0| Audio In GetPubAttr samplerate : 8000
2018-06-25 20:12:29.518 ( 3.879s) [main thread ] ALSACapture.cpp:95 0| Audio In GetPubAttr bitwidth : 16
2018-06-25 20:12:29.518 ( 3.879s) [main thread ] ALSACapture.cpp:96 0| Audio In GetPubAttr soundmode : 1
2018-06-25 20:12:29.518 ( 3.879s) [main thread ] ALSACapture.cpp:97 0| Audio In GetPubAttr frmNum : 40
2018-06-25 20:12:29.519 ( 3.880s) [main thread ] ALSACapture.cpp:98 0| Audio In GetPubAttr numPerFrm : 1600
2018-06-25 20:12:29.519 ( 3.880s) [main thread ] ALSACapture.cpp:99 0| Audio In GetPubAttr chnCnt : 1
2018-06-25 20:12:29.519 ( 3.881s) [update_thread ] ImpEncoder.cpp:413 0| Attempt to changed Bitrate to 5000
2018-06-25 20:12:29.520 ( 3.881s) [update_thread ] ImpEncoder.cpp:431 0| Setting VBR maxBitrate.
2018-06-25 20:12:29.520 ( 3.881s) [update_thread ] ImpEncoder.cpp:511 0| Changed motion sensitivity=4
2018-06-25 20:12:29.521 ( 3.882s) [update_thread ] ImpEncoder.cpp:652 0| Detection region= ((0,0)-(1279,719))
2018-06-25 20:12:29.530 ( 3.891s) [update_thread ] ImpEncoder.cpp:516 0| Changed motion region
2018-06-25 20:12:29.530 ( 3.891s) [update_thread ] ImpEncoder.cpp:524 0| Display motion OSD color=2
2018-06-25 20:12:29.936 ( 4.297s) [main thread ] ALSACapture.cpp:126 0| Audio In GetChnParam usrFrmDepth : 20
2018-06-25 20:12:29.937 ( 4.299s) [main thread ] ALSACapture.cpp:154 0| Audio In GetVol vol : 70
2018-06-25 20:12:30.114 ( 4.476s) [main thread ] ALSACapture.cpp:379 0| Enabled highfilter
2018-06-25 20:12:30.115 ( 4.476s) [main thread ] ALSACapture.cpp:396 0| NS Filter=1
2018-06-25 20:12:30.201 ( 4.562s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
2018-06-25 20:12:30.202 ( 4.563s) [DeviceSource ] ALSACapture.cpp:379 0| Enabled highfilter
2018-06-25 20:12:30.202 ( 4.563s) [DeviceSource ] ALSACapture.cpp:396 0| NS Filter=1
2018-06-25 20:12:30.212 ( 4.574s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.178.37:8554/unicast"
2018-06-25 20:13:32.988 ( 67.349s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
2018-06-25 20:13:32.988 ( 67.349s) [main thread ]ServerMediaSubsession.c:29 0| Creating H264 Source...
2018-06-25 20:13:32.989 ( 67.350s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/H264
2018-06-25 20:13:32.990 ( 67.351s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
2018-06-25 20:13:32.990 ( 67.351s) [main thread ]ServerMediaSubsession.c:42 0| Creating normal Source...
2018-06-25 20:13:32.991 ( 67.352s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : audio/MPEG
2018-06-25 20:13:32.997 ( 67.358s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
2018-06-25 20:13:32.997 ( 67.358s) [main thread ]ServerMediaSubsession.c:29 0| Creating H264 Source...
2018-06-25 20:13:32.997 ( 67.359s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/H264
2018-06-25 20:13:33.002 ( 67.363s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
2018-06-25 20:13:33.002 ( 67.363s) [main thread ]ServerMediaSubsession.c:42 0| Creating normal Source...
2018-06-25 20:13:33.003 ( 67.364s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : audio/MPEG
RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
================== START ===============
/system/sdcard/bin/v4l2rtspserver-master -E MP3:44100
1970-01-01 02:00:14.763 ( 0.004s) [main thread ] main.cpp:443 0| === Dumping environment variables ===
1970-01-01 02:00:14.764 ( 0.005s) [main thread ] main.cpp:446 0| USER=root
1970-01-01 02:00:14.764 ( 0.005s) [main thread ] main.cpp:446 0| LD_LIBRARY_PATH=/system/sdcard/lib/:/thirdlib:/system/lib
1970-01-01 02:00:14.764 ( 0.005s) [main thread ] main.cpp:446 0| SHLVL=2
1970-01-01 02:00:14.764 ( 0.005s) [main thread ] main.cpp:446 0| HOME=/
1970-01-01 02:00:14.765 ( 0.006s) [main thread ] main.cpp:446 0| OLDPWD=/sys/class/gpio
1970-01-01 02:00:14.765 ( 0.006s) [main thread ] main.cpp:446 0| TERM=vt102
1970-01-01 02:00:14.765 ( 0.006s) [main thread ] main.cpp:446 0| PATH=/system/bin:/bin:/sbin:/usr/bin:/usr/sbin
1970-01-01 02:00:14.765 ( 0.006s) [main thread ] main.cpp:446 0| SHELL=/bin/sh
1970-01-01 02:00:14.766 ( 0.007s) [main thread ] main.cpp:446 0| PWD=/sys/class/gpio/gpio77
1970-01-01 02:00:14.766 ( 0.007s) [main thread ] main.cpp:446 0| rmem=15644K@0x30B9000
1970-01-01 02:00:14.766 ( 0.007s) [main thread ] main.cpp:449 0| === end ===
1970-01-01 02:00:17.065 ( 2.306s) [main thread ] ImpEncoder.cpp:1172 ERR| ##### sensor not found
1970-01-01 02:00:17.068 ( 2.309s) [main thread ] ImpEncoder.cpp:1185 0| Found Sensor with ID:-1
1970-01-01 02:00:17.592 ( 2.833s) [main thread ] ImpEncoder.cpp:1423 0| encoderMode: 2
1970-01-01 02:00:17.593 ( 2.834s) [main thread ] ImpEncoder.cpp:1462 0| Using VBR mode.
1970-01-01 02:00:17.593 ( 2.834s) [main thread ] ImpEncoder.cpp:1467 0| Set initial bitrate (from sharedmem) to 5000
i264e[info]: profile Constrained Baseline, level 3.1
1970-01-01 02:00:17.618 ( 2.859s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 0,0,1279,36
1970-01-01 02:00:17.620 ( 2.861s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 1240,0,1279,39
1970-01-01 02:00:18.635 ( 3.876s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
1970-01-01 02:00:18.638 ( 3.879s) [main thread ] main.cpp:557 0| Create ALSA Source.../dev/dsp
1970-01-01 02:00:18.639 ( 3.880s) [update_thread ] ImpEncoder.cpp:413 0| Attempt to changed Bitrate to 5000
1970-01-01 02:00:18.639 ( 3.880s) [update_thread ] ImpEncoder.cpp:431 0| Setting VBR maxBitrate.
1970-01-01 02:00:18.640 ( 3.881s) [update_thread ] ImpEncoder.cpp:511 0| Changed motion sensitivity=4
1970-01-01 02:00:18.640 ( 3.881s) [update_thread ] ImpEncoder.cpp:652 0| Detection region= ((0,0)-(1279,719))
1970-01-01 02:00:18.638 ( 3.879s) [main thread ] ALSACapture.cpp:94 0| Audio In GetPubAttr samplerate : 8000
1970-01-01 02:00:18.643 ( 3.883s) [main thread ] ALSACapture.cpp:95 0| Audio In GetPubAttr bitwidth : 16
1970-01-01 02:00:18.643 ( 3.884s) [main thread ] ALSACapture.cpp:96 0| Audio In GetPubAttr soundmode : 1
1970-01-01 02:00:18.643 ( 3.884s) [main thread ] ALSACapture.cpp:97 0| Audio In GetPubAttr frmNum : 40
1970-01-01 02:00:18.643 ( 3.884s) [main thread ] ALSACapture.cpp:98 0| Audio In GetPubAttr numPerFrm : 1600
1970-01-01 02:00:18.643 ( 3.884s) [main thread ] ALSACapture.cpp:99 0| Audio In GetPubAttr chnCnt : 1
1970-01-01 02:00:18.651 ( 3.892s) [update_thread ] ImpEncoder.cpp:516 0| Changed motion region
1970-01-01 02:00:18.652 ( 3.901s) [update_thread ] ImpEncoder.cpp:524 0| Display motion OSD color=2
1970-01-01 02:00:19.053 ( 4.294s) [main thread ] ALSACapture.cpp:126 0| Audio In GetChnParam usrFrmDepth : 20
1970-01-01 02:00:19.054 ( 4.295s) [main thread ] ALSACapture.cpp:154 0| Audio In GetVol vol : 70
1970-01-01 02:00:19.235 ( 4.475s) [main thread ] ALSACapture.cpp:379 0| Enabled highfilter
1970-01-01 02:00:19.235 ( 4.476s) [main thread ] ALSACapture.cpp:396 0| NS Filter=1
1970-01-01 02:00:19.320 ( 4.561s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
1970-01-01 02:00:19.321 ( 4.562s) [DeviceSource ] ALSACapture.cpp:379 0| Enabled highfilter
1970-01-01 02:00:19.321 ( 4.562s) [DeviceSource ] ALSACapture.cpp:396 0| NS Filter=1
1970-01-01 02:00:19.338 ( 4.579s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.178.37:8554/unicast"
1970-01-01 02:00:19.739 ( 4.980s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
1970-01-01 02:00:19.739 ( 4.980s) [main thread ]ServerMediaSubsession.c:29 0| Creating H264 Source...
1970-01-01 02:00:19.740 ( 4.981s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/H264
1970-01-01 02:00:19.741 ( 4.982s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
1970-01-01 02:00:19.741 ( 4.982s) [main thread ]ServerMediaSubsession.c:42 0| Creating normal Source...
1970-01-01 02:00:19.742 ( 4.983s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : audio/MPEG
1970-01-01 02:00:19.749 ( 4.990s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
1970-01-01 02:00:19.750 ( 4.991s) [main thread ]ServerMediaSubsession.c:29 0| Creating H264 Source...
1970-01-01 02:00:19.750 ( 4.991s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/H264
1970-01-01 02:00:19.760 ( 5.001s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
1970-01-01 02:00:19.761 ( 5.002s) [main thread ]ServerMediaSubsession.c:42 0| Creating normal Source...
1970-01-01 02:00:19.762 ( 5.003s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : audio/MPEG
RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
2018-06-25 20:21:18.690 (1529950863.931s) [main thread ] DeviceSource.cpp:110 V4L2DeviceSource::doStopGettingFrames
2018-06-25 20:21:18.691 (1529950863.932s) [main thread ] DeviceSource.cpp:110 V4L2DeviceSource::doStopGettingFrames
2018-06-25 20:21:18.691 (1529950863.932s) [main thread ] DeviceSource.cpp:110 V4L2DeviceSource::doStopGettingFrames
2018-06-25 20:22:49.091 (1529950954.332s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 20:22:49.091 (1529950954.332s) [main thread ]ServerMediaSubsession.c:29 Creating H264 Source...
2018-06-25 20:22:49.092 (1529950954.332s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : video/H264
2018-06-25 20:22:49.098 (1529950954.339s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 20:22:49.098 (1529950954.339s) [main thread ]ServerMediaSubsession.c:42 Creating normal Source...
2018-06-25 20:22:49.099 (1529950954.340s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : audio/MPEG
================== START ===============
/system/sdcard/bin/v4l2rtspserver-master -E MP3:44100
1970-01-01 02:00:14.841 ( 0.004s) [main thread ] main.cpp:443 0| === Dumping environment variables ===
1970-01-01 02:00:14.842 ( 0.005s) [main thread ] main.cpp:446 0| USER=root
1970-01-01 02:00:14.842 ( 0.005s) [main thread ] main.cpp:446 0| LD_LIBRARY_PATH=/system/sdcard/lib/:/thirdlib:/system/lib
1970-01-01 02:00:14.842 ( 0.005s) [main thread ] main.cpp:446 0| SHLVL=2
1970-01-01 02:00:14.843 ( 0.005s) [main thread ] main.cpp:446 0| HOME=/
1970-01-01 02:00:14.843 ( 0.006s) [main thread ] main.cpp:446 0| OLDPWD=/sys/class/gpio
1970-01-01 02:00:14.843 ( 0.006s) [main thread ] main.cpp:446 0| TERM=vt102
1970-01-01 02:00:14.843 ( 0.006s) [main thread ] main.cpp:446 0| PATH=/system/bin:/bin:/sbin:/usr/bin:/usr/sbin
1970-01-01 02:00:14.844 ( 0.006s) [main thread ] main.cpp:446 0| SHELL=/bin/sh
1970-01-01 02:00:14.844 ( 0.007s) [main thread ] main.cpp:446 0| PWD=/sys/class/gpio/gpio77
1970-01-01 02:00:14.844 ( 0.007s) [main thread ] main.cpp:446 0| rmem=15644K@0x30B9000
1970-01-01 02:00:14.844 ( 0.007s) [main thread ] main.cpp:449 0| === end ===
1970-01-01 02:00:17.143 ( 2.306s) [main thread ] ImpEncoder.cpp:1172 ERR| ##### sensor not found
1970-01-01 02:00:17.146 ( 2.309s) [main thread ] ImpEncoder.cpp:1185 0| Found Sensor with ID:-1
1970-01-01 02:00:17.670 ( 2.833s) [main thread ] ImpEncoder.cpp:1423 0| encoderMode: 2
1970-01-01 02:00:17.671 ( 2.834s) [main thread ] ImpEncoder.cpp:1462 0| Using VBR mode.
1970-01-01 02:00:17.671 ( 2.834s) [main thread ] ImpEncoder.cpp:1467 0| Set initial bitrate (from sharedmem) to 5000
i264e[info]: profile Constrained Baseline, level 3.1
1970-01-01 02:00:17.697 ( 2.859s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 0,0,1279,36
1970-01-01 02:00:17.699 ( 2.862s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 1240,0,1279,39
1970-01-01 02:00:18.714 ( 3.877s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
1970-01-01 02:00:18.716 ( 3.879s) [main thread ] main.cpp:557 0| Create ALSA Source.../dev/dsp
1970-01-01 02:00:18.717 ( 3.880s) [main thread ] ALSACapture.cpp:94 0| Audio In GetPubAttr samplerate : 8000
1970-01-01 02:00:18.717 ( 3.880s) [main thread ] ALSACapture.cpp:95 0| Audio In GetPubAttr bitwidth : 16
1970-01-01 02:00:18.718 ( 3.880s) [main thread ] ALSACapture.cpp:96 0| Audio In GetPubAttr soundmode : 1
1970-01-01 02:00:18.718 ( 3.881s) [main thread ] ALSACapture.cpp:97 0| Audio In GetPubAttr frmNum : 40
1970-01-01 02:00:18.718 ( 3.881s) [main thread ] ALSACapture.cpp:98 0| Audio In GetPubAttr numPerFrm : 1600
1970-01-01 02:00:18.718 ( 3.881s) [main thread ] ALSACapture.cpp:99 0| Audio In GetPubAttr chnCnt : 1
1970-01-01 02:00:18.719 ( 3.882s) [update_thread ] ImpEncoder.cpp:413 0| Attempt to changed Bitrate to 5000
1970-01-01 02:00:18.719 ( 3.882s) [update_thread ] ImpEncoder.cpp:431 0| Setting VBR maxBitrate.
1970-01-01 02:00:18.720 ( 3.883s) [update_thread ] ImpEncoder.cpp:511 0| Changed motion sensitivity=4
1970-01-01 02:00:18.720 ( 3.883s) [update_thread ] ImpEncoder.cpp:652 0| Detection region= ((0,0)-(1279,719))
1970-01-01 02:00:18.729 ( 3.892s) [update_thread ] ImpEncoder.cpp:516 0| Changed motion region
1970-01-01 02:00:18.730 ( 3.893s) [update_thread ] ImpEncoder.cpp:524 0| Display motion OSD color=2
1970-01-01 02:00:19.134 ( 4.297s) [main thread ] ALSACapture.cpp:126 0| Audio In GetChnParam usrFrmDepth : 20
1970-01-01 02:00:19.135 ( 4.298s) [main thread ] ALSACapture.cpp:154 0| Audio In GetVol vol : 70
1970-01-01 02:00:19.317 ( 4.480s) [main thread ] ALSACapture.cpp:379 0| Enabled highfilter
1970-01-01 02:00:19.318 ( 4.481s) [main thread ] ALSACapture.cpp:396 0| NS Filter=1
1970-01-01 02:00:19.416 ( 4.579s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
1970-01-01 02:00:19.417 ( 4.580s) [DeviceSource ] ALSACapture.cpp:379 0| Enabled highfilter
1970-01-01 02:00:19.417 ( 4.580s) [DeviceSource ] ALSACapture.cpp:396 0| NS Filter=1
1970-01-01 02:00:19.423 ( 4.586s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.178.37:8554/unicast"
2018-06-25 21:10:19.418 (1529953804.581s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOn.sh
2018-06-25 21:10:19.429 (1529953804.592s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOn.sh returned:-1
2018-06-25 21:10:19.430 (1529953804.593s) [ivsMoveDetection] ImpEncoder.cpp:752 Detect !!
2018-06-25 21:10:21.448 (1529953806.610s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOff.sh
2018-06-25 21:10:21.450 (1529953806.613s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOff.sh returned:-1
2018-06-25 21:10:23.037 (1529953808.200s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 21:10:23.037 (1529953808.200s) [main thread ]ServerMediaSubsession.c:29 Creating H264 Source...
2018-06-25 21:10:23.038 (1529953808.201s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : video/H264
2018-06-25 21:10:23.040 (1529953808.202s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 21:10:23.040 (1529953808.203s) [main thread ]ServerMediaSubsession.c:42 Creating normal Source...
2018-06-25 21:10:23.054 (1529953808.217s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : audio/MPEG
2018-06-25 21:10:23.061 (1529953808.223s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 21:10:23.061 (1529953808.224s) [main thread ]ServerMediaSubsession.c:29 Creating H264 Source...
2018-06-25 21:10:23.061 (1529953808.224s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : video/H264
2018-06-25 21:10:23.085 (1529953808.248s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 21:10:23.085 (1529953808.248s) [main thread ]ServerMediaSubsession.c:42 Creating normal Source...
2018-06-25 21:10:23.086 (1529953808.249s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : audio/MPEG
RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
2018-06-25 21:12:51.351 (1529953956.514s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOn.sh
2018-06-25 21:12:51.357 (1529953956.520s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOn.sh returned:-1
2018-06-25 21:12:51.357 (1529953956.520s) [ivsMoveDetection] ImpEncoder.cpp:752 Detect !!
2018-06-25 21:12:53.388 (1529953958.551s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOff.sh
2018-06-25 21:12:53.393 (1529953958.555s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOff.sh returned:-1
2018-06-25 21:12:55.443 (1529953960.606s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOn.sh
2018-06-25 21:12:55.452 (1529953960.615s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOn.sh returned:-1
2018-06-25 21:12:55.453 (1529953960.615s) [ivsMoveDetection] ImpEncoder.cpp:752 Detect !!
2018-06-25 21:12:57.514 (1529953962.677s) [ivsMoveDetection] ImpEncoder.cpp:558 Will execute command /system/sdcard/scripts/detectionOff.sh
2018-06-25 21:12:57.516 (1529953962.679s) [ivsMoveDetection] ImpEncoder.cpp:560 Execute /system/sdcard/scripts/detectionOff.sh returned:-1
2018-06-25 21:15:48.010 (1529954133.173s) [main thread ] DeviceSource.cpp:110 V4L2DeviceSource::doStopGettingFrames
2018-06-25 21:15:48.019 (1529954133.182s) [main thread ] DeviceSource.cpp:110 V4L2DeviceSource::doStopGettingFrames
2018-06-25 21:15:48.020 (1529954133.183s) [main thread ] DeviceSource.cpp:110 V4L2DeviceSource::doStopGettingFrames
2018-06-25 21:15:48.020 (1529954133.183s) [main thread ] DeviceSource.cpp:110 V4L2DeviceSource::doStopGettingFrames
2018-06-25 21:16:48.034 (1529954193.197s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 21:16:48.035 (1529954193.198s) [main thread ]ServerMediaSubsession.c:29 Creating H264 Source...
2018-06-25 21:16:48.044 (1529954193.207s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : video/H264
2018-06-25 21:16:48.048 (1529954193.211s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 21:16:48.048 (1529954193.211s) [main thread ]ServerMediaSubsession.c:42 Creating normal Source...
2018-06-25 21:16:48.049 (1529954193.212s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : audio/MPEG
2018-06-25 21:19:37.941 (1529954363.104s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 21:19:37.942 (1529954363.104s) [main thread ]ServerMediaSubsession.c:29 Creating H264 Source...
2018-06-25 21:19:37.942 (1529954363.105s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : video/H264
2018-06-25 21:19:37.959 (1529954363.122s) [main thread ]ServerMediaSubsession.c:25 Creating Source...
2018-06-25 21:19:37.960 (1529954363.122s) [main thread ]ServerMediaSubsession.c:42 Creating normal Source...
2018-06-25 21:19:37.961 (1529954363.124s) [main thread ]ServerMediaSubsession.c:51 Creating Sink for format : audio/MPEG
RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
================== START ===============
/system/sdcard/bin/v4l2rtspserver-master -E MP3:44100
1970-01-01 02:00:14.805 ( 0.004s) [main thread ] main.cpp:443 0| === Dumping environment variables ===
1970-01-01 02:00:14.805 ( 0.005s) [main thread ] main.cpp:446 0| USER=root
1970-01-01 02:00:14.806 ( 0.005s) [main thread ] main.cpp:446 0| LD_LIBRARY_PATH=/system/sdcard/lib/:/thirdlib:/system/lib
1970-01-01 02:00:14.806 ( 0.005s) [main thread ] main.cpp:446 0| SHLVL=2
1970-01-01 02:00:14.806 ( 0.005s) [main thread ] main.cpp:446 0| HOME=/
1970-01-01 02:00:14.806 ( 0.006s) [main thread ] main.cpp:446 0| OLDPWD=/sys/class/gpio
1970-01-01 02:00:14.807 ( 0.006s) [main thread ] main.cpp:446 0| TERM=vt102
1970-01-01 02:00:14.807 ( 0.006s) [main thread ] main.cpp:446 0| PATH=/system/bin:/bin:/sbin:/usr/bin:/usr/sbin
1970-01-01 02:00:14.807 ( 0.006s) [main thread ] main.cpp:446 0| SHELL=/bin/sh
1970-01-01 02:00:14.807 ( 0.006s) [main thread ] main.cpp:446 0| PWD=/sys/class/gpio/gpio77
1970-01-01 02:00:14.808 ( 0.007s) [main thread ] main.cpp:446 0| rmem=15644K@0x30B9000
1970-01-01 02:00:14.808 ( 0.007s) [main thread ] main.cpp:449 0| === end ===
1970-01-01 02:00:17.106 ( 2.305s) [main thread ] ImpEncoder.cpp:1172 ERR| ##### sensor not found
1970-01-01 02:00:17.109 ( 2.308s) [main thread ] ImpEncoder.cpp:1185 0| Found Sensor with ID:-1
1970-01-01 02:00:17.632 ( 2.831s) [main thread ] ImpEncoder.cpp:1423 0| encoderMode: 2
1970-01-01 02:00:17.632 ( 2.832s) [main thread ] ImpEncoder.cpp:1462 0| Using VBR mode.
1970-01-01 02:00:17.633 ( 2.832s) [main thread ] ImpEncoder.cpp:1467 0| Set initial bitrate (from sharedmem) to 5000
i264e[info]: profile Constrained Baseline, level 3.1
1970-01-01 02:00:17.659 ( 2.858s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 0,0,1279,36
1970-01-01 02:00:17.661 ( 2.860s) [main thread ] ImpEncoder.cpp:123 0| OSD pos 1240,0,1279,39
1970-01-01 02:00:18.676 ( 3.875s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
1970-01-01 02:00:18.678 ( 3.878s) [main thread ] main.cpp:557 0| Create ALSA Source.../dev/dsp
1970-01-01 02:00:18.679 ( 3.878s) [main thread ] ALSACapture.cpp:94 0| Audio In GetPubAttr samplerate : 8000
1970-01-01 02:00:18.679 ( 3.878s) [main thread ] ALSACapture.cpp:95 0| Audio In GetPubAttr bitwidth : 16
1970-01-01 02:00:18.680 ( 3.879s) [update_thread ] ImpEncoder.cpp:413 0| Attempt to changed Bitrate to 5000
1970-01-01 02:00:18.680 ( 3.879s) [update_thread ] ImpEncoder.cpp:431 0| Setting VBR maxBitrate.
1970-01-01 02:00:18.681 ( 3.880s) [update_thread ] ImpEncoder.cpp:511 0| Changed motion sensitivity=4
1970-01-01 02:00:18.681 ( 3.880s) [update_thread ] ImpEncoder.cpp:652 0| Detection region= ((0,0)-(1279,719))
1970-01-01 02:00:18.683 ( 3.882s) [main thread ] ALSACapture.cpp:96 0| Audio In GetPubAttr soundmode : 1
1970-01-01 02:00:18.683 ( 3.883s) [main thread ] ALSACapture.cpp:97 0| Audio In GetPubAttr frmNum : 40
1970-01-01 02:00:18.684 ( 3.883s) [main thread ] ALSACapture.cpp:98 0| Audio In GetPubAttr numPerFrm : 1600
1970-01-01 02:00:18.684 ( 3.883s) [main thread ] ALSACapture.cpp:99 0| Audio In GetPubAttr chnCnt : 1
1970-01-01 02:00:18.692 ( 3.891s) [update_thread ] ImpEncoder.cpp:516 0| Changed motion region
1970-01-01 02:00:18.692 ( 3.891s) [update_thread ] ImpEncoder.cpp:524 0| Display motion OSD color=2
1970-01-01 02:00:19.085 ( 4.284s) [main thread ] ALSACapture.cpp:126 0| Audio In GetChnParam usrFrmDepth : 20
1970-01-01 02:00:19.094 ( 4.293s) [main thread ] ALSACapture.cpp:154 0| Audio In GetVol vol : 70
1970-01-01 02:00:19.277 ( 4.476s) [main thread ] ALSACapture.cpp:379 0| Enabled highfilter
1970-01-01 02:00:19.277 ( 4.477s) [main thread ] ALSACapture.cpp:396 0| NS Filter=1
1970-01-01 02:00:19.361 ( 4.561s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
1970-01-01 02:00:19.362 ( 4.561s) [DeviceSource ] ALSACapture.cpp:379 0| Enabled highfilter
1970-01-01 02:00:19.362 ( 4.561s) [DeviceSource ] ALSACapture.cpp:396 0| NS Filter=1
1970-01-01 02:00:19.368 ( 4.567s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.178.37:8554/unicast"
Possible good news for Xiaofang 1s users that haven't been able to get rtsp working. Some Xiaofang 1s users don't have problems but for others like me, this is what i did.
Replace the ##Start Sensor section in run.sh with what i have below. @EliasKotlyar - The modules loaded are the same as the Dafang Classic/Wyzecam V2. Looks like there might be two versions of the Xiaofang 1s? One that uses sensor_jxf22 and one that uses sensor_jxf23? Thanks for the great work on this project.
## Start Sensor:
insmod /driver/tx-isp.ko isp_clk=100000000
insmod /driver/sensor_jxf22.ko data_interface=2 pwdn_gpio=-1 reset_gpio=18 sensor_gpio_func=0
insmod /system/sdcard/driver/sinfo.ko
@tookus123 - the existing run.sh already includes the modules you mention so why modify?
P.S. I have modified run.sh as suggested, but still no luck.
## Start Sensor:
insmod /driver/tx-isp.ko isp_clk=100000000
if [ -f /driver/sensor_jxf23.ko ]; then
# Its a Xioafang 1S
insmod /driver/sensor_jxf23.ko data_interface=2 pwdn_gpio=-1 reset_gpio=18 sensor_gpio_func=0
else
# Its a Dafang Classic/Wyzecam V2
insmod /driver/sensor_jxf22.ko data_interface=2 pwdn_gpio=-1 reset_gpio=18 sensor_gpio_func=0
fi
insmod /system/sdcard/driver/sinfo.ko
@asecor - Here's the problem that i run into with my Xiaofang 1S. Run.sh looks for /driver/sensor_jxf23.ko. If that file exists, it's detected as Xiaofang 1S and sensor_jxf23.ko is inserted.
if [ -f /driver/sensor_jxf23.ko ]; then
# Its a Xioafang 1S
insmod /driver/sensor_jxf23.ko data_interface=2 pwdn_gpio=-1 reset_gpio=18 sensor_gpio_func=0
When i do a ls of the /driver directory, i see both sensor_jxf23.ko and sensor_jxf22.ko listed. Because both modules are listed in the /driver directory, sensor_jxf23.ko is inserted.
[root@DAFANG:~]# ls /driver | grep sensor
sensor_jxf22.ko
sensor_jxf23.ko
Problem is, my Xiaofang 1S doesn't have jfx23 as the sensor. It has jxf22. By looking at dmesg, i can confirm jxf22 is detected on my Xiaofang 1S and it works when i modify run.sh to load sensor_jxf22.ko.
[root@DAFANG:~]# dmesg | grep jxf
[ 18.542714] info: success sensor find : jxf22
[ 18.582129] probe ok ------->jxf22
[ 18.607987] -----jxf22_detect: 432 ret = 0, v = 0x0f
[ 18.608403] -----jxf22_detect: 440 ret = 0, v = 0x22
[ 18.608419] jxf22 0-0040: jxf22 chip found @ 0x40 (i2c0)
[ 18.613967] tx_isp: Registered sensor subdevice jxf22 0-0040
[ 19.157448] jxf22 stream on
In short, my Xiaofang 1S works just like a Dafang Classic/Wyzecam V2 as far as this sensor is concerned. This leads me to believe there are possibly 2 versions of the Xiaofang 1S using 2 different sensors. I also tried some of the fixes you did. I kept getting errors and Found Sensor with ID:-1. To get mine working all i did was download a fresh copy of firmware_mod and make the changes i mentioned to run.sh. Your issue may be different. On a fresh install, if you ssh in and run dmesg can you see anything about jxf22?
dmesg | grep jxf
I also faced the same issue.
My Xiaofang 1S has a jxf22 camera, but it has both sensor_jxf23.ko
AND sensor_jxf22.ko
in /driver
, so it selects the wrong one in run.sh
.
I had to edit run.sh to force it to the 22 variant.
@tookus123 - thanks for tips. Indeed my one looks to have the 23 sensor:
[root@DAFANG:~]# dmesg | grep jxf
[ 16.656800] probe ok ------->jxf23
[ 16.810038] -----jxf23_detect: 529 ret = 0, v = 0x0f
[ 16.810463] -----jxf23_detect: 537 ret = 0, v = 0x23
[ 16.810480] jxf23 0-0040: jxf23 chip found @ 0x40 (i2c0)
[ 16.815978] tx_isp: Registered sensor subdevice jxf23 0-0040
[ 17.105398] jxf23 stream on
I have forced the 23 in run.sh once more and if it doesn't hold I will try again with a fresh install:
## Start Sensor:
insmod /driver/tx-isp.ko isp_clk=100000000
insmod /driver/sensor_jxf23.ko data_interface=2 pwdn_gpio=-1 reset_gpio=18 sensor_gpio_func=0
insmod /system/sdcard/driver/sinfo.ko
It appears the original software detects the sensor (maybe something on I2C?)
Here is some logs from the original software bootup:
--------------------------------------------------
xxq:begin to check the sensor type
[ 8.342439] sensor_read: addr=0xa value = 0xf
[ 8.347433] sensor_read: addr=0xb value = 0x22
[ 8.412592] sensor_read: addr=0xa value = 0xf
[ 8.417592] sensor_read: addr=0xb value = 0x22
[ 8.422311] info: success sensor find : jxf22
##### sensor : jxf22
@asecor
Thanks for verifying the sensor. I guess there are two versions of the S1. You shouldn't need the modification i had to use. I'm not sure why you're getting the sensor error. At least you do get video. When i got the sensor error i couldn't get anything. Not even for a second.
I would definitely update to a newer version of the firmware_mod files. Just by looking at your logs i can tell we're both using different versions due to the line numbers.
(yours) main.cpp:443 0| === Dumping environment variables ===
(mine) main.cpp:449 0| === Dumping environment variables ===
Since you can get video but can't keep it running, i suggest going to Service, disable autorun for everything but rtsp-h264. Then go to Settings, set video to 640x360, bitrate 1000, framerate 10, SMART. Then go to audio and set audio format OFF. Reboot your camera. Go to camera controls and make sure the only things are ir-cut, blue led, and rtsp-h264. Now see if you can keep the video stream running. If it works, you can up the video to 960x540. If it still stays up then try adding in audio. Try PCM first. Reason for this is that the Xiaofang 1S doesn't have a lot of memory. If you're using too large a resolution or adding in audio, resource usage goes up. Sometimes it's too much for the 1S to handle. So start low and work you're way up.
Hi @tookus123
Thank you very much for the tips. I have implemented them (as well as the more recent suggestions in https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues/563) but unfortunately it still reboots after 1-2 minutes.
Here are the full logs, maybe you can see something I haven't - https://pastebin.com/QEfzPDWw
I would also guess that this is memory related so reduce image size. Verify via vlc that the image size really is reduced, there has been a bug where the changes weren't correctly applied. Also format you sdcard and start with a fresh repo checkout.
@asecor
I looked through your logs and compared to mine. Even though it detects and loads jxf23 like it should, and you can get video for a while, for some reason it can't detect the sensor name "info: failed sensor find". Same thing in v4l2rtspserver-master.log where it can't find the sensor name "ImpEncoder.cpp:1198 0| Found Sensor with ID:-1". If you have the very latest version (within the last 7 hours of this post) of Dafang Hacks, it will try and log the sensor name under /system/sdcard/log/startup.log. I'm guessing it still won't display jxf23 but you can try the new version and have a look. This is beyond my skill level but i believe it's the /system/sdcard/driver/sinfo.ko module that does this detection. Maybe @jmtatsch or @EliasKotlyar could give some more insight. I don't know for sure but i suspect this might be why v4l2rtspserver-master crashes.
Edit: In one of your logs, v4l2rtspserver-master ran for around 95 minutes. There were a lot of timeout errors. Are you connecting with vlc or another type of media player using the rtsp:// url? What happens if you just monitor from the default website interface with no external connections? Do you still get those timeout error? And how long will it stay up running this way?
Your Logs:
[ 20.238301] error: sensor_read,172 ret = -5
[ 20.242625] sensor_read: addr=0x3008 value = 0x0
[ 20.247469] err sensor read addr = 0x3008, value = 0x0
[ 20.252780] info: failed sensor find
[ 20.257018] misc sinfo_release
[ 20.286610] set sensor gpio as PA-low-10bit
[ 20.293416] probe ok ------->jxf23
[ 20.444292] -----jxf23_detect: 529 ret = 0, v = 0x0f
[ 20.444717] -----jxf23_detect: 537 ret = 0, v = 0x23
[ 20.444733] jxf23 0-0040: jxf23 chip found @ 0x40 (i2c0)
[ 20.450206] tx_isp: Registered sensor subdevice jxf23 0-0040
2018-07-10 01:53:04.097 ( 2.374s) [main thread ] ImpEncoder.cpp:1185 ERR| ##### sensor not found
2018-07-10 01:53:04.100 ( 2.377s) [main thread ] ImpEncoder.cpp:1198 0| Found Sensor with ID:-1
My Logs:
[ 22.824120] error: sensor_read,172 ret = -5
[ 22.828429] sensor_read: addr=0x300a value = 0x0
[ 22.833300] err sensor read addr = 0x300a, value = 0x0
[ 22.898840] sensor_read: addr=0xa value = 0xf
[ 22.903845] sensor_read: addr=0xb value = 0x22
[ 22.908519] info: success sensor find : jxf22
[ 22.913127] misc sinfo_release
[ 22.945387] set sensor gpio as PA-low-10bit
[ 22.952458] probe ok ------->jxf22
[ 22.978329] -----jxf22_detect: 432 ret = 0, v = 0x0f
[ 22.978747] -----jxf22_detect: 440 ret = 0, v = 0x22
[ 22.978763] jxf22 0-0040: jxf22 chip found @ 0x40 (i2c0)
[ 22.985476] tx_isp: Registered sensor subdevice jxf22 0-0040
2018-07-14 22:22:21.654 ( 2.131s) [main thread ] ImpEncoder.cpp:1198 0| Found Sensor with ID:22
Any update on this? I cannot get RTSP to work with a similar log file as @asecor.
Hi, I just figure out the issue of "sensor not found" on my Xiaofang 1s. The root cause is wrong sinfo.ko You must use /driver/sinfo.ko which is from cwf-1.0.bin. So, you need to flash it first. Then you can change in run.sh from insmod /system/sdcard/driver/sinfo.ko To insmod /driver/sinfo.ko
Reboot the cam. it should solve sensor not found issue.
Indeed it solves the issue! Did you manage to get RTSP working as well?
It solved the "sensor not found" for me too. But I'm still getting "RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!" on connecting to rtsp.
================== START =============== /system/sdcard/bin/v4l2rtspserver-master -fMJPG -W1280 -H720 -E MP3:16000:44100 -r 2 -U entrance-cctv-user:cMGCT3KUTkwKWSwGm63JCFzST8mAaY -P 8554 2018-10-06 00:38:16.994 ( 0.001s) [main thread ] main.cpp:450 0| === Dumping environment variables === 2018-10-06 00:38:16.995 ( 0.002s) [main thread ] main.cpp:453 0| GATEWAY_INTERFACE=CGI/1.1 2018-10-06 00:38:16.995 ( 0.002s) [main thread ] main.cpp:453 0| HTTP_AUTHORIZATION=Basic cm9vdDppc21hcnQxMg== 2018-10-06 00:38:16.996 ( 0.003s) [main thread ] main.cpp:453 0| REMOTE_USER=root 2018-10-06 00:38:16.996 ( 0.003s) [main thread ] main.cpp:453 0| SSL_CIPHER=ECDHE-RSA-AES256-GCM-SHA384 2018-10-06 00:38:16.996 ( 0.003s) [main thread ] main.cpp:453 0| HTTP_DNT=1 2018-10-06 00:38:16.996 ( 0.003s) [main thread ] main.cpp:453 0| HTTP_X_REQUESTED_WITH=XMLHttpRequest 2018-10-06 00:38:16.997 ( 0.004s) [main thread ] main.cpp:453 0| REMOTE_ADDR=192.168.77.100 2018-10-06 00:38:16.997 ( 0.004s) [main thread ] main.cpp:453 0| LD_LIBRARY_PATH=/system/sdcard/lib:/thirdlib:/system/lib 2018-10-06 00:38:16.997 ( 0.004s) [main thread ] main.cpp:453 0| SHLVL=2 2018-10-06 00:38:16.997 ( 0.004s) [main thread ] main.cpp:453 0| QUERY_STRING=cmd=start&script=rtsp-mjpeg 2018-10-06 00:38:16.998 ( 0.005s) [main thread ] main.cpp:453 0| DOCUMENT_ROOT=/system/sdcard/www 2018-10-06 00:38:16.998 ( 0.005s) [main thread ] main.cpp:453 0| REMOTE_PORT=52582 2018-10-06 00:38:16.998 ( 0.005s) [main thread ] main.cpp:453 0| HTTP_USER_AGENT=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15 2018-10-06 00:38:16.998 ( 0.005s) [main thread ] main.cpp:453 0| AUTH_TYPE=Basic 2018-10-06 00:38:16.999 ( 0.006s) [main thread ] main.cpp:453 0| HTTP_ACCEPT=/ 2018-10-06 00:38:16.999 ( 0.006s) [main thread ] main.cpp:453 0| CONTENT_LENGTH=0 2018-10-06 00:38:16.999 ( 0.006s) [main thread ] main.cpp:453 0| SCRIPT_FILENAME=/system/sdcard/www/cgi-bin/scripts.cgi 2018-10-06 00:38:16.999 ( 0.006s) [main thread ] main.cpp:453 0| HTTP_HOST=entrance-camera.lan 2018-10-06 00:38:17.000 ( 0.007s) [main thread ] main.cpp:453 0| REQUEST_URI=/cgi-bin/scripts.cgi?cmd=start&script=rtsp-mjpeg 2018-10-06 00:38:17.000 ( 0.007s) [main thread ] main.cpp:453 0| SERVER_SOFTWARE=lighttpd/1.4.50-devel-lighttpd-1.4.49-7-g26fb8d3e 2018-10-06 00:38:17.000 ( 0.007s) [main thread ] main.cpp:453 0| REQUEST_SCHEME=https 2018-10-06 00:38:17.000 ( 0.007s) [main thread ] main.cpp:453 0| HTTP_CONNECTION=keep-alive 2018-10-06 00:38:17.001 ( 0.007s) [main thread ] main.cpp:453 0| HTTP_ACCEPT_LANGUAGE=en-us 2018-10-06 00:38:17.001 ( 0.008s) [main thread ] main.cpp:453 0| HTTP_REFERER=https://entrance-camera.lan/ 2018-10-06 00:38:17.001 ( 0.008s) [main thread ] main.cpp:453 0| SERVER_PROTOCOL=HTTP/1.1 2018-10-06 00:38:17.001 ( 0.008s) [main thread ] main.cpp:453 0| SSL_CIPHER_USEKEYSIZE=256 2018-10-06 00:38:17.002 ( 0.008s) [main thread ] main.cpp:453 0| HTTP_ACCEPT_ENCODING=br, gzip, deflate 2018-10-06 00:38:17.002 ( 0.009s) [main thread ] main.cpp:453 0| REDIRECT_STATUS=200 2018-10-06 00:38:17.002 ( 0.009s) [main thread ] main.cpp:453 0| SSL_PROTOCOL=TLSv1.2 2018-10-06 00:38:17.002 ( 0.009s) [main thread ] main.cpp:453 0| REQUEST_METHOD=GET 2018-10-06 00:38:17.002 ( 0.009s) [main thread ] main.cpp:453 0| SERVER_ADDR=192.168.77.55 2018-10-06 00:38:17.003 ( 0.010s) [main thread ] main.cpp:453 0| PWD=/system/sdcard/www/cgi-bin 2018-10-06 00:38:17.003 ( 0.010s) [main thread ] main.cpp:453 0| HTTPS=on 2018-10-06 00:38:17.003 ( 0.010s) [main thread ] main.cpp:453 0| SERVER_PORT=443 2018-10-06 00:38:17.004 ( 0.010s) [main thread ] main.cpp:453 0| SCRIPT_NAME=/cgi-bin/scripts.cgi 2018-10-06 00:38:17.004 ( 0.011s) [main thread ] main.cpp:453 0| SERVER_NAME=entrance-camera.lan 2018-10-06 00:38:17.004 ( 0.011s) [main thread ] main.cpp:453 0| SSL_CIPHER_ALGKEYSIZE=256 2018-10-06 00:38:17.004 ( 0.011s) [main thread ] main.cpp:456 0| === end === 2018-10-06 00:38:17.006 ( 0.013s) [main thread ] ImpEncoder.cpp:687 0| Try to read extra configuration on /system/sdcard/bin/v4l2rtspserver-master.ini 2018-10-06 00:38:17.007 ( 0.014s) [main thread ] ImpEncoder.cpp:690 0| Can't load 'v4l2rstpserver.ini' 2018-10-06 00:38:17.092 ( 0.099s) [main thread ] ImpEncoder.cpp:997 0| Found Sensor with ID:0 2018-10-06 00:38:17.592 ( 0.599s) [main thread ] ImpEncoder.cpp:1234 0| encoderMode: 2 2018-10-06 00:38:17.593 ( 0.599s) [main thread ] ImpEncoder.cpp:1273 0| Using VBR mode. 2018-10-06 00:38:17.593 ( 0.600s) [main thread ] ImpEncoder.cpp:1278 0| Set initial bitrate (from sharedmem) to 5000 i264e[info]: profile Constrained Baseline, level 3.1 2018-10-06 00:38:17.639 ( 0.646s) [update_thread ] OSD.cpp:22 0| [OSD]: Created OSD(1248, 0, 32, 32, 0) 2018-10-06 00:38:17.639 ( 0.646s) [update_thread ] OSD.cpp:22 0| [OSD]: Created OSD(0, 0, 1280, 10, 1) 2018-10-06 00:38:17.640 ( 0.647s) [update_thread ] ImpEncoder.cpp:182 0| Attempt to changed Bitrate to 5000 2018-10-06 00:38:17.641 ( 0.648s) [update_thread ] ImpEncoder.cpp:200 0| Setting VBR maxBitrate. 2018-10-06 00:38:17.641 ( 0.648s) [update_thread ] ImpEncoder.cpp:217 0| Attempt to change fps to 25,1 2018-10-06 00:38:17.641 ( 0.648s) [update_thread ] ImpEncoder.cpp:251 0| Font name:/system/sdcard/fonts/NotoSans-Regular.ttf 2018-10-06 00:38:17.650 ( 0.657s) [update_thread ] ImpEncoder.cpp:263 0| Changed OSD font 2018-10-06 00:38:17.671 ( 0.678s) [update_thread ] ImpEncoder.cpp:293 0| Max font bitmap height is 31 and baseline offset is -6 2018-10-06 00:38:17.671 ( 0.678s) [update_thread ] ImpEncoder.cpp:295 0| Changed OSD size 2018-10-06 00:38:17.671 ( 0.678s) [update_thread ] ImpEncoder.cpp:318 0| Changed motion sensitivity=4 2018-10-06 00:38:17.672 ( 0.679s) [update_thread ] ImpEncoder.cpp:499 0| Detection region= ((0,0)-(1279,719)) 2018-10-06 00:38:17.675 ( 0.682s) [update_thread ] ImpEncoder.cpp:322 0| Changed motion region 2018-10-06 00:38:17.676 ( 0.683s) [update_thread ] ImpEncoder.cpp:339 0| Display motion OSD color=-16776961 2018-10-06 00:38:18.068 ( 1.075s) [update_thread ] ImpEncoder.cpp:380 0| Failed to read the JPEG stream: Polling stream timeout 2018-10-06 00:38:18.157 ( 1.164s) [main thread ] main.cpp:566 0| Create ALSA Source.../dev/dsp 2018-10-06 00:38:18.158 ( 1.165s) [main thread ] ALSACapture.cpp:96 0| Audio In GetPubAttr samplerate : 16000 2018-10-06 00:38:18.158 ( 1.165s) [main thread ] ALSACapture.cpp:97 0| Audio In GetPubAttr bitwidth : 16 2018-10-06 00:38:18.159 ( 1.165s) [main thread ] ALSACapture.cpp:98 0| Audio In GetPubAttr soundmode : 1 2018-10-06 00:38:18.159 ( 1.166s) [main thread ] ALSACapture.cpp:99 0| Audio In GetPubAttr frmNum : 50 2018-10-06 00:38:18.159 ( 1.166s) [main thread ] ALSACapture.cpp:100 0| Audio In GetPubAttr numPerFrm : 3200 2018-10-06 00:38:18.159 ( 1.166s) [main thread ] ALSACapture.cpp:101 0| Audio In GetPubAttr chnCnt : 1 2018-10-06 00:38:18.161 ( 1.168s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread 2018-10-06 00:38:18.161 ( 1.168s) [DeviceSource ] DeviceSource.cpp:94 ERR| error:Success 2018-10-06 00:38:18.162 ( 1.168s) [DeviceSource ] DeviceSource.cpp:99 0| end thread 2018-10-06 00:38:18.562 ( 1.569s) [main thread ] ALSACapture.cpp:128 0| Audio In GetChnParam usrFrmDepth : 50 2018-10-06 00:38:18.563 ( 1.570s) [main thread ] ALSACapture.cpp:155 0| Audio In GetVol vol : 70 2018-10-06 00:38:18.619 ( 1.626s) [main thread ] ALSACapture.cpp:382 0| Enabled highfilter 2018-10-06 00:38:18.632 ( 1.639s) [main thread ] ALSACapture.cpp:402 0| Enabled aec 2018-10-06 00:38:18.633 ( 1.640s) [main thread ] ALSACapture.cpp:427 0| NS Filter=1 2018-10-06 00:38:18.692 ( 1.699s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.77.55:8554/unicast" 2018-10-06 00:38:18.692 ( 1.699s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread 2018-10-06 00:38:18.693 ( 1.700s) [DeviceSource ] ALSACapture.cpp:382 0| Enabled highfilter 2018-10-06 00:38:18.699 ( 1.706s) [DeviceSource ] ALSACapture.cpp:402 0| Enabled aec 2018-10-06 00:38:18.699 ( 1.706s) [DeviceSource ] ALSACapture.cpp:427 0| NS Filter=1 2018-10-06 00:39:47.405 ( 90.412s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source... 2018-10-06 00:39:47.405 ( 90.412s) [main thread ]ServerMediaSubsession.c:39 0| Creating JPG Source... 2018-10-06 00:39:47.413 ( 90.420s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/JPEG 2018-10-06 00:39:47.414 ( 90.421s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source... 2018-10-06 00:39:47.414 ( 90.421s) [main thread ]ServerMediaSubsession.c:42 0| Creating normal Source... 2018-10-06 00:39:47.414 ( 90.421s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : audio/MPEG 2018-10-06 00:40:07.515 ( 110.522s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source... 2018-10-06 00:40:07.515 ( 110.522s) [main thread ]ServerMediaSubsession.c:39 0| Creating JPG Source... 2018-10-06 00:40:07.515 ( 110.522s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/JPEG 2018-10-06 00:40:27.669 ( 130.675s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source... 2018-10-06 00:40:27.669 ( 130.676s) [main thread ]ServerMediaSubsession.c:42 0| Creating normal Source... 2018-10-06 00:40:27.670 ( 130.677s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : audio/MPEG RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero! RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero! 2018-10-06 00:40:37.764 ( 140.771s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames 2018-10-06 00:40:37.764 ( 140.771s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames 2018-10-06 00:40:37.765 ( 140.772s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames 2018-10-06 00:40:37.765 ( 140.772s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames 2018-10-06 00:40:57.911 ( 160.918s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source... 2018-10-06 00:40:57.911 ( 160.918s) [main thread ]ServerMediaSubsession.c:39 0| Creating JPG Source... 2018-10-06 00:40:57.911 ( 160.918s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/JPEG 2018-10-06 00:41:07.940 ( 170.947s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source... 2018-10-06 00:41:07.941 ( 170.948s) [main thread ]ServerMediaSubsession.c:42 0| Creating normal Source... 2018-10-06 00:41:07.942 ( 170.948s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : audio/MPEG RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero! RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
RTSP is working but got "RTCPInstance error: totSessionBW parameter should not be zero!" too
Hi,
This is normal. There's an outstanding issue https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues/28 It's been there since the start of the project - it's just a warning.
@nobleking @d-litvinov You should be able to view via RTSP despite this message. Is RTSP working for you?
I've just checked and it works! I was misled by VLC (osx version), it didn't show the stream. But with other players it works fine! Thanks for the help!
RTSP is working. I can view from VLC
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I just received the Xiaofang 1S. I flashed the CFW from https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/tree/master/hacks/cfw/xiaofang and then create the SD card as per instructions.
I also modified run.sh with the insmod from https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues/292#issuecomment-388532247 which is now not causing the reboots I mentioned in https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/issues/411#issuecomment-398843070 but the RTSP H264 Server service does not want to start.
Below is complete log since first boot after sdcard hack: