roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.5k stars 154 forks source link

Issue when creating video file for motion detection #738

Closed csuther28 closed 2 months ago

csuther28 commented 2 months ago

Running viseron via Docker on an Intel NUC.

I have the following error in the logs:

[2024-05-01 16:01:14] [INFO ] [viseron.components.nvr.nvr.camera_1] - Stopping recording in: 0 [2024-05-01 16:01:14] [INFO ] [viseron.components.ffmpeg.recorder.camera_1] - Stopping recorder [2024-05-01 16:01:17] [WARNING ] [viseron.components.ffmpeg.recorder.camera_1] - Could not find matching end segment. Using latest possible [2024-05-01 16:01:17] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - /recordings/camera_1/2024-05-01/16:01:04.mp4: Invalid argument

ffmpeg is trying to create a video file and based on the name does it include the date and time, however the ':' is applied but not accepted in Linux......could this format of the file name be changed?

roflcoopter commented 2 months ago

You can change the file format using the filename_pattern config option under recorder You can find the docs here: https://viseron.netlify.app/components-explorer/components/ffmpeg#configuration

csuther28 commented 2 months ago

Thank you so much, got it sorted.

roflcoopter commented 2 months ago

Great!