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 !
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!
Hello,
Gstreamer is included in multimedia recipes of NXP Linux BSP.
Also, please look at the following :
Have a great day,
Yuri
------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct
Answer button. Thank you!
------------------------------------------------------------------------------