Adding vertigotv filter between videotestsrc and autovideosink

Sebastian Dröge sebastian at centricular.com
Thu Nov 28 06:17:36 PST 2013


On Do, 2013-11-28 at 19:58 +0600, ArifHossain wrote:
> Hi,
> 
> I'm trying to add a vertigotv filter between videotestsrc and autovideosink like follows :
> 
> GstElement *pipeline, *source, *sink, *filter;
>   
>    
>   source = gst_element_factory_make ("videotestsrc", "source");
>   sink = gst_element_factory_make ("autovideosink", "sink");
>   filter = gst_element_factory_make("vertigotv", "filter");
>   
>   pipeline = gst_pipeline_new ("test-pipeline");
>     
>   if (!pipeline || !source || !sink) {
>     g_printerr ("Not all elements could be created.\n");
>     return -1;
>   }
>    
>   /* Build the pipeline */
>   gst_bin_add_many (GST_BIN (pipeline), source, filter, sink, NULL);
>   if (((gst_element_link (source, filter)) && (gst_element_link (filter, sink)))  != TRUE) {
>     g_printerr ("Elements could not be linked.\n");
>     gst_object_unref (pipeline);
>     return -1;
>   }
> 
> But when it stops with following message :
> 
> "Unable to set the pipeline to the playing state"

Problem here is that vertigotv only handles RGB but your sink probably
wants RGB in a different order or some YUV color format. Try adding a
videoconvert element between vertigotv and the video sink
(ffmpegcolorspace in case you still have to use 0.10). 

> Another thing is how should i debug this kind of scenario to find out what actually went wrong?

Check the output on the terminal, the error messages you get on the bus
and if all fails the GStreamer debug output:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-checklist-debug.html

Instead of --gst-debug you can also set the environment variable
GST_DEBUG.

-- 
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131128/91f787ad/attachment.pgp>


More information about the gstreamer-devel mailing list