Parent Category: Manual & FAQs
Category: 06 ContaCam Advanced Tasks

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 --repeat "motion_detection.mp4" --sout-keep --sout "#transcode{vcodec=mjpg,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace;boundary=7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8080/videostream.cgi}"

--repeat: means to infinitely repeat the given video file

--sout-keep: this keeps the stream open when repeating the 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 Camera - Network / IP Camera dialog enter:

Vlc mpjpeg

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