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

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

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

980 Views
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 Kudos
2 Replies

690 Views
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 Kudos

690 Views
akashpatel
Contributor I

sorry its my typing mistake,

i used export DISPLAY=:-0 only

0 Kudos