Resolving format errors while using AppSrc in Java
I have been trying to put together a working example for an AppSrc based pipeline. The objective is to capture RGB frames through webcam using OpenCV's VideoCapture module. These frames are to be pushed into a Gstreamer pipeline using AppSrc (in live-mode), and then they are either displayed on screen using autovideosink/glimagesink, or they are saved in an AVI video.
This example is constructed to serve as a proof of concept for a different application, which continuously generates processed frames. I am successfully able to get the display properly with an error on console (as given below), repeated multiple times. Filesink however, also gives the same error, but does not write the AVI file properly. The file remains 1KB in size and does not open. The application freezes if I try to insert videorate into the pipeline.