Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/motion-user or, via email, send a message with subject or body 'help' to motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Re: RTSP stream and CPU utilization (leonardo) 2. RTSP streams (David Powell) 3. Re: RTSP streams (David Powell) ---------------------------------------------------------------------- Message: 1 Date: Fri, 30 Nov 2018 15:31:45 +0100 From: leonardo <leone2...@leone2000.net> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] RTSP stream and CPU utilization Message-ID: <1002e304-6703-4113-6434-18e5e5d3b...@leone2000.net> Content-Type: text/plain; charset=utf-8; format=flowed On 23/11/2018 21:57, Tom Kennelly wrote: > I have various no name cameras all using rasp in motion. ?I have found > that I need to have an exact match in the motion conf file and how the > camera is set up. ?Any mismatches result in high cpu utilization. i had the same problem (mismatching resolution), infact in motion guide (height/width parameters) you can find: In case of a rtsp/rtmp network camera, Motion will rescale the camera image to the requested dimensions. This rescaling comes at a very high CPU cost so it is recommended that the network camera send the image in the same dimensions as included in the configuration file. ------------------------------ Message: 2 Date: Fri, 30 Nov 2018 08:53:03 -0600 From: David Powell <da...@depowell.com> To: Motion discussion list <Motion-user@lists.sourceforge.net> Subject: [Motion-user] RTSP streams Message-ID: <a6c05524-ac34-2756-d5c4-eda0f96ed...@depowell.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" I have a small IP camera and a larger one that I want to use with Motion.? They both supply an RTSP stream.? The larger one works fine, but I can't get the small one to work with Motion. I can play the streams from both cameras fine with /ffplay/ and /vlc/. However, if try reading the streams using /ffmpeg/, only the larger one works - same as Motion.? The ffmpeg command I am using for the one that fails is /ffmpeg -rtsp_transport tcp -i rtsp://admin:20160404@10.10.6.187:554/onvif1 -f image2 -vf fps=fps=1 helloimg%03d.png/ (Yes, that's the real userid and password).? The output of ffmpeg is: *ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers ? built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) ? configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared ? libavutil????? 55. 78.100 / 55. 78.100 ? libavcodec???? 57.107.100 / 57.107.100 ? libavformat??? 57. 83.100 / 57. 83.100 ? libavdevice??? 57. 10.100 / 57. 10.100 ? libavfilter???? 6.107.100 /? 6.107.100 ? libavresample?? 3.? 7.? 0 /? 3.? 7.? 0 ? libswscale????? 4.? 8.100 /? 4.? 8.100 ? libswresample?? 2.? 9.100 /? 2.? 9.100 ? libpostproc??? 54.? 7.100 / 54.? 7.100 [rtsp @ 0x560c90b43940] Nonmatching transport in server reply rtsp://admin:20160404@10.10.6.187:554/onvif1: Invalid data found when processing input * This is essentially the same error that I see in the Motion log when I try to use it there: *[5:ml5:frontdoor] [NTC] [ALL] [Nov 30 08:11:44] motion_init: Camera 5 started: motion detection Enabled [5:ml5:frontdoor] [NTC] [VID] [Nov 30 08:11:44] vid_start: Opening Netcam RTSP [5:ml5:frontdoor] [INF] [NET] [Nov 30 08:11:44] netcam_rtsp_set_parms: Setting up Normal resolution stream. [5:ml5:frontdoor] [INF] [NET] [Nov 30 08:11:44] netcam_rtsp_set_path: Setting up rtsp via ffmpeg netcam [5:ml5:frontdoor] [INF] [NET] [Nov 30 08:11:44] netcam_rtsp_set_rtsp: Normal resolution: Setting rtsp transport to tcp [5:ml5:frontdoor] [INF] [ENC] [Nov 30 08:11:44] ffmpeg_avcodec_log: Nonmatching transport in server reply [5:ml5:frontdoor] [ERR] [NET] [Nov 30 08:11:44] netcam_rtsp_open_context: Normal resolution: Unable to open camera(frontdoor): Invalid data found when processing input [5:ml5:frontdoor] [INF] [NET] [Nov 30 08:11:44] netcam_rtsp_cleanup: Normal resolution: Shutting down network camera. [5:ml5:frontdoor] [NTC] [NET] [Nov 30 08:11:44] netcam_rtsp_cleanup: Normal resolution: Shut down complete. [5:ml5:frontdoor] [ERR] [VID] [Nov 30 08:11:44] vid_start: Netcam RTSP failed to open [5:ml5:frontdoor] [WRN] [ALL] [Nov 30 08:11:44] motion_init: Could not fetch initial image from camera [5:ml5:frontdoor] [WRN] [ALL] [Nov 30 08:11:44] motion_init: Motion continues using width and height from config file(s) [5:ml5:frontdoor] [NTC] [ALL] [Nov 30 08:11:44] image_ring_resize: Resizing pre_capture buffer to 1 items [5:ml5:frontdoor] [NTC] [DBL] [Nov 30 08:11:44] dbse_init: Database backend mysql [5:ml5:frontdoor] [NTC] [ALL] [Nov 30 08:11:44] image_ring_resize: Resizing pre_capture buffer to 7 items [5:ml5:frontdoor] [WRN] [ALL] [Nov 30 08:11:50] mlp_retry: Retrying until successful connection with camera* Could the problem be caused by the failing one requiring a userid and password? I can't change or eliminate it because reasons. Why would it work fine in /ffplay/ and /vlc/ but not /ffmpeg/? Anyone have any idea how I can make this camera work with Motion? -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 3 Date: Fri, 30 Nov 2018 11:04:23 -0600 From: David Powell <da...@depowell.com> To: Motion discussion list <Motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] RTSP streams Message-ID: <8a474dbf-5248-af4a-6109-ebcba0420...@depowell.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" I think I answered my own question.? Apparently the small camera uses a UDP transport instead of TCP.? I changed the /netcam_use_tcp/ parameter to /off/ and now it works. On 11/30/18 8:53 AM, David Powell wrote: > > I have a small IP camera and a larger one that I want to use with > Motion.? They both supply an RTSP stream.? The larger one works fine, > but I can't get the small one to work with Motion. > > I can play the streams from both cameras fine with /ffplay/ and /vlc/. > > However, if try reading the streams using /ffmpeg/, only the larger > one works - same as Motion.? The ffmpeg command I am using for the one > that fails is /ffmpeg -rtsp_transport tcp -i > rtsp://admin:20160404@10.10.6.187:554/onvif1 -f image2 -vf fps=fps=1 > helloimg%03d.png/ (Yes, that's the real userid and password).? The > output of ffmpeg is: > > *ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the > FFmpeg developers > ? built with gcc 7 (Ubuntu 7.3.0-16ubuntu3) > ? configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 > --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu > --incdir=/usr/include/x86_64-linux-gnu --enable-gpl > --disable-stripping --enable-avresample --enable-avisynth > --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray > --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite > --enable-libfontconfig --enable-libfreetype --enable-libfribidi > --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa > --enable-libopenjpeg --enable-libopenmpt --enable-libopus > --enable-libpulse --enable-librubberband --enable-librsvg > --enable-libshine --enable-libsnappy --enable-libsoxr > --enable-libspeex --enable-libssh --enable-libtheora > --enable-libtwolame --enable-libvorbis --enable-libvpx > --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 > --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx > --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 > --enable-libdrm --enable-libiec61883 --enable-chromaprint > --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared > ? libavutil????? 55. 78.100 / 55. 78.100 > ? libavcodec???? 57.107.100 / 57.107.100 > ? libavformat??? 57. 83.100 / 57. 83.100 > ? libavdevice??? 57. 10.100 / 57. 10.100 > ? libavfilter???? 6.107.100 /? 6.107.100 > ? libavresample?? 3.? 7.? 0 /? 3.? 7.? 0 > ? libswscale????? 4.? 8.100 /? 4.? 8.100 > ? libswresample?? 2.? 9.100 /? 2.? 9.100 > ? libpostproc??? 54.? 7.100 / 54.? 7.100 > [rtsp @ 0x560c90b43940] Nonmatching transport in server reply > rtsp://admin:20160404@10.10.6.187:554/onvif1: Invalid data found when > processing input > * > > This is essentially the same error that I see in the Motion log when I > try to use it there: > > *[5:ml5:frontdoor] [NTC] [ALL] [Nov 30 08:11:44] motion_init: Camera 5 > started: motion detection Enabled > [5:ml5:frontdoor] [NTC] [VID] [Nov 30 08:11:44] vid_start: Opening > Netcam RTSP > [5:ml5:frontdoor] [INF] [NET] [Nov 30 08:11:44] netcam_rtsp_set_parms: > Setting up Normal resolution stream. > [5:ml5:frontdoor] [INF] [NET] [Nov 30 08:11:44] netcam_rtsp_set_path: > Setting up rtsp via ffmpeg netcam > [5:ml5:frontdoor] [INF] [NET] [Nov 30 08:11:44] netcam_rtsp_set_rtsp: > Normal resolution: Setting rtsp transport to tcp > [5:ml5:frontdoor] [INF] [ENC] [Nov 30 08:11:44] ffmpeg_avcodec_log: > Nonmatching transport in server reply > [5:ml5:frontdoor] [ERR] [NET] [Nov 30 08:11:44] > netcam_rtsp_open_context: Normal resolution: Unable to open > camera(frontdoor): Invalid data found when processing input > [5:ml5:frontdoor] [INF] [NET] [Nov 30 08:11:44] netcam_rtsp_cleanup: > Normal resolution: Shutting down network camera. > [5:ml5:frontdoor] [NTC] [NET] [Nov 30 08:11:44] netcam_rtsp_cleanup: > Normal resolution: Shut down complete. > [5:ml5:frontdoor] [ERR] [VID] [Nov 30 08:11:44] vid_start: Netcam RTSP > failed to open > [5:ml5:frontdoor] [WRN] [ALL] [Nov 30 08:11:44] motion_init: Could not > fetch initial image from camera > [5:ml5:frontdoor] [WRN] [ALL] [Nov 30 08:11:44] motion_init: Motion > continues using width and height from config file(s) > [5:ml5:frontdoor] [NTC] [ALL] [Nov 30 08:11:44] image_ring_resize: > Resizing pre_capture buffer to 1 items > [5:ml5:frontdoor] [NTC] [DBL] [Nov 30 08:11:44] dbse_init: Database > backend mysql > [5:ml5:frontdoor] [NTC] [ALL] [Nov 30 08:11:44] image_ring_resize: > Resizing pre_capture buffer to 7 items > [5:ml5:frontdoor] [WRN] [ALL] [Nov 30 08:11:50] mlp_retry: Retrying > until successful connection with camera* > > > Could the problem be caused by the failing one requiring a userid and > password? I can't change or eliminate it because reasons. Why would it > work fine in /ffplay/ and /vlc/ but not /ffmpeg/? Anyone have any idea > how I can make this camera work with Motion? > > > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 149, Issue 36 ********************************************