Send Motion-user mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
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: Wed, 25 Jul 2018 08:57:46 +0300
From: Maksim Noskov <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] help
Message-ID:
<cakz65+qwx_juq_pzakmhvzaximbqdh+t4q2rkvlagtryc28...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Thanks all, very much
Works when I run:
*motion -c /etc/motion/motion.conf*
That is, when I explicitly specify the path to the configuration file
2018-07-24 17:30 GMT+03:00 <[email protected]>:
>
> Just to provide an example of what I have used in my thread#.conf files:
>
> on_event_start avconv -i 'rtsp://USER:[email protected].
> 253/nphMpeg4/g726-320x240' -c:a libmp3lame /home/user1/motion-images/
> c253/%tcam253%Y-%m-%d_%H-%M-%S.mp3
>
> on_event_end pkill -SIGTERM -f "%tcam253"
>
>
>
> On Tue, Jul 24, 2018 at 5:37 AM, tosiara <[email protected]> wrote:
>
>> For the test run motion like this:
>>
>> sudo motion -c /path/to/your/motion.conf -d 7 -n
>>
>> On Tue, Jul 24, 2018 at 3:20 PM, Maksim Noskov <[email protected]>
>> wrote:
>>
>>> 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 <[email protected]>:
>>>
>>>> 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 <[email protected]>
>>>> 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 <[email protected]>:
>>>>>
>>>>>> 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 <[email protected]>
>>>>>> 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
>>>>>>> [email protected]
>>>>>>> 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
>>>>>> [email protected]
>>>>>> 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
>>>>> [email protected]
>>>>> 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
>>>> [email protected]
>>>> 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
>>> [email protected]
>>> 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
>> [email protected]
>> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 145, Issue 29
********************************************