AnsweredAssumed Answered

Unable to capture screenshot on i.imx6 sabreauto

Question asked by Akash Patel on Jan 19, 2018
Latest reply on Feb 26, 2018 by Bio_TICFSL

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