Unable to capture screenshot on i.imx6 sabreauto (LVDS)

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

Unable to capture screenshot on i.imx6 sabreauto (LVDS)

1,638 次查看
akashpatel
Contributor I

We tried using following methods to capture screenshot on imx6 sabreauto (LVDS DISPLAY) running xwayland  but output is always black screen, please let us know if we are missing anything related to settings on i.imx6


1)Gstreamer-1.0  ximagesrc

--> gst-launch-1.0 ximagesrc display-name=:0 ! video/x-raw, framerate=5/1 ! videoconvert ! jpegenc ! filesink location=desktop.jpg


2)Using ffmpeg :

--> ffmpeg -f x11grab -framerate 1 -video_size 1200x500 -i :0.0 -vframes 1 output22.jpeg


3)Using frame buffer copy:

--> cp /dev/fb0 screenshot.raw


4) Using screenshot command :

-->export display=:0

-->screenshot desktop.png

0 项奖励
回复
2 回复数

1,348 次查看
joanxie
NXP TechSupport
NXP TechSupport

I haven't tested this, but for the last step, you should use

"export DISPLAY=:0

screenshot desktop.png"

0 项奖励
回复

1,348 次查看
akashpatel
Contributor I

sorry its my typing mistake,

i used export DISPLAY=:-0 only

0 项奖励
回复