stop image formation
prkhr4u
prakhargupta at bel.co.in
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,
NULL);
gst_element_link_many(src,jpegdec,ffmpeg,ffenc_bmp, sink);
g_object_set (src, "location", "http://169.254.75.39/video2.mjpg",
NULL);
g_object_set (sink, "location", "abc.bmp", NULL);
GstStateChangeReturn sret = gst_element_set_state (pipeline,
GST_STATE_PLAYING);
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: http://gstreamer-devel.966125.n4.nabble.com/stop-image-formation-tp4665268p4665289.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list