Regarding the commands found in this document:
https://www.embeddedartists.com/wp-content/uploads/2018/04/Using_Cameras_on_iMX_Developers_Kit.pdf
I'm using the MaaXBoard_Mini-LinuxShipmentImage-Debian-V1.0.2r05.img on SD card. When I list the device using v4l2-ctl, I get:
root@maaxboard-mini:~# v4l2-ctl --list-devices
i.MX6S_CSI (platform:32e20000.csi1_bridge):
/dev/video0
I can use the snapshot.jpeg command as is and it produces a still image on the SD card.
root@maaxboard-mini:~# gst-launch-1.0 v4l2src device="/dev/video0" num-buffers=1 ! capsfilter caps="video/x-raw, width=640, height=480, framerate=30/1" ! videoconvert ! jpegenc ! filesink location=snapshot.jpeg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.843193485
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
However, when using the autovideosink command, I get a black window pop up on the wayland desktop (thru my DSI display):
root@maaxboard-mini:~# gst-launch-1.0 v4l2src device=/dev/video0 ! capsfilter caps="video/x-raw, width=640, height=480, framerate=30/1" ! queue ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
and the command just hangs there with no images coming through on the black box window.
A couple of questions here:
1. Why is the v4l2 subsystem showing the CSI camera as "i.MX6S_CSI". I would have expected it to say something about imx8.
2. Other than the QT based "Camera" application, is there an out of the box method for streaming and recording video from the Maaxboard-mini CSI interface?
3. Using the QT based Camera app, I can record video, but it is storing the file as a .yuv format. Is this just a set of uncompressed images? I need a method of hardware assisted h264 encoding.
Thanks,
Marco