Adding vertigotv filter between videotestsrc and autovideosink

ArifHossain aftnix at gmail.com
Thu Nov 28 05:58:27 PST 2013


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"


Another thing is how should i debug this kind of scenario to find out what actually went wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131128/72cba558/attachment.html>


More information about the gstreamer-devel mailing list