Closed ivanovd closed 5 years ago
It seems that v412rstpserver-master.ini does not exist:
[root@DAFANG:log]# cat /system/sdcard/bin/v4l2rtspserver-master.ini cat: can't open '/system/sdcard/bin/v4l2rtspserver-master.ini': No such file or directory
What process generates that file and what might be the reason for not creating it?
You don’t need this file, this is just testing extra parameters
I see. Then any idea why the RTSP server stopped starting after few days? Can't make anything of the logs except for: /system/sdcard/bin/v4l2rtspserver-master: /home_c/sxzhang/work_isvp/isvp/proj/sdk-lv3/src/imp/ivs/ivs_move/src/filter.c: 283: Proceed: Assertion `src1 && src2 && dst && filter && count > 0' failed.
It looks like I have a same problem. RTSP server crashes after 1-2 days. If I execute RTSP server manually, it will work but will crash again and refuse to connect to wifi network. Back light color is still blue. If RTSP server crashes and I don't execute rtsp server, connection to my wifi is fine for days.
1970-01-01 08:00:49.201 ( 2.970s) [update_thread ] ImpEncoder.cpp:339 0| Display motion OSD color=-16776961 1970-01-01 08:00:49.631 ( 3.401s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread 1970-01-01 08:00:49.641 ( 3.410s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.2.16:8554/unicast" 1970-01-01 08:01:11.739 ( 25.509s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source... 1970-01-01 08:01:11.744 ( 25.513s) [main thread ]ServerMediaSubsession.c:29 0| Creating H264 Source... 1970-01-01 08:01:11.744 ( 25.514s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/H264 1970-01-01 08:01:12.150 ( 25.920s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source... 1970-01-01 08:01:12.151 ( 25.920s) [main thread ]ServerMediaSubsession.c:29 0| Creating H264 Source... 1970-01-01 08:01:12.151 ( 25.921s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/H264 RTCPInstance::RTCPInstance error: totSessionBW parameter should not be zero!
This could be a warning but after this log, my rtsp server is dead.
More log
2018-12-08 21:28:26.119 ( 5.626s) [update_thread ] ImpEncoder.cpp:380 0| Failed to read the JPEG stream: Polling stream timeout
Hi, I am having same issue here
================== START ===============
/system/sdcard/bin/v4l2rtspserver-master -fMJPG -W1280 -H720 -E MP3:16000:44100 -r 2 -P 8554
2019-05-03 21:26:18.209 ( 0.001s) [main thread ] main.cpp:450 0| === Dumping environment variables ===
2019-05-03 21:26:18.209 ( 0.002s) [main thread ] main.cpp:453 0| GATEWAY_INTERFACE=CGI/1.1
2019-05-03 21:26:18.210 ( 0.002s) [main thread ] main.cpp:453 0| CONTENT_TYPE=application/x-www-form-urlencoded; charset=UTF-8
2019-05-03 21:26:18.210 ( 0.002s) [main thread ] main.cpp:453 0| HTTP_AUTHORIZATION=Basic cm9vdDppc21hcnQxMg==
2019-05-03 21:26:18.210 ( 0.002s) [main thread ] main.cpp:453 0| REMOTE_USER=root
2019-05-03 21:26:18.210 ( 0.003s) [main thread ] main.cpp:453 0| SSL_CIPHER=ECDHE-RSA-AES128-GCM-SHA256
2019-05-03 21:26:18.211 ( 0.003s) [main thread ] main.cpp:453 0| HTTP_DNT=1
2019-05-03 21:26:18.211 ( 0.003s) [main thread ] main.cpp:453 0| HTTP_X_REQUESTED_WITH=XMLHttpRequest
2019-05-03 21:26:18.211 ( 0.003s) [main thread ] main.cpp:453 0| REMOTE_ADDR=192.168.0.67
2019-05-03 21:26:18.211 ( 0.004s) [main thread ] main.cpp:453 0| LD_LIBRARY_PATH=/system/sdcard/lib:/thirdlib:/system/lib
2019-05-03 21:26:18.211 ( 0.004s) [main thread ] main.cpp:453 0| SHLVL=2
2019-05-03 21:26:18.212 ( 0.004s) [main thread ] main.cpp:453 0| QUERY_STRING=videouser=&videopassword=&videoport=8554&video_size=-W1280+-H720&video_format=2&brbitrate=5000&frmRateDen=1&frmRateNum=25&cmd=set_video_size
2019-05-03 21:26:18.212 ( 0.004s) [main thread ] main.cpp:453 0| DOCUMENT_ROOT=/system/sdcard/www
2019-05-03 21:26:18.212 ( 0.005s) [main thread ] main.cpp:453 0| REMOTE_PORT=52390
2019-05-03 21:26:18.212 ( 0.005s) [main thread ] main.cpp:453 0| HTTP_USER_AGENT=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36
2019-05-03 21:26:18.213 ( 0.005s) [main thread ] main.cpp:453 0| AUTH_TYPE=Basic
2019-05-03 21:26:18.213 ( 0.005s) [main thread ] main.cpp:453 0| HTTP_ACCEPT=text/html, */*; q=0.01
2019-05-03 21:26:18.213 ( 0.005s) [main thread ] main.cpp:453 0| CONTENT_LENGTH=121
2019-05-03 21:26:18.213 ( 0.006s) [main thread ] main.cpp:453 0| SCRIPT_FILENAME=/system/sdcard/www/cgi-bin/action.cgi
2019-05-03 21:26:18.214 ( 0.006s) [main thread ] main.cpp:453 0| HTTP_HOST=192.168.0.227
2019-05-03 21:26:18.214 ( 0.006s) [main thread ] main.cpp:453 0| REQUEST_URI=/cgi-bin/action.cgi?cmd=set_video_size
2019-05-03 21:26:18.214 ( 0.006s) [main thread ] main.cpp:453 0| SERVER_SOFTWARE=lighttpd/1.4.50-devel-lighttpd-1.4.49-7-g26fb8d3e
2019-05-03 21:26:18.214 ( 0.007s) [main thread ] main.cpp:453 0| REQUEST_SCHEME=https
2019-05-03 21:26:18.215 ( 0.007s) [main thread ] main.cpp:453 0| HTTP_CONNECTION=keep-alive
2019-05-03 21:26:18.215 ( 0.007s) [main thread ] main.cpp:453 0| HTTP_ACCEPT_LANGUAGE=en-IE,en-GB;q=0.9,en-US;q=0.8,en;q=0.7,it-IT;q=0.6,it;q=0.5
2019-05-03 21:26:18.215 ( 0.007s) [main thread ] main.cpp:453 0| HTTP_REFERER=https://192.168.0.227/
2019-05-03 21:26:18.215 ( 0.008s) [main thread ] main.cpp:453 0| SERVER_PROTOCOL=HTTP/1.1
2019-05-03 21:26:18.216 ( 0.008s) [main thread ] main.cpp:453 0| SSL_CIPHER_USEKEYSIZE=128
2019-05-03 21:26:18.216 ( 0.008s) [main thread ] main.cpp:453 0| HTTP_ACCEPT_ENCODING=gzip, deflate, br
2019-05-03 21:26:18.216 ( 0.008s) [main thread ] main.cpp:453 0| REDIRECT_STATUS=200
2019-05-03 21:26:18.216 ( 0.009s) [main thread ] main.cpp:453 0| SSL_PROTOCOL=TLSv1.2
2019-05-03 21:26:18.216 ( 0.009s) [main thread ] main.cpp:453 0| REQUEST_METHOD=POST
2019-05-03 21:26:18.217 ( 0.009s) [main thread ] main.cpp:453 0| SERVER_ADDR=192.168.0.227
2019-05-03 21:26:18.217 ( 0.009s) [main thread ] main.cpp:453 0| PWD=/system/sdcard/www/cgi-bin
2019-05-03 21:26:18.217 ( 0.009s) [main thread ] main.cpp:453 0| HTTPS=on
2019-05-03 21:26:18.217 ( 0.010s) [main thread ] main.cpp:453 0| HTTP_ORIGIN=https://192.168.0.227
2019-05-03 21:26:18.218 ( 0.010s) [main thread ] main.cpp:453 0| SERVER_PORT=443
2019-05-03 21:26:18.218 ( 0.010s) [main thread ] main.cpp:453 0| SCRIPT_NAME=/cgi-bin/action.cgi
2019-05-03 21:26:18.218 ( 0.010s) [main thread ] main.cpp:453 0| SERVER_NAME=192.168.0.227
2019-05-03 21:26:18.218 ( 0.011s) [main thread ] main.cpp:453 0| HTTP_CONTENT_LENGTH=121
2019-05-03 21:26:18.218 ( 0.011s) [main thread ] main.cpp:453 0| SSL_CIPHER_ALGKEYSIZE=128
2019-05-03 21:26:18.219 ( 0.011s) [main thread ] main.cpp:456 0| === end ===
2019-05-03 21:26:18.221 ( 0.013s) [main thread ] ImpEncoder.cpp:687 0| Try to read extra configuration on /system/sdcard/bin/v4l2rtspserver-master.ini
2019-05-03 21:26:18.221 ( 0.013s) [main thread ] ImpEncoder.cpp:690 0| Can't load 'v4l2rstpserver.ini'
2019-05-03 21:26:20.516 ( 2.309s) [main thread ] ImpEncoder.cpp:984 ERR| ##### sensor not found
2019-05-03 21:26:20.520 ( 2.312s) [main thread ] ImpEncoder.cpp:997 0| Found Sensor with ID:-1
2019-05-03 21:26:21.018 ( 2.811s) [main thread ] ImpEncoder.cpp:1234 0| encoderMode: 2
2019-05-03 21:26:21.019 ( 2.811s) [main thread ] ImpEncoder.cpp:1273 0| Using VBR mode.
2019-05-03 21:26:21.019 ( 2.812s) [main thread ] ImpEncoder.cpp:1278 0| Set initial bitrate (from sharedmem) to 5000
i264e[info]: profile Constrained Baseline, level 3.1
2019-05-03 21:26:21.065 ( 2.857s) [update_thread ] OSD.cpp:22 0| [OSD]: Created OSD(1248, 0, 32, 32, 0)
2019-05-03 21:26:21.065 ( 2.858s) [update_thread ] OSD.cpp:22 0| [OSD]: Created OSD(0, 0, 1280, 10, 1)
2019-05-03 21:26:21.066 ( 2.859s) [update_thread ] ImpEncoder.cpp:177 0| Changed NIGHTVISION
2019-05-03 21:26:21.067 ( 2.859s) [update_thread ] ImpEncoder.cpp:182 0| Attempt to changed Bitrate to 5000
2019-05-03 21:26:21.067 ( 2.860s) [update_thread ] ImpEncoder.cpp:200 0| Setting VBR maxBitrate.
2019-05-03 21:26:21.068 ( 2.860s) [update_thread ] ImpEncoder.cpp:217 0| Attempt to change fps to 25,1
2019-05-03 21:26:21.068 ( 2.860s) [update_thread ] ImpEncoder.cpp:251 0| Font name:/system/sdcard/fonts/NotoSans-Regular.ttf
2019-05-03 21:26:21.069 ( 2.862s) [update_thread ] ImpEncoder.cpp:263 0| Changed OSD font
2019-05-03 21:26:21.099 ( 2.891s) [update_thread ] ImpEncoder.cpp:293 0| Max font bitmap height is 31 and baseline offset is -6
2019-05-03 21:26:21.099 ( 2.892s) [update_thread ] ImpEncoder.cpp:295 0| Changed OSD size
2019-05-03 21:26:21.100 ( 2.892s) [update_thread ] ImpEncoder.cpp:318 0| Changed motion sensitivity=4
2019-05-03 21:26:21.100 ( 2.892s) [update_thread ] ImpEncoder.cpp:499 0| Detection region= ((0,0)-(1279,719))
2019-05-03 21:26:21.104 ( 2.896s) [update_thread ] ImpEncoder.cpp:322 0| Changed motion region
2019-05-03 21:26:21.104 ( 2.897s) [update_thread ] ImpEncoder.cpp:339 0| Display motion OSD color=-16776961
2019-05-03 21:26:21.596 ( 3.389s) [main thread ] main.cpp:566 0| Create ALSA Source.../dev/dsp
2019-05-03 21:26:21.597 ( 3.389s) [main thread ] ALSACapture.cpp:96 0| Audio In GetPubAttr samplerate : 16000
2019-05-03 21:26:21.597 ( 3.389s) [main thread ] ALSACapture.cpp:97 0| Audio In GetPubAttr bitwidth : 16
2019-05-03 21:26:21.597 ( 3.390s) [main thread ] ALSACapture.cpp:98 0| Audio In GetPubAttr soundmode : 1
2019-05-03 21:26:21.597 ( 3.390s) [main thread ] ALSACapture.cpp:99 0| Audio In GetPubAttr frmNum : 50
2019-05-03 21:26:21.598 ( 3.390s) [main thread ] ALSACapture.cpp:100 0| Audio In GetPubAttr numPerFrm : 3200
2019-05-03 21:26:21.598 ( 3.390s) [main thread ] ALSACapture.cpp:101 0| Audio In GetPubAttr chnCnt : 1
2019-05-03 21:26:21.599 ( 3.392s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
2019-05-03 21:26:21.600 ( 3.392s) [DeviceSource ] DeviceSource.cpp:94 ERR| error:Success
2019-05-03 21:26:21.600 ( 3.393s) [DeviceSource ] DeviceSource.cpp:99 0| end thread
2019-05-03 21:26:21.999 ( 3.792s) [main thread ] ALSACapture.cpp:128 0| Audio In GetChnParam usrFrmDepth : 50
2019-05-03 21:26:22.005 ( 3.798s) [main thread ] ALSACapture.cpp:155 0| Audio In GetVol vol : 70
2019-05-03 21:26:22.060 ( 3.852s) [main thread ] ALSACapture.cpp:382 0| Enabled highfilter
2019-05-03 21:26:22.066 ( 3.859s) [main thread ] ALSACapture.cpp:402 0| Enabled aec
2019-05-03 21:26:22.067 ( 3.860s) [main thread ] ALSACapture.cpp:427 0| NS Filter=1
2019-05-03 21:26:22.130 ( 3.923s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.0.227:8554/unicast"
2019-05-03 21:26:22.131 ( 3.923s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread
2019-05-03 21:26:22.131 ( 3.924s) [DeviceSource ] ALSACapture.cpp:382 0| Enabled highfilter
2019-05-03 21:26:22.137 ( 3.929s) [DeviceSource ] ALSACapture.cpp:402 0| Enabled aec
2019-05-03 21:26:22.137 ( 3.930s) [DeviceSource ] ALSACapture.cpp:427 0| NS Filter=1
When I try to reach the rtp stream with VLC I get:
2019-05-03 21:28:05.544 ( 107.336s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames
2019-05-03 21:28:05.544 ( 107.336s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames
2019-05-03 21:28:05.545 ( 107.337s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames
2019-05-03 21:28:05.545 ( 107.337s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames
2019-05-03 21:28:05.566 ( 107.358s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
2019-05-03 21:28:05.566 ( 107.358s) [main thread ]ServerMediaSubsession.c:39 0| Creating JPG Source...
2019-05-03 21:28:05.566 ( 107.359s) [main thread ]ServerMediaSubsession.c:51 0| Creating Sink for format : video/JPEG
2019-05-03 21:28:05.574 ( 107.366s) [main thread ]ServerMediaSubsession.c:25 0| Creating Source...
2019-05-03 21:28:05.575 ( 107.368s) [main thread ]ServerMediaSubsession.c:42 0| Creating normal Source...
2019-05-03 21:28:05.576 ( 107.368s) [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!
2019-05-03 21:28:10.930 ( 112.723s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames
2019-05-03 21:28:10.931 ( 112.723s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames
2019-05-03 21:28:10.931 ( 112.724s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames
2019-05-03 21:28:10.931 ( 112.724s) [main thread ] DeviceSource.cpp:110 0| V4L2DeviceSource::doStopGettingFrames
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 have the exact same problem.
The same issue here. Do we have solution?
same here
Same here and it seems to crash the stream
Same here to. I've try many way, I found some interesting condition. I use the Video Setting : W1280 H720 Bitrate 2048 Framerate 15/1 Videoformat Fixedqp. When it's start at 6 PM until 6 AM, stream just Fine. Other then that.. Stream start unstable.. Other Actived Service : Auto Night Detection, Motion Detection, RTSP H264 Server, Motion Telegram and Motion LED. And the funiest thing even the Stream is freeze, Telegram still can send me Pict or Video message if Motion Detection On.
any news ?
Description
The camera used to work up until yesterday when the RTSP server just stopped and won't turn on since then.
What did you do to debug the issue
I updated to the lates commit from the UI, restarted the camera few times, tried turning on and off the RTSP service few times, however, it only starts for a second and then stops.
Evidence
2018-12-06 16:13:12.681 ( 0.020s) [main thread ] ImpEncoder.cpp:687 0| Try to read extra configuration on /system/sdcard/bin/v4l2rtspserver-master.ini 2018-12-06 16:13:12.681 ( 0.021s) [main thread ] ImpEncoder.cpp:690 0| Can't load 'v4l2rstpserver.ini' 2018-12-06 16:13:14.851 ( 2.191s) [main thread ] ImpEncoder.cpp:997 0| Found Sensor with ID:22 2018-12-06 16:13:15.493 ( 2.833s) [main thread ] ImpEncoder.cpp:1234 0| encoderMode: 2 2018-12-06 16:13:15.494 ( 2.834s) [main thread ] ImpEncoder.cpp:1273 0| Using VBR mode. 2018-12-06 16:13:15.494 ( 2.834s) [main thread ] ImpEncoder.cpp:1278 0| Set initial bitrate (from sharedmem) to 5000 i264e[info]: profile Constrained Baseline, level 3.1 2018-12-06 16:13:15.539 ( 2.879s) [update_thread ] OSD.cpp:22 0| [OSD]: Created OSD(1248, 0, 32, 32, 0) 2018-12-06 16:13:15.539 ( 2.879s) [update_thread ] OSD.cpp:22 0| [OSD]: Created OSD(0, 0, 1280, 10, 1) 2018-12-06 16:13:15.540 ( 2.884s) [update_thread ] ImpEncoder.cpp:182 0| Attempt to changed Bitrate to 5000 2018-12-06 16:13:15.545 ( 2.885s) [update_thread ] ImpEncoder.cpp:200 0| Setting VBR maxBitrate. 2018-12-06 16:13:15.545 ( 2.885s) [update_thread ] ImpEncoder.cpp:217 0| Attempt to change fps to 25,1 2018-12-06 16:13:15.546 ( 2.886s) [update_thread ] ImpEncoder.cpp:251 0| Font name:/system/sdcard/fonts/NotoSans-Regular.ttf 2018-12-06 16:13:15.559 ( 2.899s) [update_thread ] ImpEncoder.cpp:263 0| Changed OSD font 2018-12-06 16:13:15.581 ( 2.921s) [update_thread ] ImpEncoder.cpp:293 0| Max font bitmap height is 31 and baseline offset is -6 2018-12-06 16:13:15.581 ( 2.921s) [update_thread ] ImpEncoder.cpp:295 0| Changed OSD size 2018-12-06 16:13:15.581 ( 2.921s) [update_thread ] ImpEncoder.cpp:318 0| Changed motion sensitivity=-2 2018-12-06 16:13:15.582 ( 2.921s) [update_thread ] ImpEncoder.cpp:499 0| Detection region= ((0,0)-(1279,719)) 2018-12-06 16:13:15.595 ( 2.935s) [update_thread ] ImpEncoder.cpp:322 0| Changed motion region 2018-12-06 16:13:15.595 ( 2.935s) [update_thread ] ImpEncoder.cpp:339 0| Display motion OSD color=-1 2018-12-06 16:13:16.028 ( 3.368s) [main thread ] main.cpp:566 0| Create ALSA Source.../dev/dsp 2018-12-06 16:13:16.028 ( 3.368s) [main thread ] ALSACapture.cpp:96 0| Audio In GetPubAttr samplerate : 16000 2018-12-06 16:13:16.029 ( 3.369s) [main thread ] ALSACapture.cpp:97 0| Audio In GetPubAttr bitwidth : 16 2018-12-06 16:13:16.029 ( 3.369s) [main thread ] ALSACapture.cpp:98 0| Audio In GetPubAttr soundmode : 1 2018-12-06 16:13:16.029 ( 3.369s) [main thread ] ALSACapture.cpp:99 0| Audio In GetPubAttr frmNum : 50 2018-12-06 16:13:16.029 ( 3.369s) [main thread ] ALSACapture.cpp:100 0| Audio In GetPubAttr numPerFrm : 3200 2018-12-06 16:13:16.029 ( 3.369s) [main thread ] ALSACapture.cpp:101 0| Audio In GetPubAttr chnCnt : 1 2018-12-06 16:13:16.030 ( 3.370s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread 2018-12-06 16:13:16.069 ( 3.409s) [update_thread ] ImpEncoder.cpp:380 0| Failed to read the JPEG stream: Polling stream timeout 2018-12-06 16:13:16.449 ( 3.789s) [main thread ] ALSACapture.cpp:128 0| Audio In GetChnParam usrFrmDepth : 50 2018-12-06 16:13:16.451 ( 3.791s) [main thread ] ALSACapture.cpp:155 0| Audio In GetVol vol : 70 2018-12-06 16:13:16.621 ( 3.961s) [main thread ] ALSACapture.cpp:382 0| Enabled highfilter 2018-12-06 16:13:16.668 ( 4.008s) [main thread ] ALSACapture.cpp:402 0| Enabled aec 2018-12-06 16:13:16.668 ( 4.008s) [main thread ] ALSACapture.cpp:427 0| NS Filter=1 2018-12-06 16:13:16.792 ( 4.132s) [DeviceSource ] DeviceSource.cpp:91 0| begin thread 2018-12-06 16:13:16.792 ( 4.132s) [DeviceSource ] ALSACapture.cpp:382 0| Enabled highfilter 2018-12-06 16:13:16.797 ( 4.137s) [main thread ] main.cpp:152 0| Play this stream using the URL "rtsp://192.168.1.240:8554/unicast" 2018-12-06 16:13:16.813 ( 4.153s) [DeviceSource ] ALSACapture.cpp:402 0| Enabled aec 2018-12-06 16:13:16.816 ( 4.156s) [DeviceSource ] ALSACapture.cpp:427 0| NS Filter=1 /system/sdcard/bin/v4l2rtspserver-master: /home_c/sxzhang/work_isvp/isvp/proj/sdk-lv3/src/imp/ivs/ivs_move/src/filter.c: 283: Proceed: Assertion `src1 && src2 && dst && filter && count > 0' failed.