How to use ximagesrc on imx6dl ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to use ximagesrc on imx6dl ?

1,139 次查看
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 ...

标签 (1)
标记 (2)
0 项奖励
2 回复数

944 次查看
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 项奖励

944 次查看
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 项奖励