How to install the gst-launch and use on the target machine?

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

How to install the gst-launch and use on the target machine?

1,401 Views
rothwanhuang
Contributor II

 My Bsp is imx6q_L3_14_52, and we plan to design a dvr , and capture the picture , record video and write to the file ,and display on Lcd at the same time . and i want to use the gst-launch or gstreamer,but i don't know install the gst-launch and gstreamer,please support me,and offer the reference of setting or install ,for example :gst-launch-1.0 filesrc location=/home/root/output.mkv typefind=true ! matroskademux ! queue ! vpudec ! imxv4l2sink overlay-width=640 overlay-height=480,or # gst-launch-1.0 imxv4l2src device=/dev/video0 ! videoconvert ! 'video/x-raw, framerate=30/1, width=(int)640, height=(int)480, format=(string)I420' ! queue max-size-buffers=2 ! vpuenc_h264 ! matroskamux ! filesink location=output.mkv !   thanks !

0 Kudos
3 Replies

798 Views
rothwanhuang
Contributor II

Hi Yuri,

          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!

0 Kudos

798 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Please refer to  https://community.nxp.com/thread/438869 

Regards,

Yuri.

0 Kudos

798 Views
Yuri
NXP Employee
NXP Employee

Hello,

 

  Gstreamer is included in multimedia recipes of NXP Linux BSP.

Also, please look at the following :

Task #9 - How to add bad/ugly  

 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

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

------------------------------------------------------------------------------

0 Kudos