For my particular use case, I have to read the frames programatically to extract the I frames and stream the I frames in a UI container. So far I can compile and the following program from this link to extract the YUV filtered images.
I found this example easy to modify for my use case.
Disclaimer: : This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. No Liability is attached to the originator or Elementz Engineers Guild Pvt. Ltd. Views or opinions presented in this email is of the author and may not necessarily reflect the opinions of Elementz Engineers Guild Pvt. Ltd.
This message contains confidential information. If you have received this e-mail by mistake, please notify the sender immediately by e-mail and delete this e-mail and its contents from your system.