This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to use gstreamer omx_camera source from application

Hi all,

I have omap4460 based HW running Ubuntu Precise SW. My target is to implement simple test application that can be used to modify imaging pipeline settings (gamma, white balance, RGB etc) of OMAP's imaging sub-system (ISS / ISP-image signal processor). I have set up buildroot+scratchbox2 cross compilation toolchain to my Ubuntu Precise PC to compile applications for ARM. Currently I'm thinking that good way to start to create/control pipeline from my application would be gstreamer. So far I have been able to run cross-compiled basic-tutorial-2 application that can be found from gstreamer sdk (http://docs.gstreamer.com/display/GstSDK/Basic+tutorials).

In OMAP's Ubuntu SW there is TI's ubuntu-omap4-extras package installed, i.e. there exists gst-openmax/ omx_camera gst element that should be used to benifit from ISS capabilities, I have understood.

In OMAP's Linux terminal I'm able to run very simplified gst command using omx_camera and I will get picture from camera: gst-launch omx_camera name=cam cam.src ! dri2videosink

Anyway, I can not understand the purpose of the needed properties 'name=cam' and 'cam.src' (is 'cam.src' a separate property setting?), and I don't know how to define this in C application code. I tried to remove 'name' property + 'cam.src', but pipeline doesn't start without them.

Can you please give me an example how to define 'cam.src' / gst pipeline using omx_camera in c-code ? 

This is how I create source and sink elements and build the pipeline in c file:
source = gst_element_factory_make ("omx_camera", "source");
sink = gst_element_factory_make ("dri2videosink", "sink");
gst_bin_add_many (GST_BIN (pipeline), source, sink, NULL);

... and this is how I set source property 'name':
g_object_set (source, "name", "cam", NULL);

What I'm missing is that how to define needed 'cam.src' in my gsrteamer application's c-code.
Without this information it seems that I'm not able to use omx_camera at all from my application.

br, J-P Leinonen