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: help (Maksim Noskov) ---------------------------------------------------------------------- Message: 1 Date: Tue, 24 Jul 2018 15:20:27 +0300 From: Maksim Noskov <mx.nos...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] help Message-ID: <CAKZ65+SGxrhTBb-=KMQgTnzwoc34=gfjrqimgtza_qwkl97...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Now I wrote in motion.conf: on_event_start /etc/motion/test.sh on_event_end /etc/motion/test.sh on_motion_detected echo "TEST" >> /var/lib/motion/test.txt on_movie_start echo "test" >> /var/lib/motion/test.txt I run root@cams:~# sudo -s motion And try root@cams:~# sudo motion And root@cams:~# sudo -n motion And still nothing happened... Below the text from the log file: [2146535312:motion] [NTC] [ALL] [Jul 24 11:53:44] motion_startup: Using log type (ALL) log level (NTC) [2146535312:motion] [NTC] [ENC] [Jul 24 11:53:44] ffmpeg_init: ffmpeg libavcodec version 57.48.101 libavformat version 57.41.100 [0:motion] [NTC] [ALL] [Jul 24 11:53:44] main: Camera 0 is from /home/cam/motion.conf [0:motion] [NTC] [ALL] [Jul 24 11:53:44] main: Camera 0 is device: rtsp:// 192.168.1.252/mpeg4/media.amp input -1 [0:motion] [NTC] [ALL] [Jul 24 11:53:44] main: Stream port 0 [0:motion] [NTC] [ALL] [Jul 24 11:53:44] main: Waiting for threads to finish, pid: 11470 [1:ml1] [NTC] [ALL] [Jul 24 11:53:44] motion_init: Camera 0 started: motion detection Enabled [1:ml1] [ALR] [NET] [Jul 24 11:53:44] netcam_start: Network Camera thread starting... for url (rtsp://192.168.1.252/mpeg4/media.amp) [1:ml1] [NTC] [NET] [Jul 24 11:53:44] netcam_rtsp_open_context: Using tcp transport [1:ml1] [NTC] [NET] [Jul 24 11:53:45] netcam_connect_rtsp: Camera connected [1:ml1] [NTC] [ALL] [Jul 24 11:53:45] image_ring_resize: Resizing pre_capture buffer to 1 items [1:nc1] [ALR] [NET] [Jul 24 11:53:45] netcam_handler_loop: Camera handler thread [2] started [1:ml1] [NTC] [EVT] [Jul 24 11:53:47] event_new_video Source FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 11:53:47] ffmpeg_open Selected Output FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 11:53:47] ffmpeg_avcodec_log: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [1:ml1] [NTC] [EVT] [Jul 24 11:53:47] event_newfile: File of type 8 saved to: /var/lib/motion/01-20180724115347.avi [1:ml1] [NTC] [ALL] [Jul 24 11:53:47] motion_detected: Motion detected - starting event 1 [1:ml1] [NTC] [ALL] [Jul 24 11:53:54] motion_loop: End of event 1 [1:ml1] [NTC] [EVT] [Jul 24 11:55:20] event_new_video Source FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 11:55:20] ffmpeg_open Selected Output FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 11:55:20] ffmpeg_avcodec_log: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [1:ml1] [NTC] [EVT] [Jul 24 11:55:20] event_newfile: File of type 8 saved to: /var/lib/motion/02-20180724115520.avi [1:ml1] [NTC] [ALL] [Jul 24 11:55:20] motion_detected: Motion detected - starting event 2 [1:ml1] [NTC] [ALL] [Jul 24 11:55:20] motion_loop: End of event 2 [1:ml1] [NTC] [EVT] [Jul 24 12:03:37] event_new_video Source FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:03:37] ffmpeg_open Selected Output FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:03:37] ffmpeg_avcodec_log: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [1:ml1] [NTC] [EVT] [Jul 24 12:03:37] event_newfile: File of type 8 saved to: /var/lib/motion/03-20180724120337.avi [1:ml1] [NTC] [ALL] [Jul 24 12:03:37] motion_detected: Motion detected - starting event 3 [1:ml1] [NTC] [ALL] [Jul 24 12:03:38] motion_loop: End of event 3 [1:ml1] [NTC] [EVT] [Jul 24 12:03:46] event_new_video Source FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:03:46] ffmpeg_open Selected Output FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:03:46] ffmpeg_avcodec_log: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [1:ml1] [NTC] [EVT] [Jul 24 12:03:46] event_newfile: File of type 8 saved to: /var/lib/motion/04-20180724120346.avi [1:ml1] [NTC] [ALL] [Jul 24 12:03:46] motion_detected: Motion detected - starting event 4 [1:nc1] [ERR] [ENC] [Jul 24 12:05:13] ffmpeg_avcodec_log: ac-tex damaged at 11 0 [1:nc1] [ERR] [ENC] [Jul 24 12:05:13] ffmpeg_avcodec_log: Error at MB: 11 [1:ml1] [NTC] [ALL] [Jul 24 12:05:48] motion_loop: End of event 4 [1:ml1] [NTC] [EVT] [Jul 24 12:05:48] event_new_video Source FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:05:48] ffmpeg_open Selected Output FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:05:48] ffmpeg_avcodec_log: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [1:ml1] [NTC] [EVT] [Jul 24 12:05:48] event_newfile: File of type 8 saved to: /var/lib/motion/05-20180724120548.avi [1:ml1] [NTC] [ALL] [Jul 24 12:05:48] motion_detected: Motion detected - starting event 5 [1:ml1] [NTC] [ALL] [Jul 24 12:05:48] motion_loop: End of event 5 [1:ml1] [NTC] [EVT] [Jul 24 12:05:53] event_new_video Source FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:05:53] ffmpeg_open Selected Output FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:05:53] ffmpeg_avcodec_log: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [1:ml1] [NTC] [EVT] [Jul 24 12:05:53] event_newfile: File of type 8 saved to: /var/lib/motion/06-20180724120553.avi [1:ml1] [NTC] [ALL] [Jul 24 12:05:53] motion_detected: Motion detected - starting event 6 [1:ml1] [NTC] [ALL] [Jul 24 12:05:53] motion_loop: End of event 6 [1:ml1] [NTC] [EVT] [Jul 24 12:05:57] event_new_video Source FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:05:57] ffmpeg_open Selected Output FPS 10 [1:ml1] [NTC] [ENC] [Jul 24 12:05:57] ffmpeg_avcodec_log: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [1:ml1] [NTC] [EVT] [Jul 24 12:05:57] event_newfile: File of type 8 saved to: /var/lib/motion/07-20180724120557.avi [1:ml1] [NTC] [ALL] [Jul 24 12:05:57] motion_detected: Motion detected - starting event 7 [1:ml1] [NTC] [ALL] [Jul 24 12:06:00] motion_loop: End of event 7 2018-07-24 14:24 GMT+03:00 tosiara <tosi...@gmail.com>: > Please provide full log so we can see what worked and what didn't > > On Tue, Jul 24, 2018 at 1:51 PM, Maksim Noskov <mx.nos...@gmail.com> > wrote: > >> Thank you, but on_event_start doesn't work. >> I wrote: >> >> on_event_start echo "test" >> /tmp/test.txt >> >> and nothing happened >> >> And I try: >> >> on_event_start /tmp/test.sh >> >> test.sh: >> >> #!/bin/bash >> echo TEST >> /tmp/test.txt >> >> And nothing... >> >> I tryed on_motion_detected and on_movie_start, but nothing helped >> >> Please tell me, where is mistake? >> >> >> Thanks! >> >> 2018-07-22 20:33 GMT+03:00 <prismb...@gmail.com>: >> >>> It is possible. I have done it several ways. >>> See http://www.lavrsen.dk/foswiki/bin/view/Motion/SoundAudioRecording >>> >>> Besides arecord, I have used avconv and cvlc to record audio using >>> motion. >>> >>> >>> On Sun, Jul 22, 2018 at 1:42 AM, Maksim Noskov <mx.nos...@gmail.com> >>> wrote: >>> >>>> >>>> Hello! >>>> >>>> Please tell me, how I can get a sound from each camera? Is it possible?? >>>> >>>> -- >>>> >>>> >>>> *Best regards,* >>>> >>>> *Maksim Noskov * >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>>> _______________________________________________ >>>> 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 >>>> >>> >>> >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> 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 >>> >> >> >> >> -- >> >> >> *Best regards,* >> >> *Maksim Noskov * >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> 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 >> > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > 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 > -- *Best regards,* *Maksim Noskov * -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ------------------------------ 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 145, Issue 26 ********************************************