项目需求,使用gstreamer录制video视频时同时储存gui(fb0)的数据,请问能做到吗?如何做呢?
就是屏幕录制,我们的产品包含视频 和gui的叠加数据,想同时录制下来,目前我只能使用gst单独录制视频的,gui的不知如何操作?
比如我在ubuntu上测试了
gst-launch-1.0ximagesrc remote=1 use-damage=0 ! video/x-raw,framerate=25/1 !videoconvert ! vp8enc ! matroskamux ! filesink location=/home/luke/test.mkv
但是在imx6dl上跑是失败的,如下:
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 ...
Is your board based on the X11 backend? The ximagesrc element could only be used on the X11 backend system, not on framebuffer backend system.