How to use ximagesrc on imx6dl ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use ximagesrc on imx6dl ?

1,947件の閲覧回数
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 返答(返信)

1,752件の閲覧回数
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 件の賞賛
返信

1,752件の閲覧回数
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 件の賞賛
返信