Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Camera Module JPEG Video Capture
-
Hi,
I would be interested in using the Spresense Camera module (ISX012) in video capture mode with the JPEG image format.
From the source code (GitHub), looks like this is not supported:
static int isx012_check_fmt(enum v4l2_buf_type buf_type, uint32_t pixel_format) { switch (buf_type) { case V4L2_BUF_TYPE_VIDEO_CAPTURE: if (pixel_format != V4L2_PIX_FMT_UYVY) { /* Unsupported format */ return -EINVAL; } break; ... } }
What is the reason for this?
Is it a limitation of the ISX012?
(the full datasheet does not seems to be public and from the product brief is not really clear)I want to capture some video, so the still capture mode is little bit slow. Because of the limited memory (1.5 Mb) using other formats (UYVY) works only for low resolutions.
Thanks,
Attila -
-
Hi @bluetiger9
So the "final" answer I got for this is that the ISX012 camera can only stream in UYVY format.
If you want JPEG streaming the only way is to still mode capture using QBUF/DQBUF continously.Best regards,
Karl -
Thanks for the answer. I think, I will check what resolution can be achieved with UYVY.
Cheers,
Attila