Problem when using the rpiсamsrс plugin on RPi4 with HQ Camera
Hello everyone!
I need to capture an image at a resolution of 1920x1080 from an HQ Camera on a Raspberry Pi 4B.
I've tried using the following pipeline:
gst-launch-1.0 rpicamsrc preview=false ! video/x-raw, format=I420, width=1920, height=1080 ! videoconvert ! fpsdisplaysink
but I get about 2 FPS and the following artifact:
Using the next pipeline, I get about 27 fps, but this artifact remains, in addition, the smoothness of the image disappears when the camera is moved...
gst-launch-1.0 rpicamsrc preview=false use-stc=0 sensor-mode=1920x1080 ! video/x-raw, format=I420, width=1920, height=1080 ! videoconvert ! fpsdisplaysink
However, if you enable the preview, then the image on it is perfect (smooth, without artifacts, with good resolution). I get a similar quality when using the command:
raspivid -t 100000 -w 1920 -h 1080 -fps 60
This kind of hints that the case is in GStreamer... By the way, I am using GStreamer version 1.14.4, since it is installed by default on Raspberry Pi 4.
How can I get a high-quality image in the desired resolution and with the maximum frame rate through GStreamer using the rpicamsrc plugin?