stop image formation

prkhr4u prakhargupta at
Fri Feb 14 21:39:25 PST 2014

I have made a sample code like this:

GstElement *pipeline = gst_pipeline_new ("xvoverlay");
    GstElement *src = gst_element_factory_make ("souphttpsrc",NULL);
    GstElement *jpegdec = gst_element_factory_make("jpegdec",NULL);
    GstElement *ffmpeg= gst_element_factory_make("ffmpegcolorspace",NULL);
    GstElement *ffenc_bmp = gst_element_factory_make("ffenc_bmp",NULL);
    GstElement *sink = gst_element_factory_make ("multifilesink", NULL);

    gst_element_set_state(sink, GST_STATE_READY);

    gst_bin_add_many (GST_BIN (pipeline), src,jpegdec,ffmpeg,ffenc_bmp,sink,
    gst_element_link_many(src,jpegdec,ffmpeg,ffenc_bmp, sink);

    g_object_set (src, "location", "",
    g_object_set (sink, "location", "abc.bmp", NULL);
    GstStateChangeReturn sret = gst_element_set_state (pipeline,
    if (sret == GST_STATE_CHANGE_FAILURE) {
      gst_element_set_state (pipeline, GST_STATE_NULL);
      gst_object_unref (pipeline);

But this code is not producing anything,nothing is happening.
What may be the possible reason?
I am able to play live stream and other gstreamer codes and everything is
correctly setup.

View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list