AnsweredAssumed Answered

How to use the gst-launch in application

Question asked by rothwan huang on Nov 14, 2016
Latest reply on Nov 16, 2016 by Yuri Muhin

Hi ,  My Bsp is imx6q_L3_14_52.

gst-launch videotestsrc ! 'video/x-raw-rgb, width=(int)640,height=(int)480' ! ximagesink  is OK, but i want to create the application,for example Video Record,Video Play , but i don't know how to link the gstreamer lib in my application ? can you support the reference of Using gstreamer lib ? for example in my application have some sub functions from gstreamer,  

   /* Create gstreamer elements */
  pipeline      = gst_pipeline_new ("media-player");
  source        = gst_element_factory_make ("filesrc","file-source");
  demuxer      = gst_element_factory_make ("mfw_mp4demuxer","avi-demuxer");
  decvd        = gst_element_factory_make ("mfw_vpudecoder", "video-decoder");
  decad        = gst_element_factory_make ("mad", "mp3-decoder");
  vdsink        = gst_element_factory_make ("mfw_v4lsink",    "video-sink");
  vdqueue      = gst_element_factory_make ("queue",            "video-queue");
  adqueue      = gst_element_factory_make ("queue",            "audio-queue");
  adsink        = gst_element_factory_make ("fakesink",        "audio-sink");

  g_object_set (decvd, "codec-type", "std_avc", NULL);

and so on, when compile the program, some Errors are show.