streaming video file

d dudi017 at
Sat Feb 1 03:02:52 PST 2014


Im trying to stream a video file.

this is the code (part of it..):

  GstElement *pipeline, *src, *encoder, *parse, *rtp, *sink;

  src = gst_element_factory_make ("decodebin2", "src"); //  videotestsrc  
  encoder = gst_element_factory_make ("x264enc","encoder");
  rtp = gst_element_factory_make ("rtph264pay", "rtp");
  sink = gst_element_factory_make ("udpsink", "sink");

  g_object_set(G_OBJECT(src), "filesrc location", "sintel.mkv", NULL);

  gst_bin_add_many (GST_BIN (pipeline), src, encoder, rtp, sink, NULL);

  if (gst_element_link_many (src, encoder, rtp, sink, NULL) != TRUE) {
    g_printerr ("Elements could not be linked.\n");
    gst_object_unref (pipeline);
    return -1;

I get the error "Elements could not be linked"
how can stream video file?


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

More information about the gstreamer-devel mailing list