2687b938a0
Video clips recorded from the camera are no longer append, instead the clips are kept as is and then linked together in a playlist file in the output_dir. this makes it much more efficient and easier to maintain code. Also discovered that ffmpeg have a tendency to stall mid execution of recording from the rtsp stream every now and then. added a work around in the form of calling ffmpeg via the timeout command instead of directly so it will force kill ffmpeg if it goes longer than the expected BUF_SZ. Increased BUF_SZ to 10 secs. Added a clause in the recording loop that will make it write out a second clip if motion was detected.
8 lines
278 B
CMake
8 lines
278 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
project( MotionWatch )
|
|
find_package( OpenCV REQUIRED )
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pthread")
|
|
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
|
add_executable( mow src/main.cpp )
|
|
target_link_libraries( mow ${OpenCV_LIBS} )
|