This is a different issue. Previously we have resolved the low FPS issue and achieved 30 FPS using NVIDIA HW-MJPEG decoder. The issue now is, I am able to achieve 30 FPS but there is a consistent lag/latency for around 400 to 600 ms for each frames in the camera live preview.
No worries. Now I have found out the reason for this issue. The problem is, the hw-mjepg decoder is taking little bit more time during initialisation and de-queue of buffer for the first time. During this time, I have queued more frames into it and there by introducing permanent lag/latency for the rest of the live streaming frames. Now I have added a frame skip logic during the initialisation time and resolved this latency issue.
Thank-you for your support.