ffmpeg streams and image corruption
Posted: Fri Sep 20, 2013 11:56 pm
As I mentioned in another post, I'm using ffmpeg to capture images and detect motion from Ubiquiti AirCams. Some of my cameras are working perfectly, but others are giving me false motion detection with images that look like the one attached.
The only smoking gun I can find is messages like the following in the logs:
I have tried increasing the ring buffer size and tweaked the fps to no avail. I don't believe it is a shared memory issue as the max seg size is already up to 2GB and I'm not seeing any shmget errors in the logs. It's possible that it's just ffmpeg mis-intrepreting the stream, but I don't really have a way to tell.
Does anyone have any tips on how to track this down and fix it? At the moment, ZM is fairly useless to me for motion detection because of this problem and the corrupted images.
Thanks!
The only smoking gun I can find is messages like the following in the logs:
Code: Select all
Sep 20 16:17:20 zm zmc_m6[17042]: WAR [Buffer overrun at index 26, image 696386, slow down capture, speed up analysis or increase ring buffer size]
Sep 20 16:17:20 zm zmc_m6[17042]: WAR [Buffer overrun at index 26, image 696416, slow down capture, speed up analysis or increase ring buffer size]
Sep 20 16:17:20 zm zmc_m6[17042]: WAR [Buffer overrun at index 26, image 696446, slow down capture, speed up analysis or increase ring buffer size]
Does anyone have any tips on how to track this down and fix it? At the moment, ZM is fairly useless to me for motion detection because of this problem and the corrupted images.
Thanks!