I am developing a Qt application for Jetson TX2 developer kit with a minimal operating system based on Yocto and meta-tegra (without x11, with Qt eglfs platform plugin). I need do screen recording (ideally zero-copy). What is the best way to do it?
Not sure how to do screen capture in QT. Would need other users to share experience.
By default you can run gstreamer command to capture the screen:
$ gst-launch-1.0 ximagesrc num-buffers=100 use-damage=0 ! video/x-raw ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=a.mp4
Sorry for not responding for a long time. Thanks for your answer, but ximagesrc requires x11 on the operating system, but I don’t have x11 on my OS
A user has shared another method. Please take a look at
Recording Screen with Gstreamer while Using EGLFS - #7 by ammar.zafar8