can't connect the "decodebin" to pipeline
Dudi.r
dudi017 at gmail.com
Wed Mar 26 00:40:48 PDT 2014
Hi,
Im trying to build pipeline that transmit video, it works fine with
"gst-launch" but not on code.
the problem is "decodebin2". I don't know why but it can't be connected.
this is the pipeline:
filesrc location=movie.mp4 ! decodebin2 ! x264enc ! rtph264pay ! udpsink
port=61643
this is the part of the code:
pipeline = gst_pipeline_new ("pipeline")
src = gst_element_factory_make ("filesrc", "src");
decbin=gst_element_factory_make ("decodebin2", "decbin");
encoder = gst_element_factory_make ("x264enc", "encoder");
rtppay = gst_element_factory_make ("rtph264pay", "rtppay");
sink = gst_element_factory_make ("udpsink", "sink");
g_object_set(G_OBJECT(src),"location","movie.mp4",NULL);
g_object_set(G_OBJECT(sink),"port",61643,NULL);
gst_bin_add_many (GST_BIN (pipeline), src, decbin, encoder, rtppay, sink,
NULL);
if (gst_element_link_many ( src, decbin, encoder, rtppay , sink, NULL) !=
TRUE)
{
g_printerr ("Elements could not be linked.\n");
gst_object_unref (pipeline);
return 0;
}
if someone know why is the decodebin2 can't be connected it will be great!
thanks..
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/can-t-connect-the-decodebin-to-pipeline-tp4666112.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list