Gstreamer not working in ubuntu 14 showing Not all elements could be created and it is working fine in Ubuntu 16

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer not working in ubuntu 14 showing Not all elements could be created and it is working fine in Ubuntu 16

Shubham Shrivastava
      data.source = gst_element_factory_make ("uridecodebin", "source");
       data.convert = gst_element_factory_make ("videoconvert", "convert");
       data.sink = gst_element_factory_make ("autovideosink", "sink");
       data.videoconvert1 = gst_element_factory_make("videoconvert", "videoconvert1");
    data.videoconvert2 = gst_element_factory_make("videoconvert", "videoconvert2");
    data.queue1 = gst_element_factory_make("queue", "queue1");
    data.queue2 = gst_element_factory_make("queue", "queue2");
    data.tee = gst_element_factory_make("tee", "tee");
  
    data.frameratefilter = gst_element_factory_make("capsfilter", NULL);
    data.videorate = gst_element_factory_make("videorate", NULL);
    data.avenc = gst_element_factory_make("avenc_mpeg2video", NULL);
    data.avimux = gst_element_factory_make("avimux", NULL);
    data.filesink = gst_element_factory_make("multifilesink", "filesink");
    data.splitmuxsink = gst_element_factory_make("splitmuxsink", "splitmuxsink");
      //  data.getchararray = gst_element_factory_make("/home/shubham/splintng/Videos", "getchararray");

       // data.filesink2 = gst_element_factory_make("filesink2", NULL);
  

     /* Create the empty pipeline */
       data.pipeline = gst_pipeline_new ("test-pipeline");

  if (!data.pipeline || !data.source || !data.convert || !data.videoconvert1 || !data.videoconvert2 || !data.queue1 || !data.queue2 || !data.tee || !data.sink || !data.filesink || !data.splitmuxsink ) {
    g_printerr ("Not all elements could be created.\n");
    return -1;
  }

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer not working in ubuntu 14 showing Not all elements could be created and it is working fine in Ubuntu 16

mahesh mane
May Be you have not installed all the gstreamer plugin's. Please check which element(s) is not present by separate check condition for each. And try this again after installing gstreamer base , bad and good plugin's. 

On Sat, Jul 7, 2018 at 7:45 PM, Shubham Shrivastava <[hidden email]> wrote:
      data.source = gst_element_factory_make ("uridecodebin", "source");
       data.convert = gst_element_factory_make ("videoconvert", "convert");
       data.sink = gst_element_factory_make ("autovideosink", "sink");
       data.videoconvert1 = gst_element_factory_make("videoconvert", "videoconvert1");
    data.videoconvert2 = gst_element_factory_make("videoconvert", "videoconvert2");
    data.queue1 = gst_element_factory_make("queue", "queue1");
    data.queue2 = gst_element_factory_make("queue", "queue2");
    data.tee = gst_element_factory_make("tee", "tee");
  
    data.frameratefilter = gst_element_factory_make("capsfilter", NULL);
    data.videorate = gst_element_factory_make("videorate", NULL);
    data.avenc = gst_element_factory_make("avenc_mpeg2video", NULL);
    data.avimux = gst_element_factory_make("avimux", NULL);
    data.filesink = gst_element_factory_make("multifilesink", "filesink");
    data.splitmuxsink = gst_element_factory_make("splitmuxsink", "splitmuxsink");
      //  data.getchararray = gst_element_factory_make("/home/shubham/splintng/Videos", "getchararray");

       // data.filesink2 = gst_element_factory_make("filesink2", NULL);
  

     /* Create the empty pipeline */
       data.pipeline = gst_pipeline_new ("test-pipeline");

  if (!data.pipeline || !data.source || !data.convert || !data.videoconvert1 || !data.videoconvert2 || !data.queue1 || !data.queue2 || !data.tee || !data.sink || !data.filesink || !data.splitmuxsink ) {
    g_printerr ("Not all elements could be created.\n");
    return -1;
  }

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel