|
From: MrDave <mot...@gm...> - 2017-10-10 23:51:14
|
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 > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user |