FFMPEG + Rotate = Low Frame Rate
Posted: Mon Apr 16, 2018 8:34 pm
I posted a while back around an issue I was having with an h.264 camera and Zoneminder; long story short I have been unable to get anything reasonable as a frame rate from the main stream using FFMPEG. LibVLC works fine, but doesn't work with h.264 passthrough.
I narrowed the issue down today to the 'Rotate' function in ZM. If I have the stream set up with 'Normal' rotation everything works perfectly, the framerate easily matches what it is configured to on the camera, CPU utilization is reasonable, etc. However if I change the rotation in Zoneminder to 'Right' (which is what I need for this particular camera) the frame rate drops down to almost nothing, though it does vary. Setting the I-frame interval on the camera to a very short time helps though the max frame rate is still extremely limited.
TLDR;
- 'Source' set to 'Normal' rotation = everything works properly
- 'Source' set to 'Right' rotation = Zoneminder can't even come close to keeping up with the camera
Running iconnor's StorageAreas branch, 1.31.40...
I narrowed the issue down today to the 'Rotate' function in ZM. If I have the stream set up with 'Normal' rotation everything works perfectly, the framerate easily matches what it is configured to on the camera, CPU utilization is reasonable, etc. However if I change the rotation in Zoneminder to 'Right' (which is what I need for this particular camera) the frame rate drops down to almost nothing, though it does vary. Setting the I-frame interval on the camera to a very short time helps though the max frame rate is still extremely limited.
TLDR;
- 'Source' set to 'Normal' rotation = everything works properly
- 'Source' set to 'Right' rotation = Zoneminder can't even come close to keeping up with the camera
Running iconnor's StorageAreas branch, 1.31.40...