How to use the gst-launch in application

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use the gst-launch in application

2,150 Views
rothwanhuang
Contributor II

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.

 

 

Thanks!

Labels (1)
0 Kudos
9 Replies

1,224 Views
Yuri
NXP Employee
NXP Employee

Hello

  it is required to build target system, including multimedia recipes (with GST) of NXP Linux BSP,

and then - build SDK for application design.

 

https://community.nxp.com/docs/DOC-95254 

How to build the yocto SDK? 

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,224 Views
rothwanhuang
Contributor II

Hi Yuri,

      Yes, i add add the following code to my local.conf:

 

LICENSE_FLAGS_WHITELIST = "commercial"

 

COMMERCIAL_AUDIO_PLUGINS ?= " \

gst-plugins-ugly-mad \

gst-plugins-ugly-mpegaudioparse \

"

COMMERCIAL_VIDEO_PLUGINS ?= " \

gst-plugins-ugly-mpeg2dec \

gst-plugins-ugly-mpegstream \

gst-plugins-bad-mpegvideoparse \

"

CORE_IMAGE_EXTRA_INSTALL += " \

packagegroup-fsl-gstreamer \

gst-plugins-base-videotestsrc \

gst-plugins-bad-fbdevsink \

gst-ffmpeg alsa-utils \

gst-plugins-good-isomp4 \

"

and can i use tnem for my application design ?

Thanks!

0 Kudos

1,224 Views
Yuri
NXP Employee
NXP Employee

Have You generated the SDK ?

~Yuri.

0 Kudos

1,224 Views
rothwanhuang
Contributor II

No , I don't know how to generated the SDK ,can you support the steps for  generated the SDK? thanks!

0 Kudos

1,224 Views
Yuri
NXP Employee
NXP Employee
0 Kudos

1,224 Views
rothwanhuang
Contributor II

Hi Yuri,

  i read the "How to build the yocto SDK? " ,but i don't know how to build or add the yocto SDK in my linux ? can you tell me the steps ? thanks!

0 Kudos

1,224 Views
Yuri
NXP Employee
NXP Employee

Hello,

  the following may be helpful regarding Yocto approach :

Yocto Project Software Development Kit (SDK) Developer's Guide 

Regards,

Yuri.

0 Kudos

1,224 Views
rothwanhuang
Contributor II

Hi Yuri,

    1.png2.png

  1.   I have the bsp of  imx6q_L3_14_52.and how to modify the conf file ? and how to bitbake <image> -c populate_sdk ?  the toolchain installer will be in tmp/deploy/sdk in the Build Directory."  thanks !
0 Kudos

1,224 Views
Yuri
NXP Employee
NXP Employee

 As for NXP BSPs specifics, please use NXP Linux documentation;

in particular "i.MX_Yocto_Project_User's_Guide.pdf" and"i.MX_BSP_Porting_Guide.pdf".

 

http://www.nxp.com/webapp/Download?colCode=L3.14.52_1.1.0_LINUX_DOCS&Parent_nodeId=13376994810717061... 

Summary Page :

i.MX 6 Series Software and Development Tool|NXP 

~Yuri.

0 Kudos