Files through MotionDetect
Posted: 16 Nov 2018 15:45
Hi folks.
Just wondering if I can implement motiondetect through the terminal/Ruby script to log motion detection. I record video security files and I don't want to watch them at the end of the day. I'd rather my workstation go through them and tell me what to look for.
Currently I'm trying to run the CLI to log -vv or -vvv into a text file so that I can use Ruby to iterate through it and grab necessary information for notification. Here is as far as I have got so far, not much in it:
vlc -vv --video-filter=motiondetect tshort.mov
Current issues:
- It doesn't follow through after the video is completed. Output:
I force quit the app, and the terminal pops out some more feedback:
- -vv doesn't have timestamps for me to reference upon a set limit (X moving shapes)
- -vvv doesn't seem to have a timestamp within the clip, or anything that I can see that I can use as a timeline marker I can translate to time.
Any insight appreciated. Cheers
Just wondering if I can implement motiondetect through the terminal/Ruby script to log motion detection. I record video security files and I don't want to watch them at the end of the day. I'd rather my workstation go through them and tell me what to look for.
Currently I'm trying to run the CLI to log -vv or -vvv into a text file so that I can use Ruby to iterate through it and grab necessary information for notification. Here is as far as I have got so far, not much in it:
vlc -vv --video-filter=motiondetect tshort.mov
Current issues:
- It doesn't follow through after the video is completed. Output:
Code: Select all
...
[00007fbd1e0848f0] main input debug: waiting decoder fifos to empty
[00007fbd1cc6aa70] motiondetect filter debug: Counted 0 moving shapes.
[00007fbd1cc6aa70] motiondetect filter debug: Counted 0 moving shapes.
[00007fbd1cc6aa70] motiondetect filter debug: Counted 0 moving shapes.
[00007fbd1e0848f0] main input debug: waiting decoder fifos to empty
[00007fbd1cc6aa70] motiondetect filter debug: Counted 0 moving shapes.
[00007fbd1e0848f0] main input debug: waiting decoder fifos to empty
[00007fbd1cc6aa70] motiondetect filter debug: Counted 0 moving shapes.
[00007fbd1e0848f0] main input debug: waiting decoder fifos to empty
[00007fbd1e0848f0] main input debug: waiting decoder fifos to empty
[00007fbd1cc6aa70] motiondetect filter debug: Counted 0 moving shapes.
[00007fbd1e0848f0] main input debug: waiting decoder fifos to empty
[00007fbd1cc6aa70] motiondetect filter debug: Counted 0 moving shapes.
[00007fbd1a7630a0] main decoder debug: killing decoder fourcc `MJPG'
[00007fbd1a7630a0] main decoder debug: removing module "avcodec"
[00007fbd1a503650] main playlist debug: saving a free vout
[00007fbd1a503650] main playlist debug: reusing provided vout
[00007fbd1a4a7ef0] main decoder debug: killing decoder fourcc `s16l'
[00007fbd1a4a7ef0] main decoder debug: removing module "araw"
[00007fbd1c97f7a0] main audio resampler debug: removing module "samplerate"
[00007fbd1ca92720] main audio converter debug: removing module "audio_format"
[00007fbd1c96f490] main audio filter debug: removing module "scaletempo"
[00007fbd1c97ef40] main audio converter debug: removing module "trivial"
[00007fbd1a6008c0] auhal audio output debug: Stopping the auhal module
[00007fbd1cb92a90] main volume debug: removing module "float_mixer"
[00007fbd1a503650] main playlist debug: keeping audio output
[00007fbd1a5db9e0] main demux debug: removing module "mp4"
[00007fbd1a5db9e0] mp4 demux debug: freeing all memory
[00007fbd1e0848f0] main input debug: Program doesn't contain anymore ES
[00007fbd1a5da340] main stream debug: removing module "record"
[00007fbd1cb5b2d0] main stream debug: removing module "cache_read"
[00007fbd1c843f50] main stream debug: removing module "filesystem"
[00007fbd1a503650] main playlist debug: dead input
[00007fbd1a503650] main playlist debug: changing item without a request (current 0/1)
[00007fbd1a503650] main playlist debug: nothing to play
[00007fbd1d892af0] main video output debug: destroying useless vout
[00007fbd1cd00d50] main vout display debug: removing module "macosx"
[00007fbd1cc6aa70] main filter debug: removing module "motiondetect"
[00007fbd1d892af0] main video output debug: Filter 0x7fbd1cc6aa70 removed from chain
[00007fbd1cbd49d0] main spu text debug: removing module "freetype"
[00007fbd1c97da70] main scale debug: removing module "yuvp"
[00007fbd1ca66420] main scale debug: removing module "swscale"
[00007fbd1cb093b0] macosx interface debug: toggle playlist from state: removed splitview 0, minimized view 0. Event 2
[00007fbd1cb093b0] macosx interface debug: toggle playlist to state: removed splitview 0, minimized view 0
[00007fbd1cb093b0] macosx interface debug: Playback has been ended
[00007fbd1cb093b0] macosx interface debug: Releasing IOKit monitor sleep blocker (10194)
<hangs>
Code: Select all
[00007fbd1a42a590] main libvlc debug: exiting
[00007fbd1a42a590] main libvlc debug: removing all interfaces
[00007fbd1cb093b0] main interface debug: removing module "macosx"
[00007fbd1cb093b0] macosx interface debug: Closing macosx interface
[00007fbd1cb093b0] macosx interface debug: applicationWillTerminate called
[00007fbd1cb093b0] macosx interface debug: Playback has been ended
[00007fbd1cb093b0] macosx interface debug: Deinitializing input manager
[00007fbd1cb093b0] macosx interface debug: Deinitializing VLCMain object
[00007fbd1cb093b0] macosx interface debug: Deinitializing extensions manager
[00007fbd1cb093b0] macosx interface debug: Deinitializing playlist model
[00007fbd1cb093b0] macosx interface debug: Deinitializing dialog provider
[00007fbd1cb093b0] macosx interface debug: Deinitializing main menu
[00007fbd1a715930] main interface debug: removing module "hotkeys"
[00007fbd1a503650] main playlist debug: destroying
[00007fbd1a503650] main playlist debug: deactivating the playlist
[00007fbd1a6008c0] main audio output debug: removing module "auhal"
[00007fbd1a5e1080] main playlist export debug: saving media library to file /Users/rich/Library/Application Support/org.videolan.vlc/ml.xspf.tmp31780
[00007fbd1a5e1080] main playlist export debug: looking for playlist export module matching "export-xspf": 4 candidates
[00007fbd1a5e1080] main playlist export debug: using playlist export module "export"
[00007fbd1a5e1080] main playlist export debug: removing module "export"
[00007fbd1a503650] main playlist debug: deleting item `Media Library'
[00007fbd1a503650] main playlist debug: deleting item `tshort.mov'
[00007fbd1a503650] main playlist debug: deleting item `Playlist'
[00007fbd1a5008c0] main keystore debug: removing module "memory"
- -vvv doesn't seem to have a timestamp within the clip, or anything that I can see that I can use as a timeline marker I can translate to time.
Any insight appreciated. Cheers
Code: Select all
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
VLC version 3.0.4 Vetinari (3.0.4-0-gf615db6332)
Compiled by d-fu on d-fus-Mac.local (Aug 9 2018 19:23:50)
Compiler: clang: warning: argument unused during compilation: '-mmacosx-version-min=10.7' [-Wunused-command-line-argument]
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by the VideoLAN team; see the AUTHORS file.