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 ...
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
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 ...