PeterBee97 opened a new pull request, #1449: URL: https://github.com/apache/nuttx-apps/pull/1449
## Summary Add NxCamera app similar to NxLooper, which can be used to control video capture device. The basic capture n' display function is complete, while file output and camera control features are left TODO. The app can be used even without a real camera. To use v4l2loopback virtual camera (which captures from your desktop screen), you need to have v4l2loopback module installed and enabled. On Ubuntu the commands are: ``` sudo apt-get -y install v4l2loopback-dkms sudo modprobe v4l2loopback ``` Then `lsmod | grep v4l2loopback` will output something like: ``` v4l2loopback 57344 2 videodev 315392 6 videobuf2_v4l2,v4l2loopback,uvcvideo,videobuf2_common ``` Now that you have v4l2loopback enabled, you can install `ffmpeg` and start a virtual camera with: ``` ffmpeg -f x11grab -r 30 -s 480x480 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/videoX ``` where /dev/videoX is your virtual camera path. Then, in NuttX, use: ``` nsh> nxcamera NxCamera version 1.00 h for commands, q to exit nxcamera> nxcamera> input /dev/video nxcamera> nxcamera> output /dev/fb0 nxcamera> nxcamera> stream 480 480 30 YU12 nxcamera_stream: ============================== nxcamera_stream: streaming video nxcamera_stream: ============================== nxcamera_loopthread: Entry nxcamera> ``` and you can see the result as shown here:  The usage of regular USB camera is similar, and normally you can use YUYV format. ## Impact ## Testing -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org