How to use ximagesrc on imx6dl ?

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

How to use ximagesrc on imx6dl ?

1,116 Views
819265478
Contributor I

root@imx6qsabresd:/App# gst-launch-1.0 ximagesrc num-buffers=1 pngenc ! filesink location=test.png

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstXImageSrc:ximagesrc0: Could not open X display for reading
Additional debug info:
../../../gst-plugins-good-1.8.1/sys/ximage/gstximagesrc.c(160): gst_ximage_src_open_display (): /GstPipeline:pipeline0/GstXImageSrc:ximagesrc0:
NULL returned from getting xcontext
Setting pipeline to NULL ...
Freeing pipeline ...

Labels (1)
Tags (2)
0 Kudos
2 Replies

921 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi kun,

The ximagesrc should be available along the gstreamer packages. Have you tried using it to see if it generates an error? You could test taking a screenshot with the command:

gst-launch-1.0 ximagesrc num-buffers=1 ! pngenc ! filesink location=./file.png

If it shows an error. Could you provide details on it?

Regards

0 Kudos

921 Views
819265478
Contributor I

root@imx6qsabresd:/App# gst-launch-1.0 ximagesrc num-buffers=1 pngenc ! filesink location=test.png

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstXImageSrc:ximagesrc0: Could not open X display for reading
Additional debug info:
../../../gst-plugins-good-1.8.1/sys/ximage/gstximagesrc.c(160): gst_ximage_src_open_display (): /GstPipeline:pipeline0/GstXImageSrc:ximagesrc0:
NULL returned from getting xcontext
Setting pipeline to NULL ...
Freeing pipeline ...

0 Kudos