It's possible to re-stream a recorded video file to trim the ContaCam detection parameters. The procedure is to record some subjects and feed the motion engine with that video.

1. Issue the following VLC command by adapting the path to vlc.exe and changing motion_detection.mp4 with the full name of your recorded video file:

vlc.exe -R "motion_detection.mp4" --sout "#transcode{vcodec=mjpg,vb=2500,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace;boundary=7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8080/videostream.cgi}"

-R: means to infinitely repeat the given video file

boundary: do not change the boundary string, it's hardcoded inside the VLC mpjpeg muxer!

dst: set the port used in ContaCam to connect to the generated mjpeg stream

 

2. In ContaCam's Capture - Network dialog enter:

vlc_mpjpeg.png

Now in the opened device fine tune the detection parameters and when done backport them to your real camera.