Not all elements could be created

Chuck Crisler ccrisler at mutualink.net
Thu Jan 30 07:18:40 PST 2014


There is a huge number of possible reasons and this doesn't give any
indication. Enable logging to see what fails. export GST_DEBUG=x264enc:5
You may also need to look into the element factory. Check the doc for the
proper name(s) or use export GST_DEBUG=*:5, which will log everything


On Thu, Jan 30, 2014 at 5:50 AM, d <dudi017 at gmail.com> wrote:

> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140130/a80aec6e/attachment-0001.html>


More information about the gstreamer-devel mailing list