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. .mp4 files as input - how to detect motion (Hz3az54) 2. Re: .mp4 files as input - how to detect motion (MrDave) ---------------------------------------------------------------------- Message: 1 Date: Tue, 10 Oct 2017 16:39:43 -0400 From: Hz3az54 <hz3a...@protonmail.com> To: "motion-user@lists.sourceforge.net" <motion-user@lists.sourceforge.net> Subject: [Motion-user] .mp4 files as input - how to detect motion Message-ID: <Wd5hZ18tjLwKgVCc7CSXLMv5GB5H3Qgsfs9ni6i3SbS20OvB3uwiorMr4AGaHEGE8F5DiMkx5vOHfiHl3sVIUbvT-54cIiZcypPhrcBK2LE=@protonmail.com> Content-Type: text/plain; charset="utf-8" hello, I would like to do something with my huge ( 3+ TB) video footage from CCTV cameras. I would like to extract motion data only (images+video). There is no hardware camera, and there isn't any stream. I have only .mp4 files which I would like to analyse. Is that possible? I have tried to custmomize the .conf file: ########################################################### # Capture device options ############################################################ # Videodevice to be used for capturing (default /dev/video0) # for FreeBSD default is /dev/bktr0 videodevice /media//085a6e19-7de4-438e-8988-8c06d34a7863/k4m/20171003/17_c28.mp4 As a path to the specific file - comes from the cctv camera in past. But after 2 minutes after start I have got similar messages in log: [1:ml1] [WRN] [ALL] [Oct 10 22:20:10] motion_loop: Retrying until successful connection with camera [1:ml1] [NTC] [VID] [Oct 10 22:20:10] vid_v4lx_start: Using videodevice /media/085a6e19-7de4-438e-8988-8c06d34a7863/k4m/20171003/17_c28.mp4 and input -1 [1:ml1] [ERR] [VID] [Oct 10 22:20:10] v4l2_get_capability: Not a V4L2 device? [1:ml1] [NTC] [VID] [Oct 10 22:20:10] vid_v4lx_start: Using V4L1 [1:ml1] [ERR] [ALL] [Oct 10 22:20:10] motion_loop: Video device fatal error - Closing video device [1:ml1] [NTC] [VID] [Oct 10 22:20:10] vid_close: Closing video device /media/085a6e19-7de4-438e-8988-8c06d34a7863/k4m/20171003/17_c28.mp4 [1:ml1] [DBG] [ALL] [Oct 10 22:20:10] motion_loop: vid_return_code 1 [1:ml1] [DBG] [ALL] [Oct 10 22:20:10] motion_loop: vid_return_code 1 [1:ml1] [DBG] [ALL] [Oct 10 22:20:10] motion_loop: vid_return_code 1 I know the ffmpeg should help me, but I have problems with finding good documentation about that. Motion looks very interesting and has all features which I would like to use, so... I would really like to try to use it. If the file input is not best solution, I can try to convert this file into any videostream - from ffpmeg. Sent with [ProtonMail](https://protonmail.com) Secure Email. -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Tue, 10 Oct 2017 17:51:13 -0600 From: MrDave <motionmrd...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] .mp4 files as input - how to detect motion Message-ID: <789f773c-2020-ac60-d238-b567cb7b1...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" This is possible via streaming the file via ffmpeg to a v4l2 loopback device and then running motion on that device.? The flow would be static file -> ffmpeg->v4l2 loopback device ->motion See the static file section in the basic setup of the motion guide http://htmlpreview.github.io/?https://github.com/Motion-Project/motion/blob/master/motion_guide.html#Basic_Setup as well as the v4l2loopback setup section http://htmlpreview.github.io/?https://github.com/Motion-Project/motion/blob/master/motion_guide.html#Options_Pipe On 10/10/2017 2:39 PM, Hz3az54 via Motion-user wrote: > hello, > > I would like to do something with my huge ( 3+ TB) video footage from > CCTV cameras. > I would like to extract motion data only (images+video). There is no > hardware camera, and there isn't any stream. > > I have only .mp4 files which I would like to analyse. > Is that possible? I have tried to custmomize the .conf file: > > ########################################################### > # Capture device options > ############################################################ > > # Videodevice to be used for capturing? (default /dev/video0) > # for FreeBSD default is /dev/bktr0 > videodevice > /media//085a6e19-7de4-438e-8988-8c06d34a7863/k4m/20171003/17_c28.mp4 > > As a path to the specific file - comes from the cctv camera in past. > > But after 2 minutes after start I have got similar messages in log: > > [1:ml1] [WRN] [ALL] [Oct 10 22:20:10] motion_loop: Retrying until > successful connection with camera > [1:ml1] [NTC] [VID] [Oct 10 22:20:10] vid_v4lx_start: Using > videodevice > /media/085a6e19-7de4-438e-8988-8c06d34a7863/k4m/20171003/17_c28.mp4 > and input -1 > [1:ml1] [ERR] [VID] [Oct 10 22:20:10] v4l2_get_capability: Not a V4L2 > device? > [1:ml1] [NTC] [VID] [Oct 10 22:20:10] vid_v4lx_start: Using V4L1 > [1:ml1] [ERR] [ALL] [Oct 10 22:20:10] motion_loop: Video device fatal > error - Closing video device > [1:ml1] [NTC] [VID] [Oct 10 22:20:10] vid_close: Closing video device > /media/085a6e19-7de4-438e-8988-8c06d34a7863/k4m/20171003/17_c28.mp4 > [1:ml1] [DBG] [ALL] [Oct 10 22:20:10] motion_loop: vid_return_code 1 > [1:ml1] [DBG] [ALL] [Oct 10 22:20:10] motion_loop: vid_return_code 1 > [1:ml1] [DBG] [ALL] [Oct 10 22:20:10] motion_loop: vid_return_code 1 > > I know the ffmpeg should help me, but I have problems with finding > good documentation about that. Motion looks very interesting and has > all features which I would like to use, so... I would really like to > try to use it. > > If the file input is not best solution, I can try to convert this file > into any videostream - from ffpmeg. > > > Sent with ProtonMail <https://protonmail.com> Secure Email. > > > > ------------------------------------------------------------------------------ > 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 -------------- 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 136, Issue 2 *******************************************