From: S A. <san...@gm...> - 2021-07-30 03:32:51
|
Hi Dave, Documentation, yeah. I could list reasons why I did not look in the right places to see the error message earlier this morning... $ ./configure --prefix=/usr to integrate into existing structure, missed the need to also specify --sysconfdir=/etc so that the log file would have somewhere to write. Then when I finally turned off daemon, there were lack of write privileges to /var/log/motion. and $ sudo service motion status keeps too short a list of messages, so the important part scrolled off the buffer. Anyways, specifying port 554 works, and should be a default for rtsp:// when not specified. That should be an easy fix. So problem fixed. Moving on to the other camera model that has been the thorn of trouble, the reason I sought to see if any motion updates would provide fixes. Prelude: I set up a new pi yesterday, with the raspbian copied from the first pi above, and assigned it to one of the Alptop anjvision ip cameras. I forgot the camera only worked with older version of motion, so didn't check what motion version was running. This morning I figured out the stream was 29 seconds behind real time. So event_start was triggered long after the actual action happened. Present: Running today's git version, I see some errors in motion.log ffmpeg_avcodec_log: error while decoding MB 34 16, bytestream -7 [2:nc2:204_Alptop_] [INF] [NET] [Jul 29 20:04:31] netcam_rtsp_decode_video: Ignoring packet with invalid data and the delay is still there, although not up to 29 seconds at this time. $ ss -t State Recv-Q Send-Q Local Address:Port Peer Address:Port ESTAB 0 0 192.168.5.124:ftp 192.168.5.119:39748 ESTAB 29060 0 192.168.5.124:55522 192.168.5.204:rtsp ESTAB 0 0 192.168.5.124:ssh 192.168.5.119:38667 At this time of writing, 20 minutes later, it is up to 4 seconds $ ss -t State Recv-Q Send-Q Local Address:Port Peer Address:Port ESTAB 251140 0 192.168.5.124:55522 192.168.5.204:rtsp ESTAB 0 0 192.168.5.124:ftp 192.168.5.119:37316 ESTAB 0 0 192.168.5.124:ssh 192.168.5.119:38667 I have a log_level=9 file to offer. I'll revert the motion version to 2020-10-26 for now. Any hope of getting the stream to stay with real-time? MrDave wrote: > I think the revision I pushed last night may be tripping it up but I'm > not quite ready to revoke it. (I may however add additional > documentation) > > Motion historically restricted the protocols that it would support and > many issues have been raised regarding expanding the list. The > revision removed the restriction on what is supported and leaves it > open to the user to specify the right URI. So it will now support > http, https, rtsp, rtsps, etc, etc. Whatever ffmpeg supports, Motion > just passes the URI along to ffmpeg. BUT.....in order to do this, the > default ports become a problem. There is no longer a fixed list of > protocols. > > So from looking at your log, it seems that you may need to put in 554, > 80 or something else into your netcam_url string so it addresses the > message > > [1:ml1:205_HikVisi] [INF] [ENC] [Jul 29 14:12:30] ffmpeg_avcodec_log: > Port missing in uri > > > Dave > > On 7/29/2021 3:59 PM, S Andreason wrote: >> Disregard my last email. After 5 hours of working on this, of course >> it is after sending an email that I discover the problem.... turned >> off daemon mode, got lots of write permission errors, but finally >> could see something helpful: >> >> "videodevice" replaced with "video_device" after version 4.3.2 >> >> Another hour plus later, I'm still unable to get motion to work, from >> motion.log >> >> [1:ml1:205_HikVisi] [NTC] [VID] [Jul 29 14:12:30] vid_start: Opening >> Netcam RTSP >> [1:ml1:205_HikVisi] [INF] [NET] [Jul 29 14:12:30] >> netcam_rtsp_set_parms: Setting up norm stream. >> [1:ml1:205_HikVisi] [INF] [ALL] [Jul 29 14:12:30] util_parms_add: >> Parsed: >decoder< >NULL< >> [1:ml1:205_HikVisi] [INF] [NET] [Jul 29 14:12:30] >> netcam_rtsp_set_path: Setting up rtsp via netcam >> [1:ml1:205_HikVisi] [INF] [NET] [Jul 29 14:12:30] >> netcam_rtsp_set_options: norm: Setting rtsp/rtmp >> [1:ml1:205_HikVisi] [INF] [ALL] [Jul 29 14:12:30] util_parms_add: >> Parsed: >rtsp_transport< >tcp< >> [1:ml1:205_HikVisi] [INF] [ALL] [Jul 29 14:12:30] util_parms_add: >> Parsed: >allowed_media_types< >video< >> [1:ml1:205_HikVisi] [INF] [NET] [Jul 29 14:12:30] >> netcam_rtsp_set_options: norm: option: rtsp_transport = tcp >> [1:ml1:205_HikVisi] [INF] [NET] [Jul 29 14:12:30] >> netcam_rtsp_set_options: norm: option: allowed_media_types = video >> [1:ml1:205_HikVisi] [INF] [ENC] [Jul 29 14:12:30] ffmpeg_avcodec_log: >> Port missing in uri >> [1:ml1:205_HikVisi] [ERR] [NET] [Jul 29 14:12:30] >> netcam_rtsp_open_context: norm: Unable to open >> camera(205_HikVision_N): Invalid argument >> [1:ml1:205_HikVisi] [INF] [NET] [Jul 29 14:12:30] >> netcam_rtsp_cleanup: norm: Shutting down network camera. >> [1:ml1:205_HikVisi] [NTC] [NET] [Jul 29 14:12:30] >> netcam_rtsp_cleanup: Normal resolution: Shut down complete. >> [1:ml1:205_HikVisi] [ERR] [VID] [Jul 29 14:12:30] vid_start: Netcam >> RTSP failed to open >> >> >> S Andreason wrote: >>> /etc/motion/motion.conf does have the lines: >>> videodevice netcam >>> >> >> >> >> _______________________________________________ >> Motion-user mailing list >> Mot...@li... >> https://lists.sourceforge.net/lists/listinfo/motion-user >> https://motion-project.github.io/ >> >> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user > > > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user |