Not all elements could be created

d dudi017 at gmail.com
Thu Jan 30 02:50:49 PST 2014


Hi,

im trying to create x264enc:

int main (int argc, char *argv[]) {
  GstElement *pipeline, *src, *enc, *rtp, *sink;
   ...
   ... 

src = gst_element_factory_make ("videotestsrc", "src");
enc = gst_element_factory_make ("x264enc", "enc");
rtp = gst_element_factory_make ("rtph264pay", "rtp");
sink = gst_element_factory_make ("udpsink", "sink");

pipeline = gst_pipeline_new ("test-pipeline");

if (!pipeline || !src || !enc || !rtp || !sink  ) {
    g_printerr ("Not all elements could be created.\n");
    return -1;
  }
}

if I erase the line : enc = gst_element_factory_make ("x264enc", "enc"); the
program will run

any ideas..?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Not-all-elements-could-be-created-tp4664975.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list