To take an image with GStreamer I'm using the following pipeline:
gst-launch-1.0 imxv4l2videosrc imx-capture-mode=5 num-buffers=1 ! jpegenc ! filesink location=test.jpg
According to the specifications of imxv4l2videosrc element; the maximum resolution I get obtain is 1920x1080
imx-capture-mode : Capture mode of camera, varies with each v4l2 driver,
for example ov5460:
ov5640_mode_VGA_640_480 = 0,
ov5640_mode_QVGA_320_240 = 1,
ov5640_mode_NTSC_720_480 = 2,
ov5640_mode_PAL_720_576 = 3,
ov5640_mode_720P_1280_720 = 4,
ov5640_mode_1080P_1920_1080 = 5
What I want to know is whether there is another pipeline configuration that I can access the camera and get an image with 5MP resolution?
you can use "width= height=" to instead of imx-capture-mode